From 71f544dbe6d7a6183aee83d01acb185d3ed64d23 Mon Sep 17 00:00:00 2001 From: Shao-Fu Sung Date: Thu, 12 Jul 2018 11:42:38 -0700 Subject: [PATCH] Testing --- composer.json | 2 +- docs/Api/CustomersApi.md | 2 +- docs/Model/CustomerCreationSourceFilter.md | 2 +- docs/Model/CustomerSort.md | 4 +- lib/Api/ApplePayApi.php | 3 +- lib/Api/CatalogApi.php | 33 ++++++--- lib/Api/CheckoutApi.php | 3 +- lib/Api/CustomersApi.php | 24 ++++--- lib/Api/LocationsApi.php | 3 +- lib/Api/OrdersApi.php | 6 +- lib/Api/ReportingApi.php | 6 +- lib/Api/TransactionsApi.php | 21 ++++-- lib/Api/V1EmployeesApi.php | 32 ++++----- lib/Api/V1ItemsApi.php | 80 +++++++++++----------- lib/Api/V1LocationsApi.php | 4 +- lib/Api/V1TransactionsApi.php | 22 +++--- lib/Configuration.php | 4 +- lib/Model/CustomerCreationSourceFilter.php | 4 +- lib/Model/CustomerSort.php | 8 +-- 19 files changed, 148 insertions(+), 115 deletions(-) diff --git a/composer.json b/composer.json index c9f9674..127a0ef 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "square/connect", - "version": "2.9.0", + "version": "2.20180712.0", "description": "PHP client library for the Square Connect v2 API", "keywords": [ "swagger", diff --git a/docs/Api/CustomersApi.md b/docs/Api/CustomersApi.md index 9d4c181..3127987 100644 --- a/docs/Api/CustomersApi.md +++ b/docs/Api/CustomersApi.md @@ -315,7 +315,7 @@ Name | Type | Description | Notes SearchCustomers -Searches a business's customers. +Searches the customer profiles associated with a Square account. Calling SearchCustomers without an explicit query parameter returns all customer profiles ordered alphabetically based on `given_name` and `family_name`. ### Example ```php diff --git a/docs/Model/CustomerCreationSourceFilter.md b/docs/Model/CustomerCreationSourceFilter.md index 19f3aab..7d5c36c 100644 --- a/docs/Model/CustomerCreationSourceFilter.md +++ b/docs/Model/CustomerCreationSourceFilter.md @@ -3,7 +3,7 @@ ## Properties Name | Getter | Setter | Type | Description | Notes ------------ | ------------- | ------------- | ------------- | ------------- | ------------- -**values** | getValues() | setValues($value) | **string[]** | The list of creation sources used as filtering criteria. | [optional] +**values** | getValues() | setValues($value) | **string[]** | The list of creation sources used as filtering criteria. See [CustomerCreationSource](#type-customercreationsource) for possible values. | [optional] **rule** | getRule() | setRule($value) | **string** | Indicates whether a customer profile matching the filter criteria should be included in the result or excluded from the result. Default: `INCLUDE`. See [CustomerInclusionExclusion](#type-customerinclusionexclusion) for possible values. | [optional] Note: All properties are protected and only accessed via getters and setters. diff --git a/docs/Model/CustomerSort.md b/docs/Model/CustomerSort.md index d73dc6f..3be4b39 100644 --- a/docs/Model/CustomerSort.md +++ b/docs/Model/CustomerSort.md @@ -3,8 +3,8 @@ ## Properties Name | Getter | Setter | Type | Description | Notes ------------ | ------------- | ------------- | ------------- | ------------- | ------------- -**field** | getField() | setField($value) | **string** | The field to sort the results on. It could be the total money spent at the merchant, the date of the first visit (etc). Default value: `DEFAULT`. | [optional] -**order** | getOrder() | setOrder($value) | **string** | Indicates the order in which results should be displayed based on the value of the sort field. String comparisons use standard alphabetic comparison to determine order. Strings representing numbers are sorted as strings. Default value: `ASC`. | [optional] +**field** | getField() | setField($value) | **string** | The field to sort the results on. It could be the total money spent at the merchant, the date of the first visit (etc). See [CustomerSortField](#type-customersortfield) for possible values. Default value: `DEFAULT`. | [optional] +**order** | getOrder() | setOrder($value) | **string** | Indicates the order in which results should be displayed based on the value of the sort field. String comparisons use standard alphabetic comparison to determine order. Strings representing numbers are sorted as strings. See [SortOrder](#type-sortorder) for possible values. Default value: `ASC`. | [optional] Note: All properties are protected and only accessed via getters and setters. diff --git a/lib/Api/ApplePayApi.php b/lib/Api/ApplePayApi.php index 93c10db..b8d5e07 100644 --- a/lib/Api/ApplePayApi.php +++ b/lib/Api/ApplePayApi.php @@ -108,7 +108,8 @@ public function registerDomainWithHttpInfo($body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + diff --git a/lib/Api/CatalogApi.php b/lib/Api/CatalogApi.php index edd2bd4..2ad9e90 100644 --- a/lib/Api/CatalogApi.php +++ b/lib/Api/CatalogApi.php @@ -108,7 +108,8 @@ public function batchDeleteCatalogObjectsWithHttpInfo($body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + @@ -200,7 +201,8 @@ public function batchRetrieveCatalogObjectsWithHttpInfo($body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + @@ -292,7 +294,8 @@ public function batchUpsertCatalogObjectsWithHttpInfo($body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + @@ -378,7 +381,8 @@ public function catalogInfoWithHttpInfo() $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + @@ -466,7 +470,8 @@ public function deleteCatalogObjectWithHttpInfo($object_id) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + // path params @@ -559,7 +564,8 @@ public function listCatalogWithHttpInfo($cursor = null, $types = null) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + // query params if ($cursor !== null) { $queryParams['cursor'] = $this->apiClient->getSerializer()->toQueryValue($cursor); @@ -655,7 +661,8 @@ public function retrieveCatalogObjectWithHttpInfo($object_id, $include_related_o $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + // query params if ($include_related_objects !== null) { $queryParams['include_related_objects'] = $this->apiClient->getSerializer()->toQueryValue($include_related_objects); @@ -753,7 +760,8 @@ public function searchCatalogObjectsWithHttpInfo($body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + @@ -845,7 +853,8 @@ public function updateItemModifierListsWithHttpInfo($body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + @@ -937,7 +946,8 @@ public function updateItemTaxesWithHttpInfo($body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + @@ -1029,7 +1039,8 @@ public function upsertCatalogObjectWithHttpInfo($body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + diff --git a/lib/Api/CheckoutApi.php b/lib/Api/CheckoutApi.php index fdd05de..479cff7 100644 --- a/lib/Api/CheckoutApi.php +++ b/lib/Api/CheckoutApi.php @@ -114,7 +114,8 @@ public function createCheckoutWithHttpInfo($location_id, $body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + // path params diff --git a/lib/Api/CustomersApi.php b/lib/Api/CustomersApi.php index 98ec80a..373c001 100644 --- a/lib/Api/CustomersApi.php +++ b/lib/Api/CustomersApi.php @@ -108,7 +108,8 @@ public function createCustomerWithHttpInfo($body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + @@ -206,7 +207,8 @@ public function createCustomerCardWithHttpInfo($customer_id, $body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + // path params @@ -305,7 +307,8 @@ public function deleteCustomerWithHttpInfo($customer_id) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + // path params @@ -406,7 +409,8 @@ public function deleteCustomerCardWithHttpInfo($customer_id, $card_id) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + // path params @@ -508,7 +512,8 @@ public function listCustomersWithHttpInfo($cursor = null, $sort_field = null, $s $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + // query params if ($cursor !== null) { $queryParams['cursor'] = $this->apiClient->getSerializer()->toQueryValue($cursor); @@ -605,7 +610,8 @@ public function retrieveCustomerWithHttpInfo($customer_id) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + // path params @@ -700,7 +706,8 @@ public function searchCustomersWithHttpInfo($body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + @@ -798,7 +805,8 @@ public function updateCustomerWithHttpInfo($customer_id, $body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + // path params diff --git a/lib/Api/LocationsApi.php b/lib/Api/LocationsApi.php index c063c00..16cbd5a 100644 --- a/lib/Api/LocationsApi.php +++ b/lib/Api/LocationsApi.php @@ -102,7 +102,8 @@ public function listLocationsWithHttpInfo() $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + diff --git a/lib/Api/OrdersApi.php b/lib/Api/OrdersApi.php index cc39751..99fff8c 100644 --- a/lib/Api/OrdersApi.php +++ b/lib/Api/OrdersApi.php @@ -114,7 +114,8 @@ public function batchRetrieveOrdersWithHttpInfo($location_id, $body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + // path params @@ -219,7 +220,8 @@ public function createOrderWithHttpInfo($location_id, $body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + // path params diff --git a/lib/Api/ReportingApi.php b/lib/Api/ReportingApi.php index 3f214fb..82fe616 100644 --- a/lib/Api/ReportingApi.php +++ b/lib/Api/ReportingApi.php @@ -116,7 +116,8 @@ public function listAdditionalRecipientReceivableRefundsWithHttpInfo($location_i $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + // query params if ($begin_time !== null) { $queryParams['begin_time'] = $this->apiClient->getSerializer()->toQueryValue($begin_time); @@ -231,7 +232,8 @@ public function listAdditionalRecipientReceivablesWithHttpInfo($location_id, $be $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + // query params if ($begin_time !== null) { $queryParams['begin_time'] = $this->apiClient->getSerializer()->toQueryValue($begin_time); diff --git a/lib/Api/TransactionsApi.php b/lib/Api/TransactionsApi.php index 032cc56..fe54496 100644 --- a/lib/Api/TransactionsApi.php +++ b/lib/Api/TransactionsApi.php @@ -114,7 +114,8 @@ public function captureTransactionWithHttpInfo($location_id, $transaction_id) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + // path params @@ -222,7 +223,8 @@ public function chargeWithHttpInfo($location_id, $body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + // path params @@ -333,7 +335,8 @@ public function createRefundWithHttpInfo($location_id, $transaction_id, $body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + // path params @@ -447,7 +450,8 @@ public function listRefundsWithHttpInfo($location_id, $begin_time = null, $end_t $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + // query params if ($begin_time !== null) { $queryParams['begin_time'] = $this->apiClient->getSerializer()->toQueryValue($begin_time); @@ -562,7 +566,8 @@ public function listTransactionsWithHttpInfo($location_id, $begin_time = null, $ $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + // query params if ($begin_time !== null) { $queryParams['begin_time'] = $this->apiClient->getSerializer()->toQueryValue($begin_time); @@ -675,7 +680,8 @@ public function retrieveTransactionWithHttpInfo($location_id, $transaction_id) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + // path params @@ -783,7 +789,8 @@ public function voidTransactionWithHttpInfo($location_id, $transaction_id) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + $headerParams['Square-Version'] = "2018-07-12"; + // path params diff --git a/lib/Api/V1EmployeesApi.php b/lib/Api/V1EmployeesApi.php index b50762c..44a0f16 100644 --- a/lib/Api/V1EmployeesApi.php +++ b/lib/Api/V1EmployeesApi.php @@ -108,7 +108,7 @@ public function createEmployeeWithHttpInfo($body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + @@ -200,7 +200,7 @@ public function createEmployeeRoleWithHttpInfo($employee_role) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + @@ -292,7 +292,7 @@ public function createTimecardWithHttpInfo($body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + @@ -384,7 +384,7 @@ public function deleteTimecardWithHttpInfo($timecard_id) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -485,7 +485,7 @@ public function listCashDrawerShiftsWithHttpInfo($location_id, $order = null, $b $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // query params if ($order !== null) { $queryParams['order'] = $this->apiClient->getSerializer()->toQueryValue($order); @@ -589,7 +589,7 @@ public function listEmployeeRolesWithHttpInfo($order = null, $limit = null, $bat $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // query params if ($order !== null) { $queryParams['order'] = $this->apiClient->getSerializer()->toQueryValue($order); @@ -698,7 +698,7 @@ public function listEmployeesWithHttpInfo($order = null, $begin_updated_at = nul $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // query params if ($order !== null) { $queryParams['order'] = $this->apiClient->getSerializer()->toQueryValue($order); @@ -813,7 +813,7 @@ public function listTimecardEventsWithHttpInfo($timecard_id) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -924,7 +924,7 @@ public function listTimecardsWithHttpInfo($order = null, $employee_id = null, $b $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // query params if ($order !== null) { $queryParams['order'] = $this->apiClient->getSerializer()->toQueryValue($order); @@ -1051,7 +1051,7 @@ public function retrieveCashDrawerShiftWithHttpInfo($location_id, $shift_id) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -1153,7 +1153,7 @@ public function retrieveEmployeeWithHttpInfo($employee_id) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -1248,7 +1248,7 @@ public function retrieveEmployeeRoleWithHttpInfo($role_id) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -1343,7 +1343,7 @@ public function retrieveTimecardWithHttpInfo($timecard_id) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -1444,7 +1444,7 @@ public function updateEmployeeWithHttpInfo($employee_id, $body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -1549,7 +1549,7 @@ public function updateEmployeeRoleWithHttpInfo($role_id, $body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -1654,7 +1654,7 @@ public function updateTimecardWithHttpInfo($timecard_id, $body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params diff --git a/lib/Api/V1ItemsApi.php b/lib/Api/V1ItemsApi.php index 6cc5cd4..dc011f2 100644 --- a/lib/Api/V1ItemsApi.php +++ b/lib/Api/V1ItemsApi.php @@ -120,7 +120,7 @@ public function adjustInventoryWithHttpInfo($location_id, $variation_id, $body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -238,7 +238,7 @@ public function applyFeeWithHttpInfo($location_id, $item_id, $fee_id) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -359,7 +359,7 @@ public function applyModifierListWithHttpInfo($location_id, $modifier_list_id, $ $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -474,7 +474,7 @@ public function createCategoryWithHttpInfo($location_id, $body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -579,7 +579,7 @@ public function createDiscountWithHttpInfo($location_id, $body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -684,7 +684,7 @@ public function createFeeWithHttpInfo($location_id, $body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -789,7 +789,7 @@ public function createItemWithHttpInfo($location_id, $body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -894,7 +894,7 @@ public function createModifierListWithHttpInfo($location_id, $body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -1005,7 +1005,7 @@ public function createModifierOptionWithHttpInfo($location_id, $modifier_list_id $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -1117,7 +1117,7 @@ public function createPageWithHttpInfo($location_id, $body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -1228,7 +1228,7 @@ public function createVariationWithHttpInfo($location_id, $item_id, $body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -1340,7 +1340,7 @@ public function deleteCategoryWithHttpInfo($location_id, $category_id) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -1448,7 +1448,7 @@ public function deleteDiscountWithHttpInfo($location_id, $discount_id) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -1556,7 +1556,7 @@ public function deleteFeeWithHttpInfo($location_id, $fee_id) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -1664,7 +1664,7 @@ public function deleteItemWithHttpInfo($location_id, $item_id) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -1772,7 +1772,7 @@ public function deleteModifierListWithHttpInfo($location_id, $modifier_list_id) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -1886,7 +1886,7 @@ public function deleteModifierOptionWithHttpInfo($location_id, $modifier_list_id $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -2001,7 +2001,7 @@ public function deletePageWithHttpInfo($location_id, $page_id) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -2113,7 +2113,7 @@ public function deletePageCellWithHttpInfo($location_id, $page_id, $row = null, $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // query params if ($row !== null) { $queryParams['row'] = $this->apiClient->getSerializer()->toQueryValue($row); @@ -2233,7 +2233,7 @@ public function deleteVariationWithHttpInfo($location_id, $item_id, $variation_i $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -2342,7 +2342,7 @@ public function listCategoriesWithHttpInfo($location_id) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -2437,7 +2437,7 @@ public function listDiscountsWithHttpInfo($location_id) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -2532,7 +2532,7 @@ public function listFeesWithHttpInfo($location_id) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -2631,7 +2631,7 @@ public function listInventoryWithHttpInfo($location_id, $limit = null, $batch_to $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // query params if ($limit !== null) { $queryParams['limit'] = $this->apiClient->getSerializer()->toQueryValue($limit); @@ -2734,7 +2734,7 @@ public function listItemsWithHttpInfo($location_id, $batch_token = null) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // query params if ($batch_token !== null) { $queryParams['batch_token'] = $this->apiClient->getSerializer()->toQueryValue($batch_token); @@ -2832,7 +2832,7 @@ public function listModifierListsWithHttpInfo($location_id) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -2927,7 +2927,7 @@ public function listPagesWithHttpInfo($location_id) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -3034,7 +3034,7 @@ public function removeFeeWithHttpInfo($location_id, $item_id, $fee_id) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -3155,7 +3155,7 @@ public function removeModifierListWithHttpInfo($location_id, $modifier_list_id, $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -3270,7 +3270,7 @@ public function retrieveItemWithHttpInfo($location_id, $item_id) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -3378,7 +3378,7 @@ public function retrieveModifierListWithHttpInfo($location_id, $modifier_list_id $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -3492,7 +3492,7 @@ public function updateCategoryWithHttpInfo($location_id, $category_id, $body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -3610,7 +3610,7 @@ public function updateDiscountWithHttpInfo($location_id, $discount_id, $body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -3728,7 +3728,7 @@ public function updateFeeWithHttpInfo($location_id, $fee_id, $body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -3846,7 +3846,7 @@ public function updateItemWithHttpInfo($location_id, $item_id, $body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -3964,7 +3964,7 @@ public function updateModifierListWithHttpInfo($location_id, $modifier_list_id, $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -4088,7 +4088,7 @@ public function updateModifierOptionWithHttpInfo($location_id, $modifier_list_id $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -4213,7 +4213,7 @@ public function updatePageWithHttpInfo($location_id, $page_id, $body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -4331,7 +4331,7 @@ public function updatePageCellWithHttpInfo($location_id, $page_id, $body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -4455,7 +4455,7 @@ public function updateVariationWithHttpInfo($location_id, $item_id, $variation_i $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params diff --git a/lib/Api/V1LocationsApi.php b/lib/Api/V1LocationsApi.php index f505b9a..5290496 100644 --- a/lib/Api/V1LocationsApi.php +++ b/lib/Api/V1LocationsApi.php @@ -102,7 +102,7 @@ public function listLocationsWithHttpInfo() $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + @@ -184,7 +184,7 @@ public function retrieveBusinessWithHttpInfo() $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + diff --git a/lib/Api/V1TransactionsApi.php b/lib/Api/V1TransactionsApi.php index 26bb205..e0cf060 100644 --- a/lib/Api/V1TransactionsApi.php +++ b/lib/Api/V1TransactionsApi.php @@ -114,7 +114,7 @@ public function createRefundWithHttpInfo($location_id, $body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -213,7 +213,7 @@ public function listBankAccountsWithHttpInfo($location_id) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -314,7 +314,7 @@ public function listOrdersWithHttpInfo($location_id, $order = null, $limit = nul $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // query params if ($order !== null) { $queryParams['order'] = $this->apiClient->getSerializer()->toQueryValue($order); @@ -428,7 +428,7 @@ public function listPaymentsWithHttpInfo($location_id, $order = null, $begin_tim $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // query params if ($order !== null) { $queryParams['order'] = $this->apiClient->getSerializer()->toQueryValue($order); @@ -548,7 +548,7 @@ public function listRefundsWithHttpInfo($location_id, $order = null, $begin_time $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // query params if ($order !== null) { $queryParams['order'] = $this->apiClient->getSerializer()->toQueryValue($order); @@ -670,7 +670,7 @@ public function listSettlementsWithHttpInfo($location_id, $order = null, $begin_ $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // query params if ($order !== null) { $queryParams['order'] = $this->apiClient->getSerializer()->toQueryValue($order); @@ -789,7 +789,7 @@ public function retrieveBankAccountWithHttpInfo($location_id, $bank_account_id) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -897,7 +897,7 @@ public function retrieveOrderWithHttpInfo($location_id, $order_id) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -1005,7 +1005,7 @@ public function retrievePaymentWithHttpInfo($location_id, $payment_id) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -1113,7 +1113,7 @@ public function retrieveSettlementWithHttpInfo($location_id, $settlement_id) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params @@ -1227,7 +1227,7 @@ public function updateOrderWithHttpInfo($location_id, $order_id, $body) $headerParams['Accept'] = $_header_accept; } $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - + // path params diff --git a/lib/Configuration.php b/lib/Configuration.php index 1f266d5..322f522 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -94,7 +94,7 @@ class Configuration * * @var string */ - protected $userAgent = "Square-Connect-PHP/2.9.0"; + protected $userAgent = "Square-Connect-PHP/2.20180712.0"; /** * Debug switch (default set to false) @@ -501,7 +501,7 @@ public static function toDebugReport() $report .= " OS: ".php_uname()."\n"; $report .= " PHP Version: ".phpversion()."\n"; $report .= " OpenAPI Spec Version: 2.0\n"; - $report .= " SDK Package Version: 2.9.0\n"; + $report .= " SDK Package Version: 2.20180712.0\n"; $report .= " Temp Folder Path: ".self::getDefaultConfiguration()->getTempFolderPath()."\n"; return $report; diff --git a/lib/Model/CustomerCreationSourceFilter.php b/lib/Model/CustomerCreationSourceFilter.php index befa37d..cd4d756 100644 --- a/lib/Model/CustomerCreationSourceFilter.php +++ b/lib/Model/CustomerCreationSourceFilter.php @@ -56,7 +56,7 @@ class CustomerCreationSourceFilter implements ArrayAccess ); /** - * $values The list of creation sources used as filtering criteria. + * $values The list of creation sources used as filtering criteria. See [CustomerCreationSource](#type-customercreationsource) for possible values. * @var string[] */ protected $values; @@ -96,7 +96,7 @@ public function getValues() /** * Sets values - * @param string[] $values The list of creation sources used as filtering criteria. + * @param string[] $values The list of creation sources used as filtering criteria. See [CustomerCreationSource](#type-customercreationsource) for possible values. * @return $this */ public function setValues($values) diff --git a/lib/Model/CustomerSort.php b/lib/Model/CustomerSort.php index 27c0536..2c8ebde 100644 --- a/lib/Model/CustomerSort.php +++ b/lib/Model/CustomerSort.php @@ -56,12 +56,12 @@ class CustomerSort implements ArrayAccess ); /** - * $field The field to sort the results on. It could be the total money spent at the merchant, the date of the first visit (etc). Default value: `DEFAULT`. + * $field The field to sort the results on. It could be the total money spent at the merchant, the date of the first visit (etc). See [CustomerSortField](#type-customersortfield) for possible values. Default value: `DEFAULT`. * @var string */ protected $field; /** - * $order Indicates the order in which results should be displayed based on the value of the sort field. String comparisons use standard alphabetic comparison to determine order. Strings representing numbers are sorted as strings. Default value: `ASC`. + * $order Indicates the order in which results should be displayed based on the value of the sort field. String comparisons use standard alphabetic comparison to determine order. Strings representing numbers are sorted as strings. See [SortOrder](#type-sortorder) for possible values. Default value: `ASC`. * @var string */ protected $order; @@ -96,7 +96,7 @@ public function getField() /** * Sets field - * @param string $field The field to sort the results on. It could be the total money spent at the merchant, the date of the first visit (etc). Default value: `DEFAULT`. + * @param string $field The field to sort the results on. It could be the total money spent at the merchant, the date of the first visit (etc). See [CustomerSortField](#type-customersortfield) for possible values. Default value: `DEFAULT`. * @return $this */ public function setField($field) @@ -115,7 +115,7 @@ public function getOrder() /** * Sets order - * @param string $order Indicates the order in which results should be displayed based on the value of the sort field. String comparisons use standard alphabetic comparison to determine order. Strings representing numbers are sorted as strings. Default value: `ASC`. + * @param string $order Indicates the order in which results should be displayed based on the value of the sort field. String comparisons use standard alphabetic comparison to determine order. Strings representing numbers are sorted as strings. See [SortOrder](#type-sortorder) for possible values. Default value: `ASC`. * @return $this */ public function setOrder($order)