diff --git a/README.md b/README.md index 4ea806d..074c8f8 100644 --- a/README.md +++ b/README.md @@ -118,6 +118,7 @@ Class | Method | HTTP request | Description *EventsApi* | [**trackCustomEventClientSide**](docs/Api/EventsApi.md#trackcustomeventclientside) | **POST** /client/v1/events | Track Custom Event (client-side) *ExportsApi* | [**createExport**](docs/Api/ExportsApi.md#createexport) | **POST** /v1/exports | Create Export *ExportsApi* | [**deleteExport**](docs/Api/ExportsApi.md#deleteexport) | **DELETE** /v1/exports/{exportId} | Delete Export +*ExportsApi* | [**downloadExport**](docs/Api/ExportsApi.md#downloadexport) | **GET** /v1/exports/{export_Id} | Download Export *ExportsApi* | [**getExport**](docs/Api/ExportsApi.md#getexport) | **GET** /v1/exports/{exportId} | Get Export *ExportsApi* | [**listExports**](docs/Api/ExportsApi.md#listexports) | **GET** /v1/exports | List Exports *LoyaltiesApi* | [**createInBulkLoyaltyTiers**](docs/Api/LoyaltiesApi.md#createinbulkloyaltytiers) | **POST** /v1/loyalties/{campaignId}/tiers | Create loyalty tiers @@ -171,7 +172,6 @@ Class | Method | HTTP request | Description *ProductsApi* | [**updateProductsInBulk**](docs/Api/ProductsApi.md#updateproductsinbulk) | **POST** /v1/products/bulk/async | Update Products in bulk *ProductsApi* | [**updateProductsMetadataInBulk**](docs/Api/ProductsApi.md#updateproductsmetadatainbulk) | **POST** /v1/products/metadata/async | Update Products' Metadata in bulk *ProductsApi* | [**updateSku**](docs/Api/ProductsApi.md#updatesku) | **PUT** /v1/products/{productId}/skus/{skuId} | Update SKU -*PromotionsApi* | [**createCampaign**](docs/Api/PromotionsApi.md#createcampaign) | **POST** /v1/campaigns | Create Campaign *PromotionsApi* | [**createPromotionStack**](docs/Api/PromotionsApi.md#createpromotionstack) | **POST** /v1/promotions/{campaignId}/stacks | Create Promotion Stack *PromotionsApi* | [**deletePromotionStack**](docs/Api/PromotionsApi.md#deletepromotionstack) | **DELETE** /v1/promotions/{campaignId}/stacks/{stackId} | Delete Promotion Stack *PromotionsApi* | [**deletePromotionTier**](docs/Api/PromotionsApi.md#deletepromotiontier) | **DELETE** /v1/promotions/tiers/{promotionTierId} | Delete Promotion Tier @@ -409,7 +409,6 @@ Class | Method | HTTP request | Description - [EventsCreateResponseBody](docs/Model/EventsCreateResponseBody.md) - [Export](docs/Model/Export.md) - [ExportOrderBase](docs/Model/ExportOrderBase.md) -- [ExportOrderFilters](docs/Model/ExportOrderFilters.md) - [ExportParameters](docs/Model/ExportParameters.md) - [ExportParametersFilters](docs/Model/ExportParametersFilters.md) - [ExportResult](docs/Model/ExportResult.md) diff --git a/docs/Api/ExportsApi.md b/docs/Api/ExportsApi.md index 5e11b5a..8b2afc0 100644 --- a/docs/Api/ExportsApi.md +++ b/docs/Api/ExportsApi.md @@ -6,6 +6,7 @@ All URIs are relative to https://api.voucherify.io, except if the operation defi | ------------- | ------------- | ------------- | | [**createExport()**](ExportsApi.md#createExport) | **POST** /v1/exports | Create Export | | [**deleteExport()**](ExportsApi.md#deleteExport) | **DELETE** /v1/exports/{exportId} | Delete Export | +| [**downloadExport()**](ExportsApi.md#downloadExport) | **GET** /v1/exports/{export_Id} | Download Export | | [**getExport()**](ExportsApi.md#getExport) | **GET** /v1/exports/{exportId} | Get Export | | [**listExports()**](ExportsApi.md#listExports) | **GET** /v1/exports | List Exports | @@ -143,6 +144,64 @@ void (empty response body) [[Back to Model list]](../../README.md#models) [[Back to README]](../../README.md) +## `downloadExport()` + +```php +downloadExport($export_id, $token): string +``` + +Download Export + +Download the contents of the exported CSV file. > 📘 Important notes > > **Base URL:** > - `https://download.voucherify.io` (Europe) > - `https://us1.download.voucherify.io` (US) > - `https://as1.download.voucherify.io` (Asia) > > **Token:** Can be found within the `result` parameter of the [Get Export](ref:get-export) method response. + +### Example + +```php +downloadExport($export_id, $token); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ExportsApi->downloadExport: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **export_id** | **string**| Unique export object ID. | | +| **token** | **string**| Token that was issued to the export, to get this token, get the export first | [optional] | + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `text/plain` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + ## `getExport()` ```php diff --git a/docs/Api/PromotionsApi.md b/docs/Api/PromotionsApi.md index 29d3dda..74d1726 100644 --- a/docs/Api/PromotionsApi.md +++ b/docs/Api/PromotionsApi.md @@ -4,7 +4,6 @@ All URIs are relative to https://api.voucherify.io, except if the operation defi | Method | HTTP request | Description | | ------------- | ------------- | ------------- | -| [**createCampaign()**](PromotionsApi.md#createCampaign) | **POST** /v1/campaigns | Create Campaign | | [**createPromotionStack()**](PromotionsApi.md#createPromotionStack) | **POST** /v1/promotions/{campaignId}/stacks | Create Promotion Stack | | [**deletePromotionStack()**](PromotionsApi.md#deletePromotionStack) | **DELETE** /v1/promotions/{campaignId}/stacks/{stackId} | Delete Promotion Stack | | [**deletePromotionTier()**](PromotionsApi.md#deletePromotionTier) | **DELETE** /v1/promotions/tiers/{promotionTierId} | Delete Promotion Tier | @@ -18,73 +17,6 @@ All URIs are relative to https://api.voucherify.io, except if the operation defi | [**updatePromotionStack()**](PromotionsApi.md#updatePromotionStack) | **PUT** /v1/promotions/{campaignId}/stacks/{stackId} | Update Promotion Stack | -## `createCampaign()` - -```php -createCampaign($campaigns_create_request_body): \OpenAPI\Client\Model\CampaignsCreateResponseBody -``` - -Create Campaign - -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 can't read or modify a newly created campaign until the code generation is completed. See the `creation_status` field in the [campaign object](ref:get-campaign) description. - -### Example - -```php -setApiKey('X-App-Id', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-App-Id', 'Bearer'); - -// Configure API key authorization: X-App-Token -$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('X-App-Token', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-App-Token', 'Bearer'); - - -$apiInstance = new OpenAPI\Client\Api\PromotionsApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$campaigns_create_request_body = {"name":"Discount Campaign 4","campaign_type":"DISCOUNT_COUPONS","join_once":true,"type":"AUTO_UPDATE","category_id":"cat_0bb343dee3cdb5ec0c","start_date":"2020-08-16T00:00:00Z","expiration_date":"2023-12-26T00:00:00Z","vouchers_count":3,"voucher":{"type":"DISCOUNT_VOUCHER","discount":{"percent_off":10,"type":"PERCENT"},"redemption":{"quantity":10},"code_config":{"pattern":"10OFF-#######"}},"validity_timeframe":{"interval":"P2D","duration":"P1D"},"validity_day_of_week":[0,1,2],"activity_duration_after_publishing":"P24D","use_voucher_metadata_schema":false,"metadata":{"region":"AMER"}}; // \OpenAPI\Client\Model\CampaignsCreateRequestBody | Specify the details of the campaign that you would like to create. - -try { - $result = $apiInstance->createCampaign($campaigns_create_request_body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling PromotionsApi->createCampaign: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **campaigns_create_request_body** | [**\OpenAPI\Client\Model\CampaignsCreateRequestBody**](../Model/CampaignsCreateRequestBody.md)| Specify the details of the campaign that you would like to create. | [optional] | - -### Return type - -[**\OpenAPI\Client\Model\CampaignsCreateResponseBody**](../Model/CampaignsCreateResponseBody.md) - -### Authorization - -[X-App-Id](../../README.md#X-App-Id), [X-App-Token](../../README.md#X-App-Token) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - ## `createPromotionStack()` ```php diff --git a/docs/Api/RedemptionsApi.md b/docs/Api/RedemptionsApi.md index 27accc0..d6d208a 100644 --- a/docs/Api/RedemptionsApi.md +++ b/docs/Api/RedemptionsApi.md @@ -182,7 +182,7 @@ $limit = 56; // int | A limit on the number of objects to be returned. Limit can $page = 56; // int | Which page of results to return. $result = 'result_example'; // string | A filter on the list based on the redemption result. Available options are: `SUCCESS`, `FAILURE`. You can provide multiple values by repeating the param. $campaign = 'campaign_example'; // string | A filter by the campaign **name** that the redemption resources originate from. -$customer = 'customer_example'; // string | Return redemptions performed by the customer with given `id`. +$customer = 'customer_example'; // string | Return redemptions performed by the customer with given `id` or `source_id`. $order = new \OpenAPI\Client\Model\ParameterOrderListRedemptions(); // ParameterOrderListRedemptions | Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order. $created_at = new \OpenAPI\Client\Model\ParameterCreatedBeforeAfter(); // ParameterCreatedBeforeAfter | A filter on the list based on the object `created_at` field. The value is a dictionary with the following options: `before`, `after`. A date value must be presented in ISO 8601 format (`2016-11-16T14:14:31Z` or `2016-11-16`). An example: `[created_at][before]=2017-09-08T13:52:18.227Z` $filters = new \OpenAPI\Client\Model\ParameterFiltersListRedemptions(); // ParameterFiltersListRedemptions | Filters for listing responses. @@ -203,7 +203,7 @@ try { | **page** | **int**| Which page of results to return. | [optional] | | **result** | **string**| A filter on the list based on the redemption result. Available options are: `SUCCESS`, `FAILURE`. You can provide multiple values by repeating the param. | [optional] | | **campaign** | **string**| A filter by the campaign **name** that the redemption resources originate from. | [optional] | -| **customer** | **string**| Return redemptions performed by the customer with given `id`. | [optional] | +| **customer** | **string**| Return redemptions performed by the customer with given `id` or `source_id`. | [optional] | | **order** | [**ParameterOrderListRedemptions**](../Model/.md)| Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order. | [optional] | | **created_at** | [**ParameterCreatedBeforeAfter**](../Model/.md)| A filter on the list based on the object `created_at` field. The value is a dictionary with the following options: `before`, `after`. A date value must be presented in ISO 8601 format (`2016-11-16T14:14:31Z` or `2016-11-16`). An example: `[created_at][before]=2017-09-08T13:52:18.227Z` | [optional] | | **filters** | [**ParameterFiltersListRedemptions**](../Model/.md)| Filters for listing responses. | [optional] | diff --git a/docs/Model/ExportParametersFilters.md b/docs/Model/ExportParametersFilters.md index ad604c7..dec8ece 100644 --- a/docs/Model/ExportParametersFilters.md +++ b/docs/Model/ExportParametersFilters.md @@ -5,90 +5,8 @@ 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] -**code** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**voucher_type** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**value** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**discount_type** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**campaign** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**category** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**start_date** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**expiration_date** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**gift_balance** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**loyalty_balance** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**redemption_quantity** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**redemption_count** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**active** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**qr_code** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**bar_code** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**metadata** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**is_referral_code** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**created_at** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**updated_at** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**validity_timeframe_interval** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**validity_timeframe_duration** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**validity_day_of_week** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**discount_amount_limit** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] **campaign_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**additional_info** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**customer_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**discount_unit_type** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**discount_unit_effect** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**customer_source_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**object** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**date** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**voucher_code** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**promotion_tier_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**customer_name** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**tracking_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**order_amount** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**gift_amount** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**loyalty_points** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**result** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**failure_code** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**failure_message** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**name** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**description** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**email** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**source_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**address_city** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**address_state** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**address_line_1** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**address_line_2** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**address_country** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**address_postal_code** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**redemptions_total_redeemed** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**redemptions_total_failed** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**redemptions_total_succeeded** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**redemptions_total_rolled_back** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**redemptions_total_rollback_failed** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**redemptions_total_rollback_succeeded** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**orders_total_amount** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**orders_total_count** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**orders_average_amount** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**orders_last_order_amount** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**orders_last_order_date** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**loyalty_referred_customers** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**phone** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**birthday** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**birthdate** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**channel** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**is_winner** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**status** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**amount** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**discount_amount** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**items_discount_amount** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**total_discount_amount** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**total_amount** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**referrer_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] **voucher_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**points** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**expires_at** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**type** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**reason** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**source** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**balance** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**related_transaction_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**details** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] +**created_at** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [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/ExportVoucherTransactionsFilters.md b/docs/Model/ExportVoucherTransactionsFilters.md index 018bf1c..f2afdfb 100644 --- a/docs/Model/ExportVoucherTransactionsFilters.md +++ b/docs/Model/ExportVoucherTransactionsFilters.md @@ -5,17 +5,8 @@ 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] -**id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**campaign_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**voucher_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**type** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**source_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**reason** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**source** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**balance** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**amount** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**related_transaction_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] **created_at** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**details** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] +**voucher_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] +**campaign_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [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/ExportsCreateRequestBodyParametersFilters.md b/docs/Model/ExportsCreateRequestBodyParametersFilters.md index 52afc3b..e61289d 100644 --- a/docs/Model/ExportsCreateRequestBodyParametersFilters.md +++ b/docs/Model/ExportsCreateRequestBodyParametersFilters.md @@ -5,90 +5,8 @@ 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] -**code** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**voucher_type** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**value** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**discount_type** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**campaign** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**category** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**start_date** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**expiration_date** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**gift_balance** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**loyalty_balance** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**redemption_quantity** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**redemption_count** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**active** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**qr_code** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**bar_code** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**metadata** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**is_referral_code** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**created_at** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**updated_at** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**validity_timeframe_interval** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**validity_timeframe_duration** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**validity_day_of_week** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**discount_amount_limit** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] **campaign_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**additional_info** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**customer_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**discount_unit_type** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**discount_unit_effect** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**customer_source_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**object** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**date** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**voucher_code** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**promotion_tier_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**customer_name** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**tracking_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**order_amount** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**gift_amount** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**loyalty_points** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**result** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**failure_code** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**failure_message** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**name** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**description** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**email** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**source_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**address_city** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**address_state** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**address_line_1** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**address_line_2** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**address_country** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**address_postal_code** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**redemptions_total_redeemed** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**redemptions_total_failed** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**redemptions_total_succeeded** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**redemptions_total_rolled_back** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**redemptions_total_rollback_failed** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**redemptions_total_rollback_succeeded** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**orders_total_amount** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**orders_total_count** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**orders_average_amount** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**orders_last_order_amount** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**orders_last_order_date** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**loyalty_referred_customers** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**phone** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**birthday** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**birthdate** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**channel** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**is_winner** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**status** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**amount** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**discount_amount** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**items_discount_amount** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**total_discount_amount** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**total_amount** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**referrer_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] **voucher_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**points** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**expires_at** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**type** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**reason** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**source** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**balance** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**related_transaction_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**details** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] +**created_at** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [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/ExportsCreateResponseBodyParametersFilters.md b/docs/Model/ExportsCreateResponseBodyParametersFilters.md index d547d2c..2459be8 100644 --- a/docs/Model/ExportsCreateResponseBodyParametersFilters.md +++ b/docs/Model/ExportsCreateResponseBodyParametersFilters.md @@ -5,90 +5,8 @@ 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] -**code** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**voucher_type** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**value** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**discount_type** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**campaign** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**category** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**start_date** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**expiration_date** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**gift_balance** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**loyalty_balance** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**redemption_quantity** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**redemption_count** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**active** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**qr_code** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**bar_code** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**metadata** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**is_referral_code** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**created_at** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**updated_at** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**validity_timeframe_interval** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**validity_timeframe_duration** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**validity_day_of_week** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**discount_amount_limit** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] **campaign_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**additional_info** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**customer_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**discount_unit_type** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**discount_unit_effect** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**customer_source_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**object** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**date** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**voucher_code** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**promotion_tier_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**customer_name** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**tracking_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**order_amount** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**gift_amount** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**loyalty_points** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**result** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**failure_code** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**failure_message** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**name** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**description** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**email** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**source_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**address_city** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**address_state** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**address_line_1** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**address_line_2** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**address_country** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**address_postal_code** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**redemptions_total_redeemed** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**redemptions_total_failed** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**redemptions_total_succeeded** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**redemptions_total_rolled_back** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**redemptions_total_rollback_failed** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**redemptions_total_rollback_succeeded** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**orders_total_amount** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**orders_total_count** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**orders_average_amount** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**orders_last_order_amount** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**orders_last_order_date** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**loyalty_referred_customers** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**phone** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**birthday** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**birthdate** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**channel** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**is_winner** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**status** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**amount** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**discount_amount** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**items_discount_amount** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**total_discount_amount** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**total_amount** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**referrer_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] **voucher_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**points** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**expires_at** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**type** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**reason** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**source** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**balance** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**related_transaction_id** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] -**details** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [optional] +**created_at** | [**\OpenAPI\Client\Model\FieldConditions**](FieldConditions.md) | | [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/OrdersExportCreateRequestBodyParameters.md b/docs/Model/OrdersExportCreateRequestBodyParameters.md index 4e4e540..7090d0c 100644 --- a/docs/Model/OrdersExportCreateRequestBodyParameters.md +++ b/docs/Model/OrdersExportCreateRequestBodyParameters.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **order** | **string** | | [optional] **fields** | **string[]** | Array of strings containing the data in the export. These fields define the headers in the CSV file. | [optional] -**filters** | [**\OpenAPI\Client\Model\ExportOrderFilters**](ExportOrderFilters.md) | | [optional] +**filters** | **object** | Allowed additional properties must start with \"metadata.\" | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/src/Api/ExportsApi.php b/src/Api/ExportsApi.php index 9f2cc60..e562d6c 100644 --- a/src/Api/ExportsApi.php +++ b/src/Api/ExportsApi.php @@ -78,6 +78,9 @@ class ExportsApi 'deleteExport' => [ 'application/json', ], + 'downloadExport' => [ + 'application/json', + ], 'getExport' => [ 'application/json', ], @@ -657,6 +660,304 @@ public function deleteExportRequest($export_id, string $contentType = self::cont ); } + /** + * Operation downloadExport + * + * Download Export + * + * @param string $export_id Unique export object ID. (required) + * @param string $token Token that was issued to the export, to get this token, get the export first (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadExport'] to see the possible values for this operation + * + * @throws \OpenAPI\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return string + */ + public function downloadExport($export_id, $token = null, string $contentType = self::contentTypes['downloadExport'][0]) + { + list($response) = $this->downloadExportWithHttpInfo($export_id, $token, $contentType); + return $response; + } + + /** + * Operation downloadExportWithHttpInfo + * + * Download Export + * + * @param string $export_id Unique export object ID. (required) + * @param string $token Token that was issued to the export, to get this token, get the export first (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadExport'] to see the possible values for this operation + * + * @throws \OpenAPI\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of string, HTTP status code, HTTP response headers (array of strings) + */ + public function downloadExportWithHttpInfo($export_id, $token = null, string $contentType = self::contentTypes['downloadExport'][0]) + { + $request = $this->downloadExportRequest($export_id, $token, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + switch($statusCode) { + case 200: + if ('string' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('string' !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, 'string', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + $returnType = 'string'; + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'string', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation downloadExportAsync + * + * Download Export + * + * @param string $export_id Unique export object ID. (required) + * @param string $token Token that was issued to the export, to get this token, get the export first (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadExport'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function downloadExportAsync($export_id, $token = null, string $contentType = self::contentTypes['downloadExport'][0]) + { + return $this->downloadExportAsyncWithHttpInfo($export_id, $token, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation downloadExportAsyncWithHttpInfo + * + * Download Export + * + * @param string $export_id Unique export object ID. (required) + * @param string $token Token that was issued to the export, to get this token, get the export first (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadExport'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function downloadExportAsyncWithHttpInfo($export_id, $token = null, string $contentType = self::contentTypes['downloadExport'][0]) + { + $returnType = 'string'; + $request = $this->downloadExportRequest($export_id, $token, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'downloadExport' + * + * @param string $export_id Unique export object ID. (required) + * @param string $token Token that was issued to the export, to get this token, get the export first (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadExport'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function downloadExportRequest($export_id, $token = null, string $contentType = self::contentTypes['downloadExport'][0]) + { + + // verify the required parameter 'export_id' is set + if ($export_id === null || (is_array($export_id) && count($export_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $export_id when calling downloadExport' + ); + } + + + + $resourcePath = '/v1/exports/{export_Id}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $token, + 'token', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + + + // path params + if ($export_id !== null) { + $resourcePath = str_replace( + '{' . 'export_Id' . '}', + ObjectSerializer::toPathValue($export_id), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['text/plain', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + /** * Operation getExport * diff --git a/src/Api/PromotionsApi.php b/src/Api/PromotionsApi.php index 3ffb17c..e870954 100644 --- a/src/Api/PromotionsApi.php +++ b/src/Api/PromotionsApi.php @@ -72,9 +72,6 @@ class PromotionsApi /** @var string[] $contentTypes **/ public const contentTypes = [ - 'createCampaign' => [ - 'application/json', - ], 'createPromotionStack' => [ 'application/json', ], @@ -156,292 +153,6 @@ public function getConfig() return $this->config; } - /** - * Operation createCampaign - * - * Create Campaign - * - * @param \OpenAPI\Client\Model\CampaignsCreateRequestBody $campaigns_create_request_body Specify the details of the campaign that you would like to create. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createCampaign'] to see the possible values for this operation - * - * @throws \OpenAPI\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \OpenAPI\Client\Model\CampaignsCreateResponseBody - */ - public function createCampaign($campaigns_create_request_body = null, string $contentType = self::contentTypes['createCampaign'][0]) - { - list($response) = $this->createCampaignWithHttpInfo($campaigns_create_request_body, $contentType); - return $response; - } - - /** - * Operation createCampaignWithHttpInfo - * - * Create Campaign - * - * @param \OpenAPI\Client\Model\CampaignsCreateRequestBody $campaigns_create_request_body Specify the details of the campaign that you would like to create. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createCampaign'] to see the possible values for this operation - * - * @throws \OpenAPI\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \OpenAPI\Client\Model\CampaignsCreateResponseBody, HTTP status code, HTTP response headers (array of strings) - */ - public function createCampaignWithHttpInfo($campaigns_create_request_body = null, string $contentType = self::contentTypes['createCampaign'][0]) - { - $request = $this->createCampaignRequest($campaigns_create_request_body, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\OpenAPI\Client\Model\CampaignsCreateResponseBody' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\OpenAPI\Client\Model\CampaignsCreateResponseBody' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\OpenAPI\Client\Model\CampaignsCreateResponseBody', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\OpenAPI\Client\Model\CampaignsCreateResponseBody'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\OpenAPI\Client\Model\CampaignsCreateResponseBody', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation createCampaignAsync - * - * Create Campaign - * - * @param \OpenAPI\Client\Model\CampaignsCreateRequestBody $campaigns_create_request_body Specify the details of the campaign that you would like to create. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createCampaign'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createCampaignAsync($campaigns_create_request_body = null, string $contentType = self::contentTypes['createCampaign'][0]) - { - return $this->createCampaignAsyncWithHttpInfo($campaigns_create_request_body, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation createCampaignAsyncWithHttpInfo - * - * Create Campaign - * - * @param \OpenAPI\Client\Model\CampaignsCreateRequestBody $campaigns_create_request_body Specify the details of the campaign that you would like to create. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createCampaign'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createCampaignAsyncWithHttpInfo($campaigns_create_request_body = null, string $contentType = self::contentTypes['createCampaign'][0]) - { - $returnType = '\OpenAPI\Client\Model\CampaignsCreateResponseBody'; - $request = $this->createCampaignRequest($campaigns_create_request_body, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'createCampaign' - * - * @param \OpenAPI\Client\Model\CampaignsCreateRequestBody $campaigns_create_request_body Specify the details of the campaign that you would like to create. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createCampaign'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function createCampaignRequest($campaigns_create_request_body = null, string $contentType = self::contentTypes['createCampaign'][0]) - { - - - - $resourcePath = '/v1/campaigns'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (isset($campaigns_create_request_body)) { - if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body - $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($campaigns_create_request_body)); - } else { - $httpBody = $campaigns_create_request_body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('X-App-Id'); - if ($apiKey !== null) { - $headers['X-App-Id'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('X-App-Token'); - if ($apiKey !== null) { - $headers['X-App-Token'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return new Request( - 'POST', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - /** * Operation createPromotionStack * diff --git a/src/Api/RedemptionsApi.php b/src/Api/RedemptionsApi.php index 34c5ec6..7a805de 100644 --- a/src/Api/RedemptionsApi.php +++ b/src/Api/RedemptionsApi.php @@ -727,7 +727,7 @@ public function getVoucherRedemptionsRequest($code, string $contentType = self:: * @param int $page Which page of results to return. (optional) * @param string $result A filter on the list based on the redemption result. Available options are: `SUCCESS`, `FAILURE`. You can provide multiple values by repeating the param. (optional) * @param string $campaign A filter by the campaign **name** that the redemption resources originate from. (optional) - * @param string $customer Return redemptions performed by the customer with given `id`. (optional) + * @param string $customer Return redemptions performed by the customer with given `id` or `source_id`. (optional) * @param ParameterOrderListRedemptions $order Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order. (optional) * @param ParameterCreatedBeforeAfter $created_at A filter on the list based on the object `created_at` field. The value is a dictionary with the following options: `before`, `after`. A date value must be presented in ISO 8601 format (`2016-11-16T14:14:31Z` or `2016-11-16`). An example: `[created_at][before]=2017-09-08T13:52:18.227Z` (optional) * @param ParameterFiltersListRedemptions $filters Filters for listing responses. (optional) @@ -752,7 +752,7 @@ public function listRedemptions($limit = null, $page = null, $result = null, $ca * @param int $page Which page of results to return. (optional) * @param string $result A filter on the list based on the redemption result. Available options are: `SUCCESS`, `FAILURE`. You can provide multiple values by repeating the param. (optional) * @param string $campaign A filter by the campaign **name** that the redemption resources originate from. (optional) - * @param string $customer Return redemptions performed by the customer with given `id`. (optional) + * @param string $customer Return redemptions performed by the customer with given `id` or `source_id`. (optional) * @param ParameterOrderListRedemptions $order Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order. (optional) * @param ParameterCreatedBeforeAfter $created_at A filter on the list based on the object `created_at` field. The value is a dictionary with the following options: `before`, `after`. A date value must be presented in ISO 8601 format (`2016-11-16T14:14:31Z` or `2016-11-16`). An example: `[created_at][before]=2017-09-08T13:52:18.227Z` (optional) * @param ParameterFiltersListRedemptions $filters Filters for listing responses. (optional) @@ -859,7 +859,7 @@ public function listRedemptionsWithHttpInfo($limit = null, $page = null, $result * @param int $page Which page of results to return. (optional) * @param string $result A filter on the list based on the redemption result. Available options are: `SUCCESS`, `FAILURE`. You can provide multiple values by repeating the param. (optional) * @param string $campaign A filter by the campaign **name** that the redemption resources originate from. (optional) - * @param string $customer Return redemptions performed by the customer with given `id`. (optional) + * @param string $customer Return redemptions performed by the customer with given `id` or `source_id`. (optional) * @param ParameterOrderListRedemptions $order Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order. (optional) * @param ParameterCreatedBeforeAfter $created_at A filter on the list based on the object `created_at` field. The value is a dictionary with the following options: `before`, `after`. A date value must be presented in ISO 8601 format (`2016-11-16T14:14:31Z` or `2016-11-16`). An example: `[created_at][before]=2017-09-08T13:52:18.227Z` (optional) * @param ParameterFiltersListRedemptions $filters Filters for listing responses. (optional) @@ -887,7 +887,7 @@ function ($response) { * @param int $page Which page of results to return. (optional) * @param string $result A filter on the list based on the redemption result. Available options are: `SUCCESS`, `FAILURE`. You can provide multiple values by repeating the param. (optional) * @param string $campaign A filter by the campaign **name** that the redemption resources originate from. (optional) - * @param string $customer Return redemptions performed by the customer with given `id`. (optional) + * @param string $customer Return redemptions performed by the customer with given `id` or `source_id`. (optional) * @param ParameterOrderListRedemptions $order Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order. (optional) * @param ParameterCreatedBeforeAfter $created_at A filter on the list based on the object `created_at` field. The value is a dictionary with the following options: `before`, `after`. A date value must be presented in ISO 8601 format (`2016-11-16T14:14:31Z` or `2016-11-16`). An example: `[created_at][before]=2017-09-08T13:52:18.227Z` (optional) * @param ParameterFiltersListRedemptions $filters Filters for listing responses. (optional) @@ -944,7 +944,7 @@ function ($exception) { * @param int $page Which page of results to return. (optional) * @param string $result A filter on the list based on the redemption result. Available options are: `SUCCESS`, `FAILURE`. You can provide multiple values by repeating the param. (optional) * @param string $campaign A filter by the campaign **name** that the redemption resources originate from. (optional) - * @param string $customer Return redemptions performed by the customer with given `id`. (optional) + * @param string $customer Return redemptions performed by the customer with given `id` or `source_id`. (optional) * @param ParameterOrderListRedemptions $order Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order. (optional) * @param ParameterCreatedBeforeAfter $created_at A filter on the list based on the object `created_at` field. The value is a dictionary with the following options: `before`, `after`. A date value must be presented in ISO 8601 format (`2016-11-16T14:14:31Z` or `2016-11-16`). An example: `[created_at][before]=2017-09-08T13:52:18.227Z` (optional) * @param ParameterFiltersListRedemptions $filters Filters for listing responses. (optional) diff --git a/src/Configuration.php b/src/Configuration.php index 29f23c4..b2d77d6 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -481,25 +481,10 @@ public function getHostSettings() "enum_values" => [ "api", "us1.api", - "as1.api" - ] - ] - ] - ], - [ - "url" => "https://download.voucherify.io", - "description" => "EU Download Export Base URL", - ], - [ - "url" => "https://{downloadcluster}.download.voucherify.io", - "description" => "US and AS Download Export Base URL", - "variables" => [ - "downloadcluster" => [ - "description" => "No description provided", - "default_value" => "us1", - "enum_values" => [ - "us1", - "as1" + "as1.api", + "download", + "us1.download", + "as1.download" ] ] ] diff --git a/src/Model/ExportOrderFilters.php b/src/Model/ExportOrderFilters.php deleted file mode 100644 index 531ac04..0000000 --- a/src/Model/ExportOrderFilters.php +++ /dev/null @@ -1,886 +0,0 @@ - - */ -class ExportOrderFilters implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ExportOrderFilters'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'junction' => 'string', - 'id' => '\OpenAPI\Client\Model\FieldConditions', - 'source_id' => '\OpenAPI\Client\Model\FieldConditions', - 'created_at' => '\OpenAPI\Client\Model\FieldConditions', - 'updated_at' => '\OpenAPI\Client\Model\FieldConditions', - 'status' => '\OpenAPI\Client\Model\FieldConditions', - 'amount' => '\OpenAPI\Client\Model\FieldConditions', - 'discount_amount' => '\OpenAPI\Client\Model\FieldConditions', - 'items_discount_amount' => '\OpenAPI\Client\Model\FieldConditions', - 'total_discount_amount' => '\OpenAPI\Client\Model\FieldConditions', - 'total_amount' => '\OpenAPI\Client\Model\FieldConditions', - 'customer_id' => '\OpenAPI\Client\Model\FieldConditions', - 'referrer_id' => '\OpenAPI\Client\Model\FieldConditions', - 'metadata' => '\OpenAPI\Client\Model\FieldConditions' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'junction' => null, - 'id' => null, - 'source_id' => null, - 'created_at' => null, - 'updated_at' => null, - 'status' => null, - 'amount' => null, - 'discount_amount' => null, - 'items_discount_amount' => null, - 'total_discount_amount' => null, - 'total_amount' => null, - 'customer_id' => null, - 'referrer_id' => null, - 'metadata' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'junction' => false, - 'id' => false, - 'source_id' => false, - 'created_at' => false, - 'updated_at' => false, - 'status' => false, - 'amount' => false, - 'discount_amount' => false, - 'items_discount_amount' => false, - 'total_discount_amount' => false, - 'total_amount' => false, - 'customer_id' => false, - 'referrer_id' => false, - 'metadata' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'junction' => 'junction', - 'id' => 'id', - 'source_id' => 'source_id', - 'created_at' => 'created_at', - 'updated_at' => 'updated_at', - 'status' => 'status', - 'amount' => 'amount', - 'discount_amount' => 'discount_amount', - 'items_discount_amount' => 'items_discount_amount', - 'total_discount_amount' => 'total_discount_amount', - 'total_amount' => 'total_amount', - 'customer_id' => 'customer_id', - 'referrer_id' => 'referrer_id', - 'metadata' => 'metadata' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'junction' => 'setJunction', - 'id' => 'setId', - 'source_id' => 'setSourceId', - 'created_at' => 'setCreatedAt', - 'updated_at' => 'setUpdatedAt', - 'status' => 'setStatus', - 'amount' => 'setAmount', - 'discount_amount' => 'setDiscountAmount', - 'items_discount_amount' => 'setItemsDiscountAmount', - 'total_discount_amount' => 'setTotalDiscountAmount', - 'total_amount' => 'setTotalAmount', - 'customer_id' => 'setCustomerId', - 'referrer_id' => 'setReferrerId', - 'metadata' => 'setMetadata' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'junction' => 'getJunction', - 'id' => 'getId', - 'source_id' => 'getSourceId', - 'created_at' => 'getCreatedAt', - 'updated_at' => 'getUpdatedAt', - 'status' => 'getStatus', - 'amount' => 'getAmount', - 'discount_amount' => 'getDiscountAmount', - 'items_discount_amount' => 'getItemsDiscountAmount', - 'total_discount_amount' => 'getTotalDiscountAmount', - 'total_amount' => 'getTotalAmount', - 'customer_id' => 'getCustomerId', - 'referrer_id' => 'getReferrerId', - 'metadata' => 'getMetadata' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - public const JUNCTION__AND = 'and'; - public const JUNCTION__OR = 'or'; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getJunctionAllowableValues() - { - return [ - self::JUNCTION__AND, - self::JUNCTION__OR, - ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('junction', $data ?? [], null); - $this->setIfExists('id', $data ?? [], null); - $this->setIfExists('source_id', $data ?? [], null); - $this->setIfExists('created_at', $data ?? [], null); - $this->setIfExists('updated_at', $data ?? [], null); - $this->setIfExists('status', $data ?? [], null); - $this->setIfExists('amount', $data ?? [], null); - $this->setIfExists('discount_amount', $data ?? [], null); - $this->setIfExists('items_discount_amount', $data ?? [], null); - $this->setIfExists('total_discount_amount', $data ?? [], null); - $this->setIfExists('total_amount', $data ?? [], null); - $this->setIfExists('customer_id', $data ?? [], null); - $this->setIfExists('referrer_id', $data ?? [], null); - $this->setIfExists('metadata', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - $allowedValues = $this->getJunctionAllowableValues(); - if (!is_null($this->container['junction']) && !in_array($this->container['junction'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'junction', must be one of '%s'", - $this->container['junction'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets junction - * - * @return string|null - */ - public function getJunction() - { - return $this->container['junction']; - } - - /** - * Sets junction - * - * @param string|null $junction 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. - * - * @return self - */ - public function setJunction($junction) - { - if (is_null($junction)) { - throw new \InvalidArgumentException('non-nullable junction cannot be null'); - } - $allowedValues = $this->getJunctionAllowableValues(); - if (!in_array($junction, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'junction', must be one of '%s'", - $junction, - implode("', '", $allowedValues) - ) - ); - } - $this->container['junction'] = $junction; - - return $this; - } - - /** - * Gets id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $id id - * - * @return self - */ - public function setId($id) - { - if (is_null($id)) { - throw new \InvalidArgumentException('non-nullable id cannot be null'); - } - $this->container['id'] = $id; - - return $this; - } - - /** - * Gets source_id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getSourceId() - { - return $this->container['source_id']; - } - - /** - * Sets source_id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $source_id source_id - * - * @return self - */ - public function setSourceId($source_id) - { - if (is_null($source_id)) { - throw new \InvalidArgumentException('non-nullable source_id cannot be null'); - } - $this->container['source_id'] = $source_id; - - return $this; - } - - /** - * Gets created_at - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getCreatedAt() - { - return $this->container['created_at']; - } - - /** - * Sets created_at - * - * @param \OpenAPI\Client\Model\FieldConditions|null $created_at created_at - * - * @return self - */ - public function setCreatedAt($created_at) - { - if (is_null($created_at)) { - throw new \InvalidArgumentException('non-nullable created_at cannot be null'); - } - $this->container['created_at'] = $created_at; - - return $this; - } - - /** - * Gets updated_at - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getUpdatedAt() - { - return $this->container['updated_at']; - } - - /** - * Sets updated_at - * - * @param \OpenAPI\Client\Model\FieldConditions|null $updated_at updated_at - * - * @return self - */ - public function setUpdatedAt($updated_at) - { - if (is_null($updated_at)) { - throw new \InvalidArgumentException('non-nullable updated_at cannot be null'); - } - $this->container['updated_at'] = $updated_at; - - return $this; - } - - /** - * Gets status - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param \OpenAPI\Client\Model\FieldConditions|null $status status - * - * @return self - */ - public function setStatus($status) - { - if (is_null($status)) { - throw new \InvalidArgumentException('non-nullable status cannot be null'); - } - $this->container['status'] = $status; - - return $this; - } - - /** - * Gets amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $amount amount - * - * @return self - */ - public function setAmount($amount) - { - if (is_null($amount)) { - throw new \InvalidArgumentException('non-nullable amount cannot be null'); - } - $this->container['amount'] = $amount; - - return $this; - } - - /** - * Gets discount_amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getDiscountAmount() - { - return $this->container['discount_amount']; - } - - /** - * Sets discount_amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $discount_amount discount_amount - * - * @return self - */ - public function setDiscountAmount($discount_amount) - { - if (is_null($discount_amount)) { - throw new \InvalidArgumentException('non-nullable discount_amount cannot be null'); - } - $this->container['discount_amount'] = $discount_amount; - - return $this; - } - - /** - * Gets items_discount_amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getItemsDiscountAmount() - { - return $this->container['items_discount_amount']; - } - - /** - * Sets items_discount_amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $items_discount_amount items_discount_amount - * - * @return self - */ - public function setItemsDiscountAmount($items_discount_amount) - { - if (is_null($items_discount_amount)) { - throw new \InvalidArgumentException('non-nullable items_discount_amount cannot be null'); - } - $this->container['items_discount_amount'] = $items_discount_amount; - - return $this; - } - - /** - * Gets total_discount_amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getTotalDiscountAmount() - { - return $this->container['total_discount_amount']; - } - - /** - * Sets total_discount_amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $total_discount_amount total_discount_amount - * - * @return self - */ - public function setTotalDiscountAmount($total_discount_amount) - { - if (is_null($total_discount_amount)) { - throw new \InvalidArgumentException('non-nullable total_discount_amount cannot be null'); - } - $this->container['total_discount_amount'] = $total_discount_amount; - - return $this; - } - - /** - * Gets total_amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getTotalAmount() - { - return $this->container['total_amount']; - } - - /** - * Sets total_amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $total_amount total_amount - * - * @return self - */ - public function setTotalAmount($total_amount) - { - if (is_null($total_amount)) { - throw new \InvalidArgumentException('non-nullable total_amount cannot be null'); - } - $this->container['total_amount'] = $total_amount; - - return $this; - } - - /** - * Gets customer_id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getCustomerId() - { - return $this->container['customer_id']; - } - - /** - * Sets customer_id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $customer_id customer_id - * - * @return self - */ - public function setCustomerId($customer_id) - { - if (is_null($customer_id)) { - throw new \InvalidArgumentException('non-nullable customer_id cannot be null'); - } - $this->container['customer_id'] = $customer_id; - - return $this; - } - - /** - * Gets referrer_id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getReferrerId() - { - return $this->container['referrer_id']; - } - - /** - * Sets referrer_id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $referrer_id referrer_id - * - * @return self - */ - public function setReferrerId($referrer_id) - { - if (is_null($referrer_id)) { - throw new \InvalidArgumentException('non-nullable referrer_id cannot be null'); - } - $this->container['referrer_id'] = $referrer_id; - - return $this; - } - - /** - * Gets metadata - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getMetadata() - { - return $this->container['metadata']; - } - - /** - * Sets metadata - * - * @param \OpenAPI\Client\Model\FieldConditions|null $metadata metadata - * - * @return self - */ - public function setMetadata($metadata) - { - if (is_null($metadata)) { - throw new \InvalidArgumentException('non-nullable metadata cannot be null'); - } - $this->container['metadata'] = $metadata; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/src/Model/ExportParameters.php b/src/Model/ExportParameters.php index 67818b0..a80555b 100644 --- a/src/Model/ExportParameters.php +++ b/src/Model/ExportParameters.php @@ -241,176 +241,32 @@ public function getModelName() return self::$openAPIModelName; } - public const ORDER_CODE = 'code'; - public const ORDER_CODE2 = '-code'; - public const ORDER_VOUCHER_TYPE = 'voucher_type'; - public const ORDER_VOUCHER_TYPE2 = '-voucher_type'; - public const ORDER_VALUE = 'value'; - public const ORDER_VALUE2 = '-value'; - public const ORDER_DISCOUNT_TYPE = 'discount_type'; - public const ORDER_DISCOUNT_TYPE2 = '-discount_type'; - public const ORDER_CAMPAIGN = 'campaign'; - public const ORDER_CAMPAIGN2 = '-campaign'; - public const ORDER_CATEGORY = 'category'; - public const ORDER_CATEGORY2 = '-category'; - public const ORDER_START_DATE = 'start_date'; - public const ORDER_START_DATE2 = '-start_date'; - public const ORDER_EXPIRATION_DATE = 'expiration_date'; - public const ORDER_EXPIRATION_DATE2 = '-expiration_date'; - public const ORDER_GIFT_BALANCE = 'gift_balance'; - public const ORDER_GIFT_BALANCE2 = '-gift_balance'; - public const ORDER_LOYALTY_BALANCE = 'loyalty_balance'; - public const ORDER_LOYALTY_BALANCE2 = '-loyalty_balance'; - public const ORDER_REDEMPTION_QUANTITY = 'redemption_quantity'; - public const ORDER_REDEMPTION_QUANTITY2 = '-redemption_quantity'; - public const ORDER_REDEMPTION_COUNT = 'redemption_count'; - public const ORDER_REDEMPTION_COUNT2 = '-redemption_count'; - public const ORDER_ACTIVE = 'active'; - public const ORDER_ACTIVE2 = '-active'; - public const ORDER_QR_CODE = 'qr_code'; - public const ORDER_QR_CODE2 = '-qr_code'; - public const ORDER_BAR_CODE = 'bar_code'; - public const ORDER_BAR_CODE2 = '-bar_code'; - public const ORDER_METADATA = 'metadata'; - public const ORDER_METADATA2 = '-metadata'; - public const ORDER_ID = 'id'; - public const ORDER_ID2 = '-id'; - public const ORDER_IS_REFERRAL_CODE = 'is_referral_code'; - public const ORDER_IS_REFERRAL_CODE2 = '-is_referral_code'; - public const ORDER_CREATED_AT = 'created_at'; - public const ORDER_CREATED_AT2 = '-created_at'; - public const ORDER_UPDATED_AT = 'updated_at'; - public const ORDER_UPDATED_AT2 = '-updated_at'; - public const ORDER_VALIDITY_TIMEFRAME_INTERVAL = 'validity_timeframe_interval'; - public const ORDER_VALIDITY_TIMEFRAME_INTERVAL2 = '-validity_timeframe_interval'; - public const ORDER_VALIDITY_TIMEFRAME_DURATION = 'validity_timeframe_duration'; - public const ORDER_VALIDITY_TIMEFRAME_DURATION2 = '-validity_timeframe_duration'; - public const ORDER_VALIDITY_DAY_OF_WEEK = 'validity_day_of_week'; - public const ORDER_VALIDITY_DAY_OF_WEEK2 = '-validity_day_of_week'; - public const ORDER_DISCOUNT_AMOUNT_LIMIT = 'discount_amount_limit'; - public const ORDER_DISCOUNT_AMOUNT_LIMIT2 = '-discount_amount_limit'; - public const ORDER_CAMPAIGN_ID = 'campaign_id'; - public const ORDER_CAMPAIGN_ID2 = '-campaign_id'; - public const ORDER_ADDITIONAL_INFO = 'additional_info'; - public const ORDER_ADDITIONAL_INFO2 = '-additional_info'; - public const ORDER_CUSTOMER_ID = 'customer_id'; - public const ORDER_CUSTOMER_ID2 = '-customer_id'; - public const ORDER_DISCOUNT_UNIT_TYPE = 'discount_unit_type'; - public const ORDER_DISCOUNT_UNIT_TYPE2 = '-discount_unit_type'; - public const ORDER_DISCOUNT_UNIT_EFFECT = 'discount_unit_effect'; - public const ORDER_DISCOUNT_UNIT_EFFECT2 = '-discount_unit_effect'; - public const ORDER_CUSTOMER_SOURCE_ID = 'customer_source_id'; - public const ORDER_CUSTOMER_SOURCE_ID2 = '-customer_source_id'; - public const ORDER_OBJECT = 'object'; - public const ORDER_OBJECT2 = '-object'; - public const ORDER_DATE = 'date'; - public const ORDER_DATE2 = '-date'; - public const ORDER_VOUCHER_CODE = 'voucher_code'; - public const ORDER_VOUCHER_CODE2 = '-voucher_code'; - public const ORDER_PROMOTION_TIER_ID = 'promotion_tier_id'; - public const ORDER_PROMOTION_TIER_ID2 = '-promotion_tier_id'; - public const ORDER_CUSTOMER_NAME = 'customer_name'; - public const ORDER_CUSTOMER_NAME2 = '-customer_name'; - public const ORDER_TRACKING_ID = 'tracking_id'; - public const ORDER_TRACKING_ID2 = '-tracking_id'; - public const ORDER_ORDER_AMOUNT = 'order_amount'; - public const ORDER_ORDER_AMOUNT2 = '-order_amount'; - public const ORDER_GIFT_AMOUNT = 'gift_amount'; - public const ORDER_GIFT_AMOUNT2 = '-gift_amount'; - public const ORDER_LOYALTY_POINTS = 'loyalty_points'; - public const ORDER_LOYALTY_POINTS2 = '-loyalty_points'; - public const ORDER_RESULT = 'result'; - public const ORDER_RESULT2 = '-result'; - public const ORDER_FAILURE_CODE = 'failure_code'; - public const ORDER_FAILURE_CODE2 = '-failure_code'; - public const ORDER_FAILURE_MESSAGE = 'failure_message'; - public const ORDER_FAILURE_MESSAGE2 = '-failure_message'; - public const ORDER_NAME = 'name'; - public const ORDER_NAME2 = '-name'; - public const ORDER_DESCRIPTION = 'description'; - public const ORDER_DESCRIPTION2 = '-description'; - public const ORDER_EMAIL = 'email'; - public const ORDER_EMAIL2 = '-email'; - public const ORDER_SOURCE_ID = 'source_id'; - public const ORDER_SOURCE_ID2 = '-source_id'; - public const ORDER_ADDRESS_CITY = 'address_city'; - public const ORDER_ADDRESS_CITY2 = '-address_city'; - public const ORDER_ADDRESS_STATE = 'address_state'; - public const ORDER_ADDRESS_STATE2 = '-address_state'; - public const ORDER_ADDRESS_LINE_1 = 'address_line_1'; - public const ORDER_ADDRESS_LINE_12 = '-address_line_1'; - public const ORDER_ADDRESS_LINE_2 = 'address_line_2'; - public const ORDER_ADDRESS_LINE_22 = '-address_line_2'; - public const ORDER_ADDRESS_COUNTRY = 'address_country'; - public const ORDER_ADDRESS_COUNTRY2 = '-address_country'; - public const ORDER_ADDRESS_POSTAL_CODE = 'address_postal_code'; - public const ORDER_ADDRESS_POSTAL_CODE2 = '-address_postal_code'; - public const ORDER_REDEMPTIONS_TOTAL_REDEEMED = 'redemptions_total_redeemed'; - public const ORDER_REDEMPTIONS_TOTAL_REDEEMED2 = '-redemptions_total_redeemed'; - public const ORDER_REDEMPTIONS_TOTAL_FAILED = 'redemptions_total_failed'; - public const ORDER_REDEMPTIONS_TOTAL_FAILED2 = '-redemptions_total_failed'; - public const ORDER_REDEMPTIONS_TOTAL_SUCCEEDED = 'redemptions_total_succeeded'; - public const ORDER_REDEMPTIONS_TOTAL_SUCCEEDED2 = '-redemptions_total_succeeded'; - public const ORDER_REDEMPTIONS_TOTAL_ROLLED_BACK = 'redemptions_total_rolled_back'; - public const ORDER_REDEMPTIONS_TOTAL_ROLLED_BACK2 = '-redemptions_total_rolled_back'; - public const ORDER_REDEMPTIONS_TOTAL_ROLLBACK_FAILED = 'redemptions_total_rollback_failed'; - public const ORDER_REDEMPTIONS_TOTAL_ROLLBACK_FAILED2 = '-redemptions_total_rollback_failed'; - public const ORDER_REDEMPTIONS_TOTAL_ROLLBACK_SUCCEEDED = 'redemptions_total_rollback_succeeded'; - public const ORDER_REDEMPTIONS_TOTAL_ROLLBACK_SUCCEEDED2 = '-redemptions_total_rollback_succeeded'; - public const ORDER_ORDERS_TOTAL_AMOUNT = 'orders_total_amount'; - public const ORDER_ORDERS_TOTAL_AMOUNT2 = '-orders_total_amount'; - public const ORDER_ORDERS_TOTAL_COUNT = 'orders_total_count'; - public const ORDER_ORDERS_TOTAL_COUNT2 = '-orders_total_count'; - public const ORDER_ORDERS_AVERAGE_AMOUNT = 'orders_average_amount'; - public const ORDER_ORDERS_AVERAGE_AMOUNT2 = '-orders_average_amount'; - public const ORDER_ORDERS_LAST_ORDER_AMOUNT = 'orders_last_order_amount'; - public const ORDER_ORDERS_LAST_ORDER_AMOUNT2 = '-orders_last_order_amount'; - public const ORDER_ORDERS_LAST_ORDER_DATE = 'orders_last_order_date'; - public const ORDER_ORDERS_LAST_ORDER_DATE2 = '-orders_last_order_date'; - public const ORDER_LOYALTY_REFERRED_CUSTOMERS = 'loyalty_referred_customers'; - public const ORDER_LOYALTY_REFERRED_CUSTOMERS2 = '-loyalty_referred_customers'; - public const ORDER_PHONE = 'phone'; - public const ORDER_PHONE2 = '-phone'; - public const ORDER_BIRTHDAY = 'birthday'; - public const ORDER_BIRTHDAY2 = '-birthday'; - public const ORDER_BIRTHDATE = 'birthdate'; - public const ORDER_BIRTHDATE2 = '-birthdate'; - public const ORDER_CHANNEL = 'channel'; - public const ORDER_CHANNEL2 = '-channel'; - public const ORDER_IS_WINNER = 'is_winner'; - public const ORDER_IS_WINNER2 = '-is_winner'; - public const ORDER_STATUS = 'status'; - public const ORDER_STATUS2 = '-status'; - public const ORDER_AMOUNT = 'amount'; - public const ORDER_AMOUNT2 = '-amount'; - public const ORDER_DISCOUNT_AMOUNT = 'discount_amount'; - public const ORDER_DISCOUNT_AMOUNT2 = '-discount_amount'; - public const ORDER_ITEMS_DISCOUNT_AMOUNT = 'items_discount_amount'; - public const ORDER_ITEMS_DISCOUNT_AMOUNT2 = '-items_discount_amount'; - public const ORDER_TOTAL_DISCOUNT_AMOUNT = 'total_discount_amount'; - public const ORDER_TOTAL_DISCOUNT_AMOUNT2 = '-total_discount_amount'; - public const ORDER_TOTAL_AMOUNT = 'total_amount'; - public const ORDER_TOTAL_AMOUNT2 = '-total_amount'; - public const ORDER_REFERRER_ID = 'referrer_id'; - public const ORDER_REFERRER_ID2 = '-referrer_id'; - public const ORDER_VOUCHER_ID = 'voucher_id'; - public const ORDER_VOUCHER_ID2 = '-voucher_id'; - public const ORDER_POINTS = 'points'; - public const ORDER_POINTS2 = '-points'; - public const ORDER_EXPIRES_AT = 'expires_at'; - public const ORDER_EXPIRES_AT2 = '-expires_at'; - public const ORDER_TYPE = 'type'; - public const ORDER_TYPE2 = '-type'; - public const ORDER_REASON = 'reason'; - public const ORDER_REASON2 = '-reason'; - public const ORDER_SOURCE = 'source'; - public const ORDER_SOURCE2 = '-source'; - public const ORDER_BALANCE = 'balance'; - public const ORDER_BALANCE2 = '-balance'; - public const ORDER_RELATED_TRANSACTION_ID = 'related_transaction_id'; - public const ORDER_RELATED_TRANSACTION_ID2 = '-related_transaction_id'; - public const ORDER_DETAILS = 'details'; - public const ORDER_DETAILS2 = '-details'; + public const ORDER_CREATED_AT = '-created_at'; + public const ORDER_CREATED_AT2 = 'created_at'; + public const ORDER_UPDATED_AT = '-updated_at'; + public const ORDER_UPDATED_AT2 = 'updated_at'; + public const ORDER_CODE = '-code'; + public const ORDER_CODE2 = 'code'; + public const ORDER_ID = '-id'; + public const ORDER_ID2 = 'id'; + public const ORDER_VOUCHER_CODE = '-voucher_code'; + public const ORDER_VOUCHER_CODE2 = 'voucher_code'; + public const ORDER_TRACKING_ID = '-tracking_id'; + public const ORDER_TRACKING_ID2 = 'tracking_id'; + public const ORDER_CUSTOMER_ID = '-customer_id'; + public const ORDER_CUSTOMER_ID2 = 'customer_id'; + public const ORDER_NAME = '-name'; + public const ORDER_NAME2 = 'name'; + public const ORDER_EMAIL = '-email'; + public const ORDER_EMAIL2 = 'email'; + public const ORDER_SOURCE_ID = '-source_id'; + public const ORDER_SOURCE_ID2 = 'source_id'; + public const ORDER_CHANNEL = '-channel'; + public const ORDER_CHANNEL2 = 'channel'; + public const ORDER_STATUS = '-status'; + public const ORDER_STATUS2 = 'status'; + public const ORDER_EXPIRES_AT = '-expires_at'; + public const ORDER_EXPIRES_AT2 = 'expires_at'; public const FIELDS_CODE = 'code'; public const FIELDS_VOUCHER_TYPE = 'voucher_type'; public const FIELDS_VALUE = 'value'; @@ -505,176 +361,32 @@ public function getModelName() public function getOrderAllowableValues() { return [ - self::ORDER_CODE, - self::ORDER_CODE2, - self::ORDER_VOUCHER_TYPE, - self::ORDER_VOUCHER_TYPE2, - self::ORDER_VALUE, - self::ORDER_VALUE2, - self::ORDER_DISCOUNT_TYPE, - self::ORDER_DISCOUNT_TYPE2, - self::ORDER_CAMPAIGN, - self::ORDER_CAMPAIGN2, - self::ORDER_CATEGORY, - self::ORDER_CATEGORY2, - self::ORDER_START_DATE, - self::ORDER_START_DATE2, - self::ORDER_EXPIRATION_DATE, - self::ORDER_EXPIRATION_DATE2, - self::ORDER_GIFT_BALANCE, - self::ORDER_GIFT_BALANCE2, - self::ORDER_LOYALTY_BALANCE, - self::ORDER_LOYALTY_BALANCE2, - self::ORDER_REDEMPTION_QUANTITY, - self::ORDER_REDEMPTION_QUANTITY2, - self::ORDER_REDEMPTION_COUNT, - self::ORDER_REDEMPTION_COUNT2, - self::ORDER_ACTIVE, - self::ORDER_ACTIVE2, - self::ORDER_QR_CODE, - self::ORDER_QR_CODE2, - self::ORDER_BAR_CODE, - self::ORDER_BAR_CODE2, - self::ORDER_METADATA, - self::ORDER_METADATA2, - self::ORDER_ID, - self::ORDER_ID2, - self::ORDER_IS_REFERRAL_CODE, - self::ORDER_IS_REFERRAL_CODE2, self::ORDER_CREATED_AT, self::ORDER_CREATED_AT2, self::ORDER_UPDATED_AT, self::ORDER_UPDATED_AT2, - self::ORDER_VALIDITY_TIMEFRAME_INTERVAL, - self::ORDER_VALIDITY_TIMEFRAME_INTERVAL2, - self::ORDER_VALIDITY_TIMEFRAME_DURATION, - self::ORDER_VALIDITY_TIMEFRAME_DURATION2, - self::ORDER_VALIDITY_DAY_OF_WEEK, - self::ORDER_VALIDITY_DAY_OF_WEEK2, - self::ORDER_DISCOUNT_AMOUNT_LIMIT, - self::ORDER_DISCOUNT_AMOUNT_LIMIT2, - self::ORDER_CAMPAIGN_ID, - self::ORDER_CAMPAIGN_ID2, - self::ORDER_ADDITIONAL_INFO, - self::ORDER_ADDITIONAL_INFO2, - self::ORDER_CUSTOMER_ID, - self::ORDER_CUSTOMER_ID2, - self::ORDER_DISCOUNT_UNIT_TYPE, - self::ORDER_DISCOUNT_UNIT_TYPE2, - self::ORDER_DISCOUNT_UNIT_EFFECT, - self::ORDER_DISCOUNT_UNIT_EFFECT2, - self::ORDER_CUSTOMER_SOURCE_ID, - self::ORDER_CUSTOMER_SOURCE_ID2, - self::ORDER_OBJECT, - self::ORDER_OBJECT2, - self::ORDER_DATE, - self::ORDER_DATE2, + self::ORDER_CODE, + self::ORDER_CODE2, + self::ORDER_ID, + self::ORDER_ID2, self::ORDER_VOUCHER_CODE, self::ORDER_VOUCHER_CODE2, - self::ORDER_PROMOTION_TIER_ID, - self::ORDER_PROMOTION_TIER_ID2, - self::ORDER_CUSTOMER_NAME, - self::ORDER_CUSTOMER_NAME2, self::ORDER_TRACKING_ID, self::ORDER_TRACKING_ID2, - self::ORDER_ORDER_AMOUNT, - self::ORDER_ORDER_AMOUNT2, - self::ORDER_GIFT_AMOUNT, - self::ORDER_GIFT_AMOUNT2, - self::ORDER_LOYALTY_POINTS, - self::ORDER_LOYALTY_POINTS2, - self::ORDER_RESULT, - self::ORDER_RESULT2, - self::ORDER_FAILURE_CODE, - self::ORDER_FAILURE_CODE2, - self::ORDER_FAILURE_MESSAGE, - self::ORDER_FAILURE_MESSAGE2, + self::ORDER_CUSTOMER_ID, + self::ORDER_CUSTOMER_ID2, self::ORDER_NAME, self::ORDER_NAME2, - self::ORDER_DESCRIPTION, - self::ORDER_DESCRIPTION2, self::ORDER_EMAIL, self::ORDER_EMAIL2, self::ORDER_SOURCE_ID, self::ORDER_SOURCE_ID2, - self::ORDER_ADDRESS_CITY, - self::ORDER_ADDRESS_CITY2, - self::ORDER_ADDRESS_STATE, - self::ORDER_ADDRESS_STATE2, - self::ORDER_ADDRESS_LINE_1, - self::ORDER_ADDRESS_LINE_12, - self::ORDER_ADDRESS_LINE_2, - self::ORDER_ADDRESS_LINE_22, - self::ORDER_ADDRESS_COUNTRY, - self::ORDER_ADDRESS_COUNTRY2, - self::ORDER_ADDRESS_POSTAL_CODE, - self::ORDER_ADDRESS_POSTAL_CODE2, - self::ORDER_REDEMPTIONS_TOTAL_REDEEMED, - self::ORDER_REDEMPTIONS_TOTAL_REDEEMED2, - self::ORDER_REDEMPTIONS_TOTAL_FAILED, - self::ORDER_REDEMPTIONS_TOTAL_FAILED2, - self::ORDER_REDEMPTIONS_TOTAL_SUCCEEDED, - self::ORDER_REDEMPTIONS_TOTAL_SUCCEEDED2, - self::ORDER_REDEMPTIONS_TOTAL_ROLLED_BACK, - self::ORDER_REDEMPTIONS_TOTAL_ROLLED_BACK2, - self::ORDER_REDEMPTIONS_TOTAL_ROLLBACK_FAILED, - self::ORDER_REDEMPTIONS_TOTAL_ROLLBACK_FAILED2, - self::ORDER_REDEMPTIONS_TOTAL_ROLLBACK_SUCCEEDED, - self::ORDER_REDEMPTIONS_TOTAL_ROLLBACK_SUCCEEDED2, - self::ORDER_ORDERS_TOTAL_AMOUNT, - self::ORDER_ORDERS_TOTAL_AMOUNT2, - self::ORDER_ORDERS_TOTAL_COUNT, - self::ORDER_ORDERS_TOTAL_COUNT2, - self::ORDER_ORDERS_AVERAGE_AMOUNT, - self::ORDER_ORDERS_AVERAGE_AMOUNT2, - self::ORDER_ORDERS_LAST_ORDER_AMOUNT, - self::ORDER_ORDERS_LAST_ORDER_AMOUNT2, - self::ORDER_ORDERS_LAST_ORDER_DATE, - self::ORDER_ORDERS_LAST_ORDER_DATE2, - self::ORDER_LOYALTY_REFERRED_CUSTOMERS, - self::ORDER_LOYALTY_REFERRED_CUSTOMERS2, - self::ORDER_PHONE, - self::ORDER_PHONE2, - self::ORDER_BIRTHDAY, - self::ORDER_BIRTHDAY2, - self::ORDER_BIRTHDATE, - self::ORDER_BIRTHDATE2, self::ORDER_CHANNEL, self::ORDER_CHANNEL2, - self::ORDER_IS_WINNER, - self::ORDER_IS_WINNER2, self::ORDER_STATUS, self::ORDER_STATUS2, - self::ORDER_AMOUNT, - self::ORDER_AMOUNT2, - self::ORDER_DISCOUNT_AMOUNT, - self::ORDER_DISCOUNT_AMOUNT2, - self::ORDER_ITEMS_DISCOUNT_AMOUNT, - self::ORDER_ITEMS_DISCOUNT_AMOUNT2, - self::ORDER_TOTAL_DISCOUNT_AMOUNT, - self::ORDER_TOTAL_DISCOUNT_AMOUNT2, - self::ORDER_TOTAL_AMOUNT, - self::ORDER_TOTAL_AMOUNT2, - self::ORDER_REFERRER_ID, - self::ORDER_REFERRER_ID2, - self::ORDER_VOUCHER_ID, - self::ORDER_VOUCHER_ID2, - self::ORDER_POINTS, - self::ORDER_POINTS2, self::ORDER_EXPIRES_AT, self::ORDER_EXPIRES_AT2, - self::ORDER_TYPE, - self::ORDER_TYPE2, - self::ORDER_REASON, - self::ORDER_REASON2, - self::ORDER_SOURCE, - self::ORDER_SOURCE2, - self::ORDER_BALANCE, - self::ORDER_BALANCE2, - self::ORDER_RELATED_TRANSACTION_ID, - self::ORDER_RELATED_TRANSACTION_ID2, - self::ORDER_DETAILS, - self::ORDER_DETAILS2, ]; } diff --git a/src/Model/ExportParametersFilters.php b/src/Model/ExportParametersFilters.php index 9c117d3..87f16a2 100644 --- a/src/Model/ExportParametersFilters.php +++ b/src/Model/ExportParametersFilters.php @@ -59,91 +59,9 @@ class ExportParametersFilters implements ModelInterface, ArrayAccess, \JsonSeria */ protected static $openAPITypes = [ 'junction' => 'string', - 'code' => '\OpenAPI\Client\Model\FieldConditions', - 'voucher_type' => '\OpenAPI\Client\Model\FieldConditions', - 'value' => '\OpenAPI\Client\Model\FieldConditions', - 'discount_type' => '\OpenAPI\Client\Model\FieldConditions', - 'campaign' => '\OpenAPI\Client\Model\FieldConditions', - 'category' => '\OpenAPI\Client\Model\FieldConditions', - 'start_date' => '\OpenAPI\Client\Model\FieldConditions', - 'expiration_date' => '\OpenAPI\Client\Model\FieldConditions', - 'gift_balance' => '\OpenAPI\Client\Model\FieldConditions', - 'loyalty_balance' => '\OpenAPI\Client\Model\FieldConditions', - 'redemption_quantity' => '\OpenAPI\Client\Model\FieldConditions', - 'redemption_count' => '\OpenAPI\Client\Model\FieldConditions', - 'active' => '\OpenAPI\Client\Model\FieldConditions', - 'qr_code' => '\OpenAPI\Client\Model\FieldConditions', - 'bar_code' => '\OpenAPI\Client\Model\FieldConditions', - 'metadata' => '\OpenAPI\Client\Model\FieldConditions', - 'id' => '\OpenAPI\Client\Model\FieldConditions', - 'is_referral_code' => '\OpenAPI\Client\Model\FieldConditions', - 'created_at' => '\OpenAPI\Client\Model\FieldConditions', - 'updated_at' => '\OpenAPI\Client\Model\FieldConditions', - 'validity_timeframe_interval' => '\OpenAPI\Client\Model\FieldConditions', - 'validity_timeframe_duration' => '\OpenAPI\Client\Model\FieldConditions', - 'validity_day_of_week' => '\OpenAPI\Client\Model\FieldConditions', - 'discount_amount_limit' => '\OpenAPI\Client\Model\FieldConditions', 'campaign_id' => '\OpenAPI\Client\Model\FieldConditions', - 'additional_info' => '\OpenAPI\Client\Model\FieldConditions', - 'customer_id' => '\OpenAPI\Client\Model\FieldConditions', - 'discount_unit_type' => '\OpenAPI\Client\Model\FieldConditions', - 'discount_unit_effect' => '\OpenAPI\Client\Model\FieldConditions', - 'customer_source_id' => '\OpenAPI\Client\Model\FieldConditions', - 'object' => '\OpenAPI\Client\Model\FieldConditions', - 'date' => '\OpenAPI\Client\Model\FieldConditions', - 'voucher_code' => '\OpenAPI\Client\Model\FieldConditions', - 'promotion_tier_id' => '\OpenAPI\Client\Model\FieldConditions', - 'customer_name' => '\OpenAPI\Client\Model\FieldConditions', - 'tracking_id' => '\OpenAPI\Client\Model\FieldConditions', - 'order_amount' => '\OpenAPI\Client\Model\FieldConditions', - 'gift_amount' => '\OpenAPI\Client\Model\FieldConditions', - 'loyalty_points' => '\OpenAPI\Client\Model\FieldConditions', - 'result' => '\OpenAPI\Client\Model\FieldConditions', - 'failure_code' => '\OpenAPI\Client\Model\FieldConditions', - 'failure_message' => '\OpenAPI\Client\Model\FieldConditions', - 'name' => '\OpenAPI\Client\Model\FieldConditions', - 'description' => '\OpenAPI\Client\Model\FieldConditions', - 'email' => '\OpenAPI\Client\Model\FieldConditions', - 'source_id' => '\OpenAPI\Client\Model\FieldConditions', - 'address_city' => '\OpenAPI\Client\Model\FieldConditions', - 'address_state' => '\OpenAPI\Client\Model\FieldConditions', - 'address_line_1' => '\OpenAPI\Client\Model\FieldConditions', - 'address_line_2' => '\OpenAPI\Client\Model\FieldConditions', - 'address_country' => '\OpenAPI\Client\Model\FieldConditions', - 'address_postal_code' => '\OpenAPI\Client\Model\FieldConditions', - 'redemptions_total_redeemed' => '\OpenAPI\Client\Model\FieldConditions', - 'redemptions_total_failed' => '\OpenAPI\Client\Model\FieldConditions', - 'redemptions_total_succeeded' => '\OpenAPI\Client\Model\FieldConditions', - 'redemptions_total_rolled_back' => '\OpenAPI\Client\Model\FieldConditions', - 'redemptions_total_rollback_failed' => '\OpenAPI\Client\Model\FieldConditions', - 'redemptions_total_rollback_succeeded' => '\OpenAPI\Client\Model\FieldConditions', - 'orders_total_amount' => '\OpenAPI\Client\Model\FieldConditions', - 'orders_total_count' => '\OpenAPI\Client\Model\FieldConditions', - 'orders_average_amount' => '\OpenAPI\Client\Model\FieldConditions', - 'orders_last_order_amount' => '\OpenAPI\Client\Model\FieldConditions', - 'orders_last_order_date' => '\OpenAPI\Client\Model\FieldConditions', - 'loyalty_referred_customers' => '\OpenAPI\Client\Model\FieldConditions', - 'phone' => '\OpenAPI\Client\Model\FieldConditions', - 'birthday' => '\OpenAPI\Client\Model\FieldConditions', - 'birthdate' => '\OpenAPI\Client\Model\FieldConditions', - 'channel' => '\OpenAPI\Client\Model\FieldConditions', - 'is_winner' => '\OpenAPI\Client\Model\FieldConditions', - 'status' => '\OpenAPI\Client\Model\FieldConditions', - 'amount' => '\OpenAPI\Client\Model\FieldConditions', - 'discount_amount' => '\OpenAPI\Client\Model\FieldConditions', - 'items_discount_amount' => '\OpenAPI\Client\Model\FieldConditions', - 'total_discount_amount' => '\OpenAPI\Client\Model\FieldConditions', - 'total_amount' => '\OpenAPI\Client\Model\FieldConditions', - 'referrer_id' => '\OpenAPI\Client\Model\FieldConditions', 'voucher_id' => '\OpenAPI\Client\Model\FieldConditions', - 'points' => '\OpenAPI\Client\Model\FieldConditions', - 'expires_at' => '\OpenAPI\Client\Model\FieldConditions', - 'type' => '\OpenAPI\Client\Model\FieldConditions', - 'reason' => '\OpenAPI\Client\Model\FieldConditions', - 'source' => '\OpenAPI\Client\Model\FieldConditions', - 'balance' => '\OpenAPI\Client\Model\FieldConditions', - 'related_transaction_id' => '\OpenAPI\Client\Model\FieldConditions', - 'details' => '\OpenAPI\Client\Model\FieldConditions' + 'created_at' => '\OpenAPI\Client\Model\FieldConditions' ]; /** @@ -155,91 +73,9 @@ class ExportParametersFilters implements ModelInterface, ArrayAccess, \JsonSeria */ protected static $openAPIFormats = [ 'junction' => null, - 'code' => null, - 'voucher_type' => null, - 'value' => null, - 'discount_type' => null, - 'campaign' => null, - 'category' => null, - 'start_date' => null, - 'expiration_date' => null, - 'gift_balance' => null, - 'loyalty_balance' => null, - 'redemption_quantity' => null, - 'redemption_count' => null, - 'active' => null, - 'qr_code' => null, - 'bar_code' => null, - 'metadata' => null, - 'id' => null, - 'is_referral_code' => null, - 'created_at' => null, - 'updated_at' => null, - 'validity_timeframe_interval' => null, - 'validity_timeframe_duration' => null, - 'validity_day_of_week' => null, - 'discount_amount_limit' => null, 'campaign_id' => null, - 'additional_info' => null, - 'customer_id' => null, - 'discount_unit_type' => null, - 'discount_unit_effect' => null, - 'customer_source_id' => null, - 'object' => null, - 'date' => null, - 'voucher_code' => null, - 'promotion_tier_id' => null, - 'customer_name' => null, - 'tracking_id' => null, - 'order_amount' => null, - 'gift_amount' => null, - 'loyalty_points' => null, - 'result' => null, - 'failure_code' => null, - 'failure_message' => null, - 'name' => null, - 'description' => null, - 'email' => null, - 'source_id' => null, - 'address_city' => null, - 'address_state' => null, - 'address_line_1' => null, - 'address_line_2' => null, - 'address_country' => null, - 'address_postal_code' => null, - 'redemptions_total_redeemed' => null, - 'redemptions_total_failed' => null, - 'redemptions_total_succeeded' => null, - 'redemptions_total_rolled_back' => null, - 'redemptions_total_rollback_failed' => null, - 'redemptions_total_rollback_succeeded' => null, - 'orders_total_amount' => null, - 'orders_total_count' => null, - 'orders_average_amount' => null, - 'orders_last_order_amount' => null, - 'orders_last_order_date' => null, - 'loyalty_referred_customers' => null, - 'phone' => null, - 'birthday' => null, - 'birthdate' => null, - 'channel' => null, - 'is_winner' => null, - 'status' => null, - 'amount' => null, - 'discount_amount' => null, - 'items_discount_amount' => null, - 'total_discount_amount' => null, - 'total_amount' => null, - 'referrer_id' => null, 'voucher_id' => null, - 'points' => null, - 'expires_at' => null, - 'type' => null, - 'reason' => null, - 'source' => null, - 'balance' => null, - 'related_transaction_id' => null, - 'details' => null + 'created_at' => null ]; /** @@ -249,91 +85,9 @@ class ExportParametersFilters implements ModelInterface, ArrayAccess, \JsonSeria */ protected static array $openAPINullables = [ 'junction' => false, - 'code' => false, - 'voucher_type' => false, - 'value' => false, - 'discount_type' => false, - 'campaign' => false, - 'category' => false, - 'start_date' => false, - 'expiration_date' => false, - 'gift_balance' => false, - 'loyalty_balance' => false, - 'redemption_quantity' => false, - 'redemption_count' => false, - 'active' => false, - 'qr_code' => false, - 'bar_code' => false, - 'metadata' => false, - 'id' => false, - 'is_referral_code' => false, - 'created_at' => false, - 'updated_at' => false, - 'validity_timeframe_interval' => false, - 'validity_timeframe_duration' => false, - 'validity_day_of_week' => false, - 'discount_amount_limit' => false, 'campaign_id' => false, - 'additional_info' => false, - 'customer_id' => false, - 'discount_unit_type' => false, - 'discount_unit_effect' => false, - 'customer_source_id' => false, - 'object' => false, - 'date' => false, - 'voucher_code' => false, - 'promotion_tier_id' => false, - 'customer_name' => false, - 'tracking_id' => false, - 'order_amount' => false, - 'gift_amount' => false, - 'loyalty_points' => false, - 'result' => false, - 'failure_code' => false, - 'failure_message' => false, - 'name' => false, - 'description' => false, - 'email' => false, - 'source_id' => false, - 'address_city' => false, - 'address_state' => false, - 'address_line_1' => false, - 'address_line_2' => false, - 'address_country' => false, - 'address_postal_code' => false, - 'redemptions_total_redeemed' => false, - 'redemptions_total_failed' => false, - 'redemptions_total_succeeded' => false, - 'redemptions_total_rolled_back' => false, - 'redemptions_total_rollback_failed' => false, - 'redemptions_total_rollback_succeeded' => false, - 'orders_total_amount' => false, - 'orders_total_count' => false, - 'orders_average_amount' => false, - 'orders_last_order_amount' => false, - 'orders_last_order_date' => false, - 'loyalty_referred_customers' => false, - 'phone' => false, - 'birthday' => false, - 'birthdate' => false, - 'channel' => false, - 'is_winner' => false, - 'status' => false, - 'amount' => false, - 'discount_amount' => false, - 'items_discount_amount' => false, - 'total_discount_amount' => false, - 'total_amount' => false, - 'referrer_id' => false, 'voucher_id' => false, - 'points' => false, - 'expires_at' => false, - 'type' => false, - 'reason' => false, - 'source' => false, - 'balance' => false, - 'related_transaction_id' => false, - 'details' => false + 'created_at' => false ]; /** @@ -423,91 +177,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'junction' => 'junction', - 'code' => 'code', - 'voucher_type' => 'voucher_type', - 'value' => 'value', - 'discount_type' => 'discount_type', - 'campaign' => 'campaign', - 'category' => 'category', - 'start_date' => 'start_date', - 'expiration_date' => 'expiration_date', - 'gift_balance' => 'gift_balance', - 'loyalty_balance' => 'loyalty_balance', - 'redemption_quantity' => 'redemption_quantity', - 'redemption_count' => 'redemption_count', - 'active' => 'active', - 'qr_code' => 'qr_code', - 'bar_code' => 'bar_code', - 'metadata' => 'metadata', - 'id' => 'id', - 'is_referral_code' => 'is_referral_code', - 'created_at' => 'created_at', - 'updated_at' => 'updated_at', - 'validity_timeframe_interval' => 'validity_timeframe_interval', - 'validity_timeframe_duration' => 'validity_timeframe_duration', - 'validity_day_of_week' => 'validity_day_of_week', - 'discount_amount_limit' => 'discount_amount_limit', 'campaign_id' => 'campaign_id', - 'additional_info' => 'additional_info', - 'customer_id' => 'customer_id', - 'discount_unit_type' => 'discount_unit_type', - 'discount_unit_effect' => 'discount_unit_effect', - 'customer_source_id' => 'customer_source_id', - 'object' => 'object', - 'date' => 'date', - 'voucher_code' => 'voucher_code', - 'promotion_tier_id' => 'promotion_tier_id', - 'customer_name' => 'customer_name', - 'tracking_id' => 'tracking_id', - 'order_amount' => 'order_amount', - 'gift_amount' => 'gift_amount', - 'loyalty_points' => 'loyalty_points', - 'result' => 'result', - 'failure_code' => 'failure_code', - 'failure_message' => 'failure_message', - 'name' => 'name', - 'description' => 'description', - 'email' => 'email', - 'source_id' => 'source_id', - 'address_city' => 'address_city', - 'address_state' => 'address_state', - 'address_line_1' => 'address_line_1', - 'address_line_2' => 'address_line_2', - 'address_country' => 'address_country', - 'address_postal_code' => 'address_postal_code', - 'redemptions_total_redeemed' => 'redemptions_total_redeemed', - 'redemptions_total_failed' => 'redemptions_total_failed', - 'redemptions_total_succeeded' => 'redemptions_total_succeeded', - 'redemptions_total_rolled_back' => 'redemptions_total_rolled_back', - 'redemptions_total_rollback_failed' => 'redemptions_total_rollback_failed', - 'redemptions_total_rollback_succeeded' => 'redemptions_total_rollback_succeeded', - 'orders_total_amount' => 'orders_total_amount', - 'orders_total_count' => 'orders_total_count', - 'orders_average_amount' => 'orders_average_amount', - 'orders_last_order_amount' => 'orders_last_order_amount', - 'orders_last_order_date' => 'orders_last_order_date', - 'loyalty_referred_customers' => 'loyalty_referred_customers', - 'phone' => 'phone', - 'birthday' => 'birthday', - 'birthdate' => 'birthdate', - 'channel' => 'channel', - 'is_winner' => 'is_winner', - 'status' => 'status', - 'amount' => 'amount', - 'discount_amount' => 'discount_amount', - 'items_discount_amount' => 'items_discount_amount', - 'total_discount_amount' => 'total_discount_amount', - 'total_amount' => 'total_amount', - 'referrer_id' => 'referrer_id', 'voucher_id' => 'voucher_id', - 'points' => 'points', - 'expires_at' => 'expires_at', - 'type' => 'type', - 'reason' => 'reason', - 'source' => 'source', - 'balance' => 'balance', - 'related_transaction_id' => 'related_transaction_id', - 'details' => 'details' + 'created_at' => 'created_at' ]; /** @@ -517,91 +189,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'junction' => 'setJunction', - 'code' => 'setCode', - 'voucher_type' => 'setVoucherType', - 'value' => 'setValue', - 'discount_type' => 'setDiscountType', - 'campaign' => 'setCampaign', - 'category' => 'setCategory', - 'start_date' => 'setStartDate', - 'expiration_date' => 'setExpirationDate', - 'gift_balance' => 'setGiftBalance', - 'loyalty_balance' => 'setLoyaltyBalance', - 'redemption_quantity' => 'setRedemptionQuantity', - 'redemption_count' => 'setRedemptionCount', - 'active' => 'setActive', - 'qr_code' => 'setQrCode', - 'bar_code' => 'setBarCode', - 'metadata' => 'setMetadata', - 'id' => 'setId', - 'is_referral_code' => 'setIsReferralCode', - 'created_at' => 'setCreatedAt', - 'updated_at' => 'setUpdatedAt', - 'validity_timeframe_interval' => 'setValidityTimeframeInterval', - 'validity_timeframe_duration' => 'setValidityTimeframeDuration', - 'validity_day_of_week' => 'setValidityDayOfWeek', - 'discount_amount_limit' => 'setDiscountAmountLimit', 'campaign_id' => 'setCampaignId', - 'additional_info' => 'setAdditionalInfo', - 'customer_id' => 'setCustomerId', - 'discount_unit_type' => 'setDiscountUnitType', - 'discount_unit_effect' => 'setDiscountUnitEffect', - 'customer_source_id' => 'setCustomerSourceId', - 'object' => 'setObject', - 'date' => 'setDate', - 'voucher_code' => 'setVoucherCode', - 'promotion_tier_id' => 'setPromotionTierId', - 'customer_name' => 'setCustomerName', - 'tracking_id' => 'setTrackingId', - 'order_amount' => 'setOrderAmount', - 'gift_amount' => 'setGiftAmount', - 'loyalty_points' => 'setLoyaltyPoints', - 'result' => 'setResult', - 'failure_code' => 'setFailureCode', - 'failure_message' => 'setFailureMessage', - 'name' => 'setName', - 'description' => 'setDescription', - 'email' => 'setEmail', - 'source_id' => 'setSourceId', - 'address_city' => 'setAddressCity', - 'address_state' => 'setAddressState', - 'address_line_1' => 'setAddressLine1', - 'address_line_2' => 'setAddressLine2', - 'address_country' => 'setAddressCountry', - 'address_postal_code' => 'setAddressPostalCode', - 'redemptions_total_redeemed' => 'setRedemptionsTotalRedeemed', - 'redemptions_total_failed' => 'setRedemptionsTotalFailed', - 'redemptions_total_succeeded' => 'setRedemptionsTotalSucceeded', - 'redemptions_total_rolled_back' => 'setRedemptionsTotalRolledBack', - 'redemptions_total_rollback_failed' => 'setRedemptionsTotalRollbackFailed', - 'redemptions_total_rollback_succeeded' => 'setRedemptionsTotalRollbackSucceeded', - 'orders_total_amount' => 'setOrdersTotalAmount', - 'orders_total_count' => 'setOrdersTotalCount', - 'orders_average_amount' => 'setOrdersAverageAmount', - 'orders_last_order_amount' => 'setOrdersLastOrderAmount', - 'orders_last_order_date' => 'setOrdersLastOrderDate', - 'loyalty_referred_customers' => 'setLoyaltyReferredCustomers', - 'phone' => 'setPhone', - 'birthday' => 'setBirthday', - 'birthdate' => 'setBirthdate', - 'channel' => 'setChannel', - 'is_winner' => 'setIsWinner', - 'status' => 'setStatus', - 'amount' => 'setAmount', - 'discount_amount' => 'setDiscountAmount', - 'items_discount_amount' => 'setItemsDiscountAmount', - 'total_discount_amount' => 'setTotalDiscountAmount', - 'total_amount' => 'setTotalAmount', - 'referrer_id' => 'setReferrerId', 'voucher_id' => 'setVoucherId', - 'points' => 'setPoints', - 'expires_at' => 'setExpiresAt', - 'type' => 'setType', - 'reason' => 'setReason', - 'source' => 'setSource', - 'balance' => 'setBalance', - 'related_transaction_id' => 'setRelatedTransactionId', - 'details' => 'setDetails' + 'created_at' => 'setCreatedAt' ]; /** @@ -611,91 +201,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'junction' => 'getJunction', - 'code' => 'getCode', - 'voucher_type' => 'getVoucherType', - 'value' => 'getValue', - 'discount_type' => 'getDiscountType', - 'campaign' => 'getCampaign', - 'category' => 'getCategory', - 'start_date' => 'getStartDate', - 'expiration_date' => 'getExpirationDate', - 'gift_balance' => 'getGiftBalance', - 'loyalty_balance' => 'getLoyaltyBalance', - 'redemption_quantity' => 'getRedemptionQuantity', - 'redemption_count' => 'getRedemptionCount', - 'active' => 'getActive', - 'qr_code' => 'getQrCode', - 'bar_code' => 'getBarCode', - 'metadata' => 'getMetadata', - 'id' => 'getId', - 'is_referral_code' => 'getIsReferralCode', - 'created_at' => 'getCreatedAt', - 'updated_at' => 'getUpdatedAt', - 'validity_timeframe_interval' => 'getValidityTimeframeInterval', - 'validity_timeframe_duration' => 'getValidityTimeframeDuration', - 'validity_day_of_week' => 'getValidityDayOfWeek', - 'discount_amount_limit' => 'getDiscountAmountLimit', 'campaign_id' => 'getCampaignId', - 'additional_info' => 'getAdditionalInfo', - 'customer_id' => 'getCustomerId', - 'discount_unit_type' => 'getDiscountUnitType', - 'discount_unit_effect' => 'getDiscountUnitEffect', - 'customer_source_id' => 'getCustomerSourceId', - 'object' => 'getObject', - 'date' => 'getDate', - 'voucher_code' => 'getVoucherCode', - 'promotion_tier_id' => 'getPromotionTierId', - 'customer_name' => 'getCustomerName', - 'tracking_id' => 'getTrackingId', - 'order_amount' => 'getOrderAmount', - 'gift_amount' => 'getGiftAmount', - 'loyalty_points' => 'getLoyaltyPoints', - 'result' => 'getResult', - 'failure_code' => 'getFailureCode', - 'failure_message' => 'getFailureMessage', - 'name' => 'getName', - 'description' => 'getDescription', - 'email' => 'getEmail', - 'source_id' => 'getSourceId', - 'address_city' => 'getAddressCity', - 'address_state' => 'getAddressState', - 'address_line_1' => 'getAddressLine1', - 'address_line_2' => 'getAddressLine2', - 'address_country' => 'getAddressCountry', - 'address_postal_code' => 'getAddressPostalCode', - 'redemptions_total_redeemed' => 'getRedemptionsTotalRedeemed', - 'redemptions_total_failed' => 'getRedemptionsTotalFailed', - 'redemptions_total_succeeded' => 'getRedemptionsTotalSucceeded', - 'redemptions_total_rolled_back' => 'getRedemptionsTotalRolledBack', - 'redemptions_total_rollback_failed' => 'getRedemptionsTotalRollbackFailed', - 'redemptions_total_rollback_succeeded' => 'getRedemptionsTotalRollbackSucceeded', - 'orders_total_amount' => 'getOrdersTotalAmount', - 'orders_total_count' => 'getOrdersTotalCount', - 'orders_average_amount' => 'getOrdersAverageAmount', - 'orders_last_order_amount' => 'getOrdersLastOrderAmount', - 'orders_last_order_date' => 'getOrdersLastOrderDate', - 'loyalty_referred_customers' => 'getLoyaltyReferredCustomers', - 'phone' => 'getPhone', - 'birthday' => 'getBirthday', - 'birthdate' => 'getBirthdate', - 'channel' => 'getChannel', - 'is_winner' => 'getIsWinner', - 'status' => 'getStatus', - 'amount' => 'getAmount', - 'discount_amount' => 'getDiscountAmount', - 'items_discount_amount' => 'getItemsDiscountAmount', - 'total_discount_amount' => 'getTotalDiscountAmount', - 'total_amount' => 'getTotalAmount', - 'referrer_id' => 'getReferrerId', 'voucher_id' => 'getVoucherId', - 'points' => 'getPoints', - 'expires_at' => 'getExpiresAt', - 'type' => 'getType', - 'reason' => 'getReason', - 'source' => 'getSource', - 'balance' => 'getBalance', - 'related_transaction_id' => 'getRelatedTransactionId', - 'details' => 'getDetails' + 'created_at' => 'getCreatedAt' ]; /** @@ -771,91 +279,9 @@ public function getJunctionAllowableValues() public function __construct(array $data = null) { $this->setIfExists('junction', $data ?? [], null); - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('voucher_type', $data ?? [], null); - $this->setIfExists('value', $data ?? [], null); - $this->setIfExists('discount_type', $data ?? [], null); - $this->setIfExists('campaign', $data ?? [], null); - $this->setIfExists('category', $data ?? [], null); - $this->setIfExists('start_date', $data ?? [], null); - $this->setIfExists('expiration_date', $data ?? [], null); - $this->setIfExists('gift_balance', $data ?? [], null); - $this->setIfExists('loyalty_balance', $data ?? [], null); - $this->setIfExists('redemption_quantity', $data ?? [], null); - $this->setIfExists('redemption_count', $data ?? [], null); - $this->setIfExists('active', $data ?? [], null); - $this->setIfExists('qr_code', $data ?? [], null); - $this->setIfExists('bar_code', $data ?? [], null); - $this->setIfExists('metadata', $data ?? [], null); - $this->setIfExists('id', $data ?? [], null); - $this->setIfExists('is_referral_code', $data ?? [], null); - $this->setIfExists('created_at', $data ?? [], null); - $this->setIfExists('updated_at', $data ?? [], null); - $this->setIfExists('validity_timeframe_interval', $data ?? [], null); - $this->setIfExists('validity_timeframe_duration', $data ?? [], null); - $this->setIfExists('validity_day_of_week', $data ?? [], null); - $this->setIfExists('discount_amount_limit', $data ?? [], null); $this->setIfExists('campaign_id', $data ?? [], null); - $this->setIfExists('additional_info', $data ?? [], null); - $this->setIfExists('customer_id', $data ?? [], null); - $this->setIfExists('discount_unit_type', $data ?? [], null); - $this->setIfExists('discount_unit_effect', $data ?? [], null); - $this->setIfExists('customer_source_id', $data ?? [], null); - $this->setIfExists('object', $data ?? [], null); - $this->setIfExists('date', $data ?? [], null); - $this->setIfExists('voucher_code', $data ?? [], null); - $this->setIfExists('promotion_tier_id', $data ?? [], null); - $this->setIfExists('customer_name', $data ?? [], null); - $this->setIfExists('tracking_id', $data ?? [], null); - $this->setIfExists('order_amount', $data ?? [], null); - $this->setIfExists('gift_amount', $data ?? [], null); - $this->setIfExists('loyalty_points', $data ?? [], null); - $this->setIfExists('result', $data ?? [], null); - $this->setIfExists('failure_code', $data ?? [], null); - $this->setIfExists('failure_message', $data ?? [], null); - $this->setIfExists('name', $data ?? [], null); - $this->setIfExists('description', $data ?? [], null); - $this->setIfExists('email', $data ?? [], null); - $this->setIfExists('source_id', $data ?? [], null); - $this->setIfExists('address_city', $data ?? [], null); - $this->setIfExists('address_state', $data ?? [], null); - $this->setIfExists('address_line_1', $data ?? [], null); - $this->setIfExists('address_line_2', $data ?? [], null); - $this->setIfExists('address_country', $data ?? [], null); - $this->setIfExists('address_postal_code', $data ?? [], null); - $this->setIfExists('redemptions_total_redeemed', $data ?? [], null); - $this->setIfExists('redemptions_total_failed', $data ?? [], null); - $this->setIfExists('redemptions_total_succeeded', $data ?? [], null); - $this->setIfExists('redemptions_total_rolled_back', $data ?? [], null); - $this->setIfExists('redemptions_total_rollback_failed', $data ?? [], null); - $this->setIfExists('redemptions_total_rollback_succeeded', $data ?? [], null); - $this->setIfExists('orders_total_amount', $data ?? [], null); - $this->setIfExists('orders_total_count', $data ?? [], null); - $this->setIfExists('orders_average_amount', $data ?? [], null); - $this->setIfExists('orders_last_order_amount', $data ?? [], null); - $this->setIfExists('orders_last_order_date', $data ?? [], null); - $this->setIfExists('loyalty_referred_customers', $data ?? [], null); - $this->setIfExists('phone', $data ?? [], null); - $this->setIfExists('birthday', $data ?? [], null); - $this->setIfExists('birthdate', $data ?? [], null); - $this->setIfExists('channel', $data ?? [], null); - $this->setIfExists('is_winner', $data ?? [], null); - $this->setIfExists('status', $data ?? [], null); - $this->setIfExists('amount', $data ?? [], null); - $this->setIfExists('discount_amount', $data ?? [], null); - $this->setIfExists('items_discount_amount', $data ?? [], null); - $this->setIfExists('total_discount_amount', $data ?? [], null); - $this->setIfExists('total_amount', $data ?? [], null); - $this->setIfExists('referrer_id', $data ?? [], null); $this->setIfExists('voucher_id', $data ?? [], null); - $this->setIfExists('points', $data ?? [], null); - $this->setIfExists('expires_at', $data ?? [], null); - $this->setIfExists('type', $data ?? [], null); - $this->setIfExists('reason', $data ?? [], null); - $this->setIfExists('source', $data ?? [], null); - $this->setIfExists('balance', $data ?? [], null); - $this->setIfExists('related_transaction_id', $data ?? [], null); - $this->setIfExists('details', $data ?? [], null); + $this->setIfExists('created_at', $data ?? [], null); } /** @@ -947,2299 +373,85 @@ public function setJunction($junction) } /** - * Gets code - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param \OpenAPI\Client\Model\FieldConditions|null $code code - * - * @return self - */ - public function setCode($code) - { - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets voucher_type - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getVoucherType() - { - return $this->container['voucher_type']; - } - - /** - * Sets voucher_type - * - * @param \OpenAPI\Client\Model\FieldConditions|null $voucher_type voucher_type - * - * @return self - */ - public function setVoucherType($voucher_type) - { - if (is_null($voucher_type)) { - throw new \InvalidArgumentException('non-nullable voucher_type cannot be null'); - } - $this->container['voucher_type'] = $voucher_type; - - return $this; - } - - /** - * Gets value - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param \OpenAPI\Client\Model\FieldConditions|null $value value - * - * @return self - */ - public function setValue($value) - { - if (is_null($value)) { - throw new \InvalidArgumentException('non-nullable value cannot be null'); - } - $this->container['value'] = $value; - - return $this; - } - - /** - * Gets discount_type - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getDiscountType() - { - return $this->container['discount_type']; - } - - /** - * Sets discount_type - * - * @param \OpenAPI\Client\Model\FieldConditions|null $discount_type discount_type - * - * @return self - */ - public function setDiscountType($discount_type) - { - if (is_null($discount_type)) { - throw new \InvalidArgumentException('non-nullable discount_type cannot be null'); - } - $this->container['discount_type'] = $discount_type; - - return $this; - } - - /** - * Gets campaign - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getCampaign() - { - return $this->container['campaign']; - } - - /** - * Sets campaign - * - * @param \OpenAPI\Client\Model\FieldConditions|null $campaign campaign - * - * @return self - */ - public function setCampaign($campaign) - { - if (is_null($campaign)) { - throw new \InvalidArgumentException('non-nullable campaign cannot be null'); - } - $this->container['campaign'] = $campaign; - - return $this; - } - - /** - * Gets category - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getCategory() - { - return $this->container['category']; - } - - /** - * Sets category - * - * @param \OpenAPI\Client\Model\FieldConditions|null $category category - * - * @return self - */ - public function setCategory($category) - { - if (is_null($category)) { - throw new \InvalidArgumentException('non-nullable category cannot be null'); - } - $this->container['category'] = $category; - - return $this; - } - - /** - * Gets start_date - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getStartDate() - { - return $this->container['start_date']; - } - - /** - * Sets start_date - * - * @param \OpenAPI\Client\Model\FieldConditions|null $start_date start_date - * - * @return self - */ - public function setStartDate($start_date) - { - if (is_null($start_date)) { - throw new \InvalidArgumentException('non-nullable start_date cannot be null'); - } - $this->container['start_date'] = $start_date; - - return $this; - } - - /** - * Gets expiration_date - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getExpirationDate() - { - return $this->container['expiration_date']; - } - - /** - * Sets expiration_date - * - * @param \OpenAPI\Client\Model\FieldConditions|null $expiration_date expiration_date - * - * @return self - */ - public function setExpirationDate($expiration_date) - { - if (is_null($expiration_date)) { - throw new \InvalidArgumentException('non-nullable expiration_date cannot be null'); - } - $this->container['expiration_date'] = $expiration_date; - - return $this; - } - - /** - * Gets gift_balance - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getGiftBalance() - { - return $this->container['gift_balance']; - } - - /** - * Sets gift_balance - * - * @param \OpenAPI\Client\Model\FieldConditions|null $gift_balance gift_balance - * - * @return self - */ - public function setGiftBalance($gift_balance) - { - if (is_null($gift_balance)) { - throw new \InvalidArgumentException('non-nullable gift_balance cannot be null'); - } - $this->container['gift_balance'] = $gift_balance; - - return $this; - } - - /** - * Gets loyalty_balance - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getLoyaltyBalance() - { - return $this->container['loyalty_balance']; - } - - /** - * Sets loyalty_balance - * - * @param \OpenAPI\Client\Model\FieldConditions|null $loyalty_balance loyalty_balance - * - * @return self - */ - public function setLoyaltyBalance($loyalty_balance) - { - if (is_null($loyalty_balance)) { - throw new \InvalidArgumentException('non-nullable loyalty_balance cannot be null'); - } - $this->container['loyalty_balance'] = $loyalty_balance; - - return $this; - } - - /** - * Gets redemption_quantity - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getRedemptionQuantity() - { - return $this->container['redemption_quantity']; - } - - /** - * Sets redemption_quantity - * - * @param \OpenAPI\Client\Model\FieldConditions|null $redemption_quantity redemption_quantity - * - * @return self - */ - public function setRedemptionQuantity($redemption_quantity) - { - if (is_null($redemption_quantity)) { - throw new \InvalidArgumentException('non-nullable redemption_quantity cannot be null'); - } - $this->container['redemption_quantity'] = $redemption_quantity; - - return $this; - } - - /** - * Gets redemption_count - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getRedemptionCount() - { - return $this->container['redemption_count']; - } - - /** - * Sets redemption_count - * - * @param \OpenAPI\Client\Model\FieldConditions|null $redemption_count redemption_count - * - * @return self - */ - public function setRedemptionCount($redemption_count) - { - if (is_null($redemption_count)) { - throw new \InvalidArgumentException('non-nullable redemption_count cannot be null'); - } - $this->container['redemption_count'] = $redemption_count; - - return $this; - } - - /** - * Gets active + * Gets campaign_id * * @return \OpenAPI\Client\Model\FieldConditions|null */ - public function getActive() + public function getCampaignId() { - return $this->container['active']; + return $this->container['campaign_id']; } /** - * Sets active + * Sets campaign_id * - * @param \OpenAPI\Client\Model\FieldConditions|null $active active + * @param \OpenAPI\Client\Model\FieldConditions|null $campaign_id campaign_id * * @return self */ - public function setActive($active) + public function setCampaignId($campaign_id) { - if (is_null($active)) { - throw new \InvalidArgumentException('non-nullable active cannot be null'); + if (is_null($campaign_id)) { + throw new \InvalidArgumentException('non-nullable campaign_id cannot be null'); } - $this->container['active'] = $active; + $this->container['campaign_id'] = $campaign_id; return $this; } /** - * Gets qr_code + * Gets voucher_id * * @return \OpenAPI\Client\Model\FieldConditions|null */ - public function getQrCode() + public function getVoucherId() { - return $this->container['qr_code']; + return $this->container['voucher_id']; } /** - * Sets qr_code + * Sets voucher_id * - * @param \OpenAPI\Client\Model\FieldConditions|null $qr_code qr_code + * @param \OpenAPI\Client\Model\FieldConditions|null $voucher_id voucher_id * * @return self */ - public function setQrCode($qr_code) + public function setVoucherId($voucher_id) { - if (is_null($qr_code)) { - throw new \InvalidArgumentException('non-nullable qr_code cannot be null'); + if (is_null($voucher_id)) { + throw new \InvalidArgumentException('non-nullable voucher_id cannot be null'); } - $this->container['qr_code'] = $qr_code; + $this->container['voucher_id'] = $voucher_id; return $this; } /** - * Gets bar_code + * Gets created_at * * @return \OpenAPI\Client\Model\FieldConditions|null */ - public function getBarCode() + public function getCreatedAt() { - return $this->container['bar_code']; + return $this->container['created_at']; } /** - * Sets bar_code + * Sets created_at * - * @param \OpenAPI\Client\Model\FieldConditions|null $bar_code bar_code + * @param \OpenAPI\Client\Model\FieldConditions|null $created_at created_at * * @return self */ - public function setBarCode($bar_code) + public function setCreatedAt($created_at) { - if (is_null($bar_code)) { - throw new \InvalidArgumentException('non-nullable bar_code cannot be null'); - } - $this->container['bar_code'] = $bar_code; - - return $this; - } - - /** - * Gets metadata - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getMetadata() - { - return $this->container['metadata']; - } - - /** - * Sets metadata - * - * @param \OpenAPI\Client\Model\FieldConditions|null $metadata metadata - * - * @return self - */ - public function setMetadata($metadata) - { - if (is_null($metadata)) { - throw new \InvalidArgumentException('non-nullable metadata cannot be null'); - } - $this->container['metadata'] = $metadata; - - return $this; - } - - /** - * Gets id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $id id - * - * @return self - */ - public function setId($id) - { - if (is_null($id)) { - throw new \InvalidArgumentException('non-nullable id cannot be null'); - } - $this->container['id'] = $id; - - return $this; - } - - /** - * Gets is_referral_code - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getIsReferralCode() - { - return $this->container['is_referral_code']; - } - - /** - * Sets is_referral_code - * - * @param \OpenAPI\Client\Model\FieldConditions|null $is_referral_code is_referral_code - * - * @return self - */ - public function setIsReferralCode($is_referral_code) - { - if (is_null($is_referral_code)) { - throw new \InvalidArgumentException('non-nullable is_referral_code cannot be null'); - } - $this->container['is_referral_code'] = $is_referral_code; - - return $this; - } - - /** - * Gets created_at - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getCreatedAt() - { - return $this->container['created_at']; - } - - /** - * Sets created_at - * - * @param \OpenAPI\Client\Model\FieldConditions|null $created_at created_at - * - * @return self - */ - public function setCreatedAt($created_at) - { - if (is_null($created_at)) { - throw new \InvalidArgumentException('non-nullable created_at cannot be null'); + if (is_null($created_at)) { + throw new \InvalidArgumentException('non-nullable created_at cannot be null'); } $this->container['created_at'] = $created_at; return $this; } - - /** - * Gets updated_at - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getUpdatedAt() - { - return $this->container['updated_at']; - } - - /** - * Sets updated_at - * - * @param \OpenAPI\Client\Model\FieldConditions|null $updated_at updated_at - * - * @return self - */ - public function setUpdatedAt($updated_at) - { - if (is_null($updated_at)) { - throw new \InvalidArgumentException('non-nullable updated_at cannot be null'); - } - $this->container['updated_at'] = $updated_at; - - return $this; - } - - /** - * Gets validity_timeframe_interval - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getValidityTimeframeInterval() - { - return $this->container['validity_timeframe_interval']; - } - - /** - * Sets validity_timeframe_interval - * - * @param \OpenAPI\Client\Model\FieldConditions|null $validity_timeframe_interval validity_timeframe_interval - * - * @return self - */ - public function setValidityTimeframeInterval($validity_timeframe_interval) - { - if (is_null($validity_timeframe_interval)) { - throw new \InvalidArgumentException('non-nullable validity_timeframe_interval cannot be null'); - } - $this->container['validity_timeframe_interval'] = $validity_timeframe_interval; - - return $this; - } - - /** - * Gets validity_timeframe_duration - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getValidityTimeframeDuration() - { - return $this->container['validity_timeframe_duration']; - } - - /** - * Sets validity_timeframe_duration - * - * @param \OpenAPI\Client\Model\FieldConditions|null $validity_timeframe_duration validity_timeframe_duration - * - * @return self - */ - public function setValidityTimeframeDuration($validity_timeframe_duration) - { - if (is_null($validity_timeframe_duration)) { - throw new \InvalidArgumentException('non-nullable validity_timeframe_duration cannot be null'); - } - $this->container['validity_timeframe_duration'] = $validity_timeframe_duration; - - return $this; - } - - /** - * Gets validity_day_of_week - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getValidityDayOfWeek() - { - return $this->container['validity_day_of_week']; - } - - /** - * Sets validity_day_of_week - * - * @param \OpenAPI\Client\Model\FieldConditions|null $validity_day_of_week validity_day_of_week - * - * @return self - */ - public function setValidityDayOfWeek($validity_day_of_week) - { - if (is_null($validity_day_of_week)) { - throw new \InvalidArgumentException('non-nullable validity_day_of_week cannot be null'); - } - $this->container['validity_day_of_week'] = $validity_day_of_week; - - return $this; - } - - /** - * Gets discount_amount_limit - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getDiscountAmountLimit() - { - return $this->container['discount_amount_limit']; - } - - /** - * Sets discount_amount_limit - * - * @param \OpenAPI\Client\Model\FieldConditions|null $discount_amount_limit discount_amount_limit - * - * @return self - */ - public function setDiscountAmountLimit($discount_amount_limit) - { - if (is_null($discount_amount_limit)) { - throw new \InvalidArgumentException('non-nullable discount_amount_limit cannot be null'); - } - $this->container['discount_amount_limit'] = $discount_amount_limit; - - return $this; - } - - /** - * Gets campaign_id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getCampaignId() - { - return $this->container['campaign_id']; - } - - /** - * Sets campaign_id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $campaign_id campaign_id - * - * @return self - */ - public function setCampaignId($campaign_id) - { - if (is_null($campaign_id)) { - throw new \InvalidArgumentException('non-nullable campaign_id cannot be null'); - } - $this->container['campaign_id'] = $campaign_id; - - return $this; - } - - /** - * Gets additional_info - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getAdditionalInfo() - { - return $this->container['additional_info']; - } - - /** - * Sets additional_info - * - * @param \OpenAPI\Client\Model\FieldConditions|null $additional_info additional_info - * - * @return self - */ - public function setAdditionalInfo($additional_info) - { - if (is_null($additional_info)) { - throw new \InvalidArgumentException('non-nullable additional_info cannot be null'); - } - $this->container['additional_info'] = $additional_info; - - return $this; - } - - /** - * Gets customer_id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getCustomerId() - { - return $this->container['customer_id']; - } - - /** - * Sets customer_id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $customer_id customer_id - * - * @return self - */ - public function setCustomerId($customer_id) - { - if (is_null($customer_id)) { - throw new \InvalidArgumentException('non-nullable customer_id cannot be null'); - } - $this->container['customer_id'] = $customer_id; - - return $this; - } - - /** - * Gets discount_unit_type - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getDiscountUnitType() - { - return $this->container['discount_unit_type']; - } - - /** - * Sets discount_unit_type - * - * @param \OpenAPI\Client\Model\FieldConditions|null $discount_unit_type discount_unit_type - * - * @return self - */ - public function setDiscountUnitType($discount_unit_type) - { - if (is_null($discount_unit_type)) { - throw new \InvalidArgumentException('non-nullable discount_unit_type cannot be null'); - } - $this->container['discount_unit_type'] = $discount_unit_type; - - return $this; - } - - /** - * Gets discount_unit_effect - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getDiscountUnitEffect() - { - return $this->container['discount_unit_effect']; - } - - /** - * Sets discount_unit_effect - * - * @param \OpenAPI\Client\Model\FieldConditions|null $discount_unit_effect discount_unit_effect - * - * @return self - */ - public function setDiscountUnitEffect($discount_unit_effect) - { - if (is_null($discount_unit_effect)) { - throw new \InvalidArgumentException('non-nullable discount_unit_effect cannot be null'); - } - $this->container['discount_unit_effect'] = $discount_unit_effect; - - return $this; - } - - /** - * Gets customer_source_id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getCustomerSourceId() - { - return $this->container['customer_source_id']; - } - - /** - * Sets customer_source_id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $customer_source_id customer_source_id - * - * @return self - */ - public function setCustomerSourceId($customer_source_id) - { - if (is_null($customer_source_id)) { - throw new \InvalidArgumentException('non-nullable customer_source_id cannot be null'); - } - $this->container['customer_source_id'] = $customer_source_id; - - return $this; - } - - /** - * Gets object - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getObject() - { - return $this->container['object']; - } - - /** - * Sets object - * - * @param \OpenAPI\Client\Model\FieldConditions|null $object object - * - * @return self - */ - public function setObject($object) - { - if (is_null($object)) { - throw new \InvalidArgumentException('non-nullable object cannot be null'); - } - $this->container['object'] = $object; - - return $this; - } - - /** - * Gets date - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getDate() - { - return $this->container['date']; - } - - /** - * Sets date - * - * @param \OpenAPI\Client\Model\FieldConditions|null $date date - * - * @return self - */ - public function setDate($date) - { - if (is_null($date)) { - throw new \InvalidArgumentException('non-nullable date cannot be null'); - } - $this->container['date'] = $date; - - return $this; - } - - /** - * Gets voucher_code - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getVoucherCode() - { - return $this->container['voucher_code']; - } - - /** - * Sets voucher_code - * - * @param \OpenAPI\Client\Model\FieldConditions|null $voucher_code voucher_code - * - * @return self - */ - public function setVoucherCode($voucher_code) - { - if (is_null($voucher_code)) { - throw new \InvalidArgumentException('non-nullable voucher_code cannot be null'); - } - $this->container['voucher_code'] = $voucher_code; - - return $this; - } - - /** - * Gets promotion_tier_id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getPromotionTierId() - { - return $this->container['promotion_tier_id']; - } - - /** - * Sets promotion_tier_id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $promotion_tier_id promotion_tier_id - * - * @return self - */ - public function setPromotionTierId($promotion_tier_id) - { - if (is_null($promotion_tier_id)) { - throw new \InvalidArgumentException('non-nullable promotion_tier_id cannot be null'); - } - $this->container['promotion_tier_id'] = $promotion_tier_id; - - return $this; - } - - /** - * Gets customer_name - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getCustomerName() - { - return $this->container['customer_name']; - } - - /** - * Sets customer_name - * - * @param \OpenAPI\Client\Model\FieldConditions|null $customer_name customer_name - * - * @return self - */ - public function setCustomerName($customer_name) - { - if (is_null($customer_name)) { - throw new \InvalidArgumentException('non-nullable customer_name cannot be null'); - } - $this->container['customer_name'] = $customer_name; - - return $this; - } - - /** - * Gets tracking_id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getTrackingId() - { - return $this->container['tracking_id']; - } - - /** - * Sets tracking_id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $tracking_id tracking_id - * - * @return self - */ - public function setTrackingId($tracking_id) - { - if (is_null($tracking_id)) { - throw new \InvalidArgumentException('non-nullable tracking_id cannot be null'); - } - $this->container['tracking_id'] = $tracking_id; - - return $this; - } - - /** - * Gets order_amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getOrderAmount() - { - return $this->container['order_amount']; - } - - /** - * Sets order_amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $order_amount order_amount - * - * @return self - */ - public function setOrderAmount($order_amount) - { - if (is_null($order_amount)) { - throw new \InvalidArgumentException('non-nullable order_amount cannot be null'); - } - $this->container['order_amount'] = $order_amount; - - return $this; - } - - /** - * Gets gift_amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getGiftAmount() - { - return $this->container['gift_amount']; - } - - /** - * Sets gift_amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $gift_amount gift_amount - * - * @return self - */ - public function setGiftAmount($gift_amount) - { - if (is_null($gift_amount)) { - throw new \InvalidArgumentException('non-nullable gift_amount cannot be null'); - } - $this->container['gift_amount'] = $gift_amount; - - return $this; - } - - /** - * Gets loyalty_points - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getLoyaltyPoints() - { - return $this->container['loyalty_points']; - } - - /** - * Sets loyalty_points - * - * @param \OpenAPI\Client\Model\FieldConditions|null $loyalty_points loyalty_points - * - * @return self - */ - public function setLoyaltyPoints($loyalty_points) - { - if (is_null($loyalty_points)) { - throw new \InvalidArgumentException('non-nullable loyalty_points cannot be null'); - } - $this->container['loyalty_points'] = $loyalty_points; - - return $this; - } - - /** - * Gets result - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getResult() - { - return $this->container['result']; - } - - /** - * Sets result - * - * @param \OpenAPI\Client\Model\FieldConditions|null $result result - * - * @return self - */ - public function setResult($result) - { - if (is_null($result)) { - throw new \InvalidArgumentException('non-nullable result cannot be null'); - } - $this->container['result'] = $result; - - return $this; - } - - /** - * Gets failure_code - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getFailureCode() - { - return $this->container['failure_code']; - } - - /** - * Sets failure_code - * - * @param \OpenAPI\Client\Model\FieldConditions|null $failure_code failure_code - * - * @return self - */ - public function setFailureCode($failure_code) - { - if (is_null($failure_code)) { - throw new \InvalidArgumentException('non-nullable failure_code cannot be null'); - } - $this->container['failure_code'] = $failure_code; - - return $this; - } - - /** - * Gets failure_message - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getFailureMessage() - { - return $this->container['failure_message']; - } - - /** - * Sets failure_message - * - * @param \OpenAPI\Client\Model\FieldConditions|null $failure_message failure_message - * - * @return self - */ - public function setFailureMessage($failure_message) - { - if (is_null($failure_message)) { - throw new \InvalidArgumentException('non-nullable failure_message cannot be null'); - } - $this->container['failure_message'] = $failure_message; - - return $this; - } - - /** - * Gets name - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param \OpenAPI\Client\Model\FieldConditions|null $name name - * - * @return self - */ - public function setName($name) - { - if (is_null($name)) { - throw new \InvalidArgumentException('non-nullable name cannot be null'); - } - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets description - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getDescription() - { - return $this->container['description']; - } - - /** - * Sets description - * - * @param \OpenAPI\Client\Model\FieldConditions|null $description description - * - * @return self - */ - public function setDescription($description) - { - if (is_null($description)) { - throw new \InvalidArgumentException('non-nullable description cannot be null'); - } - $this->container['description'] = $description; - - return $this; - } - - /** - * Gets email - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getEmail() - { - return $this->container['email']; - } - - /** - * Sets email - * - * @param \OpenAPI\Client\Model\FieldConditions|null $email email - * - * @return self - */ - public function setEmail($email) - { - if (is_null($email)) { - throw new \InvalidArgumentException('non-nullable email cannot be null'); - } - $this->container['email'] = $email; - - return $this; - } - - /** - * Gets source_id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getSourceId() - { - return $this->container['source_id']; - } - - /** - * Sets source_id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $source_id source_id - * - * @return self - */ - public function setSourceId($source_id) - { - if (is_null($source_id)) { - throw new \InvalidArgumentException('non-nullable source_id cannot be null'); - } - $this->container['source_id'] = $source_id; - - return $this; - } - - /** - * Gets address_city - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getAddressCity() - { - return $this->container['address_city']; - } - - /** - * Sets address_city - * - * @param \OpenAPI\Client\Model\FieldConditions|null $address_city address_city - * - * @return self - */ - public function setAddressCity($address_city) - { - if (is_null($address_city)) { - throw new \InvalidArgumentException('non-nullable address_city cannot be null'); - } - $this->container['address_city'] = $address_city; - - return $this; - } - - /** - * Gets address_state - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getAddressState() - { - return $this->container['address_state']; - } - - /** - * Sets address_state - * - * @param \OpenAPI\Client\Model\FieldConditions|null $address_state address_state - * - * @return self - */ - public function setAddressState($address_state) - { - if (is_null($address_state)) { - throw new \InvalidArgumentException('non-nullable address_state cannot be null'); - } - $this->container['address_state'] = $address_state; - - return $this; - } - - /** - * Gets address_line_1 - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getAddressLine1() - { - return $this->container['address_line_1']; - } - - /** - * Sets address_line_1 - * - * @param \OpenAPI\Client\Model\FieldConditions|null $address_line_1 address_line_1 - * - * @return self - */ - public function setAddressLine1($address_line_1) - { - if (is_null($address_line_1)) { - throw new \InvalidArgumentException('non-nullable address_line_1 cannot be null'); - } - $this->container['address_line_1'] = $address_line_1; - - return $this; - } - - /** - * Gets address_line_2 - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getAddressLine2() - { - return $this->container['address_line_2']; - } - - /** - * Sets address_line_2 - * - * @param \OpenAPI\Client\Model\FieldConditions|null $address_line_2 address_line_2 - * - * @return self - */ - public function setAddressLine2($address_line_2) - { - if (is_null($address_line_2)) { - throw new \InvalidArgumentException('non-nullable address_line_2 cannot be null'); - } - $this->container['address_line_2'] = $address_line_2; - - return $this; - } - - /** - * Gets address_country - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getAddressCountry() - { - return $this->container['address_country']; - } - - /** - * Sets address_country - * - * @param \OpenAPI\Client\Model\FieldConditions|null $address_country address_country - * - * @return self - */ - public function setAddressCountry($address_country) - { - if (is_null($address_country)) { - throw new \InvalidArgumentException('non-nullable address_country cannot be null'); - } - $this->container['address_country'] = $address_country; - - return $this; - } - - /** - * Gets address_postal_code - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getAddressPostalCode() - { - return $this->container['address_postal_code']; - } - - /** - * Sets address_postal_code - * - * @param \OpenAPI\Client\Model\FieldConditions|null $address_postal_code address_postal_code - * - * @return self - */ - public function setAddressPostalCode($address_postal_code) - { - if (is_null($address_postal_code)) { - throw new \InvalidArgumentException('non-nullable address_postal_code cannot be null'); - } - $this->container['address_postal_code'] = $address_postal_code; - - return $this; - } - - /** - * Gets redemptions_total_redeemed - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getRedemptionsTotalRedeemed() - { - return $this->container['redemptions_total_redeemed']; - } - - /** - * Sets redemptions_total_redeemed - * - * @param \OpenAPI\Client\Model\FieldConditions|null $redemptions_total_redeemed redemptions_total_redeemed - * - * @return self - */ - public function setRedemptionsTotalRedeemed($redemptions_total_redeemed) - { - if (is_null($redemptions_total_redeemed)) { - throw new \InvalidArgumentException('non-nullable redemptions_total_redeemed cannot be null'); - } - $this->container['redemptions_total_redeemed'] = $redemptions_total_redeemed; - - return $this; - } - - /** - * Gets redemptions_total_failed - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getRedemptionsTotalFailed() - { - return $this->container['redemptions_total_failed']; - } - - /** - * Sets redemptions_total_failed - * - * @param \OpenAPI\Client\Model\FieldConditions|null $redemptions_total_failed redemptions_total_failed - * - * @return self - */ - public function setRedemptionsTotalFailed($redemptions_total_failed) - { - if (is_null($redemptions_total_failed)) { - throw new \InvalidArgumentException('non-nullable redemptions_total_failed cannot be null'); - } - $this->container['redemptions_total_failed'] = $redemptions_total_failed; - - return $this; - } - - /** - * Gets redemptions_total_succeeded - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getRedemptionsTotalSucceeded() - { - return $this->container['redemptions_total_succeeded']; - } - - /** - * Sets redemptions_total_succeeded - * - * @param \OpenAPI\Client\Model\FieldConditions|null $redemptions_total_succeeded redemptions_total_succeeded - * - * @return self - */ - public function setRedemptionsTotalSucceeded($redemptions_total_succeeded) - { - if (is_null($redemptions_total_succeeded)) { - throw new \InvalidArgumentException('non-nullable redemptions_total_succeeded cannot be null'); - } - $this->container['redemptions_total_succeeded'] = $redemptions_total_succeeded; - - return $this; - } - - /** - * Gets redemptions_total_rolled_back - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getRedemptionsTotalRolledBack() - { - return $this->container['redemptions_total_rolled_back']; - } - - /** - * Sets redemptions_total_rolled_back - * - * @param \OpenAPI\Client\Model\FieldConditions|null $redemptions_total_rolled_back redemptions_total_rolled_back - * - * @return self - */ - public function setRedemptionsTotalRolledBack($redemptions_total_rolled_back) - { - if (is_null($redemptions_total_rolled_back)) { - throw new \InvalidArgumentException('non-nullable redemptions_total_rolled_back cannot be null'); - } - $this->container['redemptions_total_rolled_back'] = $redemptions_total_rolled_back; - - return $this; - } - - /** - * Gets redemptions_total_rollback_failed - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getRedemptionsTotalRollbackFailed() - { - return $this->container['redemptions_total_rollback_failed']; - } - - /** - * Sets redemptions_total_rollback_failed - * - * @param \OpenAPI\Client\Model\FieldConditions|null $redemptions_total_rollback_failed redemptions_total_rollback_failed - * - * @return self - */ - public function setRedemptionsTotalRollbackFailed($redemptions_total_rollback_failed) - { - if (is_null($redemptions_total_rollback_failed)) { - throw new \InvalidArgumentException('non-nullable redemptions_total_rollback_failed cannot be null'); - } - $this->container['redemptions_total_rollback_failed'] = $redemptions_total_rollback_failed; - - return $this; - } - - /** - * Gets redemptions_total_rollback_succeeded - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getRedemptionsTotalRollbackSucceeded() - { - return $this->container['redemptions_total_rollback_succeeded']; - } - - /** - * Sets redemptions_total_rollback_succeeded - * - * @param \OpenAPI\Client\Model\FieldConditions|null $redemptions_total_rollback_succeeded redemptions_total_rollback_succeeded - * - * @return self - */ - public function setRedemptionsTotalRollbackSucceeded($redemptions_total_rollback_succeeded) - { - if (is_null($redemptions_total_rollback_succeeded)) { - throw new \InvalidArgumentException('non-nullable redemptions_total_rollback_succeeded cannot be null'); - } - $this->container['redemptions_total_rollback_succeeded'] = $redemptions_total_rollback_succeeded; - - return $this; - } - - /** - * Gets orders_total_amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getOrdersTotalAmount() - { - return $this->container['orders_total_amount']; - } - - /** - * Sets orders_total_amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $orders_total_amount orders_total_amount - * - * @return self - */ - public function setOrdersTotalAmount($orders_total_amount) - { - if (is_null($orders_total_amount)) { - throw new \InvalidArgumentException('non-nullable orders_total_amount cannot be null'); - } - $this->container['orders_total_amount'] = $orders_total_amount; - - return $this; - } - - /** - * Gets orders_total_count - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getOrdersTotalCount() - { - return $this->container['orders_total_count']; - } - - /** - * Sets orders_total_count - * - * @param \OpenAPI\Client\Model\FieldConditions|null $orders_total_count orders_total_count - * - * @return self - */ - public function setOrdersTotalCount($orders_total_count) - { - if (is_null($orders_total_count)) { - throw new \InvalidArgumentException('non-nullable orders_total_count cannot be null'); - } - $this->container['orders_total_count'] = $orders_total_count; - - return $this; - } - - /** - * Gets orders_average_amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getOrdersAverageAmount() - { - return $this->container['orders_average_amount']; - } - - /** - * Sets orders_average_amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $orders_average_amount orders_average_amount - * - * @return self - */ - public function setOrdersAverageAmount($orders_average_amount) - { - if (is_null($orders_average_amount)) { - throw new \InvalidArgumentException('non-nullable orders_average_amount cannot be null'); - } - $this->container['orders_average_amount'] = $orders_average_amount; - - return $this; - } - - /** - * Gets orders_last_order_amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getOrdersLastOrderAmount() - { - return $this->container['orders_last_order_amount']; - } - - /** - * Sets orders_last_order_amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $orders_last_order_amount orders_last_order_amount - * - * @return self - */ - public function setOrdersLastOrderAmount($orders_last_order_amount) - { - if (is_null($orders_last_order_amount)) { - throw new \InvalidArgumentException('non-nullable orders_last_order_amount cannot be null'); - } - $this->container['orders_last_order_amount'] = $orders_last_order_amount; - - return $this; - } - - /** - * Gets orders_last_order_date - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getOrdersLastOrderDate() - { - return $this->container['orders_last_order_date']; - } - - /** - * Sets orders_last_order_date - * - * @param \OpenAPI\Client\Model\FieldConditions|null $orders_last_order_date orders_last_order_date - * - * @return self - */ - public function setOrdersLastOrderDate($orders_last_order_date) - { - if (is_null($orders_last_order_date)) { - throw new \InvalidArgumentException('non-nullable orders_last_order_date cannot be null'); - } - $this->container['orders_last_order_date'] = $orders_last_order_date; - - return $this; - } - - /** - * Gets loyalty_referred_customers - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getLoyaltyReferredCustomers() - { - return $this->container['loyalty_referred_customers']; - } - - /** - * Sets loyalty_referred_customers - * - * @param \OpenAPI\Client\Model\FieldConditions|null $loyalty_referred_customers loyalty_referred_customers - * - * @return self - */ - public function setLoyaltyReferredCustomers($loyalty_referred_customers) - { - if (is_null($loyalty_referred_customers)) { - throw new \InvalidArgumentException('non-nullable loyalty_referred_customers cannot be null'); - } - $this->container['loyalty_referred_customers'] = $loyalty_referred_customers; - - return $this; - } - - /** - * Gets phone - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getPhone() - { - return $this->container['phone']; - } - - /** - * Sets phone - * - * @param \OpenAPI\Client\Model\FieldConditions|null $phone phone - * - * @return self - */ - public function setPhone($phone) - { - if (is_null($phone)) { - throw new \InvalidArgumentException('non-nullable phone cannot be null'); - } - $this->container['phone'] = $phone; - - return $this; - } - - /** - * Gets birthday - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getBirthday() - { - return $this->container['birthday']; - } - - /** - * Sets birthday - * - * @param \OpenAPI\Client\Model\FieldConditions|null $birthday birthday - * - * @return self - */ - public function setBirthday($birthday) - { - if (is_null($birthday)) { - throw new \InvalidArgumentException('non-nullable birthday cannot be null'); - } - $this->container['birthday'] = $birthday; - - return $this; - } - - /** - * Gets birthdate - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getBirthdate() - { - return $this->container['birthdate']; - } - - /** - * Sets birthdate - * - * @param \OpenAPI\Client\Model\FieldConditions|null $birthdate birthdate - * - * @return self - */ - public function setBirthdate($birthdate) - { - if (is_null($birthdate)) { - throw new \InvalidArgumentException('non-nullable birthdate cannot be null'); - } - $this->container['birthdate'] = $birthdate; - - return $this; - } - - /** - * Gets channel - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getChannel() - { - return $this->container['channel']; - } - - /** - * Sets channel - * - * @param \OpenAPI\Client\Model\FieldConditions|null $channel channel - * - * @return self - */ - public function setChannel($channel) - { - if (is_null($channel)) { - throw new \InvalidArgumentException('non-nullable channel cannot be null'); - } - $this->container['channel'] = $channel; - - return $this; - } - - /** - * Gets is_winner - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getIsWinner() - { - return $this->container['is_winner']; - } - - /** - * Sets is_winner - * - * @param \OpenAPI\Client\Model\FieldConditions|null $is_winner is_winner - * - * @return self - */ - public function setIsWinner($is_winner) - { - if (is_null($is_winner)) { - throw new \InvalidArgumentException('non-nullable is_winner cannot be null'); - } - $this->container['is_winner'] = $is_winner; - - return $this; - } - - /** - * Gets status - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param \OpenAPI\Client\Model\FieldConditions|null $status status - * - * @return self - */ - public function setStatus($status) - { - if (is_null($status)) { - throw new \InvalidArgumentException('non-nullable status cannot be null'); - } - $this->container['status'] = $status; - - return $this; - } - - /** - * Gets amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $amount amount - * - * @return self - */ - public function setAmount($amount) - { - if (is_null($amount)) { - throw new \InvalidArgumentException('non-nullable amount cannot be null'); - } - $this->container['amount'] = $amount; - - return $this; - } - - /** - * Gets discount_amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getDiscountAmount() - { - return $this->container['discount_amount']; - } - - /** - * Sets discount_amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $discount_amount discount_amount - * - * @return self - */ - public function setDiscountAmount($discount_amount) - { - if (is_null($discount_amount)) { - throw new \InvalidArgumentException('non-nullable discount_amount cannot be null'); - } - $this->container['discount_amount'] = $discount_amount; - - return $this; - } - - /** - * Gets items_discount_amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getItemsDiscountAmount() - { - return $this->container['items_discount_amount']; - } - - /** - * Sets items_discount_amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $items_discount_amount items_discount_amount - * - * @return self - */ - public function setItemsDiscountAmount($items_discount_amount) - { - if (is_null($items_discount_amount)) { - throw new \InvalidArgumentException('non-nullable items_discount_amount cannot be null'); - } - $this->container['items_discount_amount'] = $items_discount_amount; - - return $this; - } - - /** - * Gets total_discount_amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getTotalDiscountAmount() - { - return $this->container['total_discount_amount']; - } - - /** - * Sets total_discount_amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $total_discount_amount total_discount_amount - * - * @return self - */ - public function setTotalDiscountAmount($total_discount_amount) - { - if (is_null($total_discount_amount)) { - throw new \InvalidArgumentException('non-nullable total_discount_amount cannot be null'); - } - $this->container['total_discount_amount'] = $total_discount_amount; - - return $this; - } - - /** - * Gets total_amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getTotalAmount() - { - return $this->container['total_amount']; - } - - /** - * Sets total_amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $total_amount total_amount - * - * @return self - */ - public function setTotalAmount($total_amount) - { - if (is_null($total_amount)) { - throw new \InvalidArgumentException('non-nullable total_amount cannot be null'); - } - $this->container['total_amount'] = $total_amount; - - return $this; - } - - /** - * Gets referrer_id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getReferrerId() - { - return $this->container['referrer_id']; - } - - /** - * Sets referrer_id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $referrer_id referrer_id - * - * @return self - */ - public function setReferrerId($referrer_id) - { - if (is_null($referrer_id)) { - throw new \InvalidArgumentException('non-nullable referrer_id cannot be null'); - } - $this->container['referrer_id'] = $referrer_id; - - return $this; - } - - /** - * Gets voucher_id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getVoucherId() - { - return $this->container['voucher_id']; - } - - /** - * Sets voucher_id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $voucher_id voucher_id - * - * @return self - */ - public function setVoucherId($voucher_id) - { - if (is_null($voucher_id)) { - throw new \InvalidArgumentException('non-nullable voucher_id cannot be null'); - } - $this->container['voucher_id'] = $voucher_id; - - return $this; - } - - /** - * Gets points - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getPoints() - { - return $this->container['points']; - } - - /** - * Sets points - * - * @param \OpenAPI\Client\Model\FieldConditions|null $points points - * - * @return self - */ - public function setPoints($points) - { - if (is_null($points)) { - throw new \InvalidArgumentException('non-nullable points cannot be null'); - } - $this->container['points'] = $points; - - return $this; - } - - /** - * Gets expires_at - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getExpiresAt() - { - return $this->container['expires_at']; - } - - /** - * Sets expires_at - * - * @param \OpenAPI\Client\Model\FieldConditions|null $expires_at expires_at - * - * @return self - */ - public function setExpiresAt($expires_at) - { - if (is_null($expires_at)) { - throw new \InvalidArgumentException('non-nullable expires_at cannot be null'); - } - $this->container['expires_at'] = $expires_at; - - return $this; - } - - /** - * Gets type - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param \OpenAPI\Client\Model\FieldConditions|null $type type - * - * @return self - */ - public function setType($type) - { - if (is_null($type)) { - throw new \InvalidArgumentException('non-nullable type cannot be null'); - } - $this->container['type'] = $type; - - return $this; - } - - /** - * Gets reason - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getReason() - { - return $this->container['reason']; - } - - /** - * Sets reason - * - * @param \OpenAPI\Client\Model\FieldConditions|null $reason reason - * - * @return self - */ - public function setReason($reason) - { - if (is_null($reason)) { - throw new \InvalidArgumentException('non-nullable reason cannot be null'); - } - $this->container['reason'] = $reason; - - return $this; - } - - /** - * Gets source - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getSource() - { - return $this->container['source']; - } - - /** - * Sets source - * - * @param \OpenAPI\Client\Model\FieldConditions|null $source source - * - * @return self - */ - public function setSource($source) - { - if (is_null($source)) { - throw new \InvalidArgumentException('non-nullable source cannot be null'); - } - $this->container['source'] = $source; - - return $this; - } - - /** - * Gets balance - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getBalance() - { - return $this->container['balance']; - } - - /** - * Sets balance - * - * @param \OpenAPI\Client\Model\FieldConditions|null $balance balance - * - * @return self - */ - public function setBalance($balance) - { - if (is_null($balance)) { - throw new \InvalidArgumentException('non-nullable balance cannot be null'); - } - $this->container['balance'] = $balance; - - return $this; - } - - /** - * Gets related_transaction_id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getRelatedTransactionId() - { - return $this->container['related_transaction_id']; - } - - /** - * Sets related_transaction_id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $related_transaction_id related_transaction_id - * - * @return self - */ - public function setRelatedTransactionId($related_transaction_id) - { - if (is_null($related_transaction_id)) { - throw new \InvalidArgumentException('non-nullable related_transaction_id cannot be null'); - } - $this->container['related_transaction_id'] = $related_transaction_id; - - return $this; - } - - /** - * Gets details - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param \OpenAPI\Client\Model\FieldConditions|null $details details - * - * @return self - */ - public function setDetails($details) - { - if (is_null($details)) { - throw new \InvalidArgumentException('non-nullable details cannot be null'); - } - $this->container['details'] = $details; - - return $this; - } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/ExportVoucherTransactionsFilters.php b/src/Model/ExportVoucherTransactionsFilters.php index 58ea192..17c8919 100644 --- a/src/Model/ExportVoucherTransactionsFilters.php +++ b/src/Model/ExportVoucherTransactionsFilters.php @@ -59,18 +59,9 @@ class ExportVoucherTransactionsFilters implements ModelInterface, ArrayAccess, \ */ protected static $openAPITypes = [ 'junction' => 'string', - 'id' => '\OpenAPI\Client\Model\FieldConditions', - 'campaign_id' => '\OpenAPI\Client\Model\FieldConditions', - 'voucher_id' => '\OpenAPI\Client\Model\FieldConditions', - 'type' => '\OpenAPI\Client\Model\FieldConditions', - 'source_id' => '\OpenAPI\Client\Model\FieldConditions', - 'reason' => '\OpenAPI\Client\Model\FieldConditions', - 'source' => '\OpenAPI\Client\Model\FieldConditions', - 'balance' => '\OpenAPI\Client\Model\FieldConditions', - 'amount' => '\OpenAPI\Client\Model\FieldConditions', - 'related_transaction_id' => '\OpenAPI\Client\Model\FieldConditions', 'created_at' => '\OpenAPI\Client\Model\FieldConditions', - 'details' => '\OpenAPI\Client\Model\FieldConditions' + 'voucher_id' => '\OpenAPI\Client\Model\FieldConditions', + 'campaign_id' => '\OpenAPI\Client\Model\FieldConditions' ]; /** @@ -82,18 +73,9 @@ class ExportVoucherTransactionsFilters implements ModelInterface, ArrayAccess, \ */ protected static $openAPIFormats = [ 'junction' => null, - 'id' => null, - 'campaign_id' => null, - 'voucher_id' => null, - 'type' => null, - 'source_id' => null, - 'reason' => null, - 'source' => null, - 'balance' => null, - 'amount' => null, - 'related_transaction_id' => null, 'created_at' => null, - 'details' => null + 'voucher_id' => null, + 'campaign_id' => null ]; /** @@ -103,18 +85,9 @@ class ExportVoucherTransactionsFilters implements ModelInterface, ArrayAccess, \ */ protected static array $openAPINullables = [ 'junction' => false, - 'id' => false, - 'campaign_id' => false, - 'voucher_id' => false, - 'type' => false, - 'source_id' => false, - 'reason' => false, - 'source' => false, - 'balance' => false, - 'amount' => false, - 'related_transaction_id' => false, 'created_at' => false, - 'details' => false + 'voucher_id' => false, + 'campaign_id' => false ]; /** @@ -204,18 +177,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'junction' => 'junction', - 'id' => 'id', - 'campaign_id' => 'campaign_id', - 'voucher_id' => 'voucher_id', - 'type' => 'type', - 'source_id' => 'source_id', - 'reason' => 'reason', - 'source' => 'source', - 'balance' => 'balance', - 'amount' => 'amount', - 'related_transaction_id' => 'related_transaction_id', 'created_at' => 'created_at', - 'details' => 'details' + 'voucher_id' => 'voucher_id', + 'campaign_id' => 'campaign_id' ]; /** @@ -225,18 +189,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'junction' => 'setJunction', - 'id' => 'setId', - 'campaign_id' => 'setCampaignId', - 'voucher_id' => 'setVoucherId', - 'type' => 'setType', - 'source_id' => 'setSourceId', - 'reason' => 'setReason', - 'source' => 'setSource', - 'balance' => 'setBalance', - 'amount' => 'setAmount', - 'related_transaction_id' => 'setRelatedTransactionId', 'created_at' => 'setCreatedAt', - 'details' => 'setDetails' + 'voucher_id' => 'setVoucherId', + 'campaign_id' => 'setCampaignId' ]; /** @@ -246,18 +201,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'junction' => 'getJunction', - 'id' => 'getId', - 'campaign_id' => 'getCampaignId', - 'voucher_id' => 'getVoucherId', - 'type' => 'getType', - 'source_id' => 'getSourceId', - 'reason' => 'getReason', - 'source' => 'getSource', - 'balance' => 'getBalance', - 'amount' => 'getAmount', - 'related_transaction_id' => 'getRelatedTransactionId', 'created_at' => 'getCreatedAt', - 'details' => 'getDetails' + 'voucher_id' => 'getVoucherId', + 'campaign_id' => 'getCampaignId' ]; /** @@ -333,18 +279,9 @@ public function getJunctionAllowableValues() public function __construct(array $data = null) { $this->setIfExists('junction', $data ?? [], null); - $this->setIfExists('id', $data ?? [], null); - $this->setIfExists('campaign_id', $data ?? [], null); - $this->setIfExists('voucher_id', $data ?? [], null); - $this->setIfExists('type', $data ?? [], null); - $this->setIfExists('source_id', $data ?? [], null); - $this->setIfExists('reason', $data ?? [], null); - $this->setIfExists('source', $data ?? [], null); - $this->setIfExists('balance', $data ?? [], null); - $this->setIfExists('amount', $data ?? [], null); - $this->setIfExists('related_transaction_id', $data ?? [], null); $this->setIfExists('created_at', $data ?? [], null); - $this->setIfExists('details', $data ?? [], null); + $this->setIfExists('voucher_id', $data ?? [], null); + $this->setIfExists('campaign_id', $data ?? [], null); } /** @@ -436,55 +373,28 @@ public function setJunction($junction) } /** - * Gets id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $id id - * - * @return self - */ - public function setId($id) - { - if (is_null($id)) { - throw new \InvalidArgumentException('non-nullable id cannot be null'); - } - $this->container['id'] = $id; - - return $this; - } - - /** - * Gets campaign_id + * Gets created_at * * @return \OpenAPI\Client\Model\FieldConditions|null */ - public function getCampaignId() + public function getCreatedAt() { - return $this->container['campaign_id']; + return $this->container['created_at']; } /** - * Sets campaign_id + * Sets created_at * - * @param \OpenAPI\Client\Model\FieldConditions|null $campaign_id campaign_id + * @param \OpenAPI\Client\Model\FieldConditions|null $created_at created_at * * @return self */ - public function setCampaignId($campaign_id) + public function setCreatedAt($created_at) { - if (is_null($campaign_id)) { - throw new \InvalidArgumentException('non-nullable campaign_id cannot be null'); + if (is_null($created_at)) { + throw new \InvalidArgumentException('non-nullable created_at cannot be null'); } - $this->container['campaign_id'] = $campaign_id; + $this->container['created_at'] = $created_at; return $this; } @@ -517,244 +427,28 @@ public function setVoucherId($voucher_id) } /** - * Gets type - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param \OpenAPI\Client\Model\FieldConditions|null $type type - * - * @return self - */ - public function setType($type) - { - if (is_null($type)) { - throw new \InvalidArgumentException('non-nullable type cannot be null'); - } - $this->container['type'] = $type; - - return $this; - } - - /** - * Gets source_id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getSourceId() - { - return $this->container['source_id']; - } - - /** - * Sets source_id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $source_id source_id - * - * @return self - */ - public function setSourceId($source_id) - { - if (is_null($source_id)) { - throw new \InvalidArgumentException('non-nullable source_id cannot be null'); - } - $this->container['source_id'] = $source_id; - - return $this; - } - - /** - * Gets reason - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getReason() - { - return $this->container['reason']; - } - - /** - * Sets reason - * - * @param \OpenAPI\Client\Model\FieldConditions|null $reason reason - * - * @return self - */ - public function setReason($reason) - { - if (is_null($reason)) { - throw new \InvalidArgumentException('non-nullable reason cannot be null'); - } - $this->container['reason'] = $reason; - - return $this; - } - - /** - * Gets source - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getSource() - { - return $this->container['source']; - } - - /** - * Sets source - * - * @param \OpenAPI\Client\Model\FieldConditions|null $source source - * - * @return self - */ - public function setSource($source) - { - if (is_null($source)) { - throw new \InvalidArgumentException('non-nullable source cannot be null'); - } - $this->container['source'] = $source; - - return $this; - } - - /** - * Gets balance - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getBalance() - { - return $this->container['balance']; - } - - /** - * Sets balance - * - * @param \OpenAPI\Client\Model\FieldConditions|null $balance balance - * - * @return self - */ - public function setBalance($balance) - { - if (is_null($balance)) { - throw new \InvalidArgumentException('non-nullable balance cannot be null'); - } - $this->container['balance'] = $balance; - - return $this; - } - - /** - * Gets amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $amount amount - * - * @return self - */ - public function setAmount($amount) - { - if (is_null($amount)) { - throw new \InvalidArgumentException('non-nullable amount cannot be null'); - } - $this->container['amount'] = $amount; - - return $this; - } - - /** - * Gets related_transaction_id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getRelatedTransactionId() - { - return $this->container['related_transaction_id']; - } - - /** - * Sets related_transaction_id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $related_transaction_id related_transaction_id - * - * @return self - */ - public function setRelatedTransactionId($related_transaction_id) - { - if (is_null($related_transaction_id)) { - throw new \InvalidArgumentException('non-nullable related_transaction_id cannot be null'); - } - $this->container['related_transaction_id'] = $related_transaction_id; - - return $this; - } - - /** - * Gets created_at - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getCreatedAt() - { - return $this->container['created_at']; - } - - /** - * Sets created_at - * - * @param \OpenAPI\Client\Model\FieldConditions|null $created_at created_at - * - * @return self - */ - public function setCreatedAt($created_at) - { - if (is_null($created_at)) { - throw new \InvalidArgumentException('non-nullable created_at cannot be null'); - } - $this->container['created_at'] = $created_at; - - return $this; - } - - /** - * Gets details + * Gets campaign_id * * @return \OpenAPI\Client\Model\FieldConditions|null */ - public function getDetails() + public function getCampaignId() { - return $this->container['details']; + return $this->container['campaign_id']; } /** - * Sets details + * Sets campaign_id * - * @param \OpenAPI\Client\Model\FieldConditions|null $details details + * @param \OpenAPI\Client\Model\FieldConditions|null $campaign_id campaign_id * * @return self */ - public function setDetails($details) + public function setCampaignId($campaign_id) { - if (is_null($details)) { - throw new \InvalidArgumentException('non-nullable details cannot be null'); + if (is_null($campaign_id)) { + throw new \InvalidArgumentException('non-nullable campaign_id cannot be null'); } - $this->container['details'] = $details; + $this->container['campaign_id'] = $campaign_id; return $this; } diff --git a/src/Model/ExportsCreateRequestBodyParameters.php b/src/Model/ExportsCreateRequestBodyParameters.php index 43e27d8..c78bb11 100644 --- a/src/Model/ExportsCreateRequestBodyParameters.php +++ b/src/Model/ExportsCreateRequestBodyParameters.php @@ -241,176 +241,32 @@ public function getModelName() return self::$openAPIModelName; } - public const ORDER_CODE = 'code'; - public const ORDER_CODE2 = '-code'; - public const ORDER_VOUCHER_TYPE = 'voucher_type'; - public const ORDER_VOUCHER_TYPE2 = '-voucher_type'; - public const ORDER_VALUE = 'value'; - public const ORDER_VALUE2 = '-value'; - public const ORDER_DISCOUNT_TYPE = 'discount_type'; - public const ORDER_DISCOUNT_TYPE2 = '-discount_type'; - public const ORDER_CAMPAIGN = 'campaign'; - public const ORDER_CAMPAIGN2 = '-campaign'; - public const ORDER_CATEGORY = 'category'; - public const ORDER_CATEGORY2 = '-category'; - public const ORDER_START_DATE = 'start_date'; - public const ORDER_START_DATE2 = '-start_date'; - public const ORDER_EXPIRATION_DATE = 'expiration_date'; - public const ORDER_EXPIRATION_DATE2 = '-expiration_date'; - public const ORDER_GIFT_BALANCE = 'gift_balance'; - public const ORDER_GIFT_BALANCE2 = '-gift_balance'; - public const ORDER_LOYALTY_BALANCE = 'loyalty_balance'; - public const ORDER_LOYALTY_BALANCE2 = '-loyalty_balance'; - public const ORDER_REDEMPTION_QUANTITY = 'redemption_quantity'; - public const ORDER_REDEMPTION_QUANTITY2 = '-redemption_quantity'; - public const ORDER_REDEMPTION_COUNT = 'redemption_count'; - public const ORDER_REDEMPTION_COUNT2 = '-redemption_count'; - public const ORDER_ACTIVE = 'active'; - public const ORDER_ACTIVE2 = '-active'; - public const ORDER_QR_CODE = 'qr_code'; - public const ORDER_QR_CODE2 = '-qr_code'; - public const ORDER_BAR_CODE = 'bar_code'; - public const ORDER_BAR_CODE2 = '-bar_code'; - public const ORDER_METADATA = 'metadata'; - public const ORDER_METADATA2 = '-metadata'; - public const ORDER_ID = 'id'; - public const ORDER_ID2 = '-id'; - public const ORDER_IS_REFERRAL_CODE = 'is_referral_code'; - public const ORDER_IS_REFERRAL_CODE2 = '-is_referral_code'; - public const ORDER_CREATED_AT = 'created_at'; - public const ORDER_CREATED_AT2 = '-created_at'; - public const ORDER_UPDATED_AT = 'updated_at'; - public const ORDER_UPDATED_AT2 = '-updated_at'; - public const ORDER_VALIDITY_TIMEFRAME_INTERVAL = 'validity_timeframe_interval'; - public const ORDER_VALIDITY_TIMEFRAME_INTERVAL2 = '-validity_timeframe_interval'; - public const ORDER_VALIDITY_TIMEFRAME_DURATION = 'validity_timeframe_duration'; - public const ORDER_VALIDITY_TIMEFRAME_DURATION2 = '-validity_timeframe_duration'; - public const ORDER_VALIDITY_DAY_OF_WEEK = 'validity_day_of_week'; - public const ORDER_VALIDITY_DAY_OF_WEEK2 = '-validity_day_of_week'; - public const ORDER_DISCOUNT_AMOUNT_LIMIT = 'discount_amount_limit'; - public const ORDER_DISCOUNT_AMOUNT_LIMIT2 = '-discount_amount_limit'; - public const ORDER_CAMPAIGN_ID = 'campaign_id'; - public const ORDER_CAMPAIGN_ID2 = '-campaign_id'; - public const ORDER_ADDITIONAL_INFO = 'additional_info'; - public const ORDER_ADDITIONAL_INFO2 = '-additional_info'; - public const ORDER_CUSTOMER_ID = 'customer_id'; - public const ORDER_CUSTOMER_ID2 = '-customer_id'; - public const ORDER_DISCOUNT_UNIT_TYPE = 'discount_unit_type'; - public const ORDER_DISCOUNT_UNIT_TYPE2 = '-discount_unit_type'; - public const ORDER_DISCOUNT_UNIT_EFFECT = 'discount_unit_effect'; - public const ORDER_DISCOUNT_UNIT_EFFECT2 = '-discount_unit_effect'; - public const ORDER_CUSTOMER_SOURCE_ID = 'customer_source_id'; - public const ORDER_CUSTOMER_SOURCE_ID2 = '-customer_source_id'; - public const ORDER_OBJECT = 'object'; - public const ORDER_OBJECT2 = '-object'; - public const ORDER_DATE = 'date'; - public const ORDER_DATE2 = '-date'; - public const ORDER_VOUCHER_CODE = 'voucher_code'; - public const ORDER_VOUCHER_CODE2 = '-voucher_code'; - public const ORDER_PROMOTION_TIER_ID = 'promotion_tier_id'; - public const ORDER_PROMOTION_TIER_ID2 = '-promotion_tier_id'; - public const ORDER_CUSTOMER_NAME = 'customer_name'; - public const ORDER_CUSTOMER_NAME2 = '-customer_name'; - public const ORDER_TRACKING_ID = 'tracking_id'; - public const ORDER_TRACKING_ID2 = '-tracking_id'; - public const ORDER_ORDER_AMOUNT = 'order_amount'; - public const ORDER_ORDER_AMOUNT2 = '-order_amount'; - public const ORDER_GIFT_AMOUNT = 'gift_amount'; - public const ORDER_GIFT_AMOUNT2 = '-gift_amount'; - public const ORDER_LOYALTY_POINTS = 'loyalty_points'; - public const ORDER_LOYALTY_POINTS2 = '-loyalty_points'; - public const ORDER_RESULT = 'result'; - public const ORDER_RESULT2 = '-result'; - public const ORDER_FAILURE_CODE = 'failure_code'; - public const ORDER_FAILURE_CODE2 = '-failure_code'; - public const ORDER_FAILURE_MESSAGE = 'failure_message'; - public const ORDER_FAILURE_MESSAGE2 = '-failure_message'; - public const ORDER_NAME = 'name'; - public const ORDER_NAME2 = '-name'; - public const ORDER_DESCRIPTION = 'description'; - public const ORDER_DESCRIPTION2 = '-description'; - public const ORDER_EMAIL = 'email'; - public const ORDER_EMAIL2 = '-email'; - public const ORDER_SOURCE_ID = 'source_id'; - public const ORDER_SOURCE_ID2 = '-source_id'; - public const ORDER_ADDRESS_CITY = 'address_city'; - public const ORDER_ADDRESS_CITY2 = '-address_city'; - public const ORDER_ADDRESS_STATE = 'address_state'; - public const ORDER_ADDRESS_STATE2 = '-address_state'; - public const ORDER_ADDRESS_LINE_1 = 'address_line_1'; - public const ORDER_ADDRESS_LINE_12 = '-address_line_1'; - public const ORDER_ADDRESS_LINE_2 = 'address_line_2'; - public const ORDER_ADDRESS_LINE_22 = '-address_line_2'; - public const ORDER_ADDRESS_COUNTRY = 'address_country'; - public const ORDER_ADDRESS_COUNTRY2 = '-address_country'; - public const ORDER_ADDRESS_POSTAL_CODE = 'address_postal_code'; - public const ORDER_ADDRESS_POSTAL_CODE2 = '-address_postal_code'; - public const ORDER_REDEMPTIONS_TOTAL_REDEEMED = 'redemptions_total_redeemed'; - public const ORDER_REDEMPTIONS_TOTAL_REDEEMED2 = '-redemptions_total_redeemed'; - public const ORDER_REDEMPTIONS_TOTAL_FAILED = 'redemptions_total_failed'; - public const ORDER_REDEMPTIONS_TOTAL_FAILED2 = '-redemptions_total_failed'; - public const ORDER_REDEMPTIONS_TOTAL_SUCCEEDED = 'redemptions_total_succeeded'; - public const ORDER_REDEMPTIONS_TOTAL_SUCCEEDED2 = '-redemptions_total_succeeded'; - public const ORDER_REDEMPTIONS_TOTAL_ROLLED_BACK = 'redemptions_total_rolled_back'; - public const ORDER_REDEMPTIONS_TOTAL_ROLLED_BACK2 = '-redemptions_total_rolled_back'; - public const ORDER_REDEMPTIONS_TOTAL_ROLLBACK_FAILED = 'redemptions_total_rollback_failed'; - public const ORDER_REDEMPTIONS_TOTAL_ROLLBACK_FAILED2 = '-redemptions_total_rollback_failed'; - public const ORDER_REDEMPTIONS_TOTAL_ROLLBACK_SUCCEEDED = 'redemptions_total_rollback_succeeded'; - public const ORDER_REDEMPTIONS_TOTAL_ROLLBACK_SUCCEEDED2 = '-redemptions_total_rollback_succeeded'; - public const ORDER_ORDERS_TOTAL_AMOUNT = 'orders_total_amount'; - public const ORDER_ORDERS_TOTAL_AMOUNT2 = '-orders_total_amount'; - public const ORDER_ORDERS_TOTAL_COUNT = 'orders_total_count'; - public const ORDER_ORDERS_TOTAL_COUNT2 = '-orders_total_count'; - public const ORDER_ORDERS_AVERAGE_AMOUNT = 'orders_average_amount'; - public const ORDER_ORDERS_AVERAGE_AMOUNT2 = '-orders_average_amount'; - public const ORDER_ORDERS_LAST_ORDER_AMOUNT = 'orders_last_order_amount'; - public const ORDER_ORDERS_LAST_ORDER_AMOUNT2 = '-orders_last_order_amount'; - public const ORDER_ORDERS_LAST_ORDER_DATE = 'orders_last_order_date'; - public const ORDER_ORDERS_LAST_ORDER_DATE2 = '-orders_last_order_date'; - public const ORDER_LOYALTY_REFERRED_CUSTOMERS = 'loyalty_referred_customers'; - public const ORDER_LOYALTY_REFERRED_CUSTOMERS2 = '-loyalty_referred_customers'; - public const ORDER_PHONE = 'phone'; - public const ORDER_PHONE2 = '-phone'; - public const ORDER_BIRTHDAY = 'birthday'; - public const ORDER_BIRTHDAY2 = '-birthday'; - public const ORDER_BIRTHDATE = 'birthdate'; - public const ORDER_BIRTHDATE2 = '-birthdate'; - public const ORDER_CHANNEL = 'channel'; - public const ORDER_CHANNEL2 = '-channel'; - public const ORDER_IS_WINNER = 'is_winner'; - public const ORDER_IS_WINNER2 = '-is_winner'; - public const ORDER_STATUS = 'status'; - public const ORDER_STATUS2 = '-status'; - public const ORDER_AMOUNT = 'amount'; - public const ORDER_AMOUNT2 = '-amount'; - public const ORDER_DISCOUNT_AMOUNT = 'discount_amount'; - public const ORDER_DISCOUNT_AMOUNT2 = '-discount_amount'; - public const ORDER_ITEMS_DISCOUNT_AMOUNT = 'items_discount_amount'; - public const ORDER_ITEMS_DISCOUNT_AMOUNT2 = '-items_discount_amount'; - public const ORDER_TOTAL_DISCOUNT_AMOUNT = 'total_discount_amount'; - public const ORDER_TOTAL_DISCOUNT_AMOUNT2 = '-total_discount_amount'; - public const ORDER_TOTAL_AMOUNT = 'total_amount'; - public const ORDER_TOTAL_AMOUNT2 = '-total_amount'; - public const ORDER_REFERRER_ID = 'referrer_id'; - public const ORDER_REFERRER_ID2 = '-referrer_id'; - public const ORDER_VOUCHER_ID = 'voucher_id'; - public const ORDER_VOUCHER_ID2 = '-voucher_id'; - public const ORDER_POINTS = 'points'; - public const ORDER_POINTS2 = '-points'; - public const ORDER_EXPIRES_AT = 'expires_at'; - public const ORDER_EXPIRES_AT2 = '-expires_at'; - public const ORDER_TYPE = 'type'; - public const ORDER_TYPE2 = '-type'; - public const ORDER_REASON = 'reason'; - public const ORDER_REASON2 = '-reason'; - public const ORDER_SOURCE = 'source'; - public const ORDER_SOURCE2 = '-source'; - public const ORDER_BALANCE = 'balance'; - public const ORDER_BALANCE2 = '-balance'; - public const ORDER_RELATED_TRANSACTION_ID = 'related_transaction_id'; - public const ORDER_RELATED_TRANSACTION_ID2 = '-related_transaction_id'; - public const ORDER_DETAILS = 'details'; - public const ORDER_DETAILS2 = '-details'; + public const ORDER_CREATED_AT = '-created_at'; + public const ORDER_CREATED_AT2 = 'created_at'; + public const ORDER_UPDATED_AT = '-updated_at'; + public const ORDER_UPDATED_AT2 = 'updated_at'; + public const ORDER_CODE = '-code'; + public const ORDER_CODE2 = 'code'; + public const ORDER_ID = '-id'; + public const ORDER_ID2 = 'id'; + public const ORDER_VOUCHER_CODE = '-voucher_code'; + public const ORDER_VOUCHER_CODE2 = 'voucher_code'; + public const ORDER_TRACKING_ID = '-tracking_id'; + public const ORDER_TRACKING_ID2 = 'tracking_id'; + public const ORDER_CUSTOMER_ID = '-customer_id'; + public const ORDER_CUSTOMER_ID2 = 'customer_id'; + public const ORDER_NAME = '-name'; + public const ORDER_NAME2 = 'name'; + public const ORDER_EMAIL = '-email'; + public const ORDER_EMAIL2 = 'email'; + public const ORDER_SOURCE_ID = '-source_id'; + public const ORDER_SOURCE_ID2 = 'source_id'; + public const ORDER_CHANNEL = '-channel'; + public const ORDER_CHANNEL2 = 'channel'; + public const ORDER_STATUS = '-status'; + public const ORDER_STATUS2 = 'status'; + public const ORDER_EXPIRES_AT = '-expires_at'; + public const ORDER_EXPIRES_AT2 = 'expires_at'; public const FIELDS_CODE = 'code'; public const FIELDS_VOUCHER_TYPE = 'voucher_type'; public const FIELDS_VALUE = 'value'; @@ -505,176 +361,32 @@ public function getModelName() public function getOrderAllowableValues() { return [ - self::ORDER_CODE, - self::ORDER_CODE2, - self::ORDER_VOUCHER_TYPE, - self::ORDER_VOUCHER_TYPE2, - self::ORDER_VALUE, - self::ORDER_VALUE2, - self::ORDER_DISCOUNT_TYPE, - self::ORDER_DISCOUNT_TYPE2, - self::ORDER_CAMPAIGN, - self::ORDER_CAMPAIGN2, - self::ORDER_CATEGORY, - self::ORDER_CATEGORY2, - self::ORDER_START_DATE, - self::ORDER_START_DATE2, - self::ORDER_EXPIRATION_DATE, - self::ORDER_EXPIRATION_DATE2, - self::ORDER_GIFT_BALANCE, - self::ORDER_GIFT_BALANCE2, - self::ORDER_LOYALTY_BALANCE, - self::ORDER_LOYALTY_BALANCE2, - self::ORDER_REDEMPTION_QUANTITY, - self::ORDER_REDEMPTION_QUANTITY2, - self::ORDER_REDEMPTION_COUNT, - self::ORDER_REDEMPTION_COUNT2, - self::ORDER_ACTIVE, - self::ORDER_ACTIVE2, - self::ORDER_QR_CODE, - self::ORDER_QR_CODE2, - self::ORDER_BAR_CODE, - self::ORDER_BAR_CODE2, - self::ORDER_METADATA, - self::ORDER_METADATA2, - self::ORDER_ID, - self::ORDER_ID2, - self::ORDER_IS_REFERRAL_CODE, - self::ORDER_IS_REFERRAL_CODE2, self::ORDER_CREATED_AT, self::ORDER_CREATED_AT2, self::ORDER_UPDATED_AT, self::ORDER_UPDATED_AT2, - self::ORDER_VALIDITY_TIMEFRAME_INTERVAL, - self::ORDER_VALIDITY_TIMEFRAME_INTERVAL2, - self::ORDER_VALIDITY_TIMEFRAME_DURATION, - self::ORDER_VALIDITY_TIMEFRAME_DURATION2, - self::ORDER_VALIDITY_DAY_OF_WEEK, - self::ORDER_VALIDITY_DAY_OF_WEEK2, - self::ORDER_DISCOUNT_AMOUNT_LIMIT, - self::ORDER_DISCOUNT_AMOUNT_LIMIT2, - self::ORDER_CAMPAIGN_ID, - self::ORDER_CAMPAIGN_ID2, - self::ORDER_ADDITIONAL_INFO, - self::ORDER_ADDITIONAL_INFO2, - self::ORDER_CUSTOMER_ID, - self::ORDER_CUSTOMER_ID2, - self::ORDER_DISCOUNT_UNIT_TYPE, - self::ORDER_DISCOUNT_UNIT_TYPE2, - self::ORDER_DISCOUNT_UNIT_EFFECT, - self::ORDER_DISCOUNT_UNIT_EFFECT2, - self::ORDER_CUSTOMER_SOURCE_ID, - self::ORDER_CUSTOMER_SOURCE_ID2, - self::ORDER_OBJECT, - self::ORDER_OBJECT2, - self::ORDER_DATE, - self::ORDER_DATE2, + self::ORDER_CODE, + self::ORDER_CODE2, + self::ORDER_ID, + self::ORDER_ID2, self::ORDER_VOUCHER_CODE, self::ORDER_VOUCHER_CODE2, - self::ORDER_PROMOTION_TIER_ID, - self::ORDER_PROMOTION_TIER_ID2, - self::ORDER_CUSTOMER_NAME, - self::ORDER_CUSTOMER_NAME2, self::ORDER_TRACKING_ID, self::ORDER_TRACKING_ID2, - self::ORDER_ORDER_AMOUNT, - self::ORDER_ORDER_AMOUNT2, - self::ORDER_GIFT_AMOUNT, - self::ORDER_GIFT_AMOUNT2, - self::ORDER_LOYALTY_POINTS, - self::ORDER_LOYALTY_POINTS2, - self::ORDER_RESULT, - self::ORDER_RESULT2, - self::ORDER_FAILURE_CODE, - self::ORDER_FAILURE_CODE2, - self::ORDER_FAILURE_MESSAGE, - self::ORDER_FAILURE_MESSAGE2, + self::ORDER_CUSTOMER_ID, + self::ORDER_CUSTOMER_ID2, self::ORDER_NAME, self::ORDER_NAME2, - self::ORDER_DESCRIPTION, - self::ORDER_DESCRIPTION2, self::ORDER_EMAIL, self::ORDER_EMAIL2, self::ORDER_SOURCE_ID, self::ORDER_SOURCE_ID2, - self::ORDER_ADDRESS_CITY, - self::ORDER_ADDRESS_CITY2, - self::ORDER_ADDRESS_STATE, - self::ORDER_ADDRESS_STATE2, - self::ORDER_ADDRESS_LINE_1, - self::ORDER_ADDRESS_LINE_12, - self::ORDER_ADDRESS_LINE_2, - self::ORDER_ADDRESS_LINE_22, - self::ORDER_ADDRESS_COUNTRY, - self::ORDER_ADDRESS_COUNTRY2, - self::ORDER_ADDRESS_POSTAL_CODE, - self::ORDER_ADDRESS_POSTAL_CODE2, - self::ORDER_REDEMPTIONS_TOTAL_REDEEMED, - self::ORDER_REDEMPTIONS_TOTAL_REDEEMED2, - self::ORDER_REDEMPTIONS_TOTAL_FAILED, - self::ORDER_REDEMPTIONS_TOTAL_FAILED2, - self::ORDER_REDEMPTIONS_TOTAL_SUCCEEDED, - self::ORDER_REDEMPTIONS_TOTAL_SUCCEEDED2, - self::ORDER_REDEMPTIONS_TOTAL_ROLLED_BACK, - self::ORDER_REDEMPTIONS_TOTAL_ROLLED_BACK2, - self::ORDER_REDEMPTIONS_TOTAL_ROLLBACK_FAILED, - self::ORDER_REDEMPTIONS_TOTAL_ROLLBACK_FAILED2, - self::ORDER_REDEMPTIONS_TOTAL_ROLLBACK_SUCCEEDED, - self::ORDER_REDEMPTIONS_TOTAL_ROLLBACK_SUCCEEDED2, - self::ORDER_ORDERS_TOTAL_AMOUNT, - self::ORDER_ORDERS_TOTAL_AMOUNT2, - self::ORDER_ORDERS_TOTAL_COUNT, - self::ORDER_ORDERS_TOTAL_COUNT2, - self::ORDER_ORDERS_AVERAGE_AMOUNT, - self::ORDER_ORDERS_AVERAGE_AMOUNT2, - self::ORDER_ORDERS_LAST_ORDER_AMOUNT, - self::ORDER_ORDERS_LAST_ORDER_AMOUNT2, - self::ORDER_ORDERS_LAST_ORDER_DATE, - self::ORDER_ORDERS_LAST_ORDER_DATE2, - self::ORDER_LOYALTY_REFERRED_CUSTOMERS, - self::ORDER_LOYALTY_REFERRED_CUSTOMERS2, - self::ORDER_PHONE, - self::ORDER_PHONE2, - self::ORDER_BIRTHDAY, - self::ORDER_BIRTHDAY2, - self::ORDER_BIRTHDATE, - self::ORDER_BIRTHDATE2, self::ORDER_CHANNEL, self::ORDER_CHANNEL2, - self::ORDER_IS_WINNER, - self::ORDER_IS_WINNER2, self::ORDER_STATUS, self::ORDER_STATUS2, - self::ORDER_AMOUNT, - self::ORDER_AMOUNT2, - self::ORDER_DISCOUNT_AMOUNT, - self::ORDER_DISCOUNT_AMOUNT2, - self::ORDER_ITEMS_DISCOUNT_AMOUNT, - self::ORDER_ITEMS_DISCOUNT_AMOUNT2, - self::ORDER_TOTAL_DISCOUNT_AMOUNT, - self::ORDER_TOTAL_DISCOUNT_AMOUNT2, - self::ORDER_TOTAL_AMOUNT, - self::ORDER_TOTAL_AMOUNT2, - self::ORDER_REFERRER_ID, - self::ORDER_REFERRER_ID2, - self::ORDER_VOUCHER_ID, - self::ORDER_VOUCHER_ID2, - self::ORDER_POINTS, - self::ORDER_POINTS2, self::ORDER_EXPIRES_AT, self::ORDER_EXPIRES_AT2, - self::ORDER_TYPE, - self::ORDER_TYPE2, - self::ORDER_REASON, - self::ORDER_REASON2, - self::ORDER_SOURCE, - self::ORDER_SOURCE2, - self::ORDER_BALANCE, - self::ORDER_BALANCE2, - self::ORDER_RELATED_TRANSACTION_ID, - self::ORDER_RELATED_TRANSACTION_ID2, - self::ORDER_DETAILS, - self::ORDER_DETAILS2, ]; } diff --git a/src/Model/ExportsCreateRequestBodyParametersFilters.php b/src/Model/ExportsCreateRequestBodyParametersFilters.php index 7144eef..8596721 100644 --- a/src/Model/ExportsCreateRequestBodyParametersFilters.php +++ b/src/Model/ExportsCreateRequestBodyParametersFilters.php @@ -59,91 +59,9 @@ class ExportsCreateRequestBodyParametersFilters implements ModelInterface, Array */ protected static $openAPITypes = [ 'junction' => 'string', - 'code' => '\OpenAPI\Client\Model\FieldConditions', - 'voucher_type' => '\OpenAPI\Client\Model\FieldConditions', - 'value' => '\OpenAPI\Client\Model\FieldConditions', - 'discount_type' => '\OpenAPI\Client\Model\FieldConditions', - 'campaign' => '\OpenAPI\Client\Model\FieldConditions', - 'category' => '\OpenAPI\Client\Model\FieldConditions', - 'start_date' => '\OpenAPI\Client\Model\FieldConditions', - 'expiration_date' => '\OpenAPI\Client\Model\FieldConditions', - 'gift_balance' => '\OpenAPI\Client\Model\FieldConditions', - 'loyalty_balance' => '\OpenAPI\Client\Model\FieldConditions', - 'redemption_quantity' => '\OpenAPI\Client\Model\FieldConditions', - 'redemption_count' => '\OpenAPI\Client\Model\FieldConditions', - 'active' => '\OpenAPI\Client\Model\FieldConditions', - 'qr_code' => '\OpenAPI\Client\Model\FieldConditions', - 'bar_code' => '\OpenAPI\Client\Model\FieldConditions', - 'metadata' => '\OpenAPI\Client\Model\FieldConditions', - 'id' => '\OpenAPI\Client\Model\FieldConditions', - 'is_referral_code' => '\OpenAPI\Client\Model\FieldConditions', - 'created_at' => '\OpenAPI\Client\Model\FieldConditions', - 'updated_at' => '\OpenAPI\Client\Model\FieldConditions', - 'validity_timeframe_interval' => '\OpenAPI\Client\Model\FieldConditions', - 'validity_timeframe_duration' => '\OpenAPI\Client\Model\FieldConditions', - 'validity_day_of_week' => '\OpenAPI\Client\Model\FieldConditions', - 'discount_amount_limit' => '\OpenAPI\Client\Model\FieldConditions', 'campaign_id' => '\OpenAPI\Client\Model\FieldConditions', - 'additional_info' => '\OpenAPI\Client\Model\FieldConditions', - 'customer_id' => '\OpenAPI\Client\Model\FieldConditions', - 'discount_unit_type' => '\OpenAPI\Client\Model\FieldConditions', - 'discount_unit_effect' => '\OpenAPI\Client\Model\FieldConditions', - 'customer_source_id' => '\OpenAPI\Client\Model\FieldConditions', - 'object' => '\OpenAPI\Client\Model\FieldConditions', - 'date' => '\OpenAPI\Client\Model\FieldConditions', - 'voucher_code' => '\OpenAPI\Client\Model\FieldConditions', - 'promotion_tier_id' => '\OpenAPI\Client\Model\FieldConditions', - 'customer_name' => '\OpenAPI\Client\Model\FieldConditions', - 'tracking_id' => '\OpenAPI\Client\Model\FieldConditions', - 'order_amount' => '\OpenAPI\Client\Model\FieldConditions', - 'gift_amount' => '\OpenAPI\Client\Model\FieldConditions', - 'loyalty_points' => '\OpenAPI\Client\Model\FieldConditions', - 'result' => '\OpenAPI\Client\Model\FieldConditions', - 'failure_code' => '\OpenAPI\Client\Model\FieldConditions', - 'failure_message' => '\OpenAPI\Client\Model\FieldConditions', - 'name' => '\OpenAPI\Client\Model\FieldConditions', - 'description' => '\OpenAPI\Client\Model\FieldConditions', - 'email' => '\OpenAPI\Client\Model\FieldConditions', - 'source_id' => '\OpenAPI\Client\Model\FieldConditions', - 'address_city' => '\OpenAPI\Client\Model\FieldConditions', - 'address_state' => '\OpenAPI\Client\Model\FieldConditions', - 'address_line_1' => '\OpenAPI\Client\Model\FieldConditions', - 'address_line_2' => '\OpenAPI\Client\Model\FieldConditions', - 'address_country' => '\OpenAPI\Client\Model\FieldConditions', - 'address_postal_code' => '\OpenAPI\Client\Model\FieldConditions', - 'redemptions_total_redeemed' => '\OpenAPI\Client\Model\FieldConditions', - 'redemptions_total_failed' => '\OpenAPI\Client\Model\FieldConditions', - 'redemptions_total_succeeded' => '\OpenAPI\Client\Model\FieldConditions', - 'redemptions_total_rolled_back' => '\OpenAPI\Client\Model\FieldConditions', - 'redemptions_total_rollback_failed' => '\OpenAPI\Client\Model\FieldConditions', - 'redemptions_total_rollback_succeeded' => '\OpenAPI\Client\Model\FieldConditions', - 'orders_total_amount' => '\OpenAPI\Client\Model\FieldConditions', - 'orders_total_count' => '\OpenAPI\Client\Model\FieldConditions', - 'orders_average_amount' => '\OpenAPI\Client\Model\FieldConditions', - 'orders_last_order_amount' => '\OpenAPI\Client\Model\FieldConditions', - 'orders_last_order_date' => '\OpenAPI\Client\Model\FieldConditions', - 'loyalty_referred_customers' => '\OpenAPI\Client\Model\FieldConditions', - 'phone' => '\OpenAPI\Client\Model\FieldConditions', - 'birthday' => '\OpenAPI\Client\Model\FieldConditions', - 'birthdate' => '\OpenAPI\Client\Model\FieldConditions', - 'channel' => '\OpenAPI\Client\Model\FieldConditions', - 'is_winner' => '\OpenAPI\Client\Model\FieldConditions', - 'status' => '\OpenAPI\Client\Model\FieldConditions', - 'amount' => '\OpenAPI\Client\Model\FieldConditions', - 'discount_amount' => '\OpenAPI\Client\Model\FieldConditions', - 'items_discount_amount' => '\OpenAPI\Client\Model\FieldConditions', - 'total_discount_amount' => '\OpenAPI\Client\Model\FieldConditions', - 'total_amount' => '\OpenAPI\Client\Model\FieldConditions', - 'referrer_id' => '\OpenAPI\Client\Model\FieldConditions', 'voucher_id' => '\OpenAPI\Client\Model\FieldConditions', - 'points' => '\OpenAPI\Client\Model\FieldConditions', - 'expires_at' => '\OpenAPI\Client\Model\FieldConditions', - 'type' => '\OpenAPI\Client\Model\FieldConditions', - 'reason' => '\OpenAPI\Client\Model\FieldConditions', - 'source' => '\OpenAPI\Client\Model\FieldConditions', - 'balance' => '\OpenAPI\Client\Model\FieldConditions', - 'related_transaction_id' => '\OpenAPI\Client\Model\FieldConditions', - 'details' => '\OpenAPI\Client\Model\FieldConditions' + 'created_at' => '\OpenAPI\Client\Model\FieldConditions' ]; /** @@ -155,91 +73,9 @@ class ExportsCreateRequestBodyParametersFilters implements ModelInterface, Array */ protected static $openAPIFormats = [ 'junction' => null, - 'code' => null, - 'voucher_type' => null, - 'value' => null, - 'discount_type' => null, - 'campaign' => null, - 'category' => null, - 'start_date' => null, - 'expiration_date' => null, - 'gift_balance' => null, - 'loyalty_balance' => null, - 'redemption_quantity' => null, - 'redemption_count' => null, - 'active' => null, - 'qr_code' => null, - 'bar_code' => null, - 'metadata' => null, - 'id' => null, - 'is_referral_code' => null, - 'created_at' => null, - 'updated_at' => null, - 'validity_timeframe_interval' => null, - 'validity_timeframe_duration' => null, - 'validity_day_of_week' => null, - 'discount_amount_limit' => null, 'campaign_id' => null, - 'additional_info' => null, - 'customer_id' => null, - 'discount_unit_type' => null, - 'discount_unit_effect' => null, - 'customer_source_id' => null, - 'object' => null, - 'date' => null, - 'voucher_code' => null, - 'promotion_tier_id' => null, - 'customer_name' => null, - 'tracking_id' => null, - 'order_amount' => null, - 'gift_amount' => null, - 'loyalty_points' => null, - 'result' => null, - 'failure_code' => null, - 'failure_message' => null, - 'name' => null, - 'description' => null, - 'email' => null, - 'source_id' => null, - 'address_city' => null, - 'address_state' => null, - 'address_line_1' => null, - 'address_line_2' => null, - 'address_country' => null, - 'address_postal_code' => null, - 'redemptions_total_redeemed' => null, - 'redemptions_total_failed' => null, - 'redemptions_total_succeeded' => null, - 'redemptions_total_rolled_back' => null, - 'redemptions_total_rollback_failed' => null, - 'redemptions_total_rollback_succeeded' => null, - 'orders_total_amount' => null, - 'orders_total_count' => null, - 'orders_average_amount' => null, - 'orders_last_order_amount' => null, - 'orders_last_order_date' => null, - 'loyalty_referred_customers' => null, - 'phone' => null, - 'birthday' => null, - 'birthdate' => null, - 'channel' => null, - 'is_winner' => null, - 'status' => null, - 'amount' => null, - 'discount_amount' => null, - 'items_discount_amount' => null, - 'total_discount_amount' => null, - 'total_amount' => null, - 'referrer_id' => null, 'voucher_id' => null, - 'points' => null, - 'expires_at' => null, - 'type' => null, - 'reason' => null, - 'source' => null, - 'balance' => null, - 'related_transaction_id' => null, - 'details' => null + 'created_at' => null ]; /** @@ -249,91 +85,9 @@ class ExportsCreateRequestBodyParametersFilters implements ModelInterface, Array */ protected static array $openAPINullables = [ 'junction' => false, - 'code' => false, - 'voucher_type' => false, - 'value' => false, - 'discount_type' => false, - 'campaign' => false, - 'category' => false, - 'start_date' => false, - 'expiration_date' => false, - 'gift_balance' => false, - 'loyalty_balance' => false, - 'redemption_quantity' => false, - 'redemption_count' => false, - 'active' => false, - 'qr_code' => false, - 'bar_code' => false, - 'metadata' => false, - 'id' => false, - 'is_referral_code' => false, - 'created_at' => false, - 'updated_at' => false, - 'validity_timeframe_interval' => false, - 'validity_timeframe_duration' => false, - 'validity_day_of_week' => false, - 'discount_amount_limit' => false, 'campaign_id' => false, - 'additional_info' => false, - 'customer_id' => false, - 'discount_unit_type' => false, - 'discount_unit_effect' => false, - 'customer_source_id' => false, - 'object' => false, - 'date' => false, - 'voucher_code' => false, - 'promotion_tier_id' => false, - 'customer_name' => false, - 'tracking_id' => false, - 'order_amount' => false, - 'gift_amount' => false, - 'loyalty_points' => false, - 'result' => false, - 'failure_code' => false, - 'failure_message' => false, - 'name' => false, - 'description' => false, - 'email' => false, - 'source_id' => false, - 'address_city' => false, - 'address_state' => false, - 'address_line_1' => false, - 'address_line_2' => false, - 'address_country' => false, - 'address_postal_code' => false, - 'redemptions_total_redeemed' => false, - 'redemptions_total_failed' => false, - 'redemptions_total_succeeded' => false, - 'redemptions_total_rolled_back' => false, - 'redemptions_total_rollback_failed' => false, - 'redemptions_total_rollback_succeeded' => false, - 'orders_total_amount' => false, - 'orders_total_count' => false, - 'orders_average_amount' => false, - 'orders_last_order_amount' => false, - 'orders_last_order_date' => false, - 'loyalty_referred_customers' => false, - 'phone' => false, - 'birthday' => false, - 'birthdate' => false, - 'channel' => false, - 'is_winner' => false, - 'status' => false, - 'amount' => false, - 'discount_amount' => false, - 'items_discount_amount' => false, - 'total_discount_amount' => false, - 'total_amount' => false, - 'referrer_id' => false, 'voucher_id' => false, - 'points' => false, - 'expires_at' => false, - 'type' => false, - 'reason' => false, - 'source' => false, - 'balance' => false, - 'related_transaction_id' => false, - 'details' => false + 'created_at' => false ]; /** @@ -423,91 +177,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'junction' => 'junction', - 'code' => 'code', - 'voucher_type' => 'voucher_type', - 'value' => 'value', - 'discount_type' => 'discount_type', - 'campaign' => 'campaign', - 'category' => 'category', - 'start_date' => 'start_date', - 'expiration_date' => 'expiration_date', - 'gift_balance' => 'gift_balance', - 'loyalty_balance' => 'loyalty_balance', - 'redemption_quantity' => 'redemption_quantity', - 'redemption_count' => 'redemption_count', - 'active' => 'active', - 'qr_code' => 'qr_code', - 'bar_code' => 'bar_code', - 'metadata' => 'metadata', - 'id' => 'id', - 'is_referral_code' => 'is_referral_code', - 'created_at' => 'created_at', - 'updated_at' => 'updated_at', - 'validity_timeframe_interval' => 'validity_timeframe_interval', - 'validity_timeframe_duration' => 'validity_timeframe_duration', - 'validity_day_of_week' => 'validity_day_of_week', - 'discount_amount_limit' => 'discount_amount_limit', 'campaign_id' => 'campaign_id', - 'additional_info' => 'additional_info', - 'customer_id' => 'customer_id', - 'discount_unit_type' => 'discount_unit_type', - 'discount_unit_effect' => 'discount_unit_effect', - 'customer_source_id' => 'customer_source_id', - 'object' => 'object', - 'date' => 'date', - 'voucher_code' => 'voucher_code', - 'promotion_tier_id' => 'promotion_tier_id', - 'customer_name' => 'customer_name', - 'tracking_id' => 'tracking_id', - 'order_amount' => 'order_amount', - 'gift_amount' => 'gift_amount', - 'loyalty_points' => 'loyalty_points', - 'result' => 'result', - 'failure_code' => 'failure_code', - 'failure_message' => 'failure_message', - 'name' => 'name', - 'description' => 'description', - 'email' => 'email', - 'source_id' => 'source_id', - 'address_city' => 'address_city', - 'address_state' => 'address_state', - 'address_line_1' => 'address_line_1', - 'address_line_2' => 'address_line_2', - 'address_country' => 'address_country', - 'address_postal_code' => 'address_postal_code', - 'redemptions_total_redeemed' => 'redemptions_total_redeemed', - 'redemptions_total_failed' => 'redemptions_total_failed', - 'redemptions_total_succeeded' => 'redemptions_total_succeeded', - 'redemptions_total_rolled_back' => 'redemptions_total_rolled_back', - 'redemptions_total_rollback_failed' => 'redemptions_total_rollback_failed', - 'redemptions_total_rollback_succeeded' => 'redemptions_total_rollback_succeeded', - 'orders_total_amount' => 'orders_total_amount', - 'orders_total_count' => 'orders_total_count', - 'orders_average_amount' => 'orders_average_amount', - 'orders_last_order_amount' => 'orders_last_order_amount', - 'orders_last_order_date' => 'orders_last_order_date', - 'loyalty_referred_customers' => 'loyalty_referred_customers', - 'phone' => 'phone', - 'birthday' => 'birthday', - 'birthdate' => 'birthdate', - 'channel' => 'channel', - 'is_winner' => 'is_winner', - 'status' => 'status', - 'amount' => 'amount', - 'discount_amount' => 'discount_amount', - 'items_discount_amount' => 'items_discount_amount', - 'total_discount_amount' => 'total_discount_amount', - 'total_amount' => 'total_amount', - 'referrer_id' => 'referrer_id', 'voucher_id' => 'voucher_id', - 'points' => 'points', - 'expires_at' => 'expires_at', - 'type' => 'type', - 'reason' => 'reason', - 'source' => 'source', - 'balance' => 'balance', - 'related_transaction_id' => 'related_transaction_id', - 'details' => 'details' + 'created_at' => 'created_at' ]; /** @@ -517,91 +189,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'junction' => 'setJunction', - 'code' => 'setCode', - 'voucher_type' => 'setVoucherType', - 'value' => 'setValue', - 'discount_type' => 'setDiscountType', - 'campaign' => 'setCampaign', - 'category' => 'setCategory', - 'start_date' => 'setStartDate', - 'expiration_date' => 'setExpirationDate', - 'gift_balance' => 'setGiftBalance', - 'loyalty_balance' => 'setLoyaltyBalance', - 'redemption_quantity' => 'setRedemptionQuantity', - 'redemption_count' => 'setRedemptionCount', - 'active' => 'setActive', - 'qr_code' => 'setQrCode', - 'bar_code' => 'setBarCode', - 'metadata' => 'setMetadata', - 'id' => 'setId', - 'is_referral_code' => 'setIsReferralCode', - 'created_at' => 'setCreatedAt', - 'updated_at' => 'setUpdatedAt', - 'validity_timeframe_interval' => 'setValidityTimeframeInterval', - 'validity_timeframe_duration' => 'setValidityTimeframeDuration', - 'validity_day_of_week' => 'setValidityDayOfWeek', - 'discount_amount_limit' => 'setDiscountAmountLimit', 'campaign_id' => 'setCampaignId', - 'additional_info' => 'setAdditionalInfo', - 'customer_id' => 'setCustomerId', - 'discount_unit_type' => 'setDiscountUnitType', - 'discount_unit_effect' => 'setDiscountUnitEffect', - 'customer_source_id' => 'setCustomerSourceId', - 'object' => 'setObject', - 'date' => 'setDate', - 'voucher_code' => 'setVoucherCode', - 'promotion_tier_id' => 'setPromotionTierId', - 'customer_name' => 'setCustomerName', - 'tracking_id' => 'setTrackingId', - 'order_amount' => 'setOrderAmount', - 'gift_amount' => 'setGiftAmount', - 'loyalty_points' => 'setLoyaltyPoints', - 'result' => 'setResult', - 'failure_code' => 'setFailureCode', - 'failure_message' => 'setFailureMessage', - 'name' => 'setName', - 'description' => 'setDescription', - 'email' => 'setEmail', - 'source_id' => 'setSourceId', - 'address_city' => 'setAddressCity', - 'address_state' => 'setAddressState', - 'address_line_1' => 'setAddressLine1', - 'address_line_2' => 'setAddressLine2', - 'address_country' => 'setAddressCountry', - 'address_postal_code' => 'setAddressPostalCode', - 'redemptions_total_redeemed' => 'setRedemptionsTotalRedeemed', - 'redemptions_total_failed' => 'setRedemptionsTotalFailed', - 'redemptions_total_succeeded' => 'setRedemptionsTotalSucceeded', - 'redemptions_total_rolled_back' => 'setRedemptionsTotalRolledBack', - 'redemptions_total_rollback_failed' => 'setRedemptionsTotalRollbackFailed', - 'redemptions_total_rollback_succeeded' => 'setRedemptionsTotalRollbackSucceeded', - 'orders_total_amount' => 'setOrdersTotalAmount', - 'orders_total_count' => 'setOrdersTotalCount', - 'orders_average_amount' => 'setOrdersAverageAmount', - 'orders_last_order_amount' => 'setOrdersLastOrderAmount', - 'orders_last_order_date' => 'setOrdersLastOrderDate', - 'loyalty_referred_customers' => 'setLoyaltyReferredCustomers', - 'phone' => 'setPhone', - 'birthday' => 'setBirthday', - 'birthdate' => 'setBirthdate', - 'channel' => 'setChannel', - 'is_winner' => 'setIsWinner', - 'status' => 'setStatus', - 'amount' => 'setAmount', - 'discount_amount' => 'setDiscountAmount', - 'items_discount_amount' => 'setItemsDiscountAmount', - 'total_discount_amount' => 'setTotalDiscountAmount', - 'total_amount' => 'setTotalAmount', - 'referrer_id' => 'setReferrerId', 'voucher_id' => 'setVoucherId', - 'points' => 'setPoints', - 'expires_at' => 'setExpiresAt', - 'type' => 'setType', - 'reason' => 'setReason', - 'source' => 'setSource', - 'balance' => 'setBalance', - 'related_transaction_id' => 'setRelatedTransactionId', - 'details' => 'setDetails' + 'created_at' => 'setCreatedAt' ]; /** @@ -611,91 +201,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'junction' => 'getJunction', - 'code' => 'getCode', - 'voucher_type' => 'getVoucherType', - 'value' => 'getValue', - 'discount_type' => 'getDiscountType', - 'campaign' => 'getCampaign', - 'category' => 'getCategory', - 'start_date' => 'getStartDate', - 'expiration_date' => 'getExpirationDate', - 'gift_balance' => 'getGiftBalance', - 'loyalty_balance' => 'getLoyaltyBalance', - 'redemption_quantity' => 'getRedemptionQuantity', - 'redemption_count' => 'getRedemptionCount', - 'active' => 'getActive', - 'qr_code' => 'getQrCode', - 'bar_code' => 'getBarCode', - 'metadata' => 'getMetadata', - 'id' => 'getId', - 'is_referral_code' => 'getIsReferralCode', - 'created_at' => 'getCreatedAt', - 'updated_at' => 'getUpdatedAt', - 'validity_timeframe_interval' => 'getValidityTimeframeInterval', - 'validity_timeframe_duration' => 'getValidityTimeframeDuration', - 'validity_day_of_week' => 'getValidityDayOfWeek', - 'discount_amount_limit' => 'getDiscountAmountLimit', 'campaign_id' => 'getCampaignId', - 'additional_info' => 'getAdditionalInfo', - 'customer_id' => 'getCustomerId', - 'discount_unit_type' => 'getDiscountUnitType', - 'discount_unit_effect' => 'getDiscountUnitEffect', - 'customer_source_id' => 'getCustomerSourceId', - 'object' => 'getObject', - 'date' => 'getDate', - 'voucher_code' => 'getVoucherCode', - 'promotion_tier_id' => 'getPromotionTierId', - 'customer_name' => 'getCustomerName', - 'tracking_id' => 'getTrackingId', - 'order_amount' => 'getOrderAmount', - 'gift_amount' => 'getGiftAmount', - 'loyalty_points' => 'getLoyaltyPoints', - 'result' => 'getResult', - 'failure_code' => 'getFailureCode', - 'failure_message' => 'getFailureMessage', - 'name' => 'getName', - 'description' => 'getDescription', - 'email' => 'getEmail', - 'source_id' => 'getSourceId', - 'address_city' => 'getAddressCity', - 'address_state' => 'getAddressState', - 'address_line_1' => 'getAddressLine1', - 'address_line_2' => 'getAddressLine2', - 'address_country' => 'getAddressCountry', - 'address_postal_code' => 'getAddressPostalCode', - 'redemptions_total_redeemed' => 'getRedemptionsTotalRedeemed', - 'redemptions_total_failed' => 'getRedemptionsTotalFailed', - 'redemptions_total_succeeded' => 'getRedemptionsTotalSucceeded', - 'redemptions_total_rolled_back' => 'getRedemptionsTotalRolledBack', - 'redemptions_total_rollback_failed' => 'getRedemptionsTotalRollbackFailed', - 'redemptions_total_rollback_succeeded' => 'getRedemptionsTotalRollbackSucceeded', - 'orders_total_amount' => 'getOrdersTotalAmount', - 'orders_total_count' => 'getOrdersTotalCount', - 'orders_average_amount' => 'getOrdersAverageAmount', - 'orders_last_order_amount' => 'getOrdersLastOrderAmount', - 'orders_last_order_date' => 'getOrdersLastOrderDate', - 'loyalty_referred_customers' => 'getLoyaltyReferredCustomers', - 'phone' => 'getPhone', - 'birthday' => 'getBirthday', - 'birthdate' => 'getBirthdate', - 'channel' => 'getChannel', - 'is_winner' => 'getIsWinner', - 'status' => 'getStatus', - 'amount' => 'getAmount', - 'discount_amount' => 'getDiscountAmount', - 'items_discount_amount' => 'getItemsDiscountAmount', - 'total_discount_amount' => 'getTotalDiscountAmount', - 'total_amount' => 'getTotalAmount', - 'referrer_id' => 'getReferrerId', 'voucher_id' => 'getVoucherId', - 'points' => 'getPoints', - 'expires_at' => 'getExpiresAt', - 'type' => 'getType', - 'reason' => 'getReason', - 'source' => 'getSource', - 'balance' => 'getBalance', - 'related_transaction_id' => 'getRelatedTransactionId', - 'details' => 'getDetails' + 'created_at' => 'getCreatedAt' ]; /** @@ -771,91 +279,9 @@ public function getJunctionAllowableValues() public function __construct(array $data = null) { $this->setIfExists('junction', $data ?? [], null); - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('voucher_type', $data ?? [], null); - $this->setIfExists('value', $data ?? [], null); - $this->setIfExists('discount_type', $data ?? [], null); - $this->setIfExists('campaign', $data ?? [], null); - $this->setIfExists('category', $data ?? [], null); - $this->setIfExists('start_date', $data ?? [], null); - $this->setIfExists('expiration_date', $data ?? [], null); - $this->setIfExists('gift_balance', $data ?? [], null); - $this->setIfExists('loyalty_balance', $data ?? [], null); - $this->setIfExists('redemption_quantity', $data ?? [], null); - $this->setIfExists('redemption_count', $data ?? [], null); - $this->setIfExists('active', $data ?? [], null); - $this->setIfExists('qr_code', $data ?? [], null); - $this->setIfExists('bar_code', $data ?? [], null); - $this->setIfExists('metadata', $data ?? [], null); - $this->setIfExists('id', $data ?? [], null); - $this->setIfExists('is_referral_code', $data ?? [], null); - $this->setIfExists('created_at', $data ?? [], null); - $this->setIfExists('updated_at', $data ?? [], null); - $this->setIfExists('validity_timeframe_interval', $data ?? [], null); - $this->setIfExists('validity_timeframe_duration', $data ?? [], null); - $this->setIfExists('validity_day_of_week', $data ?? [], null); - $this->setIfExists('discount_amount_limit', $data ?? [], null); $this->setIfExists('campaign_id', $data ?? [], null); - $this->setIfExists('additional_info', $data ?? [], null); - $this->setIfExists('customer_id', $data ?? [], null); - $this->setIfExists('discount_unit_type', $data ?? [], null); - $this->setIfExists('discount_unit_effect', $data ?? [], null); - $this->setIfExists('customer_source_id', $data ?? [], null); - $this->setIfExists('object', $data ?? [], null); - $this->setIfExists('date', $data ?? [], null); - $this->setIfExists('voucher_code', $data ?? [], null); - $this->setIfExists('promotion_tier_id', $data ?? [], null); - $this->setIfExists('customer_name', $data ?? [], null); - $this->setIfExists('tracking_id', $data ?? [], null); - $this->setIfExists('order_amount', $data ?? [], null); - $this->setIfExists('gift_amount', $data ?? [], null); - $this->setIfExists('loyalty_points', $data ?? [], null); - $this->setIfExists('result', $data ?? [], null); - $this->setIfExists('failure_code', $data ?? [], null); - $this->setIfExists('failure_message', $data ?? [], null); - $this->setIfExists('name', $data ?? [], null); - $this->setIfExists('description', $data ?? [], null); - $this->setIfExists('email', $data ?? [], null); - $this->setIfExists('source_id', $data ?? [], null); - $this->setIfExists('address_city', $data ?? [], null); - $this->setIfExists('address_state', $data ?? [], null); - $this->setIfExists('address_line_1', $data ?? [], null); - $this->setIfExists('address_line_2', $data ?? [], null); - $this->setIfExists('address_country', $data ?? [], null); - $this->setIfExists('address_postal_code', $data ?? [], null); - $this->setIfExists('redemptions_total_redeemed', $data ?? [], null); - $this->setIfExists('redemptions_total_failed', $data ?? [], null); - $this->setIfExists('redemptions_total_succeeded', $data ?? [], null); - $this->setIfExists('redemptions_total_rolled_back', $data ?? [], null); - $this->setIfExists('redemptions_total_rollback_failed', $data ?? [], null); - $this->setIfExists('redemptions_total_rollback_succeeded', $data ?? [], null); - $this->setIfExists('orders_total_amount', $data ?? [], null); - $this->setIfExists('orders_total_count', $data ?? [], null); - $this->setIfExists('orders_average_amount', $data ?? [], null); - $this->setIfExists('orders_last_order_amount', $data ?? [], null); - $this->setIfExists('orders_last_order_date', $data ?? [], null); - $this->setIfExists('loyalty_referred_customers', $data ?? [], null); - $this->setIfExists('phone', $data ?? [], null); - $this->setIfExists('birthday', $data ?? [], null); - $this->setIfExists('birthdate', $data ?? [], null); - $this->setIfExists('channel', $data ?? [], null); - $this->setIfExists('is_winner', $data ?? [], null); - $this->setIfExists('status', $data ?? [], null); - $this->setIfExists('amount', $data ?? [], null); - $this->setIfExists('discount_amount', $data ?? [], null); - $this->setIfExists('items_discount_amount', $data ?? [], null); - $this->setIfExists('total_discount_amount', $data ?? [], null); - $this->setIfExists('total_amount', $data ?? [], null); - $this->setIfExists('referrer_id', $data ?? [], null); $this->setIfExists('voucher_id', $data ?? [], null); - $this->setIfExists('points', $data ?? [], null); - $this->setIfExists('expires_at', $data ?? [], null); - $this->setIfExists('type', $data ?? [], null); - $this->setIfExists('reason', $data ?? [], null); - $this->setIfExists('source', $data ?? [], null); - $this->setIfExists('balance', $data ?? [], null); - $this->setIfExists('related_transaction_id', $data ?? [], null); - $this->setIfExists('details', $data ?? [], null); + $this->setIfExists('created_at', $data ?? [], null); } /** @@ -947,2299 +373,85 @@ public function setJunction($junction) } /** - * Gets code - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param \OpenAPI\Client\Model\FieldConditions|null $code code - * - * @return self - */ - public function setCode($code) - { - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets voucher_type - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getVoucherType() - { - return $this->container['voucher_type']; - } - - /** - * Sets voucher_type - * - * @param \OpenAPI\Client\Model\FieldConditions|null $voucher_type voucher_type - * - * @return self - */ - public function setVoucherType($voucher_type) - { - if (is_null($voucher_type)) { - throw new \InvalidArgumentException('non-nullable voucher_type cannot be null'); - } - $this->container['voucher_type'] = $voucher_type; - - return $this; - } - - /** - * Gets value - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param \OpenAPI\Client\Model\FieldConditions|null $value value - * - * @return self - */ - public function setValue($value) - { - if (is_null($value)) { - throw new \InvalidArgumentException('non-nullable value cannot be null'); - } - $this->container['value'] = $value; - - return $this; - } - - /** - * Gets discount_type - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getDiscountType() - { - return $this->container['discount_type']; - } - - /** - * Sets discount_type - * - * @param \OpenAPI\Client\Model\FieldConditions|null $discount_type discount_type - * - * @return self - */ - public function setDiscountType($discount_type) - { - if (is_null($discount_type)) { - throw new \InvalidArgumentException('non-nullable discount_type cannot be null'); - } - $this->container['discount_type'] = $discount_type; - - return $this; - } - - /** - * Gets campaign - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getCampaign() - { - return $this->container['campaign']; - } - - /** - * Sets campaign - * - * @param \OpenAPI\Client\Model\FieldConditions|null $campaign campaign - * - * @return self - */ - public function setCampaign($campaign) - { - if (is_null($campaign)) { - throw new \InvalidArgumentException('non-nullable campaign cannot be null'); - } - $this->container['campaign'] = $campaign; - - return $this; - } - - /** - * Gets category - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getCategory() - { - return $this->container['category']; - } - - /** - * Sets category - * - * @param \OpenAPI\Client\Model\FieldConditions|null $category category - * - * @return self - */ - public function setCategory($category) - { - if (is_null($category)) { - throw new \InvalidArgumentException('non-nullable category cannot be null'); - } - $this->container['category'] = $category; - - return $this; - } - - /** - * Gets start_date - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getStartDate() - { - return $this->container['start_date']; - } - - /** - * Sets start_date - * - * @param \OpenAPI\Client\Model\FieldConditions|null $start_date start_date - * - * @return self - */ - public function setStartDate($start_date) - { - if (is_null($start_date)) { - throw new \InvalidArgumentException('non-nullable start_date cannot be null'); - } - $this->container['start_date'] = $start_date; - - return $this; - } - - /** - * Gets expiration_date - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getExpirationDate() - { - return $this->container['expiration_date']; - } - - /** - * Sets expiration_date - * - * @param \OpenAPI\Client\Model\FieldConditions|null $expiration_date expiration_date - * - * @return self - */ - public function setExpirationDate($expiration_date) - { - if (is_null($expiration_date)) { - throw new \InvalidArgumentException('non-nullable expiration_date cannot be null'); - } - $this->container['expiration_date'] = $expiration_date; - - return $this; - } - - /** - * Gets gift_balance - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getGiftBalance() - { - return $this->container['gift_balance']; - } - - /** - * Sets gift_balance - * - * @param \OpenAPI\Client\Model\FieldConditions|null $gift_balance gift_balance - * - * @return self - */ - public function setGiftBalance($gift_balance) - { - if (is_null($gift_balance)) { - throw new \InvalidArgumentException('non-nullable gift_balance cannot be null'); - } - $this->container['gift_balance'] = $gift_balance; - - return $this; - } - - /** - * Gets loyalty_balance - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getLoyaltyBalance() - { - return $this->container['loyalty_balance']; - } - - /** - * Sets loyalty_balance - * - * @param \OpenAPI\Client\Model\FieldConditions|null $loyalty_balance loyalty_balance - * - * @return self - */ - public function setLoyaltyBalance($loyalty_balance) - { - if (is_null($loyalty_balance)) { - throw new \InvalidArgumentException('non-nullable loyalty_balance cannot be null'); - } - $this->container['loyalty_balance'] = $loyalty_balance; - - return $this; - } - - /** - * Gets redemption_quantity - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getRedemptionQuantity() - { - return $this->container['redemption_quantity']; - } - - /** - * Sets redemption_quantity - * - * @param \OpenAPI\Client\Model\FieldConditions|null $redemption_quantity redemption_quantity - * - * @return self - */ - public function setRedemptionQuantity($redemption_quantity) - { - if (is_null($redemption_quantity)) { - throw new \InvalidArgumentException('non-nullable redemption_quantity cannot be null'); - } - $this->container['redemption_quantity'] = $redemption_quantity; - - return $this; - } - - /** - * Gets redemption_count - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getRedemptionCount() - { - return $this->container['redemption_count']; - } - - /** - * Sets redemption_count - * - * @param \OpenAPI\Client\Model\FieldConditions|null $redemption_count redemption_count - * - * @return self - */ - public function setRedemptionCount($redemption_count) - { - if (is_null($redemption_count)) { - throw new \InvalidArgumentException('non-nullable redemption_count cannot be null'); - } - $this->container['redemption_count'] = $redemption_count; - - return $this; - } - - /** - * Gets active + * Gets campaign_id * * @return \OpenAPI\Client\Model\FieldConditions|null */ - public function getActive() + public function getCampaignId() { - return $this->container['active']; + return $this->container['campaign_id']; } /** - * Sets active + * Sets campaign_id * - * @param \OpenAPI\Client\Model\FieldConditions|null $active active + * @param \OpenAPI\Client\Model\FieldConditions|null $campaign_id campaign_id * * @return self */ - public function setActive($active) + public function setCampaignId($campaign_id) { - if (is_null($active)) { - throw new \InvalidArgumentException('non-nullable active cannot be null'); + if (is_null($campaign_id)) { + throw new \InvalidArgumentException('non-nullable campaign_id cannot be null'); } - $this->container['active'] = $active; + $this->container['campaign_id'] = $campaign_id; return $this; } /** - * Gets qr_code + * Gets voucher_id * * @return \OpenAPI\Client\Model\FieldConditions|null */ - public function getQrCode() + public function getVoucherId() { - return $this->container['qr_code']; + return $this->container['voucher_id']; } /** - * Sets qr_code + * Sets voucher_id * - * @param \OpenAPI\Client\Model\FieldConditions|null $qr_code qr_code + * @param \OpenAPI\Client\Model\FieldConditions|null $voucher_id voucher_id * * @return self */ - public function setQrCode($qr_code) + public function setVoucherId($voucher_id) { - if (is_null($qr_code)) { - throw new \InvalidArgumentException('non-nullable qr_code cannot be null'); + if (is_null($voucher_id)) { + throw new \InvalidArgumentException('non-nullable voucher_id cannot be null'); } - $this->container['qr_code'] = $qr_code; + $this->container['voucher_id'] = $voucher_id; return $this; } /** - * Gets bar_code + * Gets created_at * * @return \OpenAPI\Client\Model\FieldConditions|null */ - public function getBarCode() + public function getCreatedAt() { - return $this->container['bar_code']; + return $this->container['created_at']; } /** - * Sets bar_code + * Sets created_at * - * @param \OpenAPI\Client\Model\FieldConditions|null $bar_code bar_code + * @param \OpenAPI\Client\Model\FieldConditions|null $created_at created_at * * @return self */ - public function setBarCode($bar_code) + public function setCreatedAt($created_at) { - if (is_null($bar_code)) { - throw new \InvalidArgumentException('non-nullable bar_code cannot be null'); - } - $this->container['bar_code'] = $bar_code; - - return $this; - } - - /** - * Gets metadata - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getMetadata() - { - return $this->container['metadata']; - } - - /** - * Sets metadata - * - * @param \OpenAPI\Client\Model\FieldConditions|null $metadata metadata - * - * @return self - */ - public function setMetadata($metadata) - { - if (is_null($metadata)) { - throw new \InvalidArgumentException('non-nullable metadata cannot be null'); - } - $this->container['metadata'] = $metadata; - - return $this; - } - - /** - * Gets id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $id id - * - * @return self - */ - public function setId($id) - { - if (is_null($id)) { - throw new \InvalidArgumentException('non-nullable id cannot be null'); - } - $this->container['id'] = $id; - - return $this; - } - - /** - * Gets is_referral_code - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getIsReferralCode() - { - return $this->container['is_referral_code']; - } - - /** - * Sets is_referral_code - * - * @param \OpenAPI\Client\Model\FieldConditions|null $is_referral_code is_referral_code - * - * @return self - */ - public function setIsReferralCode($is_referral_code) - { - if (is_null($is_referral_code)) { - throw new \InvalidArgumentException('non-nullable is_referral_code cannot be null'); - } - $this->container['is_referral_code'] = $is_referral_code; - - return $this; - } - - /** - * Gets created_at - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getCreatedAt() - { - return $this->container['created_at']; - } - - /** - * Sets created_at - * - * @param \OpenAPI\Client\Model\FieldConditions|null $created_at created_at - * - * @return self - */ - public function setCreatedAt($created_at) - { - if (is_null($created_at)) { - throw new \InvalidArgumentException('non-nullable created_at cannot be null'); + if (is_null($created_at)) { + throw new \InvalidArgumentException('non-nullable created_at cannot be null'); } $this->container['created_at'] = $created_at; return $this; } - - /** - * Gets updated_at - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getUpdatedAt() - { - return $this->container['updated_at']; - } - - /** - * Sets updated_at - * - * @param \OpenAPI\Client\Model\FieldConditions|null $updated_at updated_at - * - * @return self - */ - public function setUpdatedAt($updated_at) - { - if (is_null($updated_at)) { - throw new \InvalidArgumentException('non-nullable updated_at cannot be null'); - } - $this->container['updated_at'] = $updated_at; - - return $this; - } - - /** - * Gets validity_timeframe_interval - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getValidityTimeframeInterval() - { - return $this->container['validity_timeframe_interval']; - } - - /** - * Sets validity_timeframe_interval - * - * @param \OpenAPI\Client\Model\FieldConditions|null $validity_timeframe_interval validity_timeframe_interval - * - * @return self - */ - public function setValidityTimeframeInterval($validity_timeframe_interval) - { - if (is_null($validity_timeframe_interval)) { - throw new \InvalidArgumentException('non-nullable validity_timeframe_interval cannot be null'); - } - $this->container['validity_timeframe_interval'] = $validity_timeframe_interval; - - return $this; - } - - /** - * Gets validity_timeframe_duration - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getValidityTimeframeDuration() - { - return $this->container['validity_timeframe_duration']; - } - - /** - * Sets validity_timeframe_duration - * - * @param \OpenAPI\Client\Model\FieldConditions|null $validity_timeframe_duration validity_timeframe_duration - * - * @return self - */ - public function setValidityTimeframeDuration($validity_timeframe_duration) - { - if (is_null($validity_timeframe_duration)) { - throw new \InvalidArgumentException('non-nullable validity_timeframe_duration cannot be null'); - } - $this->container['validity_timeframe_duration'] = $validity_timeframe_duration; - - return $this; - } - - /** - * Gets validity_day_of_week - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getValidityDayOfWeek() - { - return $this->container['validity_day_of_week']; - } - - /** - * Sets validity_day_of_week - * - * @param \OpenAPI\Client\Model\FieldConditions|null $validity_day_of_week validity_day_of_week - * - * @return self - */ - public function setValidityDayOfWeek($validity_day_of_week) - { - if (is_null($validity_day_of_week)) { - throw new \InvalidArgumentException('non-nullable validity_day_of_week cannot be null'); - } - $this->container['validity_day_of_week'] = $validity_day_of_week; - - return $this; - } - - /** - * Gets discount_amount_limit - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getDiscountAmountLimit() - { - return $this->container['discount_amount_limit']; - } - - /** - * Sets discount_amount_limit - * - * @param \OpenAPI\Client\Model\FieldConditions|null $discount_amount_limit discount_amount_limit - * - * @return self - */ - public function setDiscountAmountLimit($discount_amount_limit) - { - if (is_null($discount_amount_limit)) { - throw new \InvalidArgumentException('non-nullable discount_amount_limit cannot be null'); - } - $this->container['discount_amount_limit'] = $discount_amount_limit; - - return $this; - } - - /** - * Gets campaign_id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getCampaignId() - { - return $this->container['campaign_id']; - } - - /** - * Sets campaign_id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $campaign_id campaign_id - * - * @return self - */ - public function setCampaignId($campaign_id) - { - if (is_null($campaign_id)) { - throw new \InvalidArgumentException('non-nullable campaign_id cannot be null'); - } - $this->container['campaign_id'] = $campaign_id; - - return $this; - } - - /** - * Gets additional_info - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getAdditionalInfo() - { - return $this->container['additional_info']; - } - - /** - * Sets additional_info - * - * @param \OpenAPI\Client\Model\FieldConditions|null $additional_info additional_info - * - * @return self - */ - public function setAdditionalInfo($additional_info) - { - if (is_null($additional_info)) { - throw new \InvalidArgumentException('non-nullable additional_info cannot be null'); - } - $this->container['additional_info'] = $additional_info; - - return $this; - } - - /** - * Gets customer_id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getCustomerId() - { - return $this->container['customer_id']; - } - - /** - * Sets customer_id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $customer_id customer_id - * - * @return self - */ - public function setCustomerId($customer_id) - { - if (is_null($customer_id)) { - throw new \InvalidArgumentException('non-nullable customer_id cannot be null'); - } - $this->container['customer_id'] = $customer_id; - - return $this; - } - - /** - * Gets discount_unit_type - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getDiscountUnitType() - { - return $this->container['discount_unit_type']; - } - - /** - * Sets discount_unit_type - * - * @param \OpenAPI\Client\Model\FieldConditions|null $discount_unit_type discount_unit_type - * - * @return self - */ - public function setDiscountUnitType($discount_unit_type) - { - if (is_null($discount_unit_type)) { - throw new \InvalidArgumentException('non-nullable discount_unit_type cannot be null'); - } - $this->container['discount_unit_type'] = $discount_unit_type; - - return $this; - } - - /** - * Gets discount_unit_effect - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getDiscountUnitEffect() - { - return $this->container['discount_unit_effect']; - } - - /** - * Sets discount_unit_effect - * - * @param \OpenAPI\Client\Model\FieldConditions|null $discount_unit_effect discount_unit_effect - * - * @return self - */ - public function setDiscountUnitEffect($discount_unit_effect) - { - if (is_null($discount_unit_effect)) { - throw new \InvalidArgumentException('non-nullable discount_unit_effect cannot be null'); - } - $this->container['discount_unit_effect'] = $discount_unit_effect; - - return $this; - } - - /** - * Gets customer_source_id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getCustomerSourceId() - { - return $this->container['customer_source_id']; - } - - /** - * Sets customer_source_id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $customer_source_id customer_source_id - * - * @return self - */ - public function setCustomerSourceId($customer_source_id) - { - if (is_null($customer_source_id)) { - throw new \InvalidArgumentException('non-nullable customer_source_id cannot be null'); - } - $this->container['customer_source_id'] = $customer_source_id; - - return $this; - } - - /** - * Gets object - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getObject() - { - return $this->container['object']; - } - - /** - * Sets object - * - * @param \OpenAPI\Client\Model\FieldConditions|null $object object - * - * @return self - */ - public function setObject($object) - { - if (is_null($object)) { - throw new \InvalidArgumentException('non-nullable object cannot be null'); - } - $this->container['object'] = $object; - - return $this; - } - - /** - * Gets date - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getDate() - { - return $this->container['date']; - } - - /** - * Sets date - * - * @param \OpenAPI\Client\Model\FieldConditions|null $date date - * - * @return self - */ - public function setDate($date) - { - if (is_null($date)) { - throw new \InvalidArgumentException('non-nullable date cannot be null'); - } - $this->container['date'] = $date; - - return $this; - } - - /** - * Gets voucher_code - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getVoucherCode() - { - return $this->container['voucher_code']; - } - - /** - * Sets voucher_code - * - * @param \OpenAPI\Client\Model\FieldConditions|null $voucher_code voucher_code - * - * @return self - */ - public function setVoucherCode($voucher_code) - { - if (is_null($voucher_code)) { - throw new \InvalidArgumentException('non-nullable voucher_code cannot be null'); - } - $this->container['voucher_code'] = $voucher_code; - - return $this; - } - - /** - * Gets promotion_tier_id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getPromotionTierId() - { - return $this->container['promotion_tier_id']; - } - - /** - * Sets promotion_tier_id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $promotion_tier_id promotion_tier_id - * - * @return self - */ - public function setPromotionTierId($promotion_tier_id) - { - if (is_null($promotion_tier_id)) { - throw new \InvalidArgumentException('non-nullable promotion_tier_id cannot be null'); - } - $this->container['promotion_tier_id'] = $promotion_tier_id; - - return $this; - } - - /** - * Gets customer_name - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getCustomerName() - { - return $this->container['customer_name']; - } - - /** - * Sets customer_name - * - * @param \OpenAPI\Client\Model\FieldConditions|null $customer_name customer_name - * - * @return self - */ - public function setCustomerName($customer_name) - { - if (is_null($customer_name)) { - throw new \InvalidArgumentException('non-nullable customer_name cannot be null'); - } - $this->container['customer_name'] = $customer_name; - - return $this; - } - - /** - * Gets tracking_id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getTrackingId() - { - return $this->container['tracking_id']; - } - - /** - * Sets tracking_id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $tracking_id tracking_id - * - * @return self - */ - public function setTrackingId($tracking_id) - { - if (is_null($tracking_id)) { - throw new \InvalidArgumentException('non-nullable tracking_id cannot be null'); - } - $this->container['tracking_id'] = $tracking_id; - - return $this; - } - - /** - * Gets order_amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getOrderAmount() - { - return $this->container['order_amount']; - } - - /** - * Sets order_amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $order_amount order_amount - * - * @return self - */ - public function setOrderAmount($order_amount) - { - if (is_null($order_amount)) { - throw new \InvalidArgumentException('non-nullable order_amount cannot be null'); - } - $this->container['order_amount'] = $order_amount; - - return $this; - } - - /** - * Gets gift_amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getGiftAmount() - { - return $this->container['gift_amount']; - } - - /** - * Sets gift_amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $gift_amount gift_amount - * - * @return self - */ - public function setGiftAmount($gift_amount) - { - if (is_null($gift_amount)) { - throw new \InvalidArgumentException('non-nullable gift_amount cannot be null'); - } - $this->container['gift_amount'] = $gift_amount; - - return $this; - } - - /** - * Gets loyalty_points - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getLoyaltyPoints() - { - return $this->container['loyalty_points']; - } - - /** - * Sets loyalty_points - * - * @param \OpenAPI\Client\Model\FieldConditions|null $loyalty_points loyalty_points - * - * @return self - */ - public function setLoyaltyPoints($loyalty_points) - { - if (is_null($loyalty_points)) { - throw new \InvalidArgumentException('non-nullable loyalty_points cannot be null'); - } - $this->container['loyalty_points'] = $loyalty_points; - - return $this; - } - - /** - * Gets result - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getResult() - { - return $this->container['result']; - } - - /** - * Sets result - * - * @param \OpenAPI\Client\Model\FieldConditions|null $result result - * - * @return self - */ - public function setResult($result) - { - if (is_null($result)) { - throw new \InvalidArgumentException('non-nullable result cannot be null'); - } - $this->container['result'] = $result; - - return $this; - } - - /** - * Gets failure_code - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getFailureCode() - { - return $this->container['failure_code']; - } - - /** - * Sets failure_code - * - * @param \OpenAPI\Client\Model\FieldConditions|null $failure_code failure_code - * - * @return self - */ - public function setFailureCode($failure_code) - { - if (is_null($failure_code)) { - throw new \InvalidArgumentException('non-nullable failure_code cannot be null'); - } - $this->container['failure_code'] = $failure_code; - - return $this; - } - - /** - * Gets failure_message - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getFailureMessage() - { - return $this->container['failure_message']; - } - - /** - * Sets failure_message - * - * @param \OpenAPI\Client\Model\FieldConditions|null $failure_message failure_message - * - * @return self - */ - public function setFailureMessage($failure_message) - { - if (is_null($failure_message)) { - throw new \InvalidArgumentException('non-nullable failure_message cannot be null'); - } - $this->container['failure_message'] = $failure_message; - - return $this; - } - - /** - * Gets name - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param \OpenAPI\Client\Model\FieldConditions|null $name name - * - * @return self - */ - public function setName($name) - { - if (is_null($name)) { - throw new \InvalidArgumentException('non-nullable name cannot be null'); - } - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets description - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getDescription() - { - return $this->container['description']; - } - - /** - * Sets description - * - * @param \OpenAPI\Client\Model\FieldConditions|null $description description - * - * @return self - */ - public function setDescription($description) - { - if (is_null($description)) { - throw new \InvalidArgumentException('non-nullable description cannot be null'); - } - $this->container['description'] = $description; - - return $this; - } - - /** - * Gets email - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getEmail() - { - return $this->container['email']; - } - - /** - * Sets email - * - * @param \OpenAPI\Client\Model\FieldConditions|null $email email - * - * @return self - */ - public function setEmail($email) - { - if (is_null($email)) { - throw new \InvalidArgumentException('non-nullable email cannot be null'); - } - $this->container['email'] = $email; - - return $this; - } - - /** - * Gets source_id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getSourceId() - { - return $this->container['source_id']; - } - - /** - * Sets source_id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $source_id source_id - * - * @return self - */ - public function setSourceId($source_id) - { - if (is_null($source_id)) { - throw new \InvalidArgumentException('non-nullable source_id cannot be null'); - } - $this->container['source_id'] = $source_id; - - return $this; - } - - /** - * Gets address_city - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getAddressCity() - { - return $this->container['address_city']; - } - - /** - * Sets address_city - * - * @param \OpenAPI\Client\Model\FieldConditions|null $address_city address_city - * - * @return self - */ - public function setAddressCity($address_city) - { - if (is_null($address_city)) { - throw new \InvalidArgumentException('non-nullable address_city cannot be null'); - } - $this->container['address_city'] = $address_city; - - return $this; - } - - /** - * Gets address_state - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getAddressState() - { - return $this->container['address_state']; - } - - /** - * Sets address_state - * - * @param \OpenAPI\Client\Model\FieldConditions|null $address_state address_state - * - * @return self - */ - public function setAddressState($address_state) - { - if (is_null($address_state)) { - throw new \InvalidArgumentException('non-nullable address_state cannot be null'); - } - $this->container['address_state'] = $address_state; - - return $this; - } - - /** - * Gets address_line_1 - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getAddressLine1() - { - return $this->container['address_line_1']; - } - - /** - * Sets address_line_1 - * - * @param \OpenAPI\Client\Model\FieldConditions|null $address_line_1 address_line_1 - * - * @return self - */ - public function setAddressLine1($address_line_1) - { - if (is_null($address_line_1)) { - throw new \InvalidArgumentException('non-nullable address_line_1 cannot be null'); - } - $this->container['address_line_1'] = $address_line_1; - - return $this; - } - - /** - * Gets address_line_2 - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getAddressLine2() - { - return $this->container['address_line_2']; - } - - /** - * Sets address_line_2 - * - * @param \OpenAPI\Client\Model\FieldConditions|null $address_line_2 address_line_2 - * - * @return self - */ - public function setAddressLine2($address_line_2) - { - if (is_null($address_line_2)) { - throw new \InvalidArgumentException('non-nullable address_line_2 cannot be null'); - } - $this->container['address_line_2'] = $address_line_2; - - return $this; - } - - /** - * Gets address_country - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getAddressCountry() - { - return $this->container['address_country']; - } - - /** - * Sets address_country - * - * @param \OpenAPI\Client\Model\FieldConditions|null $address_country address_country - * - * @return self - */ - public function setAddressCountry($address_country) - { - if (is_null($address_country)) { - throw new \InvalidArgumentException('non-nullable address_country cannot be null'); - } - $this->container['address_country'] = $address_country; - - return $this; - } - - /** - * Gets address_postal_code - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getAddressPostalCode() - { - return $this->container['address_postal_code']; - } - - /** - * Sets address_postal_code - * - * @param \OpenAPI\Client\Model\FieldConditions|null $address_postal_code address_postal_code - * - * @return self - */ - public function setAddressPostalCode($address_postal_code) - { - if (is_null($address_postal_code)) { - throw new \InvalidArgumentException('non-nullable address_postal_code cannot be null'); - } - $this->container['address_postal_code'] = $address_postal_code; - - return $this; - } - - /** - * Gets redemptions_total_redeemed - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getRedemptionsTotalRedeemed() - { - return $this->container['redemptions_total_redeemed']; - } - - /** - * Sets redemptions_total_redeemed - * - * @param \OpenAPI\Client\Model\FieldConditions|null $redemptions_total_redeemed redemptions_total_redeemed - * - * @return self - */ - public function setRedemptionsTotalRedeemed($redemptions_total_redeemed) - { - if (is_null($redemptions_total_redeemed)) { - throw new \InvalidArgumentException('non-nullable redemptions_total_redeemed cannot be null'); - } - $this->container['redemptions_total_redeemed'] = $redemptions_total_redeemed; - - return $this; - } - - /** - * Gets redemptions_total_failed - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getRedemptionsTotalFailed() - { - return $this->container['redemptions_total_failed']; - } - - /** - * Sets redemptions_total_failed - * - * @param \OpenAPI\Client\Model\FieldConditions|null $redemptions_total_failed redemptions_total_failed - * - * @return self - */ - public function setRedemptionsTotalFailed($redemptions_total_failed) - { - if (is_null($redemptions_total_failed)) { - throw new \InvalidArgumentException('non-nullable redemptions_total_failed cannot be null'); - } - $this->container['redemptions_total_failed'] = $redemptions_total_failed; - - return $this; - } - - /** - * Gets redemptions_total_succeeded - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getRedemptionsTotalSucceeded() - { - return $this->container['redemptions_total_succeeded']; - } - - /** - * Sets redemptions_total_succeeded - * - * @param \OpenAPI\Client\Model\FieldConditions|null $redemptions_total_succeeded redemptions_total_succeeded - * - * @return self - */ - public function setRedemptionsTotalSucceeded($redemptions_total_succeeded) - { - if (is_null($redemptions_total_succeeded)) { - throw new \InvalidArgumentException('non-nullable redemptions_total_succeeded cannot be null'); - } - $this->container['redemptions_total_succeeded'] = $redemptions_total_succeeded; - - return $this; - } - - /** - * Gets redemptions_total_rolled_back - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getRedemptionsTotalRolledBack() - { - return $this->container['redemptions_total_rolled_back']; - } - - /** - * Sets redemptions_total_rolled_back - * - * @param \OpenAPI\Client\Model\FieldConditions|null $redemptions_total_rolled_back redemptions_total_rolled_back - * - * @return self - */ - public function setRedemptionsTotalRolledBack($redemptions_total_rolled_back) - { - if (is_null($redemptions_total_rolled_back)) { - throw new \InvalidArgumentException('non-nullable redemptions_total_rolled_back cannot be null'); - } - $this->container['redemptions_total_rolled_back'] = $redemptions_total_rolled_back; - - return $this; - } - - /** - * Gets redemptions_total_rollback_failed - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getRedemptionsTotalRollbackFailed() - { - return $this->container['redemptions_total_rollback_failed']; - } - - /** - * Sets redemptions_total_rollback_failed - * - * @param \OpenAPI\Client\Model\FieldConditions|null $redemptions_total_rollback_failed redemptions_total_rollback_failed - * - * @return self - */ - public function setRedemptionsTotalRollbackFailed($redemptions_total_rollback_failed) - { - if (is_null($redemptions_total_rollback_failed)) { - throw new \InvalidArgumentException('non-nullable redemptions_total_rollback_failed cannot be null'); - } - $this->container['redemptions_total_rollback_failed'] = $redemptions_total_rollback_failed; - - return $this; - } - - /** - * Gets redemptions_total_rollback_succeeded - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getRedemptionsTotalRollbackSucceeded() - { - return $this->container['redemptions_total_rollback_succeeded']; - } - - /** - * Sets redemptions_total_rollback_succeeded - * - * @param \OpenAPI\Client\Model\FieldConditions|null $redemptions_total_rollback_succeeded redemptions_total_rollback_succeeded - * - * @return self - */ - public function setRedemptionsTotalRollbackSucceeded($redemptions_total_rollback_succeeded) - { - if (is_null($redemptions_total_rollback_succeeded)) { - throw new \InvalidArgumentException('non-nullable redemptions_total_rollback_succeeded cannot be null'); - } - $this->container['redemptions_total_rollback_succeeded'] = $redemptions_total_rollback_succeeded; - - return $this; - } - - /** - * Gets orders_total_amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getOrdersTotalAmount() - { - return $this->container['orders_total_amount']; - } - - /** - * Sets orders_total_amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $orders_total_amount orders_total_amount - * - * @return self - */ - public function setOrdersTotalAmount($orders_total_amount) - { - if (is_null($orders_total_amount)) { - throw new \InvalidArgumentException('non-nullable orders_total_amount cannot be null'); - } - $this->container['orders_total_amount'] = $orders_total_amount; - - return $this; - } - - /** - * Gets orders_total_count - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getOrdersTotalCount() - { - return $this->container['orders_total_count']; - } - - /** - * Sets orders_total_count - * - * @param \OpenAPI\Client\Model\FieldConditions|null $orders_total_count orders_total_count - * - * @return self - */ - public function setOrdersTotalCount($orders_total_count) - { - if (is_null($orders_total_count)) { - throw new \InvalidArgumentException('non-nullable orders_total_count cannot be null'); - } - $this->container['orders_total_count'] = $orders_total_count; - - return $this; - } - - /** - * Gets orders_average_amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getOrdersAverageAmount() - { - return $this->container['orders_average_amount']; - } - - /** - * Sets orders_average_amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $orders_average_amount orders_average_amount - * - * @return self - */ - public function setOrdersAverageAmount($orders_average_amount) - { - if (is_null($orders_average_amount)) { - throw new \InvalidArgumentException('non-nullable orders_average_amount cannot be null'); - } - $this->container['orders_average_amount'] = $orders_average_amount; - - return $this; - } - - /** - * Gets orders_last_order_amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getOrdersLastOrderAmount() - { - return $this->container['orders_last_order_amount']; - } - - /** - * Sets orders_last_order_amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $orders_last_order_amount orders_last_order_amount - * - * @return self - */ - public function setOrdersLastOrderAmount($orders_last_order_amount) - { - if (is_null($orders_last_order_amount)) { - throw new \InvalidArgumentException('non-nullable orders_last_order_amount cannot be null'); - } - $this->container['orders_last_order_amount'] = $orders_last_order_amount; - - return $this; - } - - /** - * Gets orders_last_order_date - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getOrdersLastOrderDate() - { - return $this->container['orders_last_order_date']; - } - - /** - * Sets orders_last_order_date - * - * @param \OpenAPI\Client\Model\FieldConditions|null $orders_last_order_date orders_last_order_date - * - * @return self - */ - public function setOrdersLastOrderDate($orders_last_order_date) - { - if (is_null($orders_last_order_date)) { - throw new \InvalidArgumentException('non-nullable orders_last_order_date cannot be null'); - } - $this->container['orders_last_order_date'] = $orders_last_order_date; - - return $this; - } - - /** - * Gets loyalty_referred_customers - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getLoyaltyReferredCustomers() - { - return $this->container['loyalty_referred_customers']; - } - - /** - * Sets loyalty_referred_customers - * - * @param \OpenAPI\Client\Model\FieldConditions|null $loyalty_referred_customers loyalty_referred_customers - * - * @return self - */ - public function setLoyaltyReferredCustomers($loyalty_referred_customers) - { - if (is_null($loyalty_referred_customers)) { - throw new \InvalidArgumentException('non-nullable loyalty_referred_customers cannot be null'); - } - $this->container['loyalty_referred_customers'] = $loyalty_referred_customers; - - return $this; - } - - /** - * Gets phone - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getPhone() - { - return $this->container['phone']; - } - - /** - * Sets phone - * - * @param \OpenAPI\Client\Model\FieldConditions|null $phone phone - * - * @return self - */ - public function setPhone($phone) - { - if (is_null($phone)) { - throw new \InvalidArgumentException('non-nullable phone cannot be null'); - } - $this->container['phone'] = $phone; - - return $this; - } - - /** - * Gets birthday - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getBirthday() - { - return $this->container['birthday']; - } - - /** - * Sets birthday - * - * @param \OpenAPI\Client\Model\FieldConditions|null $birthday birthday - * - * @return self - */ - public function setBirthday($birthday) - { - if (is_null($birthday)) { - throw new \InvalidArgumentException('non-nullable birthday cannot be null'); - } - $this->container['birthday'] = $birthday; - - return $this; - } - - /** - * Gets birthdate - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getBirthdate() - { - return $this->container['birthdate']; - } - - /** - * Sets birthdate - * - * @param \OpenAPI\Client\Model\FieldConditions|null $birthdate birthdate - * - * @return self - */ - public function setBirthdate($birthdate) - { - if (is_null($birthdate)) { - throw new \InvalidArgumentException('non-nullable birthdate cannot be null'); - } - $this->container['birthdate'] = $birthdate; - - return $this; - } - - /** - * Gets channel - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getChannel() - { - return $this->container['channel']; - } - - /** - * Sets channel - * - * @param \OpenAPI\Client\Model\FieldConditions|null $channel channel - * - * @return self - */ - public function setChannel($channel) - { - if (is_null($channel)) { - throw new \InvalidArgumentException('non-nullable channel cannot be null'); - } - $this->container['channel'] = $channel; - - return $this; - } - - /** - * Gets is_winner - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getIsWinner() - { - return $this->container['is_winner']; - } - - /** - * Sets is_winner - * - * @param \OpenAPI\Client\Model\FieldConditions|null $is_winner is_winner - * - * @return self - */ - public function setIsWinner($is_winner) - { - if (is_null($is_winner)) { - throw new \InvalidArgumentException('non-nullable is_winner cannot be null'); - } - $this->container['is_winner'] = $is_winner; - - return $this; - } - - /** - * Gets status - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param \OpenAPI\Client\Model\FieldConditions|null $status status - * - * @return self - */ - public function setStatus($status) - { - if (is_null($status)) { - throw new \InvalidArgumentException('non-nullable status cannot be null'); - } - $this->container['status'] = $status; - - return $this; - } - - /** - * Gets amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $amount amount - * - * @return self - */ - public function setAmount($amount) - { - if (is_null($amount)) { - throw new \InvalidArgumentException('non-nullable amount cannot be null'); - } - $this->container['amount'] = $amount; - - return $this; - } - - /** - * Gets discount_amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getDiscountAmount() - { - return $this->container['discount_amount']; - } - - /** - * Sets discount_amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $discount_amount discount_amount - * - * @return self - */ - public function setDiscountAmount($discount_amount) - { - if (is_null($discount_amount)) { - throw new \InvalidArgumentException('non-nullable discount_amount cannot be null'); - } - $this->container['discount_amount'] = $discount_amount; - - return $this; - } - - /** - * Gets items_discount_amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getItemsDiscountAmount() - { - return $this->container['items_discount_amount']; - } - - /** - * Sets items_discount_amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $items_discount_amount items_discount_amount - * - * @return self - */ - public function setItemsDiscountAmount($items_discount_amount) - { - if (is_null($items_discount_amount)) { - throw new \InvalidArgumentException('non-nullable items_discount_amount cannot be null'); - } - $this->container['items_discount_amount'] = $items_discount_amount; - - return $this; - } - - /** - * Gets total_discount_amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getTotalDiscountAmount() - { - return $this->container['total_discount_amount']; - } - - /** - * Sets total_discount_amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $total_discount_amount total_discount_amount - * - * @return self - */ - public function setTotalDiscountAmount($total_discount_amount) - { - if (is_null($total_discount_amount)) { - throw new \InvalidArgumentException('non-nullable total_discount_amount cannot be null'); - } - $this->container['total_discount_amount'] = $total_discount_amount; - - return $this; - } - - /** - * Gets total_amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getTotalAmount() - { - return $this->container['total_amount']; - } - - /** - * Sets total_amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $total_amount total_amount - * - * @return self - */ - public function setTotalAmount($total_amount) - { - if (is_null($total_amount)) { - throw new \InvalidArgumentException('non-nullable total_amount cannot be null'); - } - $this->container['total_amount'] = $total_amount; - - return $this; - } - - /** - * Gets referrer_id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getReferrerId() - { - return $this->container['referrer_id']; - } - - /** - * Sets referrer_id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $referrer_id referrer_id - * - * @return self - */ - public function setReferrerId($referrer_id) - { - if (is_null($referrer_id)) { - throw new \InvalidArgumentException('non-nullable referrer_id cannot be null'); - } - $this->container['referrer_id'] = $referrer_id; - - return $this; - } - - /** - * Gets voucher_id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getVoucherId() - { - return $this->container['voucher_id']; - } - - /** - * Sets voucher_id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $voucher_id voucher_id - * - * @return self - */ - public function setVoucherId($voucher_id) - { - if (is_null($voucher_id)) { - throw new \InvalidArgumentException('non-nullable voucher_id cannot be null'); - } - $this->container['voucher_id'] = $voucher_id; - - return $this; - } - - /** - * Gets points - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getPoints() - { - return $this->container['points']; - } - - /** - * Sets points - * - * @param \OpenAPI\Client\Model\FieldConditions|null $points points - * - * @return self - */ - public function setPoints($points) - { - if (is_null($points)) { - throw new \InvalidArgumentException('non-nullable points cannot be null'); - } - $this->container['points'] = $points; - - return $this; - } - - /** - * Gets expires_at - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getExpiresAt() - { - return $this->container['expires_at']; - } - - /** - * Sets expires_at - * - * @param \OpenAPI\Client\Model\FieldConditions|null $expires_at expires_at - * - * @return self - */ - public function setExpiresAt($expires_at) - { - if (is_null($expires_at)) { - throw new \InvalidArgumentException('non-nullable expires_at cannot be null'); - } - $this->container['expires_at'] = $expires_at; - - return $this; - } - - /** - * Gets type - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param \OpenAPI\Client\Model\FieldConditions|null $type type - * - * @return self - */ - public function setType($type) - { - if (is_null($type)) { - throw new \InvalidArgumentException('non-nullable type cannot be null'); - } - $this->container['type'] = $type; - - return $this; - } - - /** - * Gets reason - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getReason() - { - return $this->container['reason']; - } - - /** - * Sets reason - * - * @param \OpenAPI\Client\Model\FieldConditions|null $reason reason - * - * @return self - */ - public function setReason($reason) - { - if (is_null($reason)) { - throw new \InvalidArgumentException('non-nullable reason cannot be null'); - } - $this->container['reason'] = $reason; - - return $this; - } - - /** - * Gets source - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getSource() - { - return $this->container['source']; - } - - /** - * Sets source - * - * @param \OpenAPI\Client\Model\FieldConditions|null $source source - * - * @return self - */ - public function setSource($source) - { - if (is_null($source)) { - throw new \InvalidArgumentException('non-nullable source cannot be null'); - } - $this->container['source'] = $source; - - return $this; - } - - /** - * Gets balance - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getBalance() - { - return $this->container['balance']; - } - - /** - * Sets balance - * - * @param \OpenAPI\Client\Model\FieldConditions|null $balance balance - * - * @return self - */ - public function setBalance($balance) - { - if (is_null($balance)) { - throw new \InvalidArgumentException('non-nullable balance cannot be null'); - } - $this->container['balance'] = $balance; - - return $this; - } - - /** - * Gets related_transaction_id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getRelatedTransactionId() - { - return $this->container['related_transaction_id']; - } - - /** - * Sets related_transaction_id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $related_transaction_id related_transaction_id - * - * @return self - */ - public function setRelatedTransactionId($related_transaction_id) - { - if (is_null($related_transaction_id)) { - throw new \InvalidArgumentException('non-nullable related_transaction_id cannot be null'); - } - $this->container['related_transaction_id'] = $related_transaction_id; - - return $this; - } - - /** - * Gets details - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param \OpenAPI\Client\Model\FieldConditions|null $details details - * - * @return self - */ - public function setDetails($details) - { - if (is_null($details)) { - throw new \InvalidArgumentException('non-nullable details cannot be null'); - } - $this->container['details'] = $details; - - return $this; - } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/ExportsCreateResponseBodyParameters.php b/src/Model/ExportsCreateResponseBodyParameters.php index 9598e17..3c91194 100644 --- a/src/Model/ExportsCreateResponseBodyParameters.php +++ b/src/Model/ExportsCreateResponseBodyParameters.php @@ -241,176 +241,32 @@ public function getModelName() return self::$openAPIModelName; } - public const ORDER_CODE = 'code'; - public const ORDER_CODE2 = '-code'; - public const ORDER_VOUCHER_TYPE = 'voucher_type'; - public const ORDER_VOUCHER_TYPE2 = '-voucher_type'; - public const ORDER_VALUE = 'value'; - public const ORDER_VALUE2 = '-value'; - public const ORDER_DISCOUNT_TYPE = 'discount_type'; - public const ORDER_DISCOUNT_TYPE2 = '-discount_type'; - public const ORDER_CAMPAIGN = 'campaign'; - public const ORDER_CAMPAIGN2 = '-campaign'; - public const ORDER_CATEGORY = 'category'; - public const ORDER_CATEGORY2 = '-category'; - public const ORDER_START_DATE = 'start_date'; - public const ORDER_START_DATE2 = '-start_date'; - public const ORDER_EXPIRATION_DATE = 'expiration_date'; - public const ORDER_EXPIRATION_DATE2 = '-expiration_date'; - public const ORDER_GIFT_BALANCE = 'gift_balance'; - public const ORDER_GIFT_BALANCE2 = '-gift_balance'; - public const ORDER_LOYALTY_BALANCE = 'loyalty_balance'; - public const ORDER_LOYALTY_BALANCE2 = '-loyalty_balance'; - public const ORDER_REDEMPTION_QUANTITY = 'redemption_quantity'; - public const ORDER_REDEMPTION_QUANTITY2 = '-redemption_quantity'; - public const ORDER_REDEMPTION_COUNT = 'redemption_count'; - public const ORDER_REDEMPTION_COUNT2 = '-redemption_count'; - public const ORDER_ACTIVE = 'active'; - public const ORDER_ACTIVE2 = '-active'; - public const ORDER_QR_CODE = 'qr_code'; - public const ORDER_QR_CODE2 = '-qr_code'; - public const ORDER_BAR_CODE = 'bar_code'; - public const ORDER_BAR_CODE2 = '-bar_code'; - public const ORDER_METADATA = 'metadata'; - public const ORDER_METADATA2 = '-metadata'; - public const ORDER_ID = 'id'; - public const ORDER_ID2 = '-id'; - public const ORDER_IS_REFERRAL_CODE = 'is_referral_code'; - public const ORDER_IS_REFERRAL_CODE2 = '-is_referral_code'; - public const ORDER_CREATED_AT = 'created_at'; - public const ORDER_CREATED_AT2 = '-created_at'; - public const ORDER_UPDATED_AT = 'updated_at'; - public const ORDER_UPDATED_AT2 = '-updated_at'; - public const ORDER_VALIDITY_TIMEFRAME_INTERVAL = 'validity_timeframe_interval'; - public const ORDER_VALIDITY_TIMEFRAME_INTERVAL2 = '-validity_timeframe_interval'; - public const ORDER_VALIDITY_TIMEFRAME_DURATION = 'validity_timeframe_duration'; - public const ORDER_VALIDITY_TIMEFRAME_DURATION2 = '-validity_timeframe_duration'; - public const ORDER_VALIDITY_DAY_OF_WEEK = 'validity_day_of_week'; - public const ORDER_VALIDITY_DAY_OF_WEEK2 = '-validity_day_of_week'; - public const ORDER_DISCOUNT_AMOUNT_LIMIT = 'discount_amount_limit'; - public const ORDER_DISCOUNT_AMOUNT_LIMIT2 = '-discount_amount_limit'; - public const ORDER_CAMPAIGN_ID = 'campaign_id'; - public const ORDER_CAMPAIGN_ID2 = '-campaign_id'; - public const ORDER_ADDITIONAL_INFO = 'additional_info'; - public const ORDER_ADDITIONAL_INFO2 = '-additional_info'; - public const ORDER_CUSTOMER_ID = 'customer_id'; - public const ORDER_CUSTOMER_ID2 = '-customer_id'; - public const ORDER_DISCOUNT_UNIT_TYPE = 'discount_unit_type'; - public const ORDER_DISCOUNT_UNIT_TYPE2 = '-discount_unit_type'; - public const ORDER_DISCOUNT_UNIT_EFFECT = 'discount_unit_effect'; - public const ORDER_DISCOUNT_UNIT_EFFECT2 = '-discount_unit_effect'; - public const ORDER_CUSTOMER_SOURCE_ID = 'customer_source_id'; - public const ORDER_CUSTOMER_SOURCE_ID2 = '-customer_source_id'; - public const ORDER_OBJECT = 'object'; - public const ORDER_OBJECT2 = '-object'; - public const ORDER_DATE = 'date'; - public const ORDER_DATE2 = '-date'; - public const ORDER_VOUCHER_CODE = 'voucher_code'; - public const ORDER_VOUCHER_CODE2 = '-voucher_code'; - public const ORDER_PROMOTION_TIER_ID = 'promotion_tier_id'; - public const ORDER_PROMOTION_TIER_ID2 = '-promotion_tier_id'; - public const ORDER_CUSTOMER_NAME = 'customer_name'; - public const ORDER_CUSTOMER_NAME2 = '-customer_name'; - public const ORDER_TRACKING_ID = 'tracking_id'; - public const ORDER_TRACKING_ID2 = '-tracking_id'; - public const ORDER_ORDER_AMOUNT = 'order_amount'; - public const ORDER_ORDER_AMOUNT2 = '-order_amount'; - public const ORDER_GIFT_AMOUNT = 'gift_amount'; - public const ORDER_GIFT_AMOUNT2 = '-gift_amount'; - public const ORDER_LOYALTY_POINTS = 'loyalty_points'; - public const ORDER_LOYALTY_POINTS2 = '-loyalty_points'; - public const ORDER_RESULT = 'result'; - public const ORDER_RESULT2 = '-result'; - public const ORDER_FAILURE_CODE = 'failure_code'; - public const ORDER_FAILURE_CODE2 = '-failure_code'; - public const ORDER_FAILURE_MESSAGE = 'failure_message'; - public const ORDER_FAILURE_MESSAGE2 = '-failure_message'; - public const ORDER_NAME = 'name'; - public const ORDER_NAME2 = '-name'; - public const ORDER_DESCRIPTION = 'description'; - public const ORDER_DESCRIPTION2 = '-description'; - public const ORDER_EMAIL = 'email'; - public const ORDER_EMAIL2 = '-email'; - public const ORDER_SOURCE_ID = 'source_id'; - public const ORDER_SOURCE_ID2 = '-source_id'; - public const ORDER_ADDRESS_CITY = 'address_city'; - public const ORDER_ADDRESS_CITY2 = '-address_city'; - public const ORDER_ADDRESS_STATE = 'address_state'; - public const ORDER_ADDRESS_STATE2 = '-address_state'; - public const ORDER_ADDRESS_LINE_1 = 'address_line_1'; - public const ORDER_ADDRESS_LINE_12 = '-address_line_1'; - public const ORDER_ADDRESS_LINE_2 = 'address_line_2'; - public const ORDER_ADDRESS_LINE_22 = '-address_line_2'; - public const ORDER_ADDRESS_COUNTRY = 'address_country'; - public const ORDER_ADDRESS_COUNTRY2 = '-address_country'; - public const ORDER_ADDRESS_POSTAL_CODE = 'address_postal_code'; - public const ORDER_ADDRESS_POSTAL_CODE2 = '-address_postal_code'; - public const ORDER_REDEMPTIONS_TOTAL_REDEEMED = 'redemptions_total_redeemed'; - public const ORDER_REDEMPTIONS_TOTAL_REDEEMED2 = '-redemptions_total_redeemed'; - public const ORDER_REDEMPTIONS_TOTAL_FAILED = 'redemptions_total_failed'; - public const ORDER_REDEMPTIONS_TOTAL_FAILED2 = '-redemptions_total_failed'; - public const ORDER_REDEMPTIONS_TOTAL_SUCCEEDED = 'redemptions_total_succeeded'; - public const ORDER_REDEMPTIONS_TOTAL_SUCCEEDED2 = '-redemptions_total_succeeded'; - public const ORDER_REDEMPTIONS_TOTAL_ROLLED_BACK = 'redemptions_total_rolled_back'; - public const ORDER_REDEMPTIONS_TOTAL_ROLLED_BACK2 = '-redemptions_total_rolled_back'; - public const ORDER_REDEMPTIONS_TOTAL_ROLLBACK_FAILED = 'redemptions_total_rollback_failed'; - public const ORDER_REDEMPTIONS_TOTAL_ROLLBACK_FAILED2 = '-redemptions_total_rollback_failed'; - public const ORDER_REDEMPTIONS_TOTAL_ROLLBACK_SUCCEEDED = 'redemptions_total_rollback_succeeded'; - public const ORDER_REDEMPTIONS_TOTAL_ROLLBACK_SUCCEEDED2 = '-redemptions_total_rollback_succeeded'; - public const ORDER_ORDERS_TOTAL_AMOUNT = 'orders_total_amount'; - public const ORDER_ORDERS_TOTAL_AMOUNT2 = '-orders_total_amount'; - public const ORDER_ORDERS_TOTAL_COUNT = 'orders_total_count'; - public const ORDER_ORDERS_TOTAL_COUNT2 = '-orders_total_count'; - public const ORDER_ORDERS_AVERAGE_AMOUNT = 'orders_average_amount'; - public const ORDER_ORDERS_AVERAGE_AMOUNT2 = '-orders_average_amount'; - public const ORDER_ORDERS_LAST_ORDER_AMOUNT = 'orders_last_order_amount'; - public const ORDER_ORDERS_LAST_ORDER_AMOUNT2 = '-orders_last_order_amount'; - public const ORDER_ORDERS_LAST_ORDER_DATE = 'orders_last_order_date'; - public const ORDER_ORDERS_LAST_ORDER_DATE2 = '-orders_last_order_date'; - public const ORDER_LOYALTY_REFERRED_CUSTOMERS = 'loyalty_referred_customers'; - public const ORDER_LOYALTY_REFERRED_CUSTOMERS2 = '-loyalty_referred_customers'; - public const ORDER_PHONE = 'phone'; - public const ORDER_PHONE2 = '-phone'; - public const ORDER_BIRTHDAY = 'birthday'; - public const ORDER_BIRTHDAY2 = '-birthday'; - public const ORDER_BIRTHDATE = 'birthdate'; - public const ORDER_BIRTHDATE2 = '-birthdate'; - public const ORDER_CHANNEL = 'channel'; - public const ORDER_CHANNEL2 = '-channel'; - public const ORDER_IS_WINNER = 'is_winner'; - public const ORDER_IS_WINNER2 = '-is_winner'; - public const ORDER_STATUS = 'status'; - public const ORDER_STATUS2 = '-status'; - public const ORDER_AMOUNT = 'amount'; - public const ORDER_AMOUNT2 = '-amount'; - public const ORDER_DISCOUNT_AMOUNT = 'discount_amount'; - public const ORDER_DISCOUNT_AMOUNT2 = '-discount_amount'; - public const ORDER_ITEMS_DISCOUNT_AMOUNT = 'items_discount_amount'; - public const ORDER_ITEMS_DISCOUNT_AMOUNT2 = '-items_discount_amount'; - public const ORDER_TOTAL_DISCOUNT_AMOUNT = 'total_discount_amount'; - public const ORDER_TOTAL_DISCOUNT_AMOUNT2 = '-total_discount_amount'; - public const ORDER_TOTAL_AMOUNT = 'total_amount'; - public const ORDER_TOTAL_AMOUNT2 = '-total_amount'; - public const ORDER_REFERRER_ID = 'referrer_id'; - public const ORDER_REFERRER_ID2 = '-referrer_id'; - public const ORDER_VOUCHER_ID = 'voucher_id'; - public const ORDER_VOUCHER_ID2 = '-voucher_id'; - public const ORDER_POINTS = 'points'; - public const ORDER_POINTS2 = '-points'; - public const ORDER_EXPIRES_AT = 'expires_at'; - public const ORDER_EXPIRES_AT2 = '-expires_at'; - public const ORDER_TYPE = 'type'; - public const ORDER_TYPE2 = '-type'; - public const ORDER_REASON = 'reason'; - public const ORDER_REASON2 = '-reason'; - public const ORDER_SOURCE = 'source'; - public const ORDER_SOURCE2 = '-source'; - public const ORDER_BALANCE = 'balance'; - public const ORDER_BALANCE2 = '-balance'; - public const ORDER_RELATED_TRANSACTION_ID = 'related_transaction_id'; - public const ORDER_RELATED_TRANSACTION_ID2 = '-related_transaction_id'; - public const ORDER_DETAILS = 'details'; - public const ORDER_DETAILS2 = '-details'; + public const ORDER_CREATED_AT = '-created_at'; + public const ORDER_CREATED_AT2 = 'created_at'; + public const ORDER_UPDATED_AT = '-updated_at'; + public const ORDER_UPDATED_AT2 = 'updated_at'; + public const ORDER_CODE = '-code'; + public const ORDER_CODE2 = 'code'; + public const ORDER_ID = '-id'; + public const ORDER_ID2 = 'id'; + public const ORDER_VOUCHER_CODE = '-voucher_code'; + public const ORDER_VOUCHER_CODE2 = 'voucher_code'; + public const ORDER_TRACKING_ID = '-tracking_id'; + public const ORDER_TRACKING_ID2 = 'tracking_id'; + public const ORDER_CUSTOMER_ID = '-customer_id'; + public const ORDER_CUSTOMER_ID2 = 'customer_id'; + public const ORDER_NAME = '-name'; + public const ORDER_NAME2 = 'name'; + public const ORDER_EMAIL = '-email'; + public const ORDER_EMAIL2 = 'email'; + public const ORDER_SOURCE_ID = '-source_id'; + public const ORDER_SOURCE_ID2 = 'source_id'; + public const ORDER_CHANNEL = '-channel'; + public const ORDER_CHANNEL2 = 'channel'; + public const ORDER_STATUS = '-status'; + public const ORDER_STATUS2 = 'status'; + public const ORDER_EXPIRES_AT = '-expires_at'; + public const ORDER_EXPIRES_AT2 = 'expires_at'; public const FIELDS_CODE = 'code'; public const FIELDS_VOUCHER_TYPE = 'voucher_type'; public const FIELDS_VALUE = 'value'; @@ -505,176 +361,32 @@ public function getModelName() public function getOrderAllowableValues() { return [ - self::ORDER_CODE, - self::ORDER_CODE2, - self::ORDER_VOUCHER_TYPE, - self::ORDER_VOUCHER_TYPE2, - self::ORDER_VALUE, - self::ORDER_VALUE2, - self::ORDER_DISCOUNT_TYPE, - self::ORDER_DISCOUNT_TYPE2, - self::ORDER_CAMPAIGN, - self::ORDER_CAMPAIGN2, - self::ORDER_CATEGORY, - self::ORDER_CATEGORY2, - self::ORDER_START_DATE, - self::ORDER_START_DATE2, - self::ORDER_EXPIRATION_DATE, - self::ORDER_EXPIRATION_DATE2, - self::ORDER_GIFT_BALANCE, - self::ORDER_GIFT_BALANCE2, - self::ORDER_LOYALTY_BALANCE, - self::ORDER_LOYALTY_BALANCE2, - self::ORDER_REDEMPTION_QUANTITY, - self::ORDER_REDEMPTION_QUANTITY2, - self::ORDER_REDEMPTION_COUNT, - self::ORDER_REDEMPTION_COUNT2, - self::ORDER_ACTIVE, - self::ORDER_ACTIVE2, - self::ORDER_QR_CODE, - self::ORDER_QR_CODE2, - self::ORDER_BAR_CODE, - self::ORDER_BAR_CODE2, - self::ORDER_METADATA, - self::ORDER_METADATA2, - self::ORDER_ID, - self::ORDER_ID2, - self::ORDER_IS_REFERRAL_CODE, - self::ORDER_IS_REFERRAL_CODE2, self::ORDER_CREATED_AT, self::ORDER_CREATED_AT2, self::ORDER_UPDATED_AT, self::ORDER_UPDATED_AT2, - self::ORDER_VALIDITY_TIMEFRAME_INTERVAL, - self::ORDER_VALIDITY_TIMEFRAME_INTERVAL2, - self::ORDER_VALIDITY_TIMEFRAME_DURATION, - self::ORDER_VALIDITY_TIMEFRAME_DURATION2, - self::ORDER_VALIDITY_DAY_OF_WEEK, - self::ORDER_VALIDITY_DAY_OF_WEEK2, - self::ORDER_DISCOUNT_AMOUNT_LIMIT, - self::ORDER_DISCOUNT_AMOUNT_LIMIT2, - self::ORDER_CAMPAIGN_ID, - self::ORDER_CAMPAIGN_ID2, - self::ORDER_ADDITIONAL_INFO, - self::ORDER_ADDITIONAL_INFO2, - self::ORDER_CUSTOMER_ID, - self::ORDER_CUSTOMER_ID2, - self::ORDER_DISCOUNT_UNIT_TYPE, - self::ORDER_DISCOUNT_UNIT_TYPE2, - self::ORDER_DISCOUNT_UNIT_EFFECT, - self::ORDER_DISCOUNT_UNIT_EFFECT2, - self::ORDER_CUSTOMER_SOURCE_ID, - self::ORDER_CUSTOMER_SOURCE_ID2, - self::ORDER_OBJECT, - self::ORDER_OBJECT2, - self::ORDER_DATE, - self::ORDER_DATE2, + self::ORDER_CODE, + self::ORDER_CODE2, + self::ORDER_ID, + self::ORDER_ID2, self::ORDER_VOUCHER_CODE, self::ORDER_VOUCHER_CODE2, - self::ORDER_PROMOTION_TIER_ID, - self::ORDER_PROMOTION_TIER_ID2, - self::ORDER_CUSTOMER_NAME, - self::ORDER_CUSTOMER_NAME2, self::ORDER_TRACKING_ID, self::ORDER_TRACKING_ID2, - self::ORDER_ORDER_AMOUNT, - self::ORDER_ORDER_AMOUNT2, - self::ORDER_GIFT_AMOUNT, - self::ORDER_GIFT_AMOUNT2, - self::ORDER_LOYALTY_POINTS, - self::ORDER_LOYALTY_POINTS2, - self::ORDER_RESULT, - self::ORDER_RESULT2, - self::ORDER_FAILURE_CODE, - self::ORDER_FAILURE_CODE2, - self::ORDER_FAILURE_MESSAGE, - self::ORDER_FAILURE_MESSAGE2, + self::ORDER_CUSTOMER_ID, + self::ORDER_CUSTOMER_ID2, self::ORDER_NAME, self::ORDER_NAME2, - self::ORDER_DESCRIPTION, - self::ORDER_DESCRIPTION2, self::ORDER_EMAIL, self::ORDER_EMAIL2, self::ORDER_SOURCE_ID, self::ORDER_SOURCE_ID2, - self::ORDER_ADDRESS_CITY, - self::ORDER_ADDRESS_CITY2, - self::ORDER_ADDRESS_STATE, - self::ORDER_ADDRESS_STATE2, - self::ORDER_ADDRESS_LINE_1, - self::ORDER_ADDRESS_LINE_12, - self::ORDER_ADDRESS_LINE_2, - self::ORDER_ADDRESS_LINE_22, - self::ORDER_ADDRESS_COUNTRY, - self::ORDER_ADDRESS_COUNTRY2, - self::ORDER_ADDRESS_POSTAL_CODE, - self::ORDER_ADDRESS_POSTAL_CODE2, - self::ORDER_REDEMPTIONS_TOTAL_REDEEMED, - self::ORDER_REDEMPTIONS_TOTAL_REDEEMED2, - self::ORDER_REDEMPTIONS_TOTAL_FAILED, - self::ORDER_REDEMPTIONS_TOTAL_FAILED2, - self::ORDER_REDEMPTIONS_TOTAL_SUCCEEDED, - self::ORDER_REDEMPTIONS_TOTAL_SUCCEEDED2, - self::ORDER_REDEMPTIONS_TOTAL_ROLLED_BACK, - self::ORDER_REDEMPTIONS_TOTAL_ROLLED_BACK2, - self::ORDER_REDEMPTIONS_TOTAL_ROLLBACK_FAILED, - self::ORDER_REDEMPTIONS_TOTAL_ROLLBACK_FAILED2, - self::ORDER_REDEMPTIONS_TOTAL_ROLLBACK_SUCCEEDED, - self::ORDER_REDEMPTIONS_TOTAL_ROLLBACK_SUCCEEDED2, - self::ORDER_ORDERS_TOTAL_AMOUNT, - self::ORDER_ORDERS_TOTAL_AMOUNT2, - self::ORDER_ORDERS_TOTAL_COUNT, - self::ORDER_ORDERS_TOTAL_COUNT2, - self::ORDER_ORDERS_AVERAGE_AMOUNT, - self::ORDER_ORDERS_AVERAGE_AMOUNT2, - self::ORDER_ORDERS_LAST_ORDER_AMOUNT, - self::ORDER_ORDERS_LAST_ORDER_AMOUNT2, - self::ORDER_ORDERS_LAST_ORDER_DATE, - self::ORDER_ORDERS_LAST_ORDER_DATE2, - self::ORDER_LOYALTY_REFERRED_CUSTOMERS, - self::ORDER_LOYALTY_REFERRED_CUSTOMERS2, - self::ORDER_PHONE, - self::ORDER_PHONE2, - self::ORDER_BIRTHDAY, - self::ORDER_BIRTHDAY2, - self::ORDER_BIRTHDATE, - self::ORDER_BIRTHDATE2, self::ORDER_CHANNEL, self::ORDER_CHANNEL2, - self::ORDER_IS_WINNER, - self::ORDER_IS_WINNER2, self::ORDER_STATUS, self::ORDER_STATUS2, - self::ORDER_AMOUNT, - self::ORDER_AMOUNT2, - self::ORDER_DISCOUNT_AMOUNT, - self::ORDER_DISCOUNT_AMOUNT2, - self::ORDER_ITEMS_DISCOUNT_AMOUNT, - self::ORDER_ITEMS_DISCOUNT_AMOUNT2, - self::ORDER_TOTAL_DISCOUNT_AMOUNT, - self::ORDER_TOTAL_DISCOUNT_AMOUNT2, - self::ORDER_TOTAL_AMOUNT, - self::ORDER_TOTAL_AMOUNT2, - self::ORDER_REFERRER_ID, - self::ORDER_REFERRER_ID2, - self::ORDER_VOUCHER_ID, - self::ORDER_VOUCHER_ID2, - self::ORDER_POINTS, - self::ORDER_POINTS2, self::ORDER_EXPIRES_AT, self::ORDER_EXPIRES_AT2, - self::ORDER_TYPE, - self::ORDER_TYPE2, - self::ORDER_REASON, - self::ORDER_REASON2, - self::ORDER_SOURCE, - self::ORDER_SOURCE2, - self::ORDER_BALANCE, - self::ORDER_BALANCE2, - self::ORDER_RELATED_TRANSACTION_ID, - self::ORDER_RELATED_TRANSACTION_ID2, - self::ORDER_DETAILS, - self::ORDER_DETAILS2, ]; } diff --git a/src/Model/ExportsCreateResponseBodyParametersFilters.php b/src/Model/ExportsCreateResponseBodyParametersFilters.php index 9ad9a8b..c860cf7 100644 --- a/src/Model/ExportsCreateResponseBodyParametersFilters.php +++ b/src/Model/ExportsCreateResponseBodyParametersFilters.php @@ -59,91 +59,9 @@ class ExportsCreateResponseBodyParametersFilters implements ModelInterface, Arra */ protected static $openAPITypes = [ 'junction' => 'string', - 'code' => '\OpenAPI\Client\Model\FieldConditions', - 'voucher_type' => '\OpenAPI\Client\Model\FieldConditions', - 'value' => '\OpenAPI\Client\Model\FieldConditions', - 'discount_type' => '\OpenAPI\Client\Model\FieldConditions', - 'campaign' => '\OpenAPI\Client\Model\FieldConditions', - 'category' => '\OpenAPI\Client\Model\FieldConditions', - 'start_date' => '\OpenAPI\Client\Model\FieldConditions', - 'expiration_date' => '\OpenAPI\Client\Model\FieldConditions', - 'gift_balance' => '\OpenAPI\Client\Model\FieldConditions', - 'loyalty_balance' => '\OpenAPI\Client\Model\FieldConditions', - 'redemption_quantity' => '\OpenAPI\Client\Model\FieldConditions', - 'redemption_count' => '\OpenAPI\Client\Model\FieldConditions', - 'active' => '\OpenAPI\Client\Model\FieldConditions', - 'qr_code' => '\OpenAPI\Client\Model\FieldConditions', - 'bar_code' => '\OpenAPI\Client\Model\FieldConditions', - 'metadata' => '\OpenAPI\Client\Model\FieldConditions', - 'id' => '\OpenAPI\Client\Model\FieldConditions', - 'is_referral_code' => '\OpenAPI\Client\Model\FieldConditions', - 'created_at' => '\OpenAPI\Client\Model\FieldConditions', - 'updated_at' => '\OpenAPI\Client\Model\FieldConditions', - 'validity_timeframe_interval' => '\OpenAPI\Client\Model\FieldConditions', - 'validity_timeframe_duration' => '\OpenAPI\Client\Model\FieldConditions', - 'validity_day_of_week' => '\OpenAPI\Client\Model\FieldConditions', - 'discount_amount_limit' => '\OpenAPI\Client\Model\FieldConditions', 'campaign_id' => '\OpenAPI\Client\Model\FieldConditions', - 'additional_info' => '\OpenAPI\Client\Model\FieldConditions', - 'customer_id' => '\OpenAPI\Client\Model\FieldConditions', - 'discount_unit_type' => '\OpenAPI\Client\Model\FieldConditions', - 'discount_unit_effect' => '\OpenAPI\Client\Model\FieldConditions', - 'customer_source_id' => '\OpenAPI\Client\Model\FieldConditions', - 'object' => '\OpenAPI\Client\Model\FieldConditions', - 'date' => '\OpenAPI\Client\Model\FieldConditions', - 'voucher_code' => '\OpenAPI\Client\Model\FieldConditions', - 'promotion_tier_id' => '\OpenAPI\Client\Model\FieldConditions', - 'customer_name' => '\OpenAPI\Client\Model\FieldConditions', - 'tracking_id' => '\OpenAPI\Client\Model\FieldConditions', - 'order_amount' => '\OpenAPI\Client\Model\FieldConditions', - 'gift_amount' => '\OpenAPI\Client\Model\FieldConditions', - 'loyalty_points' => '\OpenAPI\Client\Model\FieldConditions', - 'result' => '\OpenAPI\Client\Model\FieldConditions', - 'failure_code' => '\OpenAPI\Client\Model\FieldConditions', - 'failure_message' => '\OpenAPI\Client\Model\FieldConditions', - 'name' => '\OpenAPI\Client\Model\FieldConditions', - 'description' => '\OpenAPI\Client\Model\FieldConditions', - 'email' => '\OpenAPI\Client\Model\FieldConditions', - 'source_id' => '\OpenAPI\Client\Model\FieldConditions', - 'address_city' => '\OpenAPI\Client\Model\FieldConditions', - 'address_state' => '\OpenAPI\Client\Model\FieldConditions', - 'address_line_1' => '\OpenAPI\Client\Model\FieldConditions', - 'address_line_2' => '\OpenAPI\Client\Model\FieldConditions', - 'address_country' => '\OpenAPI\Client\Model\FieldConditions', - 'address_postal_code' => '\OpenAPI\Client\Model\FieldConditions', - 'redemptions_total_redeemed' => '\OpenAPI\Client\Model\FieldConditions', - 'redemptions_total_failed' => '\OpenAPI\Client\Model\FieldConditions', - 'redemptions_total_succeeded' => '\OpenAPI\Client\Model\FieldConditions', - 'redemptions_total_rolled_back' => '\OpenAPI\Client\Model\FieldConditions', - 'redemptions_total_rollback_failed' => '\OpenAPI\Client\Model\FieldConditions', - 'redemptions_total_rollback_succeeded' => '\OpenAPI\Client\Model\FieldConditions', - 'orders_total_amount' => '\OpenAPI\Client\Model\FieldConditions', - 'orders_total_count' => '\OpenAPI\Client\Model\FieldConditions', - 'orders_average_amount' => '\OpenAPI\Client\Model\FieldConditions', - 'orders_last_order_amount' => '\OpenAPI\Client\Model\FieldConditions', - 'orders_last_order_date' => '\OpenAPI\Client\Model\FieldConditions', - 'loyalty_referred_customers' => '\OpenAPI\Client\Model\FieldConditions', - 'phone' => '\OpenAPI\Client\Model\FieldConditions', - 'birthday' => '\OpenAPI\Client\Model\FieldConditions', - 'birthdate' => '\OpenAPI\Client\Model\FieldConditions', - 'channel' => '\OpenAPI\Client\Model\FieldConditions', - 'is_winner' => '\OpenAPI\Client\Model\FieldConditions', - 'status' => '\OpenAPI\Client\Model\FieldConditions', - 'amount' => '\OpenAPI\Client\Model\FieldConditions', - 'discount_amount' => '\OpenAPI\Client\Model\FieldConditions', - 'items_discount_amount' => '\OpenAPI\Client\Model\FieldConditions', - 'total_discount_amount' => '\OpenAPI\Client\Model\FieldConditions', - 'total_amount' => '\OpenAPI\Client\Model\FieldConditions', - 'referrer_id' => '\OpenAPI\Client\Model\FieldConditions', 'voucher_id' => '\OpenAPI\Client\Model\FieldConditions', - 'points' => '\OpenAPI\Client\Model\FieldConditions', - 'expires_at' => '\OpenAPI\Client\Model\FieldConditions', - 'type' => '\OpenAPI\Client\Model\FieldConditions', - 'reason' => '\OpenAPI\Client\Model\FieldConditions', - 'source' => '\OpenAPI\Client\Model\FieldConditions', - 'balance' => '\OpenAPI\Client\Model\FieldConditions', - 'related_transaction_id' => '\OpenAPI\Client\Model\FieldConditions', - 'details' => '\OpenAPI\Client\Model\FieldConditions' + 'created_at' => '\OpenAPI\Client\Model\FieldConditions' ]; /** @@ -155,91 +73,9 @@ class ExportsCreateResponseBodyParametersFilters implements ModelInterface, Arra */ protected static $openAPIFormats = [ 'junction' => null, - 'code' => null, - 'voucher_type' => null, - 'value' => null, - 'discount_type' => null, - 'campaign' => null, - 'category' => null, - 'start_date' => null, - 'expiration_date' => null, - 'gift_balance' => null, - 'loyalty_balance' => null, - 'redemption_quantity' => null, - 'redemption_count' => null, - 'active' => null, - 'qr_code' => null, - 'bar_code' => null, - 'metadata' => null, - 'id' => null, - 'is_referral_code' => null, - 'created_at' => null, - 'updated_at' => null, - 'validity_timeframe_interval' => null, - 'validity_timeframe_duration' => null, - 'validity_day_of_week' => null, - 'discount_amount_limit' => null, 'campaign_id' => null, - 'additional_info' => null, - 'customer_id' => null, - 'discount_unit_type' => null, - 'discount_unit_effect' => null, - 'customer_source_id' => null, - 'object' => null, - 'date' => null, - 'voucher_code' => null, - 'promotion_tier_id' => null, - 'customer_name' => null, - 'tracking_id' => null, - 'order_amount' => null, - 'gift_amount' => null, - 'loyalty_points' => null, - 'result' => null, - 'failure_code' => null, - 'failure_message' => null, - 'name' => null, - 'description' => null, - 'email' => null, - 'source_id' => null, - 'address_city' => null, - 'address_state' => null, - 'address_line_1' => null, - 'address_line_2' => null, - 'address_country' => null, - 'address_postal_code' => null, - 'redemptions_total_redeemed' => null, - 'redemptions_total_failed' => null, - 'redemptions_total_succeeded' => null, - 'redemptions_total_rolled_back' => null, - 'redemptions_total_rollback_failed' => null, - 'redemptions_total_rollback_succeeded' => null, - 'orders_total_amount' => null, - 'orders_total_count' => null, - 'orders_average_amount' => null, - 'orders_last_order_amount' => null, - 'orders_last_order_date' => null, - 'loyalty_referred_customers' => null, - 'phone' => null, - 'birthday' => null, - 'birthdate' => null, - 'channel' => null, - 'is_winner' => null, - 'status' => null, - 'amount' => null, - 'discount_amount' => null, - 'items_discount_amount' => null, - 'total_discount_amount' => null, - 'total_amount' => null, - 'referrer_id' => null, 'voucher_id' => null, - 'points' => null, - 'expires_at' => null, - 'type' => null, - 'reason' => null, - 'source' => null, - 'balance' => null, - 'related_transaction_id' => null, - 'details' => null + 'created_at' => null ]; /** @@ -249,91 +85,9 @@ class ExportsCreateResponseBodyParametersFilters implements ModelInterface, Arra */ protected static array $openAPINullables = [ 'junction' => false, - 'code' => false, - 'voucher_type' => false, - 'value' => false, - 'discount_type' => false, - 'campaign' => false, - 'category' => false, - 'start_date' => false, - 'expiration_date' => false, - 'gift_balance' => false, - 'loyalty_balance' => false, - 'redemption_quantity' => false, - 'redemption_count' => false, - 'active' => false, - 'qr_code' => false, - 'bar_code' => false, - 'metadata' => false, - 'id' => false, - 'is_referral_code' => false, - 'created_at' => false, - 'updated_at' => false, - 'validity_timeframe_interval' => false, - 'validity_timeframe_duration' => false, - 'validity_day_of_week' => false, - 'discount_amount_limit' => false, 'campaign_id' => false, - 'additional_info' => false, - 'customer_id' => false, - 'discount_unit_type' => false, - 'discount_unit_effect' => false, - 'customer_source_id' => false, - 'object' => false, - 'date' => false, - 'voucher_code' => false, - 'promotion_tier_id' => false, - 'customer_name' => false, - 'tracking_id' => false, - 'order_amount' => false, - 'gift_amount' => false, - 'loyalty_points' => false, - 'result' => false, - 'failure_code' => false, - 'failure_message' => false, - 'name' => false, - 'description' => false, - 'email' => false, - 'source_id' => false, - 'address_city' => false, - 'address_state' => false, - 'address_line_1' => false, - 'address_line_2' => false, - 'address_country' => false, - 'address_postal_code' => false, - 'redemptions_total_redeemed' => false, - 'redemptions_total_failed' => false, - 'redemptions_total_succeeded' => false, - 'redemptions_total_rolled_back' => false, - 'redemptions_total_rollback_failed' => false, - 'redemptions_total_rollback_succeeded' => false, - 'orders_total_amount' => false, - 'orders_total_count' => false, - 'orders_average_amount' => false, - 'orders_last_order_amount' => false, - 'orders_last_order_date' => false, - 'loyalty_referred_customers' => false, - 'phone' => false, - 'birthday' => false, - 'birthdate' => false, - 'channel' => false, - 'is_winner' => false, - 'status' => false, - 'amount' => false, - 'discount_amount' => false, - 'items_discount_amount' => false, - 'total_discount_amount' => false, - 'total_amount' => false, - 'referrer_id' => false, 'voucher_id' => false, - 'points' => false, - 'expires_at' => false, - 'type' => false, - 'reason' => false, - 'source' => false, - 'balance' => false, - 'related_transaction_id' => false, - 'details' => false + 'created_at' => false ]; /** @@ -423,91 +177,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'junction' => 'junction', - 'code' => 'code', - 'voucher_type' => 'voucher_type', - 'value' => 'value', - 'discount_type' => 'discount_type', - 'campaign' => 'campaign', - 'category' => 'category', - 'start_date' => 'start_date', - 'expiration_date' => 'expiration_date', - 'gift_balance' => 'gift_balance', - 'loyalty_balance' => 'loyalty_balance', - 'redemption_quantity' => 'redemption_quantity', - 'redemption_count' => 'redemption_count', - 'active' => 'active', - 'qr_code' => 'qr_code', - 'bar_code' => 'bar_code', - 'metadata' => 'metadata', - 'id' => 'id', - 'is_referral_code' => 'is_referral_code', - 'created_at' => 'created_at', - 'updated_at' => 'updated_at', - 'validity_timeframe_interval' => 'validity_timeframe_interval', - 'validity_timeframe_duration' => 'validity_timeframe_duration', - 'validity_day_of_week' => 'validity_day_of_week', - 'discount_amount_limit' => 'discount_amount_limit', 'campaign_id' => 'campaign_id', - 'additional_info' => 'additional_info', - 'customer_id' => 'customer_id', - 'discount_unit_type' => 'discount_unit_type', - 'discount_unit_effect' => 'discount_unit_effect', - 'customer_source_id' => 'customer_source_id', - 'object' => 'object', - 'date' => 'date', - 'voucher_code' => 'voucher_code', - 'promotion_tier_id' => 'promotion_tier_id', - 'customer_name' => 'customer_name', - 'tracking_id' => 'tracking_id', - 'order_amount' => 'order_amount', - 'gift_amount' => 'gift_amount', - 'loyalty_points' => 'loyalty_points', - 'result' => 'result', - 'failure_code' => 'failure_code', - 'failure_message' => 'failure_message', - 'name' => 'name', - 'description' => 'description', - 'email' => 'email', - 'source_id' => 'source_id', - 'address_city' => 'address_city', - 'address_state' => 'address_state', - 'address_line_1' => 'address_line_1', - 'address_line_2' => 'address_line_2', - 'address_country' => 'address_country', - 'address_postal_code' => 'address_postal_code', - 'redemptions_total_redeemed' => 'redemptions_total_redeemed', - 'redemptions_total_failed' => 'redemptions_total_failed', - 'redemptions_total_succeeded' => 'redemptions_total_succeeded', - 'redemptions_total_rolled_back' => 'redemptions_total_rolled_back', - 'redemptions_total_rollback_failed' => 'redemptions_total_rollback_failed', - 'redemptions_total_rollback_succeeded' => 'redemptions_total_rollback_succeeded', - 'orders_total_amount' => 'orders_total_amount', - 'orders_total_count' => 'orders_total_count', - 'orders_average_amount' => 'orders_average_amount', - 'orders_last_order_amount' => 'orders_last_order_amount', - 'orders_last_order_date' => 'orders_last_order_date', - 'loyalty_referred_customers' => 'loyalty_referred_customers', - 'phone' => 'phone', - 'birthday' => 'birthday', - 'birthdate' => 'birthdate', - 'channel' => 'channel', - 'is_winner' => 'is_winner', - 'status' => 'status', - 'amount' => 'amount', - 'discount_amount' => 'discount_amount', - 'items_discount_amount' => 'items_discount_amount', - 'total_discount_amount' => 'total_discount_amount', - 'total_amount' => 'total_amount', - 'referrer_id' => 'referrer_id', 'voucher_id' => 'voucher_id', - 'points' => 'points', - 'expires_at' => 'expires_at', - 'type' => 'type', - 'reason' => 'reason', - 'source' => 'source', - 'balance' => 'balance', - 'related_transaction_id' => 'related_transaction_id', - 'details' => 'details' + 'created_at' => 'created_at' ]; /** @@ -517,91 +189,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'junction' => 'setJunction', - 'code' => 'setCode', - 'voucher_type' => 'setVoucherType', - 'value' => 'setValue', - 'discount_type' => 'setDiscountType', - 'campaign' => 'setCampaign', - 'category' => 'setCategory', - 'start_date' => 'setStartDate', - 'expiration_date' => 'setExpirationDate', - 'gift_balance' => 'setGiftBalance', - 'loyalty_balance' => 'setLoyaltyBalance', - 'redemption_quantity' => 'setRedemptionQuantity', - 'redemption_count' => 'setRedemptionCount', - 'active' => 'setActive', - 'qr_code' => 'setQrCode', - 'bar_code' => 'setBarCode', - 'metadata' => 'setMetadata', - 'id' => 'setId', - 'is_referral_code' => 'setIsReferralCode', - 'created_at' => 'setCreatedAt', - 'updated_at' => 'setUpdatedAt', - 'validity_timeframe_interval' => 'setValidityTimeframeInterval', - 'validity_timeframe_duration' => 'setValidityTimeframeDuration', - 'validity_day_of_week' => 'setValidityDayOfWeek', - 'discount_amount_limit' => 'setDiscountAmountLimit', 'campaign_id' => 'setCampaignId', - 'additional_info' => 'setAdditionalInfo', - 'customer_id' => 'setCustomerId', - 'discount_unit_type' => 'setDiscountUnitType', - 'discount_unit_effect' => 'setDiscountUnitEffect', - 'customer_source_id' => 'setCustomerSourceId', - 'object' => 'setObject', - 'date' => 'setDate', - 'voucher_code' => 'setVoucherCode', - 'promotion_tier_id' => 'setPromotionTierId', - 'customer_name' => 'setCustomerName', - 'tracking_id' => 'setTrackingId', - 'order_amount' => 'setOrderAmount', - 'gift_amount' => 'setGiftAmount', - 'loyalty_points' => 'setLoyaltyPoints', - 'result' => 'setResult', - 'failure_code' => 'setFailureCode', - 'failure_message' => 'setFailureMessage', - 'name' => 'setName', - 'description' => 'setDescription', - 'email' => 'setEmail', - 'source_id' => 'setSourceId', - 'address_city' => 'setAddressCity', - 'address_state' => 'setAddressState', - 'address_line_1' => 'setAddressLine1', - 'address_line_2' => 'setAddressLine2', - 'address_country' => 'setAddressCountry', - 'address_postal_code' => 'setAddressPostalCode', - 'redemptions_total_redeemed' => 'setRedemptionsTotalRedeemed', - 'redemptions_total_failed' => 'setRedemptionsTotalFailed', - 'redemptions_total_succeeded' => 'setRedemptionsTotalSucceeded', - 'redemptions_total_rolled_back' => 'setRedemptionsTotalRolledBack', - 'redemptions_total_rollback_failed' => 'setRedemptionsTotalRollbackFailed', - 'redemptions_total_rollback_succeeded' => 'setRedemptionsTotalRollbackSucceeded', - 'orders_total_amount' => 'setOrdersTotalAmount', - 'orders_total_count' => 'setOrdersTotalCount', - 'orders_average_amount' => 'setOrdersAverageAmount', - 'orders_last_order_amount' => 'setOrdersLastOrderAmount', - 'orders_last_order_date' => 'setOrdersLastOrderDate', - 'loyalty_referred_customers' => 'setLoyaltyReferredCustomers', - 'phone' => 'setPhone', - 'birthday' => 'setBirthday', - 'birthdate' => 'setBirthdate', - 'channel' => 'setChannel', - 'is_winner' => 'setIsWinner', - 'status' => 'setStatus', - 'amount' => 'setAmount', - 'discount_amount' => 'setDiscountAmount', - 'items_discount_amount' => 'setItemsDiscountAmount', - 'total_discount_amount' => 'setTotalDiscountAmount', - 'total_amount' => 'setTotalAmount', - 'referrer_id' => 'setReferrerId', 'voucher_id' => 'setVoucherId', - 'points' => 'setPoints', - 'expires_at' => 'setExpiresAt', - 'type' => 'setType', - 'reason' => 'setReason', - 'source' => 'setSource', - 'balance' => 'setBalance', - 'related_transaction_id' => 'setRelatedTransactionId', - 'details' => 'setDetails' + 'created_at' => 'setCreatedAt' ]; /** @@ -611,91 +201,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'junction' => 'getJunction', - 'code' => 'getCode', - 'voucher_type' => 'getVoucherType', - 'value' => 'getValue', - 'discount_type' => 'getDiscountType', - 'campaign' => 'getCampaign', - 'category' => 'getCategory', - 'start_date' => 'getStartDate', - 'expiration_date' => 'getExpirationDate', - 'gift_balance' => 'getGiftBalance', - 'loyalty_balance' => 'getLoyaltyBalance', - 'redemption_quantity' => 'getRedemptionQuantity', - 'redemption_count' => 'getRedemptionCount', - 'active' => 'getActive', - 'qr_code' => 'getQrCode', - 'bar_code' => 'getBarCode', - 'metadata' => 'getMetadata', - 'id' => 'getId', - 'is_referral_code' => 'getIsReferralCode', - 'created_at' => 'getCreatedAt', - 'updated_at' => 'getUpdatedAt', - 'validity_timeframe_interval' => 'getValidityTimeframeInterval', - 'validity_timeframe_duration' => 'getValidityTimeframeDuration', - 'validity_day_of_week' => 'getValidityDayOfWeek', - 'discount_amount_limit' => 'getDiscountAmountLimit', 'campaign_id' => 'getCampaignId', - 'additional_info' => 'getAdditionalInfo', - 'customer_id' => 'getCustomerId', - 'discount_unit_type' => 'getDiscountUnitType', - 'discount_unit_effect' => 'getDiscountUnitEffect', - 'customer_source_id' => 'getCustomerSourceId', - 'object' => 'getObject', - 'date' => 'getDate', - 'voucher_code' => 'getVoucherCode', - 'promotion_tier_id' => 'getPromotionTierId', - 'customer_name' => 'getCustomerName', - 'tracking_id' => 'getTrackingId', - 'order_amount' => 'getOrderAmount', - 'gift_amount' => 'getGiftAmount', - 'loyalty_points' => 'getLoyaltyPoints', - 'result' => 'getResult', - 'failure_code' => 'getFailureCode', - 'failure_message' => 'getFailureMessage', - 'name' => 'getName', - 'description' => 'getDescription', - 'email' => 'getEmail', - 'source_id' => 'getSourceId', - 'address_city' => 'getAddressCity', - 'address_state' => 'getAddressState', - 'address_line_1' => 'getAddressLine1', - 'address_line_2' => 'getAddressLine2', - 'address_country' => 'getAddressCountry', - 'address_postal_code' => 'getAddressPostalCode', - 'redemptions_total_redeemed' => 'getRedemptionsTotalRedeemed', - 'redemptions_total_failed' => 'getRedemptionsTotalFailed', - 'redemptions_total_succeeded' => 'getRedemptionsTotalSucceeded', - 'redemptions_total_rolled_back' => 'getRedemptionsTotalRolledBack', - 'redemptions_total_rollback_failed' => 'getRedemptionsTotalRollbackFailed', - 'redemptions_total_rollback_succeeded' => 'getRedemptionsTotalRollbackSucceeded', - 'orders_total_amount' => 'getOrdersTotalAmount', - 'orders_total_count' => 'getOrdersTotalCount', - 'orders_average_amount' => 'getOrdersAverageAmount', - 'orders_last_order_amount' => 'getOrdersLastOrderAmount', - 'orders_last_order_date' => 'getOrdersLastOrderDate', - 'loyalty_referred_customers' => 'getLoyaltyReferredCustomers', - 'phone' => 'getPhone', - 'birthday' => 'getBirthday', - 'birthdate' => 'getBirthdate', - 'channel' => 'getChannel', - 'is_winner' => 'getIsWinner', - 'status' => 'getStatus', - 'amount' => 'getAmount', - 'discount_amount' => 'getDiscountAmount', - 'items_discount_amount' => 'getItemsDiscountAmount', - 'total_discount_amount' => 'getTotalDiscountAmount', - 'total_amount' => 'getTotalAmount', - 'referrer_id' => 'getReferrerId', 'voucher_id' => 'getVoucherId', - 'points' => 'getPoints', - 'expires_at' => 'getExpiresAt', - 'type' => 'getType', - 'reason' => 'getReason', - 'source' => 'getSource', - 'balance' => 'getBalance', - 'related_transaction_id' => 'getRelatedTransactionId', - 'details' => 'getDetails' + 'created_at' => 'getCreatedAt' ]; /** @@ -771,91 +279,9 @@ public function getJunctionAllowableValues() public function __construct(array $data = null) { $this->setIfExists('junction', $data ?? [], null); - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('voucher_type', $data ?? [], null); - $this->setIfExists('value', $data ?? [], null); - $this->setIfExists('discount_type', $data ?? [], null); - $this->setIfExists('campaign', $data ?? [], null); - $this->setIfExists('category', $data ?? [], null); - $this->setIfExists('start_date', $data ?? [], null); - $this->setIfExists('expiration_date', $data ?? [], null); - $this->setIfExists('gift_balance', $data ?? [], null); - $this->setIfExists('loyalty_balance', $data ?? [], null); - $this->setIfExists('redemption_quantity', $data ?? [], null); - $this->setIfExists('redemption_count', $data ?? [], null); - $this->setIfExists('active', $data ?? [], null); - $this->setIfExists('qr_code', $data ?? [], null); - $this->setIfExists('bar_code', $data ?? [], null); - $this->setIfExists('metadata', $data ?? [], null); - $this->setIfExists('id', $data ?? [], null); - $this->setIfExists('is_referral_code', $data ?? [], null); - $this->setIfExists('created_at', $data ?? [], null); - $this->setIfExists('updated_at', $data ?? [], null); - $this->setIfExists('validity_timeframe_interval', $data ?? [], null); - $this->setIfExists('validity_timeframe_duration', $data ?? [], null); - $this->setIfExists('validity_day_of_week', $data ?? [], null); - $this->setIfExists('discount_amount_limit', $data ?? [], null); $this->setIfExists('campaign_id', $data ?? [], null); - $this->setIfExists('additional_info', $data ?? [], null); - $this->setIfExists('customer_id', $data ?? [], null); - $this->setIfExists('discount_unit_type', $data ?? [], null); - $this->setIfExists('discount_unit_effect', $data ?? [], null); - $this->setIfExists('customer_source_id', $data ?? [], null); - $this->setIfExists('object', $data ?? [], null); - $this->setIfExists('date', $data ?? [], null); - $this->setIfExists('voucher_code', $data ?? [], null); - $this->setIfExists('promotion_tier_id', $data ?? [], null); - $this->setIfExists('customer_name', $data ?? [], null); - $this->setIfExists('tracking_id', $data ?? [], null); - $this->setIfExists('order_amount', $data ?? [], null); - $this->setIfExists('gift_amount', $data ?? [], null); - $this->setIfExists('loyalty_points', $data ?? [], null); - $this->setIfExists('result', $data ?? [], null); - $this->setIfExists('failure_code', $data ?? [], null); - $this->setIfExists('failure_message', $data ?? [], null); - $this->setIfExists('name', $data ?? [], null); - $this->setIfExists('description', $data ?? [], null); - $this->setIfExists('email', $data ?? [], null); - $this->setIfExists('source_id', $data ?? [], null); - $this->setIfExists('address_city', $data ?? [], null); - $this->setIfExists('address_state', $data ?? [], null); - $this->setIfExists('address_line_1', $data ?? [], null); - $this->setIfExists('address_line_2', $data ?? [], null); - $this->setIfExists('address_country', $data ?? [], null); - $this->setIfExists('address_postal_code', $data ?? [], null); - $this->setIfExists('redemptions_total_redeemed', $data ?? [], null); - $this->setIfExists('redemptions_total_failed', $data ?? [], null); - $this->setIfExists('redemptions_total_succeeded', $data ?? [], null); - $this->setIfExists('redemptions_total_rolled_back', $data ?? [], null); - $this->setIfExists('redemptions_total_rollback_failed', $data ?? [], null); - $this->setIfExists('redemptions_total_rollback_succeeded', $data ?? [], null); - $this->setIfExists('orders_total_amount', $data ?? [], null); - $this->setIfExists('orders_total_count', $data ?? [], null); - $this->setIfExists('orders_average_amount', $data ?? [], null); - $this->setIfExists('orders_last_order_amount', $data ?? [], null); - $this->setIfExists('orders_last_order_date', $data ?? [], null); - $this->setIfExists('loyalty_referred_customers', $data ?? [], null); - $this->setIfExists('phone', $data ?? [], null); - $this->setIfExists('birthday', $data ?? [], null); - $this->setIfExists('birthdate', $data ?? [], null); - $this->setIfExists('channel', $data ?? [], null); - $this->setIfExists('is_winner', $data ?? [], null); - $this->setIfExists('status', $data ?? [], null); - $this->setIfExists('amount', $data ?? [], null); - $this->setIfExists('discount_amount', $data ?? [], null); - $this->setIfExists('items_discount_amount', $data ?? [], null); - $this->setIfExists('total_discount_amount', $data ?? [], null); - $this->setIfExists('total_amount', $data ?? [], null); - $this->setIfExists('referrer_id', $data ?? [], null); $this->setIfExists('voucher_id', $data ?? [], null); - $this->setIfExists('points', $data ?? [], null); - $this->setIfExists('expires_at', $data ?? [], null); - $this->setIfExists('type', $data ?? [], null); - $this->setIfExists('reason', $data ?? [], null); - $this->setIfExists('source', $data ?? [], null); - $this->setIfExists('balance', $data ?? [], null); - $this->setIfExists('related_transaction_id', $data ?? [], null); - $this->setIfExists('details', $data ?? [], null); + $this->setIfExists('created_at', $data ?? [], null); } /** @@ -947,2299 +373,85 @@ public function setJunction($junction) } /** - * Gets code - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param \OpenAPI\Client\Model\FieldConditions|null $code code - * - * @return self - */ - public function setCode($code) - { - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets voucher_type - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getVoucherType() - { - return $this->container['voucher_type']; - } - - /** - * Sets voucher_type - * - * @param \OpenAPI\Client\Model\FieldConditions|null $voucher_type voucher_type - * - * @return self - */ - public function setVoucherType($voucher_type) - { - if (is_null($voucher_type)) { - throw new \InvalidArgumentException('non-nullable voucher_type cannot be null'); - } - $this->container['voucher_type'] = $voucher_type; - - return $this; - } - - /** - * Gets value - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param \OpenAPI\Client\Model\FieldConditions|null $value value - * - * @return self - */ - public function setValue($value) - { - if (is_null($value)) { - throw new \InvalidArgumentException('non-nullable value cannot be null'); - } - $this->container['value'] = $value; - - return $this; - } - - /** - * Gets discount_type - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getDiscountType() - { - return $this->container['discount_type']; - } - - /** - * Sets discount_type - * - * @param \OpenAPI\Client\Model\FieldConditions|null $discount_type discount_type - * - * @return self - */ - public function setDiscountType($discount_type) - { - if (is_null($discount_type)) { - throw new \InvalidArgumentException('non-nullable discount_type cannot be null'); - } - $this->container['discount_type'] = $discount_type; - - return $this; - } - - /** - * Gets campaign - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getCampaign() - { - return $this->container['campaign']; - } - - /** - * Sets campaign - * - * @param \OpenAPI\Client\Model\FieldConditions|null $campaign campaign - * - * @return self - */ - public function setCampaign($campaign) - { - if (is_null($campaign)) { - throw new \InvalidArgumentException('non-nullable campaign cannot be null'); - } - $this->container['campaign'] = $campaign; - - return $this; - } - - /** - * Gets category - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getCategory() - { - return $this->container['category']; - } - - /** - * Sets category - * - * @param \OpenAPI\Client\Model\FieldConditions|null $category category - * - * @return self - */ - public function setCategory($category) - { - if (is_null($category)) { - throw new \InvalidArgumentException('non-nullable category cannot be null'); - } - $this->container['category'] = $category; - - return $this; - } - - /** - * Gets start_date - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getStartDate() - { - return $this->container['start_date']; - } - - /** - * Sets start_date - * - * @param \OpenAPI\Client\Model\FieldConditions|null $start_date start_date - * - * @return self - */ - public function setStartDate($start_date) - { - if (is_null($start_date)) { - throw new \InvalidArgumentException('non-nullable start_date cannot be null'); - } - $this->container['start_date'] = $start_date; - - return $this; - } - - /** - * Gets expiration_date - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getExpirationDate() - { - return $this->container['expiration_date']; - } - - /** - * Sets expiration_date - * - * @param \OpenAPI\Client\Model\FieldConditions|null $expiration_date expiration_date - * - * @return self - */ - public function setExpirationDate($expiration_date) - { - if (is_null($expiration_date)) { - throw new \InvalidArgumentException('non-nullable expiration_date cannot be null'); - } - $this->container['expiration_date'] = $expiration_date; - - return $this; - } - - /** - * Gets gift_balance - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getGiftBalance() - { - return $this->container['gift_balance']; - } - - /** - * Sets gift_balance - * - * @param \OpenAPI\Client\Model\FieldConditions|null $gift_balance gift_balance - * - * @return self - */ - public function setGiftBalance($gift_balance) - { - if (is_null($gift_balance)) { - throw new \InvalidArgumentException('non-nullable gift_balance cannot be null'); - } - $this->container['gift_balance'] = $gift_balance; - - return $this; - } - - /** - * Gets loyalty_balance - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getLoyaltyBalance() - { - return $this->container['loyalty_balance']; - } - - /** - * Sets loyalty_balance - * - * @param \OpenAPI\Client\Model\FieldConditions|null $loyalty_balance loyalty_balance - * - * @return self - */ - public function setLoyaltyBalance($loyalty_balance) - { - if (is_null($loyalty_balance)) { - throw new \InvalidArgumentException('non-nullable loyalty_balance cannot be null'); - } - $this->container['loyalty_balance'] = $loyalty_balance; - - return $this; - } - - /** - * Gets redemption_quantity - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getRedemptionQuantity() - { - return $this->container['redemption_quantity']; - } - - /** - * Sets redemption_quantity - * - * @param \OpenAPI\Client\Model\FieldConditions|null $redemption_quantity redemption_quantity - * - * @return self - */ - public function setRedemptionQuantity($redemption_quantity) - { - if (is_null($redemption_quantity)) { - throw new \InvalidArgumentException('non-nullable redemption_quantity cannot be null'); - } - $this->container['redemption_quantity'] = $redemption_quantity; - - return $this; - } - - /** - * Gets redemption_count - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getRedemptionCount() - { - return $this->container['redemption_count']; - } - - /** - * Sets redemption_count - * - * @param \OpenAPI\Client\Model\FieldConditions|null $redemption_count redemption_count - * - * @return self - */ - public function setRedemptionCount($redemption_count) - { - if (is_null($redemption_count)) { - throw new \InvalidArgumentException('non-nullable redemption_count cannot be null'); - } - $this->container['redemption_count'] = $redemption_count; - - return $this; - } - - /** - * Gets active + * Gets campaign_id * * @return \OpenAPI\Client\Model\FieldConditions|null */ - public function getActive() + public function getCampaignId() { - return $this->container['active']; + return $this->container['campaign_id']; } /** - * Sets active + * Sets campaign_id * - * @param \OpenAPI\Client\Model\FieldConditions|null $active active + * @param \OpenAPI\Client\Model\FieldConditions|null $campaign_id campaign_id * * @return self */ - public function setActive($active) + public function setCampaignId($campaign_id) { - if (is_null($active)) { - throw new \InvalidArgumentException('non-nullable active cannot be null'); + if (is_null($campaign_id)) { + throw new \InvalidArgumentException('non-nullable campaign_id cannot be null'); } - $this->container['active'] = $active; + $this->container['campaign_id'] = $campaign_id; return $this; } /** - * Gets qr_code + * Gets voucher_id * * @return \OpenAPI\Client\Model\FieldConditions|null */ - public function getQrCode() + public function getVoucherId() { - return $this->container['qr_code']; + return $this->container['voucher_id']; } /** - * Sets qr_code + * Sets voucher_id * - * @param \OpenAPI\Client\Model\FieldConditions|null $qr_code qr_code + * @param \OpenAPI\Client\Model\FieldConditions|null $voucher_id voucher_id * * @return self */ - public function setQrCode($qr_code) + public function setVoucherId($voucher_id) { - if (is_null($qr_code)) { - throw new \InvalidArgumentException('non-nullable qr_code cannot be null'); + if (is_null($voucher_id)) { + throw new \InvalidArgumentException('non-nullable voucher_id cannot be null'); } - $this->container['qr_code'] = $qr_code; + $this->container['voucher_id'] = $voucher_id; return $this; } /** - * Gets bar_code + * Gets created_at * * @return \OpenAPI\Client\Model\FieldConditions|null */ - public function getBarCode() + public function getCreatedAt() { - return $this->container['bar_code']; + return $this->container['created_at']; } /** - * Sets bar_code + * Sets created_at * - * @param \OpenAPI\Client\Model\FieldConditions|null $bar_code bar_code + * @param \OpenAPI\Client\Model\FieldConditions|null $created_at created_at * * @return self */ - public function setBarCode($bar_code) + public function setCreatedAt($created_at) { - if (is_null($bar_code)) { - throw new \InvalidArgumentException('non-nullable bar_code cannot be null'); - } - $this->container['bar_code'] = $bar_code; - - return $this; - } - - /** - * Gets metadata - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getMetadata() - { - return $this->container['metadata']; - } - - /** - * Sets metadata - * - * @param \OpenAPI\Client\Model\FieldConditions|null $metadata metadata - * - * @return self - */ - public function setMetadata($metadata) - { - if (is_null($metadata)) { - throw new \InvalidArgumentException('non-nullable metadata cannot be null'); - } - $this->container['metadata'] = $metadata; - - return $this; - } - - /** - * Gets id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $id id - * - * @return self - */ - public function setId($id) - { - if (is_null($id)) { - throw new \InvalidArgumentException('non-nullable id cannot be null'); - } - $this->container['id'] = $id; - - return $this; - } - - /** - * Gets is_referral_code - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getIsReferralCode() - { - return $this->container['is_referral_code']; - } - - /** - * Sets is_referral_code - * - * @param \OpenAPI\Client\Model\FieldConditions|null $is_referral_code is_referral_code - * - * @return self - */ - public function setIsReferralCode($is_referral_code) - { - if (is_null($is_referral_code)) { - throw new \InvalidArgumentException('non-nullable is_referral_code cannot be null'); - } - $this->container['is_referral_code'] = $is_referral_code; - - return $this; - } - - /** - * Gets created_at - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getCreatedAt() - { - return $this->container['created_at']; - } - - /** - * Sets created_at - * - * @param \OpenAPI\Client\Model\FieldConditions|null $created_at created_at - * - * @return self - */ - public function setCreatedAt($created_at) - { - if (is_null($created_at)) { - throw new \InvalidArgumentException('non-nullable created_at cannot be null'); + if (is_null($created_at)) { + throw new \InvalidArgumentException('non-nullable created_at cannot be null'); } $this->container['created_at'] = $created_at; return $this; } - - /** - * Gets updated_at - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getUpdatedAt() - { - return $this->container['updated_at']; - } - - /** - * Sets updated_at - * - * @param \OpenAPI\Client\Model\FieldConditions|null $updated_at updated_at - * - * @return self - */ - public function setUpdatedAt($updated_at) - { - if (is_null($updated_at)) { - throw new \InvalidArgumentException('non-nullable updated_at cannot be null'); - } - $this->container['updated_at'] = $updated_at; - - return $this; - } - - /** - * Gets validity_timeframe_interval - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getValidityTimeframeInterval() - { - return $this->container['validity_timeframe_interval']; - } - - /** - * Sets validity_timeframe_interval - * - * @param \OpenAPI\Client\Model\FieldConditions|null $validity_timeframe_interval validity_timeframe_interval - * - * @return self - */ - public function setValidityTimeframeInterval($validity_timeframe_interval) - { - if (is_null($validity_timeframe_interval)) { - throw new \InvalidArgumentException('non-nullable validity_timeframe_interval cannot be null'); - } - $this->container['validity_timeframe_interval'] = $validity_timeframe_interval; - - return $this; - } - - /** - * Gets validity_timeframe_duration - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getValidityTimeframeDuration() - { - return $this->container['validity_timeframe_duration']; - } - - /** - * Sets validity_timeframe_duration - * - * @param \OpenAPI\Client\Model\FieldConditions|null $validity_timeframe_duration validity_timeframe_duration - * - * @return self - */ - public function setValidityTimeframeDuration($validity_timeframe_duration) - { - if (is_null($validity_timeframe_duration)) { - throw new \InvalidArgumentException('non-nullable validity_timeframe_duration cannot be null'); - } - $this->container['validity_timeframe_duration'] = $validity_timeframe_duration; - - return $this; - } - - /** - * Gets validity_day_of_week - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getValidityDayOfWeek() - { - return $this->container['validity_day_of_week']; - } - - /** - * Sets validity_day_of_week - * - * @param \OpenAPI\Client\Model\FieldConditions|null $validity_day_of_week validity_day_of_week - * - * @return self - */ - public function setValidityDayOfWeek($validity_day_of_week) - { - if (is_null($validity_day_of_week)) { - throw new \InvalidArgumentException('non-nullable validity_day_of_week cannot be null'); - } - $this->container['validity_day_of_week'] = $validity_day_of_week; - - return $this; - } - - /** - * Gets discount_amount_limit - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getDiscountAmountLimit() - { - return $this->container['discount_amount_limit']; - } - - /** - * Sets discount_amount_limit - * - * @param \OpenAPI\Client\Model\FieldConditions|null $discount_amount_limit discount_amount_limit - * - * @return self - */ - public function setDiscountAmountLimit($discount_amount_limit) - { - if (is_null($discount_amount_limit)) { - throw new \InvalidArgumentException('non-nullable discount_amount_limit cannot be null'); - } - $this->container['discount_amount_limit'] = $discount_amount_limit; - - return $this; - } - - /** - * Gets campaign_id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getCampaignId() - { - return $this->container['campaign_id']; - } - - /** - * Sets campaign_id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $campaign_id campaign_id - * - * @return self - */ - public function setCampaignId($campaign_id) - { - if (is_null($campaign_id)) { - throw new \InvalidArgumentException('non-nullable campaign_id cannot be null'); - } - $this->container['campaign_id'] = $campaign_id; - - return $this; - } - - /** - * Gets additional_info - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getAdditionalInfo() - { - return $this->container['additional_info']; - } - - /** - * Sets additional_info - * - * @param \OpenAPI\Client\Model\FieldConditions|null $additional_info additional_info - * - * @return self - */ - public function setAdditionalInfo($additional_info) - { - if (is_null($additional_info)) { - throw new \InvalidArgumentException('non-nullable additional_info cannot be null'); - } - $this->container['additional_info'] = $additional_info; - - return $this; - } - - /** - * Gets customer_id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getCustomerId() - { - return $this->container['customer_id']; - } - - /** - * Sets customer_id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $customer_id customer_id - * - * @return self - */ - public function setCustomerId($customer_id) - { - if (is_null($customer_id)) { - throw new \InvalidArgumentException('non-nullable customer_id cannot be null'); - } - $this->container['customer_id'] = $customer_id; - - return $this; - } - - /** - * Gets discount_unit_type - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getDiscountUnitType() - { - return $this->container['discount_unit_type']; - } - - /** - * Sets discount_unit_type - * - * @param \OpenAPI\Client\Model\FieldConditions|null $discount_unit_type discount_unit_type - * - * @return self - */ - public function setDiscountUnitType($discount_unit_type) - { - if (is_null($discount_unit_type)) { - throw new \InvalidArgumentException('non-nullable discount_unit_type cannot be null'); - } - $this->container['discount_unit_type'] = $discount_unit_type; - - return $this; - } - - /** - * Gets discount_unit_effect - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getDiscountUnitEffect() - { - return $this->container['discount_unit_effect']; - } - - /** - * Sets discount_unit_effect - * - * @param \OpenAPI\Client\Model\FieldConditions|null $discount_unit_effect discount_unit_effect - * - * @return self - */ - public function setDiscountUnitEffect($discount_unit_effect) - { - if (is_null($discount_unit_effect)) { - throw new \InvalidArgumentException('non-nullable discount_unit_effect cannot be null'); - } - $this->container['discount_unit_effect'] = $discount_unit_effect; - - return $this; - } - - /** - * Gets customer_source_id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getCustomerSourceId() - { - return $this->container['customer_source_id']; - } - - /** - * Sets customer_source_id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $customer_source_id customer_source_id - * - * @return self - */ - public function setCustomerSourceId($customer_source_id) - { - if (is_null($customer_source_id)) { - throw new \InvalidArgumentException('non-nullable customer_source_id cannot be null'); - } - $this->container['customer_source_id'] = $customer_source_id; - - return $this; - } - - /** - * Gets object - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getObject() - { - return $this->container['object']; - } - - /** - * Sets object - * - * @param \OpenAPI\Client\Model\FieldConditions|null $object object - * - * @return self - */ - public function setObject($object) - { - if (is_null($object)) { - throw new \InvalidArgumentException('non-nullable object cannot be null'); - } - $this->container['object'] = $object; - - return $this; - } - - /** - * Gets date - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getDate() - { - return $this->container['date']; - } - - /** - * Sets date - * - * @param \OpenAPI\Client\Model\FieldConditions|null $date date - * - * @return self - */ - public function setDate($date) - { - if (is_null($date)) { - throw new \InvalidArgumentException('non-nullable date cannot be null'); - } - $this->container['date'] = $date; - - return $this; - } - - /** - * Gets voucher_code - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getVoucherCode() - { - return $this->container['voucher_code']; - } - - /** - * Sets voucher_code - * - * @param \OpenAPI\Client\Model\FieldConditions|null $voucher_code voucher_code - * - * @return self - */ - public function setVoucherCode($voucher_code) - { - if (is_null($voucher_code)) { - throw new \InvalidArgumentException('non-nullable voucher_code cannot be null'); - } - $this->container['voucher_code'] = $voucher_code; - - return $this; - } - - /** - * Gets promotion_tier_id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getPromotionTierId() - { - return $this->container['promotion_tier_id']; - } - - /** - * Sets promotion_tier_id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $promotion_tier_id promotion_tier_id - * - * @return self - */ - public function setPromotionTierId($promotion_tier_id) - { - if (is_null($promotion_tier_id)) { - throw new \InvalidArgumentException('non-nullable promotion_tier_id cannot be null'); - } - $this->container['promotion_tier_id'] = $promotion_tier_id; - - return $this; - } - - /** - * Gets customer_name - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getCustomerName() - { - return $this->container['customer_name']; - } - - /** - * Sets customer_name - * - * @param \OpenAPI\Client\Model\FieldConditions|null $customer_name customer_name - * - * @return self - */ - public function setCustomerName($customer_name) - { - if (is_null($customer_name)) { - throw new \InvalidArgumentException('non-nullable customer_name cannot be null'); - } - $this->container['customer_name'] = $customer_name; - - return $this; - } - - /** - * Gets tracking_id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getTrackingId() - { - return $this->container['tracking_id']; - } - - /** - * Sets tracking_id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $tracking_id tracking_id - * - * @return self - */ - public function setTrackingId($tracking_id) - { - if (is_null($tracking_id)) { - throw new \InvalidArgumentException('non-nullable tracking_id cannot be null'); - } - $this->container['tracking_id'] = $tracking_id; - - return $this; - } - - /** - * Gets order_amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getOrderAmount() - { - return $this->container['order_amount']; - } - - /** - * Sets order_amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $order_amount order_amount - * - * @return self - */ - public function setOrderAmount($order_amount) - { - if (is_null($order_amount)) { - throw new \InvalidArgumentException('non-nullable order_amount cannot be null'); - } - $this->container['order_amount'] = $order_amount; - - return $this; - } - - /** - * Gets gift_amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getGiftAmount() - { - return $this->container['gift_amount']; - } - - /** - * Sets gift_amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $gift_amount gift_amount - * - * @return self - */ - public function setGiftAmount($gift_amount) - { - if (is_null($gift_amount)) { - throw new \InvalidArgumentException('non-nullable gift_amount cannot be null'); - } - $this->container['gift_amount'] = $gift_amount; - - return $this; - } - - /** - * Gets loyalty_points - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getLoyaltyPoints() - { - return $this->container['loyalty_points']; - } - - /** - * Sets loyalty_points - * - * @param \OpenAPI\Client\Model\FieldConditions|null $loyalty_points loyalty_points - * - * @return self - */ - public function setLoyaltyPoints($loyalty_points) - { - if (is_null($loyalty_points)) { - throw new \InvalidArgumentException('non-nullable loyalty_points cannot be null'); - } - $this->container['loyalty_points'] = $loyalty_points; - - return $this; - } - - /** - * Gets result - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getResult() - { - return $this->container['result']; - } - - /** - * Sets result - * - * @param \OpenAPI\Client\Model\FieldConditions|null $result result - * - * @return self - */ - public function setResult($result) - { - if (is_null($result)) { - throw new \InvalidArgumentException('non-nullable result cannot be null'); - } - $this->container['result'] = $result; - - return $this; - } - - /** - * Gets failure_code - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getFailureCode() - { - return $this->container['failure_code']; - } - - /** - * Sets failure_code - * - * @param \OpenAPI\Client\Model\FieldConditions|null $failure_code failure_code - * - * @return self - */ - public function setFailureCode($failure_code) - { - if (is_null($failure_code)) { - throw new \InvalidArgumentException('non-nullable failure_code cannot be null'); - } - $this->container['failure_code'] = $failure_code; - - return $this; - } - - /** - * Gets failure_message - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getFailureMessage() - { - return $this->container['failure_message']; - } - - /** - * Sets failure_message - * - * @param \OpenAPI\Client\Model\FieldConditions|null $failure_message failure_message - * - * @return self - */ - public function setFailureMessage($failure_message) - { - if (is_null($failure_message)) { - throw new \InvalidArgumentException('non-nullable failure_message cannot be null'); - } - $this->container['failure_message'] = $failure_message; - - return $this; - } - - /** - * Gets name - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param \OpenAPI\Client\Model\FieldConditions|null $name name - * - * @return self - */ - public function setName($name) - { - if (is_null($name)) { - throw new \InvalidArgumentException('non-nullable name cannot be null'); - } - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets description - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getDescription() - { - return $this->container['description']; - } - - /** - * Sets description - * - * @param \OpenAPI\Client\Model\FieldConditions|null $description description - * - * @return self - */ - public function setDescription($description) - { - if (is_null($description)) { - throw new \InvalidArgumentException('non-nullable description cannot be null'); - } - $this->container['description'] = $description; - - return $this; - } - - /** - * Gets email - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getEmail() - { - return $this->container['email']; - } - - /** - * Sets email - * - * @param \OpenAPI\Client\Model\FieldConditions|null $email email - * - * @return self - */ - public function setEmail($email) - { - if (is_null($email)) { - throw new \InvalidArgumentException('non-nullable email cannot be null'); - } - $this->container['email'] = $email; - - return $this; - } - - /** - * Gets source_id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getSourceId() - { - return $this->container['source_id']; - } - - /** - * Sets source_id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $source_id source_id - * - * @return self - */ - public function setSourceId($source_id) - { - if (is_null($source_id)) { - throw new \InvalidArgumentException('non-nullable source_id cannot be null'); - } - $this->container['source_id'] = $source_id; - - return $this; - } - - /** - * Gets address_city - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getAddressCity() - { - return $this->container['address_city']; - } - - /** - * Sets address_city - * - * @param \OpenAPI\Client\Model\FieldConditions|null $address_city address_city - * - * @return self - */ - public function setAddressCity($address_city) - { - if (is_null($address_city)) { - throw new \InvalidArgumentException('non-nullable address_city cannot be null'); - } - $this->container['address_city'] = $address_city; - - return $this; - } - - /** - * Gets address_state - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getAddressState() - { - return $this->container['address_state']; - } - - /** - * Sets address_state - * - * @param \OpenAPI\Client\Model\FieldConditions|null $address_state address_state - * - * @return self - */ - public function setAddressState($address_state) - { - if (is_null($address_state)) { - throw new \InvalidArgumentException('non-nullable address_state cannot be null'); - } - $this->container['address_state'] = $address_state; - - return $this; - } - - /** - * Gets address_line_1 - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getAddressLine1() - { - return $this->container['address_line_1']; - } - - /** - * Sets address_line_1 - * - * @param \OpenAPI\Client\Model\FieldConditions|null $address_line_1 address_line_1 - * - * @return self - */ - public function setAddressLine1($address_line_1) - { - if (is_null($address_line_1)) { - throw new \InvalidArgumentException('non-nullable address_line_1 cannot be null'); - } - $this->container['address_line_1'] = $address_line_1; - - return $this; - } - - /** - * Gets address_line_2 - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getAddressLine2() - { - return $this->container['address_line_2']; - } - - /** - * Sets address_line_2 - * - * @param \OpenAPI\Client\Model\FieldConditions|null $address_line_2 address_line_2 - * - * @return self - */ - public function setAddressLine2($address_line_2) - { - if (is_null($address_line_2)) { - throw new \InvalidArgumentException('non-nullable address_line_2 cannot be null'); - } - $this->container['address_line_2'] = $address_line_2; - - return $this; - } - - /** - * Gets address_country - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getAddressCountry() - { - return $this->container['address_country']; - } - - /** - * Sets address_country - * - * @param \OpenAPI\Client\Model\FieldConditions|null $address_country address_country - * - * @return self - */ - public function setAddressCountry($address_country) - { - if (is_null($address_country)) { - throw new \InvalidArgumentException('non-nullable address_country cannot be null'); - } - $this->container['address_country'] = $address_country; - - return $this; - } - - /** - * Gets address_postal_code - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getAddressPostalCode() - { - return $this->container['address_postal_code']; - } - - /** - * Sets address_postal_code - * - * @param \OpenAPI\Client\Model\FieldConditions|null $address_postal_code address_postal_code - * - * @return self - */ - public function setAddressPostalCode($address_postal_code) - { - if (is_null($address_postal_code)) { - throw new \InvalidArgumentException('non-nullable address_postal_code cannot be null'); - } - $this->container['address_postal_code'] = $address_postal_code; - - return $this; - } - - /** - * Gets redemptions_total_redeemed - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getRedemptionsTotalRedeemed() - { - return $this->container['redemptions_total_redeemed']; - } - - /** - * Sets redemptions_total_redeemed - * - * @param \OpenAPI\Client\Model\FieldConditions|null $redemptions_total_redeemed redemptions_total_redeemed - * - * @return self - */ - public function setRedemptionsTotalRedeemed($redemptions_total_redeemed) - { - if (is_null($redemptions_total_redeemed)) { - throw new \InvalidArgumentException('non-nullable redemptions_total_redeemed cannot be null'); - } - $this->container['redemptions_total_redeemed'] = $redemptions_total_redeemed; - - return $this; - } - - /** - * Gets redemptions_total_failed - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getRedemptionsTotalFailed() - { - return $this->container['redemptions_total_failed']; - } - - /** - * Sets redemptions_total_failed - * - * @param \OpenAPI\Client\Model\FieldConditions|null $redemptions_total_failed redemptions_total_failed - * - * @return self - */ - public function setRedemptionsTotalFailed($redemptions_total_failed) - { - if (is_null($redemptions_total_failed)) { - throw new \InvalidArgumentException('non-nullable redemptions_total_failed cannot be null'); - } - $this->container['redemptions_total_failed'] = $redemptions_total_failed; - - return $this; - } - - /** - * Gets redemptions_total_succeeded - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getRedemptionsTotalSucceeded() - { - return $this->container['redemptions_total_succeeded']; - } - - /** - * Sets redemptions_total_succeeded - * - * @param \OpenAPI\Client\Model\FieldConditions|null $redemptions_total_succeeded redemptions_total_succeeded - * - * @return self - */ - public function setRedemptionsTotalSucceeded($redemptions_total_succeeded) - { - if (is_null($redemptions_total_succeeded)) { - throw new \InvalidArgumentException('non-nullable redemptions_total_succeeded cannot be null'); - } - $this->container['redemptions_total_succeeded'] = $redemptions_total_succeeded; - - return $this; - } - - /** - * Gets redemptions_total_rolled_back - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getRedemptionsTotalRolledBack() - { - return $this->container['redemptions_total_rolled_back']; - } - - /** - * Sets redemptions_total_rolled_back - * - * @param \OpenAPI\Client\Model\FieldConditions|null $redemptions_total_rolled_back redemptions_total_rolled_back - * - * @return self - */ - public function setRedemptionsTotalRolledBack($redemptions_total_rolled_back) - { - if (is_null($redemptions_total_rolled_back)) { - throw new \InvalidArgumentException('non-nullable redemptions_total_rolled_back cannot be null'); - } - $this->container['redemptions_total_rolled_back'] = $redemptions_total_rolled_back; - - return $this; - } - - /** - * Gets redemptions_total_rollback_failed - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getRedemptionsTotalRollbackFailed() - { - return $this->container['redemptions_total_rollback_failed']; - } - - /** - * Sets redemptions_total_rollback_failed - * - * @param \OpenAPI\Client\Model\FieldConditions|null $redemptions_total_rollback_failed redemptions_total_rollback_failed - * - * @return self - */ - public function setRedemptionsTotalRollbackFailed($redemptions_total_rollback_failed) - { - if (is_null($redemptions_total_rollback_failed)) { - throw new \InvalidArgumentException('non-nullable redemptions_total_rollback_failed cannot be null'); - } - $this->container['redemptions_total_rollback_failed'] = $redemptions_total_rollback_failed; - - return $this; - } - - /** - * Gets redemptions_total_rollback_succeeded - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getRedemptionsTotalRollbackSucceeded() - { - return $this->container['redemptions_total_rollback_succeeded']; - } - - /** - * Sets redemptions_total_rollback_succeeded - * - * @param \OpenAPI\Client\Model\FieldConditions|null $redemptions_total_rollback_succeeded redemptions_total_rollback_succeeded - * - * @return self - */ - public function setRedemptionsTotalRollbackSucceeded($redemptions_total_rollback_succeeded) - { - if (is_null($redemptions_total_rollback_succeeded)) { - throw new \InvalidArgumentException('non-nullable redemptions_total_rollback_succeeded cannot be null'); - } - $this->container['redemptions_total_rollback_succeeded'] = $redemptions_total_rollback_succeeded; - - return $this; - } - - /** - * Gets orders_total_amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getOrdersTotalAmount() - { - return $this->container['orders_total_amount']; - } - - /** - * Sets orders_total_amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $orders_total_amount orders_total_amount - * - * @return self - */ - public function setOrdersTotalAmount($orders_total_amount) - { - if (is_null($orders_total_amount)) { - throw new \InvalidArgumentException('non-nullable orders_total_amount cannot be null'); - } - $this->container['orders_total_amount'] = $orders_total_amount; - - return $this; - } - - /** - * Gets orders_total_count - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getOrdersTotalCount() - { - return $this->container['orders_total_count']; - } - - /** - * Sets orders_total_count - * - * @param \OpenAPI\Client\Model\FieldConditions|null $orders_total_count orders_total_count - * - * @return self - */ - public function setOrdersTotalCount($orders_total_count) - { - if (is_null($orders_total_count)) { - throw new \InvalidArgumentException('non-nullable orders_total_count cannot be null'); - } - $this->container['orders_total_count'] = $orders_total_count; - - return $this; - } - - /** - * Gets orders_average_amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getOrdersAverageAmount() - { - return $this->container['orders_average_amount']; - } - - /** - * Sets orders_average_amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $orders_average_amount orders_average_amount - * - * @return self - */ - public function setOrdersAverageAmount($orders_average_amount) - { - if (is_null($orders_average_amount)) { - throw new \InvalidArgumentException('non-nullable orders_average_amount cannot be null'); - } - $this->container['orders_average_amount'] = $orders_average_amount; - - return $this; - } - - /** - * Gets orders_last_order_amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getOrdersLastOrderAmount() - { - return $this->container['orders_last_order_amount']; - } - - /** - * Sets orders_last_order_amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $orders_last_order_amount orders_last_order_amount - * - * @return self - */ - public function setOrdersLastOrderAmount($orders_last_order_amount) - { - if (is_null($orders_last_order_amount)) { - throw new \InvalidArgumentException('non-nullable orders_last_order_amount cannot be null'); - } - $this->container['orders_last_order_amount'] = $orders_last_order_amount; - - return $this; - } - - /** - * Gets orders_last_order_date - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getOrdersLastOrderDate() - { - return $this->container['orders_last_order_date']; - } - - /** - * Sets orders_last_order_date - * - * @param \OpenAPI\Client\Model\FieldConditions|null $orders_last_order_date orders_last_order_date - * - * @return self - */ - public function setOrdersLastOrderDate($orders_last_order_date) - { - if (is_null($orders_last_order_date)) { - throw new \InvalidArgumentException('non-nullable orders_last_order_date cannot be null'); - } - $this->container['orders_last_order_date'] = $orders_last_order_date; - - return $this; - } - - /** - * Gets loyalty_referred_customers - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getLoyaltyReferredCustomers() - { - return $this->container['loyalty_referred_customers']; - } - - /** - * Sets loyalty_referred_customers - * - * @param \OpenAPI\Client\Model\FieldConditions|null $loyalty_referred_customers loyalty_referred_customers - * - * @return self - */ - public function setLoyaltyReferredCustomers($loyalty_referred_customers) - { - if (is_null($loyalty_referred_customers)) { - throw new \InvalidArgumentException('non-nullable loyalty_referred_customers cannot be null'); - } - $this->container['loyalty_referred_customers'] = $loyalty_referred_customers; - - return $this; - } - - /** - * Gets phone - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getPhone() - { - return $this->container['phone']; - } - - /** - * Sets phone - * - * @param \OpenAPI\Client\Model\FieldConditions|null $phone phone - * - * @return self - */ - public function setPhone($phone) - { - if (is_null($phone)) { - throw new \InvalidArgumentException('non-nullable phone cannot be null'); - } - $this->container['phone'] = $phone; - - return $this; - } - - /** - * Gets birthday - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getBirthday() - { - return $this->container['birthday']; - } - - /** - * Sets birthday - * - * @param \OpenAPI\Client\Model\FieldConditions|null $birthday birthday - * - * @return self - */ - public function setBirthday($birthday) - { - if (is_null($birthday)) { - throw new \InvalidArgumentException('non-nullable birthday cannot be null'); - } - $this->container['birthday'] = $birthday; - - return $this; - } - - /** - * Gets birthdate - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getBirthdate() - { - return $this->container['birthdate']; - } - - /** - * Sets birthdate - * - * @param \OpenAPI\Client\Model\FieldConditions|null $birthdate birthdate - * - * @return self - */ - public function setBirthdate($birthdate) - { - if (is_null($birthdate)) { - throw new \InvalidArgumentException('non-nullable birthdate cannot be null'); - } - $this->container['birthdate'] = $birthdate; - - return $this; - } - - /** - * Gets channel - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getChannel() - { - return $this->container['channel']; - } - - /** - * Sets channel - * - * @param \OpenAPI\Client\Model\FieldConditions|null $channel channel - * - * @return self - */ - public function setChannel($channel) - { - if (is_null($channel)) { - throw new \InvalidArgumentException('non-nullable channel cannot be null'); - } - $this->container['channel'] = $channel; - - return $this; - } - - /** - * Gets is_winner - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getIsWinner() - { - return $this->container['is_winner']; - } - - /** - * Sets is_winner - * - * @param \OpenAPI\Client\Model\FieldConditions|null $is_winner is_winner - * - * @return self - */ - public function setIsWinner($is_winner) - { - if (is_null($is_winner)) { - throw new \InvalidArgumentException('non-nullable is_winner cannot be null'); - } - $this->container['is_winner'] = $is_winner; - - return $this; - } - - /** - * Gets status - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param \OpenAPI\Client\Model\FieldConditions|null $status status - * - * @return self - */ - public function setStatus($status) - { - if (is_null($status)) { - throw new \InvalidArgumentException('non-nullable status cannot be null'); - } - $this->container['status'] = $status; - - return $this; - } - - /** - * Gets amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $amount amount - * - * @return self - */ - public function setAmount($amount) - { - if (is_null($amount)) { - throw new \InvalidArgumentException('non-nullable amount cannot be null'); - } - $this->container['amount'] = $amount; - - return $this; - } - - /** - * Gets discount_amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getDiscountAmount() - { - return $this->container['discount_amount']; - } - - /** - * Sets discount_amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $discount_amount discount_amount - * - * @return self - */ - public function setDiscountAmount($discount_amount) - { - if (is_null($discount_amount)) { - throw new \InvalidArgumentException('non-nullable discount_amount cannot be null'); - } - $this->container['discount_amount'] = $discount_amount; - - return $this; - } - - /** - * Gets items_discount_amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getItemsDiscountAmount() - { - return $this->container['items_discount_amount']; - } - - /** - * Sets items_discount_amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $items_discount_amount items_discount_amount - * - * @return self - */ - public function setItemsDiscountAmount($items_discount_amount) - { - if (is_null($items_discount_amount)) { - throw new \InvalidArgumentException('non-nullable items_discount_amount cannot be null'); - } - $this->container['items_discount_amount'] = $items_discount_amount; - - return $this; - } - - /** - * Gets total_discount_amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getTotalDiscountAmount() - { - return $this->container['total_discount_amount']; - } - - /** - * Sets total_discount_amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $total_discount_amount total_discount_amount - * - * @return self - */ - public function setTotalDiscountAmount($total_discount_amount) - { - if (is_null($total_discount_amount)) { - throw new \InvalidArgumentException('non-nullable total_discount_amount cannot be null'); - } - $this->container['total_discount_amount'] = $total_discount_amount; - - return $this; - } - - /** - * Gets total_amount - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getTotalAmount() - { - return $this->container['total_amount']; - } - - /** - * Sets total_amount - * - * @param \OpenAPI\Client\Model\FieldConditions|null $total_amount total_amount - * - * @return self - */ - public function setTotalAmount($total_amount) - { - if (is_null($total_amount)) { - throw new \InvalidArgumentException('non-nullable total_amount cannot be null'); - } - $this->container['total_amount'] = $total_amount; - - return $this; - } - - /** - * Gets referrer_id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getReferrerId() - { - return $this->container['referrer_id']; - } - - /** - * Sets referrer_id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $referrer_id referrer_id - * - * @return self - */ - public function setReferrerId($referrer_id) - { - if (is_null($referrer_id)) { - throw new \InvalidArgumentException('non-nullable referrer_id cannot be null'); - } - $this->container['referrer_id'] = $referrer_id; - - return $this; - } - - /** - * Gets voucher_id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getVoucherId() - { - return $this->container['voucher_id']; - } - - /** - * Sets voucher_id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $voucher_id voucher_id - * - * @return self - */ - public function setVoucherId($voucher_id) - { - if (is_null($voucher_id)) { - throw new \InvalidArgumentException('non-nullable voucher_id cannot be null'); - } - $this->container['voucher_id'] = $voucher_id; - - return $this; - } - - /** - * Gets points - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getPoints() - { - return $this->container['points']; - } - - /** - * Sets points - * - * @param \OpenAPI\Client\Model\FieldConditions|null $points points - * - * @return self - */ - public function setPoints($points) - { - if (is_null($points)) { - throw new \InvalidArgumentException('non-nullable points cannot be null'); - } - $this->container['points'] = $points; - - return $this; - } - - /** - * Gets expires_at - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getExpiresAt() - { - return $this->container['expires_at']; - } - - /** - * Sets expires_at - * - * @param \OpenAPI\Client\Model\FieldConditions|null $expires_at expires_at - * - * @return self - */ - public function setExpiresAt($expires_at) - { - if (is_null($expires_at)) { - throw new \InvalidArgumentException('non-nullable expires_at cannot be null'); - } - $this->container['expires_at'] = $expires_at; - - return $this; - } - - /** - * Gets type - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param \OpenAPI\Client\Model\FieldConditions|null $type type - * - * @return self - */ - public function setType($type) - { - if (is_null($type)) { - throw new \InvalidArgumentException('non-nullable type cannot be null'); - } - $this->container['type'] = $type; - - return $this; - } - - /** - * Gets reason - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getReason() - { - return $this->container['reason']; - } - - /** - * Sets reason - * - * @param \OpenAPI\Client\Model\FieldConditions|null $reason reason - * - * @return self - */ - public function setReason($reason) - { - if (is_null($reason)) { - throw new \InvalidArgumentException('non-nullable reason cannot be null'); - } - $this->container['reason'] = $reason; - - return $this; - } - - /** - * Gets source - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getSource() - { - return $this->container['source']; - } - - /** - * Sets source - * - * @param \OpenAPI\Client\Model\FieldConditions|null $source source - * - * @return self - */ - public function setSource($source) - { - if (is_null($source)) { - throw new \InvalidArgumentException('non-nullable source cannot be null'); - } - $this->container['source'] = $source; - - return $this; - } - - /** - * Gets balance - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getBalance() - { - return $this->container['balance']; - } - - /** - * Sets balance - * - * @param \OpenAPI\Client\Model\FieldConditions|null $balance balance - * - * @return self - */ - public function setBalance($balance) - { - if (is_null($balance)) { - throw new \InvalidArgumentException('non-nullable balance cannot be null'); - } - $this->container['balance'] = $balance; - - return $this; - } - - /** - * Gets related_transaction_id - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getRelatedTransactionId() - { - return $this->container['related_transaction_id']; - } - - /** - * Sets related_transaction_id - * - * @param \OpenAPI\Client\Model\FieldConditions|null $related_transaction_id related_transaction_id - * - * @return self - */ - public function setRelatedTransactionId($related_transaction_id) - { - if (is_null($related_transaction_id)) { - throw new \InvalidArgumentException('non-nullable related_transaction_id cannot be null'); - } - $this->container['related_transaction_id'] = $related_transaction_id; - - return $this; - } - - /** - * Gets details - * - * @return \OpenAPI\Client\Model\FieldConditions|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param \OpenAPI\Client\Model\FieldConditions|null $details details - * - * @return self - */ - public function setDetails($details) - { - if (is_null($details)) { - throw new \InvalidArgumentException('non-nullable details cannot be null'); - } - $this->container['details'] = $details; - - return $this; - } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/LoyaltiesMembersTransactionsExportCreateRequestBodyParameters.php b/src/Model/LoyaltiesMembersTransactionsExportCreateRequestBodyParameters.php index db1e3c2..7374980 100644 --- a/src/Model/LoyaltiesMembersTransactionsExportCreateRequestBodyParameters.php +++ b/src/Model/LoyaltiesMembersTransactionsExportCreateRequestBodyParameters.php @@ -242,30 +242,8 @@ public function getModelName() return self::$openAPIModelName; } - public const ORDER_ID = 'id'; - public const ORDER_ID2 = '-id'; - public const ORDER_CAMPAIGN_ID = 'campaign_id'; - public const ORDER_CAMPAIGN_ID2 = '-campaign_id'; - public const ORDER_VOUCHER_ID = 'voucher_id'; - public const ORDER_VOUCHER_ID2 = '-voucher_id'; - public const ORDER_TYPE = 'type'; - public const ORDER_TYPE2 = '-type'; - public const ORDER_SOURCE_ID = 'source_id'; - public const ORDER_SOURCE_ID2 = '-source_id'; - public const ORDER_REASON = 'reason'; - public const ORDER_REASON2 = '-reason'; - public const ORDER_SOURCE = 'source'; - public const ORDER_SOURCE2 = '-source'; - public const ORDER_BALANCE = 'balance'; - public const ORDER_BALANCE2 = '-balance'; - public const ORDER_AMOUNT = 'amount'; - public const ORDER_AMOUNT2 = '-amount'; - public const ORDER_RELATED_TRANSACTION_ID = 'related_transaction_id'; - public const ORDER_RELATED_TRANSACTION_ID2 = '-related_transaction_id'; - public const ORDER_CREATED_AT = 'created_at'; - public const ORDER_CREATED_AT2 = '-created_at'; - public const ORDER_DETAILS = 'details'; - public const ORDER_DETAILS2 = '-details'; + public const ORDER_CREATED_AT = '-created_at'; + public const ORDER_CREATED_AT2 = 'created_at'; public const FIELDS_ID = 'id'; public const FIELDS_CAMPAIGN_ID = 'campaign_id'; public const FIELDS_VOUCHER_ID = 'voucher_id'; @@ -287,30 +265,8 @@ public function getModelName() public function getOrderAllowableValues() { return [ - self::ORDER_ID, - self::ORDER_ID2, - self::ORDER_CAMPAIGN_ID, - self::ORDER_CAMPAIGN_ID2, - self::ORDER_VOUCHER_ID, - self::ORDER_VOUCHER_ID2, - self::ORDER_TYPE, - self::ORDER_TYPE2, - self::ORDER_SOURCE_ID, - self::ORDER_SOURCE_ID2, - self::ORDER_REASON, - self::ORDER_REASON2, - self::ORDER_SOURCE, - self::ORDER_SOURCE2, - self::ORDER_BALANCE, - self::ORDER_BALANCE2, - self::ORDER_AMOUNT, - self::ORDER_AMOUNT2, - self::ORDER_RELATED_TRANSACTION_ID, - self::ORDER_RELATED_TRANSACTION_ID2, self::ORDER_CREATED_AT, self::ORDER_CREATED_AT2, - self::ORDER_DETAILS, - self::ORDER_DETAILS2, ]; } diff --git a/src/Model/OrdersExportCreateRequestBodyParameters.php b/src/Model/OrdersExportCreateRequestBodyParameters.php index c395705..e808cc6 100644 --- a/src/Model/OrdersExportCreateRequestBodyParameters.php +++ b/src/Model/OrdersExportCreateRequestBodyParameters.php @@ -61,7 +61,7 @@ class OrdersExportCreateRequestBodyParameters implements ModelInterface, ArrayAc protected static $openAPITypes = [ 'order' => 'string', 'fields' => 'string[]', - 'filters' => '\OpenAPI\Client\Model\ExportOrderFilters' + 'filters' => 'object' ]; /** @@ -242,32 +242,12 @@ public function getModelName() return self::$openAPIModelName; } - public const ORDER_ID = 'id'; - public const ORDER_ID2 = '-id'; - public const ORDER_SOURCE_ID = 'source_id'; - public const ORDER_SOURCE_ID2 = '-source_id'; - public const ORDER_CREATED_AT = 'created_at'; - public const ORDER_CREATED_AT2 = '-created_at'; - public const ORDER_UPDATED_AT = 'updated_at'; - public const ORDER_UPDATED_AT2 = '-updated_at'; - public const ORDER_STATUS = 'status'; - public const ORDER_STATUS2 = '-status'; - public const ORDER_AMOUNT = 'amount'; - public const ORDER_AMOUNT2 = '-amount'; - public const ORDER_DISCOUNT_AMOUNT = 'discount_amount'; - public const ORDER_DISCOUNT_AMOUNT2 = '-discount_amount'; - public const ORDER_ITEMS_DISCOUNT_AMOUNT = 'items_discount_amount'; - public const ORDER_ITEMS_DISCOUNT_AMOUNT2 = '-items_discount_amount'; - public const ORDER_TOTAL_DISCOUNT_AMOUNT = 'total_discount_amount'; - public const ORDER_TOTAL_DISCOUNT_AMOUNT2 = '-total_discount_amount'; - public const ORDER_TOTAL_AMOUNT = 'total_amount'; - public const ORDER_TOTAL_AMOUNT2 = '-total_amount'; - public const ORDER_CUSTOMER_ID = 'customer_id'; - public const ORDER_CUSTOMER_ID2 = '-customer_id'; - public const ORDER_REFERRER_ID = 'referrer_id'; - public const ORDER_REFERRER_ID2 = '-referrer_id'; - public const ORDER_METADATA = 'metadata'; - public const ORDER_METADATA2 = '-metadata'; + public const ORDER_CREATED_AT = '-created_at'; + public const ORDER_CREATED_AT2 = 'created_at'; + public const ORDER_UPDATED_AT = '-updated_at'; + public const ORDER_UPDATED_AT2 = 'updated_at'; + public const ORDER_STATUS = '-status'; + public const ORDER_STATUS2 = 'status'; public const FIELDS_ID = 'id'; public const FIELDS_SOURCE_ID = 'source_id'; public const FIELDS_CREATED_AT = 'created_at'; @@ -290,32 +270,12 @@ public function getModelName() public function getOrderAllowableValues() { return [ - self::ORDER_ID, - self::ORDER_ID2, - self::ORDER_SOURCE_ID, - self::ORDER_SOURCE_ID2, self::ORDER_CREATED_AT, self::ORDER_CREATED_AT2, self::ORDER_UPDATED_AT, self::ORDER_UPDATED_AT2, self::ORDER_STATUS, self::ORDER_STATUS2, - self::ORDER_AMOUNT, - self::ORDER_AMOUNT2, - self::ORDER_DISCOUNT_AMOUNT, - self::ORDER_DISCOUNT_AMOUNT2, - self::ORDER_ITEMS_DISCOUNT_AMOUNT, - self::ORDER_ITEMS_DISCOUNT_AMOUNT2, - self::ORDER_TOTAL_DISCOUNT_AMOUNT, - self::ORDER_TOTAL_DISCOUNT_AMOUNT2, - self::ORDER_TOTAL_AMOUNT, - self::ORDER_TOTAL_AMOUNT2, - self::ORDER_CUSTOMER_ID, - self::ORDER_CUSTOMER_ID2, - self::ORDER_REFERRER_ID, - self::ORDER_REFERRER_ID2, - self::ORDER_METADATA, - self::ORDER_METADATA2, ]; } @@ -490,7 +450,7 @@ public function setFields($fields) /** * Gets filters * - * @return \OpenAPI\Client\Model\ExportOrderFilters|null + * @return object|null */ public function getFilters() { @@ -500,7 +460,7 @@ public function getFilters() /** * Sets filters * - * @param \OpenAPI\Client\Model\ExportOrderFilters|null $filters filters + * @param object|null $filters Allowed additional properties must start with \"metadata.\" * * @return self */