From f6b61529fcc88ca40e47356a040af899da562697 Mon Sep 17 00:00:00 2001 From: Perry Tew Date: Mon, 15 Mar 2021 10:52:49 -0400 Subject: [PATCH] sort screen recordings by favorite flag --- README.md | 1 + docs/Api/OrderApi.md | 18 ++- docs/Model/EmailCommseqEmail.md | 1 + docs/Model/OrderQuery.md | 7 ++ lib/api/OrderApi.php | 94 ++++++++++++-- lib/models/EmailCommseqEmail.php | 30 +++++ lib/models/OrderQuery.php | 210 +++++++++++++++++++++++++++++++ 7 files changed, 347 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 19b1ba23..f14d7f31 100644 --- a/README.md +++ b/README.md @@ -1084,6 +1084,7 @@ Not every change is committed to every SDK. | Version | Date | Comments | | --: | :-: | --- | +| 3.1.14 | 03/15/2021 | sort screen recordings by favorite flag | | 3.1.13 | 03/02/2021 | new webhook order_payment_failed | | 3.1.12 | 02/25/2021 | added screen recording visitor_first_seen property | | 3.1.11 | 02/24/2021 | Added Screen recording visitor number | diff --git a/docs/Api/OrderApi.md b/docs/Api/OrderApi.md index 620670c7..65f9ba08 100644 --- a/docs/Api/OrderApi.md +++ b/docs/Api/OrderApi.md @@ -464,7 +464,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getOrders** -> \ultracart\v2\models\OrdersResponse getOrders($order_id, $payment_method, $company, $first_name, $last_name, $city, $state_region, $postal_code, $country_code, $phone, $email, $cc_email, $total, $screen_branding_theme_code, $storefront_host_name, $creation_date_begin, $creation_date_end, $payment_date_begin, $payment_date_end, $shipment_date_begin, $shipment_date_end, $rma, $purchase_order_number, $item_id, $current_stage, $channel_partner_code, $channel_partner_order_id, $customer_profile_oid, $refund_date_begin, $refund_date_end, $_limit, $_offset, $_sort, $_expand) +> \ultracart\v2\models\OrdersResponse getOrders($order_id, $payment_method, $company, $first_name, $last_name, $city, $state_region, $postal_code, $country_code, $phone, $email, $cc_email, $total, $screen_branding_theme_code, $storefront_host_name, $creation_date_begin, $creation_date_end, $payment_date_begin, $payment_date_end, $shipment_date_begin, $shipment_date_end, $rma, $purchase_order_number, $item_id, $current_stage, $channel_partner_code, $channel_partner_order_id, $customer_profile_oid, $refund_date_begin, $refund_date_end, $custom_field_1, $custom_field_2, $custom_field_3, $custom_field_4, $custom_field_5, $custom_field_6, $custom_field_7, $_limit, $_offset, $_sort, $_expand) Retrieve orders @@ -509,13 +509,20 @@ $channel_partner_order_id = "channel_partner_order_id_example"; // string | Chan $customer_profile_oid = 56; // int | $refund_date_begin = "refund_date_begin_example"; // string | $refund_date_end = "refund_date_end_example"; // string | +$custom_field_1 = "custom_field_1_example"; // string | +$custom_field_2 = "custom_field_2_example"; // string | +$custom_field_3 = "custom_field_3_example"; // string | +$custom_field_4 = "custom_field_4_example"; // string | +$custom_field_5 = "custom_field_5_example"; // string | +$custom_field_6 = "custom_field_6_example"; // string | +$custom_field_7 = "custom_field_7_example"; // string | $_limit = 100; // int | The maximum number of records to return on this one API call. (Maximum 200) $_offset = 0; // int | Pagination of the record set. Offset is a zero based index. $_sort = "_sort_example"; // string | The sort order of the orders. See Sorting documentation for examples of using multiple values and sorting by ascending and descending. $_expand = "_expand_example"; // string | The object expansion to perform on the result. try { - $result = $apiInstance->getOrders($order_id, $payment_method, $company, $first_name, $last_name, $city, $state_region, $postal_code, $country_code, $phone, $email, $cc_email, $total, $screen_branding_theme_code, $storefront_host_name, $creation_date_begin, $creation_date_end, $payment_date_begin, $payment_date_end, $shipment_date_begin, $shipment_date_end, $rma, $purchase_order_number, $item_id, $current_stage, $channel_partner_code, $channel_partner_order_id, $customer_profile_oid, $refund_date_begin, $refund_date_end, $_limit, $_offset, $_sort, $_expand); + $result = $apiInstance->getOrders($order_id, $payment_method, $company, $first_name, $last_name, $city, $state_region, $postal_code, $country_code, $phone, $email, $cc_email, $total, $screen_branding_theme_code, $storefront_host_name, $creation_date_begin, $creation_date_end, $payment_date_begin, $payment_date_end, $shipment_date_begin, $shipment_date_end, $rma, $purchase_order_number, $item_id, $current_stage, $channel_partner_code, $channel_partner_order_id, $customer_profile_oid, $refund_date_begin, $refund_date_end, $custom_field_1, $custom_field_2, $custom_field_3, $custom_field_4, $custom_field_5, $custom_field_6, $custom_field_7, $_limit, $_offset, $_sort, $_expand); print_r($result); } catch (Exception $e) { echo 'Exception when calling OrderApi->getOrders: ', $e->getMessage(), PHP_EOL; @@ -557,6 +564,13 @@ Name | Type | Description | Notes **customer_profile_oid** | **int**| | [optional] **refund_date_begin** | **string**| | [optional] **refund_date_end** | **string**| | [optional] + **custom_field_1** | **string**| | [optional] + **custom_field_2** | **string**| | [optional] + **custom_field_3** | **string**| | [optional] + **custom_field_4** | **string**| | [optional] + **custom_field_5** | **string**| | [optional] + **custom_field_6** | **string**| | [optional] + **custom_field_7** | **string**| | [optional] **_limit** | **int**| The maximum number of records to return on this one API call. (Maximum 200) | [optional] [default to 100] **_offset** | **int**| Pagination of the record set. Offset is a zero based index. | [optional] [default to 0] **_sort** | **string**| The sort order of the orders. See Sorting documentation for examples of using multiple values and sorting by ascending and descending. | [optional] diff --git a/docs/Model/EmailCommseqEmail.md b/docs/Model/EmailCommseqEmail.md index 34f71d55..1e460201 100644 --- a/docs/Model/EmailCommseqEmail.md +++ b/docs/Model/EmailCommseqEmail.md @@ -25,6 +25,7 @@ Name | Type | Description | Notes **smart_sending** | **bool** | Smart sending | [optional] **storefront_oid** | **int** | Storefront oid | [optional] **subject** | **string** | Subject | [optional] +**suspended_for_spam** | **bool** | True if the email was suspended for too high of a spam rate. | [optional] **transactional_email** | **bool** | Transactional email | [optional] **version** | **int** | Version | [optional] diff --git a/docs/Model/OrderQuery.md b/docs/Model/OrderQuery.md index 742bf0d1..1f38419b 100644 --- a/docs/Model/OrderQuery.md +++ b/docs/Model/OrderQuery.md @@ -12,6 +12,13 @@ Name | Type | Description | Notes **creation_date_begin** | **string** | Date/time that the order was created | [optional] **creation_date_end** | **string** | Date/time that the order was created | [optional] **current_stage** | **string** | Current stage that the order is in. | [optional] +**custom_field_1** | **string** | Custom field 1 | [optional] +**custom_field_2** | **string** | Custom field 2 | [optional] +**custom_field_3** | **string** | Custom field 3 | [optional] +**custom_field_4** | **string** | Custom field 4 | [optional] +**custom_field_5** | **string** | Custom field 5 | [optional] +**custom_field_6** | **string** | Custom field 6 | [optional] +**custom_field_7** | **string** | Custom field 7 | [optional] **customer_profile_oid** | **int** | The customer profile to find associated orders for | [optional] **email** | **string** | Email | [optional] **first_name** | **string** | First name | [optional] diff --git a/lib/api/OrderApi.php b/lib/api/OrderApi.php index a22a6c6a..fa2e5fd9 100644 --- a/lib/api/OrderApi.php +++ b/lib/api/OrderApi.php @@ -3175,6 +3175,13 @@ protected function getOrderByTokenRequest($order_by_token_query, $_expand = null * @param int $customer_profile_oid customer_profile_oid (optional) * @param string $refund_date_begin refund_date_begin (optional) * @param string $refund_date_end refund_date_end (optional) + * @param string $custom_field_1 custom_field_1 (optional) + * @param string $custom_field_2 custom_field_2 (optional) + * @param string $custom_field_3 custom_field_3 (optional) + * @param string $custom_field_4 custom_field_4 (optional) + * @param string $custom_field_5 custom_field_5 (optional) + * @param string $custom_field_6 custom_field_6 (optional) + * @param string $custom_field_7 custom_field_7 (optional) * @param int $_limit The maximum number of records to return on this one API call. (Maximum 200) (optional, default to 100) * @param int $_offset Pagination of the record set. Offset is a zero based index. (optional, default to 0) * @param string $_sort The sort order of the orders. See Sorting documentation for examples of using multiple values and sorting by ascending and descending. (optional) @@ -3184,9 +3191,9 @@ protected function getOrderByTokenRequest($order_by_token_query, $_expand = null * @throws \InvalidArgumentException * @return \ultracart\v2\models\OrdersResponse */ - public function getOrders($order_id = null, $payment_method = null, $company = null, $first_name = null, $last_name = null, $city = null, $state_region = null, $postal_code = null, $country_code = null, $phone = null, $email = null, $cc_email = null, $total = null, $screen_branding_theme_code = null, $storefront_host_name = null, $creation_date_begin = null, $creation_date_end = null, $payment_date_begin = null, $payment_date_end = null, $shipment_date_begin = null, $shipment_date_end = null, $rma = null, $purchase_order_number = null, $item_id = null, $current_stage = null, $channel_partner_code = null, $channel_partner_order_id = null, $customer_profile_oid = null, $refund_date_begin = null, $refund_date_end = null, $_limit = '100', $_offset = '0', $_sort = null, $_expand = null) + public function getOrders($order_id = null, $payment_method = null, $company = null, $first_name = null, $last_name = null, $city = null, $state_region = null, $postal_code = null, $country_code = null, $phone = null, $email = null, $cc_email = null, $total = null, $screen_branding_theme_code = null, $storefront_host_name = null, $creation_date_begin = null, $creation_date_end = null, $payment_date_begin = null, $payment_date_end = null, $shipment_date_begin = null, $shipment_date_end = null, $rma = null, $purchase_order_number = null, $item_id = null, $current_stage = null, $channel_partner_code = null, $channel_partner_order_id = null, $customer_profile_oid = null, $refund_date_begin = null, $refund_date_end = null, $custom_field_1 = null, $custom_field_2 = null, $custom_field_3 = null, $custom_field_4 = null, $custom_field_5 = null, $custom_field_6 = null, $custom_field_7 = null, $_limit = '100', $_offset = '0', $_sort = null, $_expand = null) { - list($response) = $this->getOrdersWithHttpInfo($order_id, $payment_method, $company, $first_name, $last_name, $city, $state_region, $postal_code, $country_code, $phone, $email, $cc_email, $total, $screen_branding_theme_code, $storefront_host_name, $creation_date_begin, $creation_date_end, $payment_date_begin, $payment_date_end, $shipment_date_begin, $shipment_date_end, $rma, $purchase_order_number, $item_id, $current_stage, $channel_partner_code, $channel_partner_order_id, $customer_profile_oid, $refund_date_begin, $refund_date_end, $_limit, $_offset, $_sort, $_expand); + list($response) = $this->getOrdersWithHttpInfo($order_id, $payment_method, $company, $first_name, $last_name, $city, $state_region, $postal_code, $country_code, $phone, $email, $cc_email, $total, $screen_branding_theme_code, $storefront_host_name, $creation_date_begin, $creation_date_end, $payment_date_begin, $payment_date_end, $shipment_date_begin, $shipment_date_end, $rma, $purchase_order_number, $item_id, $current_stage, $channel_partner_code, $channel_partner_order_id, $customer_profile_oid, $refund_date_begin, $refund_date_end, $custom_field_1, $custom_field_2, $custom_field_3, $custom_field_4, $custom_field_5, $custom_field_6, $custom_field_7, $_limit, $_offset, $_sort, $_expand); return $response; } @@ -3226,6 +3233,13 @@ public function getOrders($order_id = null, $payment_method = null, $company = n * @param int $customer_profile_oid (optional) * @param string $refund_date_begin (optional) * @param string $refund_date_end (optional) + * @param string $custom_field_1 (optional) + * @param string $custom_field_2 (optional) + * @param string $custom_field_3 (optional) + * @param string $custom_field_4 (optional) + * @param string $custom_field_5 (optional) + * @param string $custom_field_6 (optional) + * @param string $custom_field_7 (optional) * @param int $_limit The maximum number of records to return on this one API call. (Maximum 200) (optional, default to 100) * @param int $_offset Pagination of the record set. Offset is a zero based index. (optional, default to 0) * @param string $_sort The sort order of the orders. See Sorting documentation for examples of using multiple values and sorting by ascending and descending. (optional) @@ -3235,9 +3249,9 @@ public function getOrders($order_id = null, $payment_method = null, $company = n * @throws \InvalidArgumentException * @return array of \ultracart\v2\models\OrdersResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getOrdersWithHttpInfo($order_id = null, $payment_method = null, $company = null, $first_name = null, $last_name = null, $city = null, $state_region = null, $postal_code = null, $country_code = null, $phone = null, $email = null, $cc_email = null, $total = null, $screen_branding_theme_code = null, $storefront_host_name = null, $creation_date_begin = null, $creation_date_end = null, $payment_date_begin = null, $payment_date_end = null, $shipment_date_begin = null, $shipment_date_end = null, $rma = null, $purchase_order_number = null, $item_id = null, $current_stage = null, $channel_partner_code = null, $channel_partner_order_id = null, $customer_profile_oid = null, $refund_date_begin = null, $refund_date_end = null, $_limit = '100', $_offset = '0', $_sort = null, $_expand = null) + public function getOrdersWithHttpInfo($order_id = null, $payment_method = null, $company = null, $first_name = null, $last_name = null, $city = null, $state_region = null, $postal_code = null, $country_code = null, $phone = null, $email = null, $cc_email = null, $total = null, $screen_branding_theme_code = null, $storefront_host_name = null, $creation_date_begin = null, $creation_date_end = null, $payment_date_begin = null, $payment_date_end = null, $shipment_date_begin = null, $shipment_date_end = null, $rma = null, $purchase_order_number = null, $item_id = null, $current_stage = null, $channel_partner_code = null, $channel_partner_order_id = null, $customer_profile_oid = null, $refund_date_begin = null, $refund_date_end = null, $custom_field_1 = null, $custom_field_2 = null, $custom_field_3 = null, $custom_field_4 = null, $custom_field_5 = null, $custom_field_6 = null, $custom_field_7 = null, $_limit = '100', $_offset = '0', $_sort = null, $_expand = null) { - return $this->getOrdersWithHttpInfoRetry(true , $order_id, $payment_method, $company, $first_name, $last_name, $city, $state_region, $postal_code, $country_code, $phone, $email, $cc_email, $total, $screen_branding_theme_code, $storefront_host_name, $creation_date_begin, $creation_date_end, $payment_date_begin, $payment_date_end, $shipment_date_begin, $shipment_date_end, $rma, $purchase_order_number, $item_id, $current_stage, $channel_partner_code, $channel_partner_order_id, $customer_profile_oid, $refund_date_begin, $refund_date_end, $_limit, $_offset, $_sort, $_expand); + return $this->getOrdersWithHttpInfoRetry(true , $order_id, $payment_method, $company, $first_name, $last_name, $city, $state_region, $postal_code, $country_code, $phone, $email, $cc_email, $total, $screen_branding_theme_code, $storefront_host_name, $creation_date_begin, $creation_date_end, $payment_date_begin, $payment_date_end, $shipment_date_begin, $shipment_date_end, $rma, $purchase_order_number, $item_id, $current_stage, $channel_partner_code, $channel_partner_order_id, $customer_profile_oid, $refund_date_begin, $refund_date_end, $custom_field_1, $custom_field_2, $custom_field_3, $custom_field_4, $custom_field_5, $custom_field_6, $custom_field_7, $_limit, $_offset, $_sort, $_expand); } @@ -3277,6 +3291,13 @@ public function getOrdersWithHttpInfo($order_id = null, $payment_method = null, * @param int $customer_profile_oid (optional) * @param string $refund_date_begin (optional) * @param string $refund_date_end (optional) + * @param string $custom_field_1 (optional) + * @param string $custom_field_2 (optional) + * @param string $custom_field_3 (optional) + * @param string $custom_field_4 (optional) + * @param string $custom_field_5 (optional) + * @param string $custom_field_6 (optional) + * @param string $custom_field_7 (optional) * @param int $_limit The maximum number of records to return on this one API call. (Maximum 200) (optional, default to 100) * @param int $_offset Pagination of the record set. Offset is a zero based index. (optional, default to 0) * @param string $_sort The sort order of the orders. See Sorting documentation for examples of using multiple values and sorting by ascending and descending. (optional) @@ -3286,10 +3307,10 @@ public function getOrdersWithHttpInfo($order_id = null, $payment_method = null, * @throws \InvalidArgumentException * @return array of \ultracart\v2\models\OrdersResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getOrdersWithHttpInfoRetry($retry , $order_id = null, $payment_method = null, $company = null, $first_name = null, $last_name = null, $city = null, $state_region = null, $postal_code = null, $country_code = null, $phone = null, $email = null, $cc_email = null, $total = null, $screen_branding_theme_code = null, $storefront_host_name = null, $creation_date_begin = null, $creation_date_end = null, $payment_date_begin = null, $payment_date_end = null, $shipment_date_begin = null, $shipment_date_end = null, $rma = null, $purchase_order_number = null, $item_id = null, $current_stage = null, $channel_partner_code = null, $channel_partner_order_id = null, $customer_profile_oid = null, $refund_date_begin = null, $refund_date_end = null, $_limit = '100', $_offset = '0', $_sort = null, $_expand = null) + public function getOrdersWithHttpInfoRetry($retry , $order_id = null, $payment_method = null, $company = null, $first_name = null, $last_name = null, $city = null, $state_region = null, $postal_code = null, $country_code = null, $phone = null, $email = null, $cc_email = null, $total = null, $screen_branding_theme_code = null, $storefront_host_name = null, $creation_date_begin = null, $creation_date_end = null, $payment_date_begin = null, $payment_date_end = null, $shipment_date_begin = null, $shipment_date_end = null, $rma = null, $purchase_order_number = null, $item_id = null, $current_stage = null, $channel_partner_code = null, $channel_partner_order_id = null, $customer_profile_oid = null, $refund_date_begin = null, $refund_date_end = null, $custom_field_1 = null, $custom_field_2 = null, $custom_field_3 = null, $custom_field_4 = null, $custom_field_5 = null, $custom_field_6 = null, $custom_field_7 = null, $_limit = '100', $_offset = '0', $_sort = null, $_expand = null) { $returnType = '\ultracart\v2\models\OrdersResponse'; - $request = $this->getOrdersRequest($order_id, $payment_method, $company, $first_name, $last_name, $city, $state_region, $postal_code, $country_code, $phone, $email, $cc_email, $total, $screen_branding_theme_code, $storefront_host_name, $creation_date_begin, $creation_date_end, $payment_date_begin, $payment_date_end, $shipment_date_begin, $shipment_date_end, $rma, $purchase_order_number, $item_id, $current_stage, $channel_partner_code, $channel_partner_order_id, $customer_profile_oid, $refund_date_begin, $refund_date_end, $_limit, $_offset, $_sort, $_expand); + $request = $this->getOrdersRequest($order_id, $payment_method, $company, $first_name, $last_name, $city, $state_region, $postal_code, $country_code, $phone, $email, $cc_email, $total, $screen_branding_theme_code, $storefront_host_name, $creation_date_begin, $creation_date_end, $payment_date_begin, $payment_date_end, $shipment_date_begin, $shipment_date_end, $rma, $purchase_order_number, $item_id, $current_stage, $channel_partner_code, $channel_partner_order_id, $customer_profile_oid, $refund_date_begin, $refund_date_end, $custom_field_1, $custom_field_2, $custom_field_3, $custom_field_4, $custom_field_5, $custom_field_6, $custom_field_7, $_limit, $_offset, $_sort, $_expand); try { $options = $this->createHttpClientOption(); @@ -3308,7 +3329,7 @@ public function getOrdersWithHttpInfoRetry($retry , $order_id = null, $payment if ($statusCode == 429 && $retry && $retryAfter > 0 && $retryAfter <= $this->config->getMaxRetrySeconds()) { sleep($retryAfter); - return $this->getOrdersWithHttpInfoRetry(false , $order_id, $payment_method, $company, $first_name, $last_name, $city, $state_region, $postal_code, $country_code, $phone, $email, $cc_email, $total, $screen_branding_theme_code, $storefront_host_name, $creation_date_begin, $creation_date_end, $payment_date_begin, $payment_date_end, $shipment_date_begin, $shipment_date_end, $rma, $purchase_order_number, $item_id, $current_stage, $channel_partner_code, $channel_partner_order_id, $customer_profile_oid, $refund_date_begin, $refund_date_end, $_limit, $_offset, $_sort, $_expand); + return $this->getOrdersWithHttpInfoRetry(false , $order_id, $payment_method, $company, $first_name, $last_name, $city, $state_region, $postal_code, $country_code, $phone, $email, $cc_email, $total, $screen_branding_theme_code, $storefront_host_name, $creation_date_begin, $creation_date_end, $payment_date_begin, $payment_date_end, $shipment_date_begin, $shipment_date_end, $rma, $purchase_order_number, $item_id, $current_stage, $channel_partner_code, $channel_partner_order_id, $customer_profile_oid, $refund_date_begin, $refund_date_end, $custom_field_1, $custom_field_2, $custom_field_3, $custom_field_4, $custom_field_5, $custom_field_6, $custom_field_7, $_limit, $_offset, $_sort, $_expand); } } @@ -3426,6 +3447,13 @@ public function getOrdersWithHttpInfoRetry($retry , $order_id = null, $payment * @param int $customer_profile_oid (optional) * @param string $refund_date_begin (optional) * @param string $refund_date_end (optional) + * @param string $custom_field_1 (optional) + * @param string $custom_field_2 (optional) + * @param string $custom_field_3 (optional) + * @param string $custom_field_4 (optional) + * @param string $custom_field_5 (optional) + * @param string $custom_field_6 (optional) + * @param string $custom_field_7 (optional) * @param int $_limit The maximum number of records to return on this one API call. (Maximum 200) (optional, default to 100) * @param int $_offset Pagination of the record set. Offset is a zero based index. (optional, default to 0) * @param string $_sort The sort order of the orders. See Sorting documentation for examples of using multiple values and sorting by ascending and descending. (optional) @@ -3434,9 +3462,9 @@ public function getOrdersWithHttpInfoRetry($retry , $order_id = null, $payment * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getOrdersAsync($order_id = null, $payment_method = null, $company = null, $first_name = null, $last_name = null, $city = null, $state_region = null, $postal_code = null, $country_code = null, $phone = null, $email = null, $cc_email = null, $total = null, $screen_branding_theme_code = null, $storefront_host_name = null, $creation_date_begin = null, $creation_date_end = null, $payment_date_begin = null, $payment_date_end = null, $shipment_date_begin = null, $shipment_date_end = null, $rma = null, $purchase_order_number = null, $item_id = null, $current_stage = null, $channel_partner_code = null, $channel_partner_order_id = null, $customer_profile_oid = null, $refund_date_begin = null, $refund_date_end = null, $_limit = '100', $_offset = '0', $_sort = null, $_expand = null) + public function getOrdersAsync($order_id = null, $payment_method = null, $company = null, $first_name = null, $last_name = null, $city = null, $state_region = null, $postal_code = null, $country_code = null, $phone = null, $email = null, $cc_email = null, $total = null, $screen_branding_theme_code = null, $storefront_host_name = null, $creation_date_begin = null, $creation_date_end = null, $payment_date_begin = null, $payment_date_end = null, $shipment_date_begin = null, $shipment_date_end = null, $rma = null, $purchase_order_number = null, $item_id = null, $current_stage = null, $channel_partner_code = null, $channel_partner_order_id = null, $customer_profile_oid = null, $refund_date_begin = null, $refund_date_end = null, $custom_field_1 = null, $custom_field_2 = null, $custom_field_3 = null, $custom_field_4 = null, $custom_field_5 = null, $custom_field_6 = null, $custom_field_7 = null, $_limit = '100', $_offset = '0', $_sort = null, $_expand = null) { - return $this->getOrdersAsyncWithHttpInfo($order_id, $payment_method, $company, $first_name, $last_name, $city, $state_region, $postal_code, $country_code, $phone, $email, $cc_email, $total, $screen_branding_theme_code, $storefront_host_name, $creation_date_begin, $creation_date_end, $payment_date_begin, $payment_date_end, $shipment_date_begin, $shipment_date_end, $rma, $purchase_order_number, $item_id, $current_stage, $channel_partner_code, $channel_partner_order_id, $customer_profile_oid, $refund_date_begin, $refund_date_end, $_limit, $_offset, $_sort, $_expand) + return $this->getOrdersAsyncWithHttpInfo($order_id, $payment_method, $company, $first_name, $last_name, $city, $state_region, $postal_code, $country_code, $phone, $email, $cc_email, $total, $screen_branding_theme_code, $storefront_host_name, $creation_date_begin, $creation_date_end, $payment_date_begin, $payment_date_end, $shipment_date_begin, $shipment_date_end, $rma, $purchase_order_number, $item_id, $current_stage, $channel_partner_code, $channel_partner_order_id, $customer_profile_oid, $refund_date_begin, $refund_date_end, $custom_field_1, $custom_field_2, $custom_field_3, $custom_field_4, $custom_field_5, $custom_field_6, $custom_field_7, $_limit, $_offset, $_sort, $_expand) ->then( function ($response) { return $response[0]; @@ -3479,6 +3507,13 @@ function ($response) { * @param int $customer_profile_oid (optional) * @param string $refund_date_begin (optional) * @param string $refund_date_end (optional) + * @param string $custom_field_1 (optional) + * @param string $custom_field_2 (optional) + * @param string $custom_field_3 (optional) + * @param string $custom_field_4 (optional) + * @param string $custom_field_5 (optional) + * @param string $custom_field_6 (optional) + * @param string $custom_field_7 (optional) * @param int $_limit The maximum number of records to return on this one API call. (Maximum 200) (optional, default to 100) * @param int $_offset Pagination of the record set. Offset is a zero based index. (optional, default to 0) * @param string $_sort The sort order of the orders. See Sorting documentation for examples of using multiple values and sorting by ascending and descending. (optional) @@ -3487,10 +3522,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getOrdersAsyncWithHttpInfo($order_id = null, $payment_method = null, $company = null, $first_name = null, $last_name = null, $city = null, $state_region = null, $postal_code = null, $country_code = null, $phone = null, $email = null, $cc_email = null, $total = null, $screen_branding_theme_code = null, $storefront_host_name = null, $creation_date_begin = null, $creation_date_end = null, $payment_date_begin = null, $payment_date_end = null, $shipment_date_begin = null, $shipment_date_end = null, $rma = null, $purchase_order_number = null, $item_id = null, $current_stage = null, $channel_partner_code = null, $channel_partner_order_id = null, $customer_profile_oid = null, $refund_date_begin = null, $refund_date_end = null, $_limit = '100', $_offset = '0', $_sort = null, $_expand = null) + public function getOrdersAsyncWithHttpInfo($order_id = null, $payment_method = null, $company = null, $first_name = null, $last_name = null, $city = null, $state_region = null, $postal_code = null, $country_code = null, $phone = null, $email = null, $cc_email = null, $total = null, $screen_branding_theme_code = null, $storefront_host_name = null, $creation_date_begin = null, $creation_date_end = null, $payment_date_begin = null, $payment_date_end = null, $shipment_date_begin = null, $shipment_date_end = null, $rma = null, $purchase_order_number = null, $item_id = null, $current_stage = null, $channel_partner_code = null, $channel_partner_order_id = null, $customer_profile_oid = null, $refund_date_begin = null, $refund_date_end = null, $custom_field_1 = null, $custom_field_2 = null, $custom_field_3 = null, $custom_field_4 = null, $custom_field_5 = null, $custom_field_6 = null, $custom_field_7 = null, $_limit = '100', $_offset = '0', $_sort = null, $_expand = null) { $returnType = '\ultracart\v2\models\OrdersResponse'; - $request = $this->getOrdersRequest($order_id, $payment_method, $company, $first_name, $last_name, $city, $state_region, $postal_code, $country_code, $phone, $email, $cc_email, $total, $screen_branding_theme_code, $storefront_host_name, $creation_date_begin, $creation_date_end, $payment_date_begin, $payment_date_end, $shipment_date_begin, $shipment_date_end, $rma, $purchase_order_number, $item_id, $current_stage, $channel_partner_code, $channel_partner_order_id, $customer_profile_oid, $refund_date_begin, $refund_date_end, $_limit, $_offset, $_sort, $_expand); + $request = $this->getOrdersRequest($order_id, $payment_method, $company, $first_name, $last_name, $city, $state_region, $postal_code, $country_code, $phone, $email, $cc_email, $total, $screen_branding_theme_code, $storefront_host_name, $creation_date_begin, $creation_date_end, $payment_date_begin, $payment_date_end, $shipment_date_begin, $shipment_date_end, $rma, $purchase_order_number, $item_id, $current_stage, $channel_partner_code, $channel_partner_order_id, $customer_profile_oid, $refund_date_begin, $refund_date_end, $custom_field_1, $custom_field_2, $custom_field_3, $custom_field_4, $custom_field_5, $custom_field_6, $custom_field_7, $_limit, $_offset, $_sort, $_expand); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3562,6 +3597,13 @@ function ($exception) { * @param int $customer_profile_oid (optional) * @param string $refund_date_begin (optional) * @param string $refund_date_end (optional) + * @param string $custom_field_1 (optional) + * @param string $custom_field_2 (optional) + * @param string $custom_field_3 (optional) + * @param string $custom_field_4 (optional) + * @param string $custom_field_5 (optional) + * @param string $custom_field_6 (optional) + * @param string $custom_field_7 (optional) * @param int $_limit The maximum number of records to return on this one API call. (Maximum 200) (optional, default to 100) * @param int $_offset Pagination of the record set. Offset is a zero based index. (optional, default to 0) * @param string $_sort The sort order of the orders. See Sorting documentation for examples of using multiple values and sorting by ascending and descending. (optional) @@ -3570,7 +3612,7 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function getOrdersRequest($order_id = null, $payment_method = null, $company = null, $first_name = null, $last_name = null, $city = null, $state_region = null, $postal_code = null, $country_code = null, $phone = null, $email = null, $cc_email = null, $total = null, $screen_branding_theme_code = null, $storefront_host_name = null, $creation_date_begin = null, $creation_date_end = null, $payment_date_begin = null, $payment_date_end = null, $shipment_date_begin = null, $shipment_date_end = null, $rma = null, $purchase_order_number = null, $item_id = null, $current_stage = null, $channel_partner_code = null, $channel_partner_order_id = null, $customer_profile_oid = null, $refund_date_begin = null, $refund_date_end = null, $_limit = '100', $_offset = '0', $_sort = null, $_expand = null) + protected function getOrdersRequest($order_id = null, $payment_method = null, $company = null, $first_name = null, $last_name = null, $city = null, $state_region = null, $postal_code = null, $country_code = null, $phone = null, $email = null, $cc_email = null, $total = null, $screen_branding_theme_code = null, $storefront_host_name = null, $creation_date_begin = null, $creation_date_end = null, $payment_date_begin = null, $payment_date_end = null, $shipment_date_begin = null, $shipment_date_end = null, $rma = null, $purchase_order_number = null, $item_id = null, $current_stage = null, $channel_partner_code = null, $channel_partner_order_id = null, $customer_profile_oid = null, $refund_date_begin = null, $refund_date_end = null, $custom_field_1 = null, $custom_field_2 = null, $custom_field_3 = null, $custom_field_4 = null, $custom_field_5 = null, $custom_field_6 = null, $custom_field_7 = null, $_limit = '100', $_offset = '0', $_sort = null, $_expand = null) { $resourcePath = '/order/orders'; @@ -3701,6 +3743,34 @@ protected function getOrdersRequest($order_id = null, $payment_method = null, $c $queryParams['Refund Date End'] = ObjectSerializer::toQueryValue($refund_date_end); } // query params + if ($custom_field_1 !== null) { + $queryParams['Custom Field 1'] = ObjectSerializer::toQueryValue($custom_field_1); + } + // query params + if ($custom_field_2 !== null) { + $queryParams['Custom Field 2'] = ObjectSerializer::toQueryValue($custom_field_2); + } + // query params + if ($custom_field_3 !== null) { + $queryParams['Custom Field 3'] = ObjectSerializer::toQueryValue($custom_field_3); + } + // query params + if ($custom_field_4 !== null) { + $queryParams['Custom Field 4'] = ObjectSerializer::toQueryValue($custom_field_4); + } + // query params + if ($custom_field_5 !== null) { + $queryParams['Custom Field 5'] = ObjectSerializer::toQueryValue($custom_field_5); + } + // query params + if ($custom_field_6 !== null) { + $queryParams['Custom Field 6'] = ObjectSerializer::toQueryValue($custom_field_6); + } + // query params + if ($custom_field_7 !== null) { + $queryParams['Custom Field 7'] = ObjectSerializer::toQueryValue($custom_field_7); + } + // query params if ($_limit !== null) { $queryParams['_limit'] = ObjectSerializer::toQueryValue($_limit); } diff --git a/lib/models/EmailCommseqEmail.php b/lib/models/EmailCommseqEmail.php index d5cc25ac..51cfd2c5 100644 --- a/lib/models/EmailCommseqEmail.php +++ b/lib/models/EmailCommseqEmail.php @@ -79,6 +79,7 @@ class EmailCommseqEmail implements ModelInterface, ArrayAccess 'smart_sending' => 'bool', 'storefront_oid' => 'int', 'subject' => 'string', + 'suspended_for_spam' => 'bool', 'transactional_email' => 'bool', 'version' => 'int' ]; @@ -111,6 +112,7 @@ class EmailCommseqEmail implements ModelInterface, ArrayAccess 'smart_sending' => null, 'storefront_oid' => 'int32', 'subject' => null, + 'suspended_for_spam' => null, 'transactional_email' => null, 'version' => 'int32' ]; @@ -164,6 +166,7 @@ public static function swaggerFormats() 'smart_sending' => 'smart_sending', 'storefront_oid' => 'storefront_oid', 'subject' => 'subject', + 'suspended_for_spam' => 'suspended_for_spam', 'transactional_email' => 'transactional_email', 'version' => 'version' ]; @@ -196,6 +199,7 @@ public static function swaggerFormats() 'smart_sending' => 'setSmartSending', 'storefront_oid' => 'setStorefrontOid', 'subject' => 'setSubject', + 'suspended_for_spam' => 'setSuspendedForSpam', 'transactional_email' => 'setTransactionalEmail', 'version' => 'setVersion' ]; @@ -228,6 +232,7 @@ public static function swaggerFormats() 'smart_sending' => 'getSmartSending', 'storefront_oid' => 'getStorefrontOid', 'subject' => 'getSubject', + 'suspended_for_spam' => 'getSuspendedForSpam', 'transactional_email' => 'getTransactionalEmail', 'version' => 'getVersion' ]; @@ -314,6 +319,7 @@ public function __construct(array $data = null) $this->container['smart_sending'] = isset($data['smart_sending']) ? $data['smart_sending'] : null; $this->container['storefront_oid'] = isset($data['storefront_oid']) ? $data['storefront_oid'] : null; $this->container['subject'] = isset($data['subject']) ? $data['subject'] : null; + $this->container['suspended_for_spam'] = isset($data['suspended_for_spam']) ? $data['suspended_for_spam'] : null; $this->container['transactional_email'] = isset($data['transactional_email']) ? $data['transactional_email'] : null; $this->container['version'] = isset($data['version']) ? $data['version'] : null; } @@ -870,6 +876,30 @@ public function setSubject($subject) return $this; } + /** + * Gets suspended_for_spam + * + * @return bool + */ + public function getSuspendedForSpam() + { + return $this->container['suspended_for_spam']; + } + + /** + * Sets suspended_for_spam + * + * @param bool $suspended_for_spam True if the email was suspended for too high of a spam rate. + * + * @return $this + */ + public function setSuspendedForSpam($suspended_for_spam) + { + $this->container['suspended_for_spam'] = $suspended_for_spam; + + return $this; + } + /** * Gets transactional_email * diff --git a/lib/models/OrderQuery.php b/lib/models/OrderQuery.php index 800feb1b..8f132eec 100644 --- a/lib/models/OrderQuery.php +++ b/lib/models/OrderQuery.php @@ -66,6 +66,13 @@ class OrderQuery implements ModelInterface, ArrayAccess 'creation_date_begin' => 'string', 'creation_date_end' => 'string', 'current_stage' => 'string', + 'custom_field_1' => 'string', + 'custom_field_2' => 'string', + 'custom_field_3' => 'string', + 'custom_field_4' => 'string', + 'custom_field_5' => 'string', + 'custom_field_6' => 'string', + 'custom_field_7' => 'string', 'customer_profile_oid' => 'int', 'email' => 'string', 'first_name' => 'string', @@ -104,6 +111,13 @@ class OrderQuery implements ModelInterface, ArrayAccess 'creation_date_begin' => 'dateTime', 'creation_date_end' => 'dateTime', 'current_stage' => null, + 'custom_field_1' => null, + 'custom_field_2' => null, + 'custom_field_3' => null, + 'custom_field_4' => null, + 'custom_field_5' => null, + 'custom_field_6' => null, + 'custom_field_7' => null, 'customer_profile_oid' => 'int32', 'email' => null, 'first_name' => null, @@ -163,6 +177,13 @@ public static function swaggerFormats() 'creation_date_begin' => 'creation_date_begin', 'creation_date_end' => 'creation_date_end', 'current_stage' => 'current_stage', + 'custom_field_1' => 'custom_field_1', + 'custom_field_2' => 'custom_field_2', + 'custom_field_3' => 'custom_field_3', + 'custom_field_4' => 'custom_field_4', + 'custom_field_5' => 'custom_field_5', + 'custom_field_6' => 'custom_field_6', + 'custom_field_7' => 'custom_field_7', 'customer_profile_oid' => 'customer_profile_oid', 'email' => 'email', 'first_name' => 'first_name', @@ -201,6 +222,13 @@ public static function swaggerFormats() 'creation_date_begin' => 'setCreationDateBegin', 'creation_date_end' => 'setCreationDateEnd', 'current_stage' => 'setCurrentStage', + 'custom_field_1' => 'setCustomField1', + 'custom_field_2' => 'setCustomField2', + 'custom_field_3' => 'setCustomField3', + 'custom_field_4' => 'setCustomField4', + 'custom_field_5' => 'setCustomField5', + 'custom_field_6' => 'setCustomField6', + 'custom_field_7' => 'setCustomField7', 'customer_profile_oid' => 'setCustomerProfileOid', 'email' => 'setEmail', 'first_name' => 'setFirstName', @@ -239,6 +267,13 @@ public static function swaggerFormats() 'creation_date_begin' => 'getCreationDateBegin', 'creation_date_end' => 'getCreationDateEnd', 'current_stage' => 'getCurrentStage', + 'custom_field_1' => 'getCustomField1', + 'custom_field_2' => 'getCustomField2', + 'custom_field_3' => 'getCustomField3', + 'custom_field_4' => 'getCustomField4', + 'custom_field_5' => 'getCustomField5', + 'custom_field_6' => 'getCustomField6', + 'custom_field_7' => 'getCustomField7', 'customer_profile_oid' => 'getCustomerProfileOid', 'email' => 'getEmail', 'first_name' => 'getFirstName', @@ -403,6 +438,13 @@ public function __construct(array $data = null) $this->container['creation_date_begin'] = isset($data['creation_date_begin']) ? $data['creation_date_begin'] : null; $this->container['creation_date_end'] = isset($data['creation_date_end']) ? $data['creation_date_end'] : null; $this->container['current_stage'] = isset($data['current_stage']) ? $data['current_stage'] : null; + $this->container['custom_field_1'] = isset($data['custom_field_1']) ? $data['custom_field_1'] : null; + $this->container['custom_field_2'] = isset($data['custom_field_2']) ? $data['custom_field_2'] : null; + $this->container['custom_field_3'] = isset($data['custom_field_3']) ? $data['custom_field_3'] : null; + $this->container['custom_field_4'] = isset($data['custom_field_4']) ? $data['custom_field_4'] : null; + $this->container['custom_field_5'] = isset($data['custom_field_5']) ? $data['custom_field_5'] : null; + $this->container['custom_field_6'] = isset($data['custom_field_6']) ? $data['custom_field_6'] : null; + $this->container['custom_field_7'] = isset($data['custom_field_7']) ? $data['custom_field_7'] : null; $this->container['customer_profile_oid'] = isset($data['customer_profile_oid']) ? $data['customer_profile_oid'] : null; $this->container['email'] = isset($data['email']) ? $data['email'] : null; $this->container['first_name'] = isset($data['first_name']) ? $data['first_name'] : null; @@ -755,6 +797,174 @@ public function setCurrentStage($current_stage) return $this; } + /** + * Gets custom_field_1 + * + * @return string + */ + public function getCustomField1() + { + return $this->container['custom_field_1']; + } + + /** + * Sets custom_field_1 + * + * @param string $custom_field_1 Custom field 1 + * + * @return $this + */ + public function setCustomField1($custom_field_1) + { + $this->container['custom_field_1'] = $custom_field_1; + + return $this; + } + + /** + * Gets custom_field_2 + * + * @return string + */ + public function getCustomField2() + { + return $this->container['custom_field_2']; + } + + /** + * Sets custom_field_2 + * + * @param string $custom_field_2 Custom field 2 + * + * @return $this + */ + public function setCustomField2($custom_field_2) + { + $this->container['custom_field_2'] = $custom_field_2; + + return $this; + } + + /** + * Gets custom_field_3 + * + * @return string + */ + public function getCustomField3() + { + return $this->container['custom_field_3']; + } + + /** + * Sets custom_field_3 + * + * @param string $custom_field_3 Custom field 3 + * + * @return $this + */ + public function setCustomField3($custom_field_3) + { + $this->container['custom_field_3'] = $custom_field_3; + + return $this; + } + + /** + * Gets custom_field_4 + * + * @return string + */ + public function getCustomField4() + { + return $this->container['custom_field_4']; + } + + /** + * Sets custom_field_4 + * + * @param string $custom_field_4 Custom field 4 + * + * @return $this + */ + public function setCustomField4($custom_field_4) + { + $this->container['custom_field_4'] = $custom_field_4; + + return $this; + } + + /** + * Gets custom_field_5 + * + * @return string + */ + public function getCustomField5() + { + return $this->container['custom_field_5']; + } + + /** + * Sets custom_field_5 + * + * @param string $custom_field_5 Custom field 5 + * + * @return $this + */ + public function setCustomField5($custom_field_5) + { + $this->container['custom_field_5'] = $custom_field_5; + + return $this; + } + + /** + * Gets custom_field_6 + * + * @return string + */ + public function getCustomField6() + { + return $this->container['custom_field_6']; + } + + /** + * Sets custom_field_6 + * + * @param string $custom_field_6 Custom field 6 + * + * @return $this + */ + public function setCustomField6($custom_field_6) + { + $this->container['custom_field_6'] = $custom_field_6; + + return $this; + } + + /** + * Gets custom_field_7 + * + * @return string + */ + public function getCustomField7() + { + return $this->container['custom_field_7']; + } + + /** + * Sets custom_field_7 + * + * @param string $custom_field_7 Custom field 7 + * + * @return $this + */ + public function setCustomField7($custom_field_7) + { + $this->container['custom_field_7'] = $custom_field_7; + + return $this; + } + /** * Gets customer_profile_oid *