From bd60e63c332ff0ef5956879a7b781a7afae0e36e Mon Sep 17 00:00:00 2001 From: p-zielinski <82354717+p-zielinski@users.noreply.github.com> Date: Wed, 17 Jan 2024 09:05:02 +0100 Subject: [PATCH] fixes --- README.md | 4 +- docs/Model/BusValRuleAssignment.md | 4 +- ...alificationsCheckEligibilityRequestBody.md | 2 +- .../CustomerActivityDataOrderItemsItem.md | 2 +- ...merActivityDataRedemptionOrderItemsItem.md | 2 +- docs/Model/OrderCalculated.md | 2 +- docs/Model/OrderCalculatedBase.md | 2 +- docs/Model/OrderCalculatedNoCustomerData.md | 2 +- docs/Model/OrderItemCalculated.md | 1 + docs/Model/OrdersCreateResponseBody.md | 2 +- docs/Model/OrdersGetResponseBody.md | 2 +- docs/Model/OrdersUpdateResponseBody.md | 2 +- ...alificationsCheckEligibilityRequestBody.md | 2 +- docs/Model/QualificationsOption.md | 13 +++ docs/Model/QualificationsOptionFilters.md | 15 ++++ src/Model/BusValRuleAssignment.php | 14 +--- ...lificationsCheckEligibilityRequestBody.php | 6 +- .../CustomerActivityDataOrderItemsItem.php | 80 +++++++++---------- ...erActivityDataRedemptionOrderItemsItem.php | 80 +++++++++---------- src/Model/OrderCalculated.php | 7 +- src/Model/OrderCalculatedBase.php | 7 +- src/Model/OrderCalculatedNoCustomerData.php | 7 +- src/Model/OrderItemCalculated.php | 34 ++++++++ src/Model/OrdersCreateResponseBody.php | 7 +- src/Model/OrdersGetResponseBody.php | 7 +- src/Model/OrdersUpdateResponseBody.php | 7 +- ...lificationsCheckEligibilityRequestBody.php | 6 +- ...dyOptions.php => QualificationsOption.php} | 16 ++-- ...rs.php => QualificationsOptionFilters.php} | 8 +- 29 files changed, 191 insertions(+), 152 deletions(-) create mode 100644 docs/Model/QualificationsOption.md create mode 100644 docs/Model/QualificationsOptionFilters.md rename src/Model/{ClientQualificationsCheckEligibilityRequestBodyOptions.php => QualificationsOption.php} (95%) rename src/Model/{ClientQualificationsCheckEligibilityRequestBodyOptionsFilters.php => QualificationsOptionFilters.php} (97%) diff --git a/README.md b/README.md index 785ee1c..7ee8865 100644 --- a/README.md +++ b/README.md @@ -272,8 +272,6 @@ Class | Method | HTTP request | Description - [ClientEventsCreateRequestBodyReferral](docs/Model/ClientEventsCreateRequestBodyReferral.md) - [ClientEventsCreateResponseBody](docs/Model/ClientEventsCreateResponseBody.md) - [ClientQualificationsCheckEligibilityRequestBody](docs/Model/ClientQualificationsCheckEligibilityRequestBody.md) -- [ClientQualificationsCheckEligibilityRequestBodyOptions](docs/Model/ClientQualificationsCheckEligibilityRequestBodyOptions.md) -- [ClientQualificationsCheckEligibilityRequestBodyOptionsFilters](docs/Model/ClientQualificationsCheckEligibilityRequestBodyOptionsFilters.md) - [ClientQualificationsCheckEligibilityResponseBody](docs/Model/ClientQualificationsCheckEligibilityResponseBody.md) - [ClientRedemptionsRedeemRequestBody](docs/Model/ClientRedemptionsRedeemRequestBody.md) - [ClientRedemptionsRedeemRequestBodyAllOfOptions](docs/Model/ClientRedemptionsRedeemRequestBodyAllOfOptions.md) @@ -607,6 +605,8 @@ Class | Method | HTTP request | Description - [QualificationsCheckEligibilityResponseBody](docs/Model/QualificationsCheckEligibilityResponseBody.md) - [QualificationsFieldConditions](docs/Model/QualificationsFieldConditions.md) - [QualificationsFiltersCondition](docs/Model/QualificationsFiltersCondition.md) +- [QualificationsOption](docs/Model/QualificationsOption.md) +- [QualificationsOptionFilters](docs/Model/QualificationsOptionFilters.md) - [QualificationsRedeemable](docs/Model/QualificationsRedeemable.md) - [QualificationsRedeemableBase](docs/Model/QualificationsRedeemableBase.md) - [QualificationsRedeemables](docs/Model/QualificationsRedeemables.md) diff --git a/docs/Model/BusValRuleAssignment.md b/docs/Model/BusValRuleAssignment.md index 3179bb4..2b9508f 100644 --- a/docs/Model/BusValRuleAssignment.md +++ b/docs/Model/BusValRuleAssignment.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **created_at** | **\DateTime** | Timestamp representing the date and time when the object was created in ISO 8601 format. | [optional] **updated_at** | **\DateTime** | Timestamp representing the date and time when the object was last updated in ISO 8601 format. | [optional] **object** | **string** | The type of object represented by JSON. | [default to 'validation_rules_assignment'] -**validation_status** | **string** | The validation status of the assignment | -**validation_omitted_rules** | **string[]** | The list of omitted rules | +**validation_status** | **string** | The validation status of the assignment | [optional] +**validation_omitted_rules** | **string[]** | The list of omitted rules | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ClientQualificationsCheckEligibilityRequestBody.md b/docs/Model/ClientQualificationsCheckEligibilityRequestBody.md index 27169da..d2cb847 100644 --- a/docs/Model/ClientQualificationsCheckEligibilityRequestBody.md +++ b/docs/Model/ClientQualificationsCheckEligibilityRequestBody.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **mode** | **string** | Defines which resources Voucherify will use. The `ADVANCED` mode is available after purchase only. | [optional] **tracking_id** | **string** | Is correspondent to Customer's source_id | [optional] **scenario** | **string** | Defines the scenario Voucherify should consider during the qualification process. - `ALL` - Scenario that returns all redeemables available for the customer in one API request. This scenario is used by default when no value is selected. - `CUSTOMER_WALLET` - returns vouchers applicable to the customer’s cart based on the vouchers assigned to the customer’s profile. - `AUDIENCE_ONLY` - returns all vouchers, promotion tiers, and campaigns available to the customer. Voucherify validates the rules based on the customer profile only. - `PRODUCTS` - returns all promotions available for the products (when a discount is defined to be applied to the item or when the item is required in the validation rule). - `PRODUCTS_DISCOUNT` - returns all promotions available for products when a discount is defined as applicable to specific item(s). - `PROMOTION_STACKS` - returns the applicable promotion stacks. - `PRODUCTS_BY_CUSTOMER` - returns all promotions available for a customer for the products (when a discount is defined to be applied to the item or when the item is required in the validation rule). - `PRODUCTS_DISCOUNT_BY_CUSTOMER` - returns all promotions available for a customer for products when a discount is defined as applicable to specific item(s). | [optional] -**options** | [**\OpenAPI\Client\Model\ClientQualificationsCheckEligibilityRequestBodyOptions**](ClientQualificationsCheckEligibilityRequestBodyOptions.md) | | [optional] +**options** | [**\OpenAPI\Client\Model\QualificationsOption**](QualificationsOption.md) | | [optional] **metadata** | **object** | A set of key/value pairs that you can send in the request body to check against redeemables requiring **redemption** metadata validation rules to be satisfied. The validation runs against rules that are defined through the <!-- [Create Validation Rules](https://docs.voucherify.io/reference/create-validation-rules) -->[Create Validation Rules](ref:create-validation-rules) endpoint or via the Dashboard; in the _Advanced Rule Builder_ &rarr; _Advanced_ &rarr; _Redemption metadata satisfy_ or _Basic Builder_ &rarr; _Attributes match_ &rarr; _REDEMPTION METADATA_. [Read more](https://support.voucherify.io/article/148-how-to-build-a-rule). | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/CustomerActivityDataOrderItemsItem.md b/docs/Model/CustomerActivityDataOrderItemsItem.md index 85a6727..6afd2da 100644 --- a/docs/Model/CustomerActivityDataOrderItemsItem.md +++ b/docs/Model/CustomerActivityDataOrderItemsItem.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **initial_quantity** | **int** | A positive integer in the smallest unit quantity representing the total amount of the order; this is the sum of the order items' quantity. | [optional] **amount** | **int** | The total amount of the order item (price * quantity). | [optional] **discount_amount** | **int** | Sum of all order-item-level discounts applied to the order. | [optional] +**applied_discount_amount** | **int** | This field shows the order-level discount applied. | [optional] **initial_amount** | **int** | A positive integer in the smallest currency unit (e.g. 100 cents for $1.00) representing the total amount of the order. This is the sum of the order items' amounts. | [optional] **total_applied_discount_amount** | **int** | Sum of all order-level AND all product-specific discounts applied in a particular request. `total_applied_discount_amount` = `applied_discount_amount` + `items_applied_discount_amount` | [optional] **price** | **int** | Unit price of an item. Value is multiplied by 100 to precisely represent 2 decimal places. For example `10000 cents` for `$100.00`. | [optional] @@ -21,6 +22,5 @@ Name | Type | Description | Notes **sku** | [**\OpenAPI\Client\Model\CustomerActivityDataOrderItemsItemSku**](CustomerActivityDataOrderItemsItemSku.md) | | [optional] **object** | **string** | | [optional] [default to 'order_item'] **metadata** | **object** | | [optional] -**applied_discount_amount** | **int** | This field shows the order-level discount applied. | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/CustomerActivityDataRedemptionOrderItemsItem.md b/docs/Model/CustomerActivityDataRedemptionOrderItemsItem.md index 73c8b31..15062d2 100644 --- a/docs/Model/CustomerActivityDataRedemptionOrderItemsItem.md +++ b/docs/Model/CustomerActivityDataRedemptionOrderItemsItem.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **initial_quantity** | **int** | A positive integer in the smallest unit quantity representing the total amount of the order; this is the sum of the order items' quantity. | [optional] **amount** | **int** | The total amount of the order item (price * quantity). | [optional] **discount_amount** | **int** | Sum of all order-item-level discounts applied to the order. | [optional] +**applied_discount_amount** | **int** | This field shows the order-level discount applied. | [optional] **initial_amount** | **int** | A positive integer in the smallest currency unit (e.g. 100 cents for $1.00) representing the total amount of the order. This is the sum of the order items' amounts. | [optional] **total_applied_discount_amount** | **int** | Sum of all order-level AND all product-specific discounts applied in a particular request. `total_applied_discount_amount` = `applied_discount_amount` + `items_applied_discount_amount` | [optional] **price** | **int** | Unit price of an item. Value is multiplied by 100 to precisely represent 2 decimal places. For example `10000 cents` for `$100.00`. | [optional] @@ -21,6 +22,5 @@ Name | Type | Description | Notes **sku** | [**\OpenAPI\Client\Model\CustomerActivityDataRedemptionOrderItemsItemSku**](CustomerActivityDataRedemptionOrderItemsItemSku.md) | | [optional] **object** | **string** | | [optional] [default to 'order_item'] **metadata** | **object** | | [optional] -**applied_discount_amount** | **int** | This field shows the order-level discount applied. | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/OrderCalculated.md b/docs/Model/OrderCalculated.md index 76580c7..58e0d66 100644 --- a/docs/Model/OrderCalculated.md +++ b/docs/Model/OrderCalculated.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **string** | Unique ID assigned by Voucherify of an existing order that will be linked to the redemption of this request. | +**id** | **string** | Unique ID assigned by Voucherify of an existing order that will be linked to the redemption of this request. | [optional] **source_id** | **string** | Unique source ID of an existing order that will be linked to the redemption of this request. | **created_at** | **\DateTime** | Timestamp representing the date and time when the order was created in ISO 8601 format. | [optional] **updated_at** | **\DateTime** | Timestamp representing the date and time when the order was last updated in ISO 8601 format. | [optional] diff --git a/docs/Model/OrderCalculatedBase.md b/docs/Model/OrderCalculatedBase.md index 4be494b..7194464 100644 --- a/docs/Model/OrderCalculatedBase.md +++ b/docs/Model/OrderCalculatedBase.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **string** | Unique ID assigned by Voucherify of an existing order that will be linked to the redemption of this request. | +**id** | **string** | Unique ID assigned by Voucherify of an existing order that will be linked to the redemption of this request. | [optional] **source_id** | **string** | Unique source ID of an existing order that will be linked to the redemption of this request. | **created_at** | **\DateTime** | Timestamp representing the date and time when the order was created in ISO 8601 format. | [optional] **updated_at** | **\DateTime** | Timestamp representing the date and time when the order was last updated in ISO 8601 format. | [optional] diff --git a/docs/Model/OrderCalculatedNoCustomerData.md b/docs/Model/OrderCalculatedNoCustomerData.md index 1304e69..c905b9f 100644 --- a/docs/Model/OrderCalculatedNoCustomerData.md +++ b/docs/Model/OrderCalculatedNoCustomerData.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **string** | Unique ID assigned by Voucherify of an existing order that will be linked to the redemption of this request. | +**id** | **string** | Unique ID assigned by Voucherify of an existing order that will be linked to the redemption of this request. | [optional] **source_id** | **string** | Unique source ID of an existing order that will be linked to the redemption of this request. | **created_at** | **\DateTime** | Timestamp representing the date and time when the order was created in ISO 8601 format. | [optional] **updated_at** | **\DateTime** | Timestamp representing the date and time when the order was last updated in ISO 8601 format. | [optional] diff --git a/docs/Model/OrderItemCalculated.md b/docs/Model/OrderItemCalculated.md index 5ac4e41..ceeb24f 100644 --- a/docs/Model/OrderItemCalculated.md +++ b/docs/Model/OrderItemCalculated.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **initial_quantity** | **int** | A positive integer in the smallest unit quantity representing the total amount of the order; this is the sum of the order items' quantity. | [optional] **amount** | **int** | The total amount of the order item (price * quantity). | [optional] **discount_amount** | **int** | Sum of all order-item-level discounts applied to the order. | [optional] +**applied_discount_amount** | **int** | This field shows the order-level discount applied. | [optional] **initial_amount** | **int** | A positive integer in the smallest currency unit (e.g. 100 cents for $1.00) representing the total amount of the order. This is the sum of the order items' amounts. | [optional] **total_applied_discount_amount** | **int** | Sum of all order-level AND all product-specific discounts applied in a particular request. `total_applied_discount_amount` = `applied_discount_amount` + `items_applied_discount_amount` | [optional] **price** | **int** | Unit price of an item. Value is multiplied by 100 to precisely represent 2 decimal places. For example `10000 cents` for `$100.00`. | [optional] diff --git a/docs/Model/OrdersCreateResponseBody.md b/docs/Model/OrdersCreateResponseBody.md index 9e7af81..11a667d 100644 --- a/docs/Model/OrdersCreateResponseBody.md +++ b/docs/Model/OrdersCreateResponseBody.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **string** | Unique ID assigned by Voucherify of an existing order that will be linked to the redemption of this request. | +**id** | **string** | Unique ID assigned by Voucherify of an existing order that will be linked to the redemption of this request. | [optional] **source_id** | **string** | Unique source ID of an existing order that will be linked to the redemption of this request. | **created_at** | **\DateTime** | Timestamp representing the date and time when the order was created in ISO 8601 format. | [optional] **updated_at** | **\DateTime** | Timestamp representing the date and time when the order was last updated in ISO 8601 format. | [optional] diff --git a/docs/Model/OrdersGetResponseBody.md b/docs/Model/OrdersGetResponseBody.md index 7cca4dd..a0aff43 100644 --- a/docs/Model/OrdersGetResponseBody.md +++ b/docs/Model/OrdersGetResponseBody.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **string** | Unique ID assigned by Voucherify of an existing order that will be linked to the redemption of this request. | +**id** | **string** | Unique ID assigned by Voucherify of an existing order that will be linked to the redemption of this request. | [optional] **source_id** | **string** | Unique source ID of an existing order that will be linked to the redemption of this request. | **created_at** | **\DateTime** | Timestamp representing the date and time when the order was created in ISO 8601 format. | [optional] **updated_at** | **\DateTime** | Timestamp representing the date and time when the order was last updated in ISO 8601 format. | [optional] diff --git a/docs/Model/OrdersUpdateResponseBody.md b/docs/Model/OrdersUpdateResponseBody.md index b4bdde7..44b19ee 100644 --- a/docs/Model/OrdersUpdateResponseBody.md +++ b/docs/Model/OrdersUpdateResponseBody.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **string** | Unique ID assigned by Voucherify of an existing order that will be linked to the redemption of this request. | +**id** | **string** | Unique ID assigned by Voucherify of an existing order that will be linked to the redemption of this request. | [optional] **source_id** | **string** | Unique source ID of an existing order that will be linked to the redemption of this request. | **created_at** | **\DateTime** | Timestamp representing the date and time when the order was created in ISO 8601 format. | [optional] **updated_at** | **\DateTime** | Timestamp representing the date and time when the order was last updated in ISO 8601 format. | [optional] diff --git a/docs/Model/QualificationsCheckEligibilityRequestBody.md b/docs/Model/QualificationsCheckEligibilityRequestBody.md index e937c4d..cf58bfa 100644 --- a/docs/Model/QualificationsCheckEligibilityRequestBody.md +++ b/docs/Model/QualificationsCheckEligibilityRequestBody.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **mode** | **string** | Defines which resources Voucherify will use. The `ADVANCED` mode is available after purchase only. | [optional] **tracking_id** | **string** | Is correspondent to Customer's source_id | [optional] **scenario** | **string** | Defines the scenario Voucherify should consider during the qualification process. - `ALL` - Scenario that returns all redeemables available for the customer in one API request. This scenario is used by default when no value is selected. - `CUSTOMER_WALLET` - returns vouchers applicable to the customer’s cart based on the vouchers assigned to the customer’s profile. - `AUDIENCE_ONLY` - returns all vouchers, promotion tiers, and campaigns available to the customer. Voucherify validates the rules based on the customer profile only. - `PRODUCTS` - returns all promotions available for the products (when a discount is defined to be applied to the item or when the item is required in the validation rule). - `PRODUCTS_DISCOUNT` - returns all promotions available for products when a discount is defined as applicable to specific item(s). - `PROMOTION_STACKS` - returns the applicable promotion stacks. - `PRODUCTS_BY_CUSTOMER` - returns all promotions available for a customer for the products (when a discount is defined to be applied to the item or when the item is required in the validation rule). - `PRODUCTS_DISCOUNT_BY_CUSTOMER` - returns all promotions available for a customer for products when a discount is defined as applicable to specific item(s). | [optional] -**options** | [**\OpenAPI\Client\Model\ClientQualificationsCheckEligibilityRequestBodyOptions**](ClientQualificationsCheckEligibilityRequestBodyOptions.md) | | [optional] +**options** | [**\OpenAPI\Client\Model\QualificationsOption**](QualificationsOption.md) | | [optional] **metadata** | **object** | A set of key/value pairs that you can send in the request body to check against redeemables requiring **redemption** metadata validation rules to be satisfied. The validation runs against rules that are defined through the <!-- [Create Validation Rules](https://docs.voucherify.io/reference/create-validation-rules) -->[Create Validation Rules](ref:create-validation-rules) endpoint or via the Dashboard; in the _Advanced Rule Builder_ &rarr; _Advanced_ &rarr; _Redemption metadata satisfy_ or _Basic Builder_ &rarr; _Attributes match_ &rarr; _REDEMPTION METADATA_. [Read more](https://support.voucherify.io/article/148-how-to-build-a-rule). | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/QualificationsOption.md b/docs/Model/QualificationsOption.md new file mode 100644 index 0000000..1a8d63f --- /dev/null +++ b/docs/Model/QualificationsOption.md @@ -0,0 +1,13 @@ +# # QualificationsOption + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**limit** | **int** | The maximum number of redeemables to be returned in the API request. The actual number of returned redeemables will be determined by the API. The default value is set to 5 | [optional] +**starting_after** | **\DateTime** | Cursor used for paging. | [optional] +**filters** | [**\OpenAPI\Client\Model\QualificationsOptionFilters**](QualificationsOptionFilters.md) | | [optional] +**expand** | **string[]** | The expand array lets you configure the parameters included in the response. Depending on the strings included in the array, the response will contain different details. | **Expand Option** | **Response Body** | |:---|:---| | [\"redeemable\"] | - Returns the redeemables' metadata. | | [\"category\"] | - Returns an expanded `categories` object, showing details about the category. | | [\"validation_rules\"] | - Returns an expanded `validation_rules` object, showing details about the validation rules. | | [optional] +**sorting_rule** | **string** | Is used to determine the order in which data is displayed in the result array. - `DEFAULT` - Sorting descending by `created_at` - `BEST_DEAL` - Sorting descending by `total_applied_discount_amount` - `LEAST_DEAL` - Sorting ascending by `total_applied_discount_amount` | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/QualificationsOptionFilters.md b/docs/Model/QualificationsOptionFilters.md new file mode 100644 index 0000000..ac0abd3 --- /dev/null +++ b/docs/Model/QualificationsOptionFilters.md @@ -0,0 +1,15 @@ +# # QualificationsOptionFilters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**junction** | **string** | Logical Operator Between Filters. Filter by conditions set on the `junction` parameter indicating how the `conditions` should be accounted for in the query. An `AND` is an all-inclusive logical operator, meaning the `AND` operator displays a record if **ALL** the conditions separated by AND are TRUE, while an `OR` operator displays a record if **ANY** of the conditions separated by OR is TRUE. | [optional] +**category_id** | [**\OpenAPI\Client\Model\QualificationsFieldConditions**](QualificationsFieldConditions.md) | | [optional] +**campaign_id** | [**\OpenAPI\Client\Model\QualificationsFieldConditions**](QualificationsFieldConditions.md) | | [optional] +**resource_id** | [**\OpenAPI\Client\Model\QualificationsFieldConditions**](QualificationsFieldConditions.md) | | [optional] +**resource_type** | [**\OpenAPI\Client\Model\QualificationsFieldConditions**](QualificationsFieldConditions.md) | | [optional] +**voucher_type** | [**\OpenAPI\Client\Model\QualificationsFieldConditions**](QualificationsFieldConditions.md) | | [optional] +**code** | [**\OpenAPI\Client\Model\QualificationsFieldConditions**](QualificationsFieldConditions.md) | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/src/Model/BusValRuleAssignment.php b/src/Model/BusValRuleAssignment.php index 50c4296..5562ce9 100644 --- a/src/Model/BusValRuleAssignment.php +++ b/src/Model/BusValRuleAssignment.php @@ -386,9 +386,6 @@ public function listInvalidProperties() ); } - if ($this->container['validation_status'] === null) { - $invalidProperties[] = "'validation_status' can't be null"; - } $allowedValues = $this->getValidationStatusAllowableValues(); if (!is_null($this->container['validation_status']) && !in_array($this->container['validation_status'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -398,9 +395,6 @@ public function listInvalidProperties() ); } - if ($this->container['validation_omitted_rules'] === null) { - $invalidProperties[] = "'validation_omitted_rules' can't be null"; - } return $invalidProperties; } @@ -618,7 +612,7 @@ public function setObject($object) /** * Gets validation_status * - * @return string + * @return string|null */ public function getValidationStatus() { @@ -628,7 +622,7 @@ public function getValidationStatus() /** * Sets validation_status * - * @param string $validation_status The validation status of the assignment + * @param string|null $validation_status The validation status of the assignment * * @return self */ @@ -655,7 +649,7 @@ public function setValidationStatus($validation_status) /** * Gets validation_omitted_rules * - * @return string[] + * @return string[]|null */ public function getValidationOmittedRules() { @@ -665,7 +659,7 @@ public function getValidationOmittedRules() /** * Sets validation_omitted_rules * - * @param string[] $validation_omitted_rules The list of omitted rules + * @param string[]|null $validation_omitted_rules The list of omitted rules * * @return self */ diff --git a/src/Model/ClientQualificationsCheckEligibilityRequestBody.php b/src/Model/ClientQualificationsCheckEligibilityRequestBody.php index e4bca32..08d3213 100644 --- a/src/Model/ClientQualificationsCheckEligibilityRequestBody.php +++ b/src/Model/ClientQualificationsCheckEligibilityRequestBody.php @@ -64,7 +64,7 @@ class ClientQualificationsCheckEligibilityRequestBody implements ModelInterface, 'mode' => 'string', 'tracking_id' => 'string', 'scenario' => 'string', - 'options' => '\OpenAPI\Client\Model\ClientQualificationsCheckEligibilityRequestBodyOptions', + 'options' => '\OpenAPI\Client\Model\QualificationsOption', 'metadata' => 'object' ]; @@ -551,7 +551,7 @@ public function setScenario($scenario) /** * Gets options * - * @return \OpenAPI\Client\Model\ClientQualificationsCheckEligibilityRequestBodyOptions|null + * @return \OpenAPI\Client\Model\QualificationsOption|null */ public function getOptions() { @@ -561,7 +561,7 @@ public function getOptions() /** * Sets options * - * @param \OpenAPI\Client\Model\ClientQualificationsCheckEligibilityRequestBodyOptions|null $options options + * @param \OpenAPI\Client\Model\QualificationsOption|null $options options * * @return self */ diff --git a/src/Model/CustomerActivityDataOrderItemsItem.php b/src/Model/CustomerActivityDataOrderItemsItem.php index c53f0d6..4d39d60 100644 --- a/src/Model/CustomerActivityDataOrderItemsItem.php +++ b/src/Model/CustomerActivityDataOrderItemsItem.php @@ -67,6 +67,7 @@ class CustomerActivityDataOrderItemsItem implements ModelInterface, ArrayAccess, 'initial_quantity' => 'int', 'amount' => 'int', 'discount_amount' => 'int', + 'applied_discount_amount' => 'int', 'initial_amount' => 'int', 'total_applied_discount_amount' => 'int', 'price' => 'int', @@ -74,8 +75,7 @@ class CustomerActivityDataOrderItemsItem implements ModelInterface, ArrayAccess, 'product' => '\OpenAPI\Client\Model\CustomerActivityDataOrderItemsItemProduct', 'sku' => '\OpenAPI\Client\Model\CustomerActivityDataOrderItemsItemSku', 'object' => 'string', - 'metadata' => 'object', - 'applied_discount_amount' => 'int' + 'metadata' => 'object' ]; /** @@ -95,6 +95,7 @@ class CustomerActivityDataOrderItemsItem implements ModelInterface, ArrayAccess, 'initial_quantity' => null, 'amount' => null, 'discount_amount' => null, + 'applied_discount_amount' => null, 'initial_amount' => null, 'total_applied_discount_amount' => null, 'price' => null, @@ -102,8 +103,7 @@ class CustomerActivityDataOrderItemsItem implements ModelInterface, ArrayAccess, 'product' => null, 'sku' => null, 'object' => null, - 'metadata' => null, - 'applied_discount_amount' => null + 'metadata' => null ]; /** @@ -121,6 +121,7 @@ class CustomerActivityDataOrderItemsItem implements ModelInterface, ArrayAccess, 'initial_quantity' => false, 'amount' => false, 'discount_amount' => false, + 'applied_discount_amount' => false, 'initial_amount' => false, 'total_applied_discount_amount' => false, 'price' => false, @@ -128,8 +129,7 @@ class CustomerActivityDataOrderItemsItem implements ModelInterface, ArrayAccess, 'product' => false, 'sku' => false, 'object' => false, - 'metadata' => false, - 'applied_discount_amount' => false + 'metadata' => false ]; /** @@ -227,6 +227,7 @@ public function isNullableSetToNull(string $property): bool 'initial_quantity' => 'initial_quantity', 'amount' => 'amount', 'discount_amount' => 'discount_amount', + 'applied_discount_amount' => 'applied_discount_amount', 'initial_amount' => 'initial_amount', 'total_applied_discount_amount' => 'total_applied_discount_amount', 'price' => 'price', @@ -234,8 +235,7 @@ public function isNullableSetToNull(string $property): bool 'product' => 'product', 'sku' => 'sku', 'object' => 'object', - 'metadata' => 'metadata', - 'applied_discount_amount' => 'applied_discount_amount' + 'metadata' => 'metadata' ]; /** @@ -253,6 +253,7 @@ public function isNullableSetToNull(string $property): bool 'initial_quantity' => 'setInitialQuantity', 'amount' => 'setAmount', 'discount_amount' => 'setDiscountAmount', + 'applied_discount_amount' => 'setAppliedDiscountAmount', 'initial_amount' => 'setInitialAmount', 'total_applied_discount_amount' => 'setTotalAppliedDiscountAmount', 'price' => 'setPrice', @@ -260,8 +261,7 @@ public function isNullableSetToNull(string $property): bool 'product' => 'setProduct', 'sku' => 'setSku', 'object' => 'setObject', - 'metadata' => 'setMetadata', - 'applied_discount_amount' => 'setAppliedDiscountAmount' + 'metadata' => 'setMetadata' ]; /** @@ -279,6 +279,7 @@ public function isNullableSetToNull(string $property): bool 'initial_quantity' => 'getInitialQuantity', 'amount' => 'getAmount', 'discount_amount' => 'getDiscountAmount', + 'applied_discount_amount' => 'getAppliedDiscountAmount', 'initial_amount' => 'getInitialAmount', 'total_applied_discount_amount' => 'getTotalAppliedDiscountAmount', 'price' => 'getPrice', @@ -286,8 +287,7 @@ public function isNullableSetToNull(string $property): bool 'product' => 'getProduct', 'sku' => 'getSku', 'object' => 'getObject', - 'metadata' => 'getMetadata', - 'applied_discount_amount' => 'getAppliedDiscountAmount' + 'metadata' => 'getMetadata' ]; /** @@ -384,6 +384,7 @@ public function __construct(array $data = null) $this->setIfExists('initial_quantity', $data ?? [], null); $this->setIfExists('amount', $data ?? [], null); $this->setIfExists('discount_amount', $data ?? [], null); + $this->setIfExists('applied_discount_amount', $data ?? [], null); $this->setIfExists('initial_amount', $data ?? [], null); $this->setIfExists('total_applied_discount_amount', $data ?? [], null); $this->setIfExists('price', $data ?? [], null); @@ -392,7 +393,6 @@ public function __construct(array $data = null) $this->setIfExists('sku', $data ?? [], null); $this->setIfExists('object', $data ?? [], 'order_item'); $this->setIfExists('metadata', $data ?? [], null); - $this->setIfExists('applied_discount_amount', $data ?? [], null); } /** @@ -708,6 +708,33 @@ public function setDiscountAmount($discount_amount) return $this; } + /** + * Gets applied_discount_amount + * + * @return int|null + */ + public function getAppliedDiscountAmount() + { + return $this->container['applied_discount_amount']; + } + + /** + * Sets applied_discount_amount + * + * @param int|null $applied_discount_amount This field shows the order-level discount applied. + * + * @return self + */ + public function setAppliedDiscountAmount($applied_discount_amount) + { + if (is_null($applied_discount_amount)) { + throw new \InvalidArgumentException('non-nullable applied_discount_amount cannot be null'); + } + $this->container['applied_discount_amount'] = $applied_discount_amount; + + return $this; + } + /** * Gets initial_amount * @@ -933,33 +960,6 @@ public function setMetadata($metadata) return $this; } - - /** - * Gets applied_discount_amount - * - * @return int|null - */ - public function getAppliedDiscountAmount() - { - return $this->container['applied_discount_amount']; - } - - /** - * Sets applied_discount_amount - * - * @param int|null $applied_discount_amount This field shows the order-level discount applied. - * - * @return self - */ - public function setAppliedDiscountAmount($applied_discount_amount) - { - if (is_null($applied_discount_amount)) { - throw new \InvalidArgumentException('non-nullable applied_discount_amount cannot be null'); - } - $this->container['applied_discount_amount'] = $applied_discount_amount; - - return $this; - } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/CustomerActivityDataRedemptionOrderItemsItem.php b/src/Model/CustomerActivityDataRedemptionOrderItemsItem.php index cf5cbfd..0b5450e 100644 --- a/src/Model/CustomerActivityDataRedemptionOrderItemsItem.php +++ b/src/Model/CustomerActivityDataRedemptionOrderItemsItem.php @@ -67,6 +67,7 @@ class CustomerActivityDataRedemptionOrderItemsItem implements ModelInterface, Ar 'initial_quantity' => 'int', 'amount' => 'int', 'discount_amount' => 'int', + 'applied_discount_amount' => 'int', 'initial_amount' => 'int', 'total_applied_discount_amount' => 'int', 'price' => 'int', @@ -74,8 +75,7 @@ class CustomerActivityDataRedemptionOrderItemsItem implements ModelInterface, Ar 'product' => '\OpenAPI\Client\Model\CustomerActivityDataRedemptionOrderItemsItemProduct', 'sku' => '\OpenAPI\Client\Model\CustomerActivityDataRedemptionOrderItemsItemSku', 'object' => 'string', - 'metadata' => 'object', - 'applied_discount_amount' => 'int' + 'metadata' => 'object' ]; /** @@ -95,6 +95,7 @@ class CustomerActivityDataRedemptionOrderItemsItem implements ModelInterface, Ar 'initial_quantity' => null, 'amount' => null, 'discount_amount' => null, + 'applied_discount_amount' => null, 'initial_amount' => null, 'total_applied_discount_amount' => null, 'price' => null, @@ -102,8 +103,7 @@ class CustomerActivityDataRedemptionOrderItemsItem implements ModelInterface, Ar 'product' => null, 'sku' => null, 'object' => null, - 'metadata' => null, - 'applied_discount_amount' => null + 'metadata' => null ]; /** @@ -121,6 +121,7 @@ class CustomerActivityDataRedemptionOrderItemsItem implements ModelInterface, Ar 'initial_quantity' => false, 'amount' => false, 'discount_amount' => false, + 'applied_discount_amount' => false, 'initial_amount' => false, 'total_applied_discount_amount' => false, 'price' => false, @@ -128,8 +129,7 @@ class CustomerActivityDataRedemptionOrderItemsItem implements ModelInterface, Ar 'product' => false, 'sku' => false, 'object' => false, - 'metadata' => false, - 'applied_discount_amount' => false + 'metadata' => false ]; /** @@ -227,6 +227,7 @@ public function isNullableSetToNull(string $property): bool 'initial_quantity' => 'initial_quantity', 'amount' => 'amount', 'discount_amount' => 'discount_amount', + 'applied_discount_amount' => 'applied_discount_amount', 'initial_amount' => 'initial_amount', 'total_applied_discount_amount' => 'total_applied_discount_amount', 'price' => 'price', @@ -234,8 +235,7 @@ public function isNullableSetToNull(string $property): bool 'product' => 'product', 'sku' => 'sku', 'object' => 'object', - 'metadata' => 'metadata', - 'applied_discount_amount' => 'applied_discount_amount' + 'metadata' => 'metadata' ]; /** @@ -253,6 +253,7 @@ public function isNullableSetToNull(string $property): bool 'initial_quantity' => 'setInitialQuantity', 'amount' => 'setAmount', 'discount_amount' => 'setDiscountAmount', + 'applied_discount_amount' => 'setAppliedDiscountAmount', 'initial_amount' => 'setInitialAmount', 'total_applied_discount_amount' => 'setTotalAppliedDiscountAmount', 'price' => 'setPrice', @@ -260,8 +261,7 @@ public function isNullableSetToNull(string $property): bool 'product' => 'setProduct', 'sku' => 'setSku', 'object' => 'setObject', - 'metadata' => 'setMetadata', - 'applied_discount_amount' => 'setAppliedDiscountAmount' + 'metadata' => 'setMetadata' ]; /** @@ -279,6 +279,7 @@ public function isNullableSetToNull(string $property): bool 'initial_quantity' => 'getInitialQuantity', 'amount' => 'getAmount', 'discount_amount' => 'getDiscountAmount', + 'applied_discount_amount' => 'getAppliedDiscountAmount', 'initial_amount' => 'getInitialAmount', 'total_applied_discount_amount' => 'getTotalAppliedDiscountAmount', 'price' => 'getPrice', @@ -286,8 +287,7 @@ public function isNullableSetToNull(string $property): bool 'product' => 'getProduct', 'sku' => 'getSku', 'object' => 'getObject', - 'metadata' => 'getMetadata', - 'applied_discount_amount' => 'getAppliedDiscountAmount' + 'metadata' => 'getMetadata' ]; /** @@ -384,6 +384,7 @@ public function __construct(array $data = null) $this->setIfExists('initial_quantity', $data ?? [], null); $this->setIfExists('amount', $data ?? [], null); $this->setIfExists('discount_amount', $data ?? [], null); + $this->setIfExists('applied_discount_amount', $data ?? [], null); $this->setIfExists('initial_amount', $data ?? [], null); $this->setIfExists('total_applied_discount_amount', $data ?? [], null); $this->setIfExists('price', $data ?? [], null); @@ -392,7 +393,6 @@ public function __construct(array $data = null) $this->setIfExists('sku', $data ?? [], null); $this->setIfExists('object', $data ?? [], 'order_item'); $this->setIfExists('metadata', $data ?? [], null); - $this->setIfExists('applied_discount_amount', $data ?? [], null); } /** @@ -708,6 +708,33 @@ public function setDiscountAmount($discount_amount) return $this; } + /** + * Gets applied_discount_amount + * + * @return int|null + */ + public function getAppliedDiscountAmount() + { + return $this->container['applied_discount_amount']; + } + + /** + * Sets applied_discount_amount + * + * @param int|null $applied_discount_amount This field shows the order-level discount applied. + * + * @return self + */ + public function setAppliedDiscountAmount($applied_discount_amount) + { + if (is_null($applied_discount_amount)) { + throw new \InvalidArgumentException('non-nullable applied_discount_amount cannot be null'); + } + $this->container['applied_discount_amount'] = $applied_discount_amount; + + return $this; + } + /** * Gets initial_amount * @@ -933,33 +960,6 @@ public function setMetadata($metadata) return $this; } - - /** - * Gets applied_discount_amount - * - * @return int|null - */ - public function getAppliedDiscountAmount() - { - return $this->container['applied_discount_amount']; - } - - /** - * Sets applied_discount_amount - * - * @param int|null $applied_discount_amount This field shows the order-level discount applied. - * - * @return self - */ - public function setAppliedDiscountAmount($applied_discount_amount) - { - if (is_null($applied_discount_amount)) { - throw new \InvalidArgumentException('non-nullable applied_discount_amount cannot be null'); - } - $this->container['applied_discount_amount'] = $applied_discount_amount; - - return $this; - } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/OrderCalculated.php b/src/Model/OrderCalculated.php index b6ef93c..00a4f3b 100644 --- a/src/Model/OrderCalculated.php +++ b/src/Model/OrderCalculated.php @@ -454,9 +454,6 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; - } if ($this->container['source_id'] === null) { $invalidProperties[] = "'source_id' can't be null"; } @@ -505,7 +502,7 @@ public function valid() /** * Gets id * - * @return string + * @return string|null */ public function getId() { @@ -515,7 +512,7 @@ public function getId() /** * Sets id * - * @param string $id Unique ID assigned by Voucherify of an existing order that will be linked to the redemption of this request. + * @param string|null $id Unique ID assigned by Voucherify of an existing order that will be linked to the redemption of this request. * * @return self */ diff --git a/src/Model/OrderCalculatedBase.php b/src/Model/OrderCalculatedBase.php index deb77ff..3e65003 100644 --- a/src/Model/OrderCalculatedBase.php +++ b/src/Model/OrderCalculatedBase.php @@ -441,9 +441,6 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; - } if ($this->container['source_id'] === null) { $invalidProperties[] = "'source_id' can't be null"; } @@ -492,7 +489,7 @@ public function valid() /** * Gets id * - * @return string + * @return string|null */ public function getId() { @@ -502,7 +499,7 @@ public function getId() /** * Sets id * - * @param string $id Unique ID assigned by Voucherify of an existing order that will be linked to the redemption of this request. + * @param string|null $id Unique ID assigned by Voucherify of an existing order that will be linked to the redemption of this request. * * @return self */ diff --git a/src/Model/OrderCalculatedNoCustomerData.php b/src/Model/OrderCalculatedNoCustomerData.php index 03f1bb7..8a6b28b 100644 --- a/src/Model/OrderCalculatedNoCustomerData.php +++ b/src/Model/OrderCalculatedNoCustomerData.php @@ -454,9 +454,6 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; - } if ($this->container['source_id'] === null) { $invalidProperties[] = "'source_id' can't be null"; } @@ -505,7 +502,7 @@ public function valid() /** * Gets id * - * @return string + * @return string|null */ public function getId() { @@ -515,7 +512,7 @@ public function getId() /** * Sets id * - * @param string $id Unique ID assigned by Voucherify of an existing order that will be linked to the redemption of this request. + * @param string|null $id Unique ID assigned by Voucherify of an existing order that will be linked to the redemption of this request. * * @return self */ diff --git a/src/Model/OrderItemCalculated.php b/src/Model/OrderItemCalculated.php index c577390..67c7592 100644 --- a/src/Model/OrderItemCalculated.php +++ b/src/Model/OrderItemCalculated.php @@ -67,6 +67,7 @@ class OrderItemCalculated implements ModelInterface, ArrayAccess, \JsonSerializa 'initial_quantity' => 'int', 'amount' => 'int', 'discount_amount' => 'int', + 'applied_discount_amount' => 'int', 'initial_amount' => 'int', 'total_applied_discount_amount' => 'int', 'price' => 'int', @@ -94,6 +95,7 @@ class OrderItemCalculated implements ModelInterface, ArrayAccess, \JsonSerializa 'initial_quantity' => null, 'amount' => null, 'discount_amount' => null, + 'applied_discount_amount' => null, 'initial_amount' => null, 'total_applied_discount_amount' => null, 'price' => null, @@ -119,6 +121,7 @@ class OrderItemCalculated implements ModelInterface, ArrayAccess, \JsonSerializa 'initial_quantity' => false, 'amount' => false, 'discount_amount' => false, + 'applied_discount_amount' => false, 'initial_amount' => false, 'total_applied_discount_amount' => false, 'price' => false, @@ -224,6 +227,7 @@ public function isNullableSetToNull(string $property): bool 'initial_quantity' => 'initial_quantity', 'amount' => 'amount', 'discount_amount' => 'discount_amount', + 'applied_discount_amount' => 'applied_discount_amount', 'initial_amount' => 'initial_amount', 'total_applied_discount_amount' => 'total_applied_discount_amount', 'price' => 'price', @@ -249,6 +253,7 @@ public function isNullableSetToNull(string $property): bool 'initial_quantity' => 'setInitialQuantity', 'amount' => 'setAmount', 'discount_amount' => 'setDiscountAmount', + 'applied_discount_amount' => 'setAppliedDiscountAmount', 'initial_amount' => 'setInitialAmount', 'total_applied_discount_amount' => 'setTotalAppliedDiscountAmount', 'price' => 'setPrice', @@ -274,6 +279,7 @@ public function isNullableSetToNull(string $property): bool 'initial_quantity' => 'getInitialQuantity', 'amount' => 'getAmount', 'discount_amount' => 'getDiscountAmount', + 'applied_discount_amount' => 'getAppliedDiscountAmount', 'initial_amount' => 'getInitialAmount', 'total_applied_discount_amount' => 'getTotalAppliedDiscountAmount', 'price' => 'getPrice', @@ -378,6 +384,7 @@ public function __construct(array $data = null) $this->setIfExists('initial_quantity', $data ?? [], null); $this->setIfExists('amount', $data ?? [], null); $this->setIfExists('discount_amount', $data ?? [], null); + $this->setIfExists('applied_discount_amount', $data ?? [], null); $this->setIfExists('initial_amount', $data ?? [], null); $this->setIfExists('total_applied_discount_amount', $data ?? [], null); $this->setIfExists('price', $data ?? [], null); @@ -704,6 +711,33 @@ public function setDiscountAmount($discount_amount) return $this; } + /** + * Gets applied_discount_amount + * + * @return int|null + */ + public function getAppliedDiscountAmount() + { + return $this->container['applied_discount_amount']; + } + + /** + * Sets applied_discount_amount + * + * @param int|null $applied_discount_amount This field shows the order-level discount applied. + * + * @return self + */ + public function setAppliedDiscountAmount($applied_discount_amount) + { + if (is_null($applied_discount_amount)) { + throw new \InvalidArgumentException('non-nullable applied_discount_amount cannot be null'); + } + $this->container['applied_discount_amount'] = $applied_discount_amount; + + return $this; + } + /** * Gets initial_amount * diff --git a/src/Model/OrdersCreateResponseBody.php b/src/Model/OrdersCreateResponseBody.php index f3ae3dc..a088b6f 100644 --- a/src/Model/OrdersCreateResponseBody.php +++ b/src/Model/OrdersCreateResponseBody.php @@ -455,9 +455,6 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; - } if ($this->container['source_id'] === null) { $invalidProperties[] = "'source_id' can't be null"; } @@ -506,7 +503,7 @@ public function valid() /** * Gets id * - * @return string + * @return string|null */ public function getId() { @@ -516,7 +513,7 @@ public function getId() /** * Sets id * - * @param string $id Unique ID assigned by Voucherify of an existing order that will be linked to the redemption of this request. + * @param string|null $id Unique ID assigned by Voucherify of an existing order that will be linked to the redemption of this request. * * @return self */ diff --git a/src/Model/OrdersGetResponseBody.php b/src/Model/OrdersGetResponseBody.php index 2411f90..bf815dc 100644 --- a/src/Model/OrdersGetResponseBody.php +++ b/src/Model/OrdersGetResponseBody.php @@ -455,9 +455,6 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; - } if ($this->container['source_id'] === null) { $invalidProperties[] = "'source_id' can't be null"; } @@ -506,7 +503,7 @@ public function valid() /** * Gets id * - * @return string + * @return string|null */ public function getId() { @@ -516,7 +513,7 @@ public function getId() /** * Sets id * - * @param string $id Unique ID assigned by Voucherify of an existing order that will be linked to the redemption of this request. + * @param string|null $id Unique ID assigned by Voucherify of an existing order that will be linked to the redemption of this request. * * @return self */ diff --git a/src/Model/OrdersUpdateResponseBody.php b/src/Model/OrdersUpdateResponseBody.php index 7ee14e3..a0a01db 100644 --- a/src/Model/OrdersUpdateResponseBody.php +++ b/src/Model/OrdersUpdateResponseBody.php @@ -455,9 +455,6 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; - } if ($this->container['source_id'] === null) { $invalidProperties[] = "'source_id' can't be null"; } @@ -506,7 +503,7 @@ public function valid() /** * Gets id * - * @return string + * @return string|null */ public function getId() { @@ -516,7 +513,7 @@ public function getId() /** * Sets id * - * @param string $id Unique ID assigned by Voucherify of an existing order that will be linked to the redemption of this request. + * @param string|null $id Unique ID assigned by Voucherify of an existing order that will be linked to the redemption of this request. * * @return self */ diff --git a/src/Model/QualificationsCheckEligibilityRequestBody.php b/src/Model/QualificationsCheckEligibilityRequestBody.php index 49a441e..d2d9bfe 100644 --- a/src/Model/QualificationsCheckEligibilityRequestBody.php +++ b/src/Model/QualificationsCheckEligibilityRequestBody.php @@ -64,7 +64,7 @@ class QualificationsCheckEligibilityRequestBody implements ModelInterface, Array 'mode' => 'string', 'tracking_id' => 'string', 'scenario' => 'string', - 'options' => '\OpenAPI\Client\Model\ClientQualificationsCheckEligibilityRequestBodyOptions', + 'options' => '\OpenAPI\Client\Model\QualificationsOption', 'metadata' => 'object' ]; @@ -551,7 +551,7 @@ public function setScenario($scenario) /** * Gets options * - * @return \OpenAPI\Client\Model\ClientQualificationsCheckEligibilityRequestBodyOptions|null + * @return \OpenAPI\Client\Model\QualificationsOption|null */ public function getOptions() { @@ -561,7 +561,7 @@ public function getOptions() /** * Sets options * - * @param \OpenAPI\Client\Model\ClientQualificationsCheckEligibilityRequestBodyOptions|null $options options + * @param \OpenAPI\Client\Model\QualificationsOption|null $options options * * @return self */ diff --git a/src/Model/ClientQualificationsCheckEligibilityRequestBodyOptions.php b/src/Model/QualificationsOption.php similarity index 95% rename from src/Model/ClientQualificationsCheckEligibilityRequestBodyOptions.php rename to src/Model/QualificationsOption.php index c80758a..f858b62 100644 --- a/src/Model/ClientQualificationsCheckEligibilityRequestBodyOptions.php +++ b/src/Model/QualificationsOption.php @@ -1,6 +1,6 @@ */ -class ClientQualificationsCheckEligibilityRequestBodyOptions implements ModelInterface, ArrayAccess, \JsonSerializable +class QualificationsOption implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -51,7 +51,7 @@ class ClientQualificationsCheckEligibilityRequestBodyOptions implements ModelInt * * @var string */ - protected static $openAPIModelName = 'ClientQualificationsCheckEligibilityRequestBody_options'; + protected static $openAPIModelName = 'QualificationsOption'; /** * Array of property to type mappings. Used for (de)serialization @@ -61,7 +61,7 @@ class ClientQualificationsCheckEligibilityRequestBodyOptions implements ModelInt protected static $openAPITypes = [ 'limit' => 'int', 'starting_after' => '\DateTime', - 'filters' => '\OpenAPI\Client\Model\ClientQualificationsCheckEligibilityRequestBodyOptionsFilters', + 'filters' => '\OpenAPI\Client\Model\QualificationsOptionFilters', 'expand' => 'string[]', 'sorting_rule' => 'string' ]; @@ -390,7 +390,7 @@ public function setLimit($limit) } if (($limit > 100)) { - throw new \InvalidArgumentException('invalid value for $limit when calling ClientQualificationsCheckEligibilityRequestBodyOptions., must be smaller than or equal to 100.'); + throw new \InvalidArgumentException('invalid value for $limit when calling QualificationsOption., must be smaller than or equal to 100.'); } $this->container['limit'] = $limit; @@ -435,7 +435,7 @@ public function setStartingAfter($starting_after) /** * Gets filters * - * @return \OpenAPI\Client\Model\ClientQualificationsCheckEligibilityRequestBodyOptionsFilters|null + * @return \OpenAPI\Client\Model\QualificationsOptionFilters|null */ public function getFilters() { @@ -445,7 +445,7 @@ public function getFilters() /** * Sets filters * - * @param \OpenAPI\Client\Model\ClientQualificationsCheckEligibilityRequestBodyOptionsFilters|null $filters filters + * @param \OpenAPI\Client\Model\QualificationsOptionFilters|null $filters filters * * @return self */ diff --git a/src/Model/ClientQualificationsCheckEligibilityRequestBodyOptionsFilters.php b/src/Model/QualificationsOptionFilters.php similarity index 97% rename from src/Model/ClientQualificationsCheckEligibilityRequestBodyOptionsFilters.php rename to src/Model/QualificationsOptionFilters.php index 27d4f72..d7f0d2f 100644 --- a/src/Model/ClientQualificationsCheckEligibilityRequestBodyOptionsFilters.php +++ b/src/Model/QualificationsOptionFilters.php @@ -1,6 +1,6 @@ */ -class ClientQualificationsCheckEligibilityRequestBodyOptionsFilters implements ModelInterface, ArrayAccess, \JsonSerializable +class QualificationsOptionFilters implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -51,7 +51,7 @@ class ClientQualificationsCheckEligibilityRequestBodyOptionsFilters implements M * * @var string */ - protected static $openAPIModelName = 'ClientQualificationsCheckEligibilityRequestBody_options_filters'; + protected static $openAPIModelName = 'QualificationsOption_filters'; /** * Array of property to type mappings. Used for (de)serialization