Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

Testing #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion docs/Api/CustomersApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/Model/CustomerCreationSourceFilter.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions docs/Model/CustomerSort.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
3 changes: 2 additions & 1 deletion lib/Api/ApplePayApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";




Expand Down
33 changes: 22 additions & 11 deletions lib/Api/CatalogApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";




Expand Down Expand Up @@ -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";




Expand Down Expand Up @@ -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";




Expand Down Expand Up @@ -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";




Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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";




Expand Down Expand Up @@ -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";




Expand Down Expand Up @@ -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";




Expand Down Expand Up @@ -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";




Expand Down
3 changes: 2 additions & 1 deletion lib/Api/CheckoutApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 16 additions & 8 deletions lib/Api/CustomersApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";




Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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";




Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion lib/Api/LocationsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";




Expand Down
6 changes: 4 additions & 2 deletions lib/Api/OrdersApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions lib/Api/ReportingApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
21 changes: 14 additions & 7 deletions lib/Api/TransactionsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading