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

Commit e7a8d4b

Browse files
Release 3.20200422.1
1 parent d2429bc commit e7a8d4b

9 files changed

+23
-56
lines changed

CHANGES.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Change Log
22

3+
## Version 3.20200422.1 (2020-04-22)
4+
## API releases
5+
* **Customer Segments API (beta).** `limit` field removed from **ListCustomerSegments** endpoint.
6+
7+
8+
**Note:** This release fixes a bug introduced on the [April 22, 2020](changelog/connect-logs/2020-04-22) release of the Square API.
9+
10+
311
## Version 3.20200422.0 (2020-04-22)
412
## API releases
513
* **Terminal API.** The new Terminal API lets a custom third-party POS app integrate with the Square Terminal to send terminal checkout requests to collect payments.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "square/connect",
3-
"version": "3.20200422.0",
3+
"version": "3.20200422.1",
44
"description": "PHP client library for the Square Connect v2 API",
55
"keywords": [
66
"swagger",

docs/Api/CustomerGroupsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Method | HTTP request | Description
1717
1818
CreateCustomerGroup
1919

20-
Creates a new customer group for a business. The request must include at least the `name` value of the group.
20+
Creates a new customer group for a business. The request must include the `name` value of the group.
2121

2222
### Example
2323
```php

docs/Api/CustomerSegmentsApi.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Method | HTTP request | Description
1010

1111
# **listCustomerSegments**
1212
**Note: This endpoint is in beta.**
13-
> \SquareConnect\Model\ListCustomerSegmentsResponse listCustomerSegments($cursor, $limit)
13+
> \SquareConnect\Model\ListCustomerSegmentsResponse listCustomerSegments($cursor)
1414
1515
ListCustomerSegments
1616

@@ -26,10 +26,9 @@ SquareConnect\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACC
2626

2727
$apiInstance = new SquareConnect\Api\CustomerSegmentsApi();
2828
$cursor = "cursor_example"; // string | A pagination cursor returned by previous calls to __ListCustomerSegments__. Used to retrieve the next set of query results. See the [Pagination guide](https://developer.squareup.com/docs/docs/working-with-apis/pagination) for more information.
29-
$limit = 789; // int | Sets the maximum number of results to be returned in a single page. Limit values outside the supported range are ignored. Minimum value: `1` Maximum value: `1,000`
3029

3130
try {
32-
$result = $apiInstance->listCustomerSegments($cursor, $limit);
31+
$result = $apiInstance->listCustomerSegments($cursor);
3332
print_r($result);
3433
} catch (Exception $e) {
3534
echo 'Exception when calling CustomerSegmentsApi->listCustomerSegments: ', $e->getMessage(), PHP_EOL;
@@ -42,7 +41,6 @@ try {
4241
Name | Type | Description | Notes
4342
------------- | ------------- | ------------- | -------------
4443
**cursor** | **string**| A pagination cursor returned by previous calls to __ListCustomerSegments__. Used to retrieve the next set of query results. See the [Pagination guide](https://developer.squareup.com/docs/docs/working-with-apis/pagination) for more information. | [optional]
45-
**limit** | **int**| Sets the maximum number of results to be returned in a single page. Limit values outside the supported range are ignored. Minimum value: `1` Maximum value: `1,000` | [optional]
4644

4745
### Return type
4846

docs/Api/CustomersApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Method | HTTP request | Description
2222
2323
AddGroupToCustomer
2424

25-
Adds a customer membership to a customer group. The customer is identified by the `customer_id` value and the customer group is identified by the `group_id` value.
25+
Adds a group membership to a customer. The customer is identified by the `customer_id` value and the customer group is identified by the `group_id` value.
2626

2727
### Example
2828
```php
@@ -321,7 +321,7 @@ Name | Type | Description | Notes
321321
322322
RemoveGroupFromCustomer
323323

324-
Removes a customer membership from a customer group. The customer is identified by the `customer_id` value and the customer group is identified by the `group_id` value.
324+
Removes a group membership from a customer. The customer is identified by the `customer_id` value and the customer group is identified by the `group_id` value.
325325

326326
### Example
327327
```php

docs/Model/ListCustomerSegmentsRequest.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ Defines the valid parameters for requests to __ListCustomerSegments__.
88
Name | Getter | Setter | Type | Description | Notes
99
------------ | ------------- | ------------- | ------------- | ------------- | -------------
1010
**cursor** | getCursor() | setCursor($value) | **string** | A pagination cursor returned by previous calls to __ListCustomerSegments__. Used to retrieve the next set of query results. See the [Pagination guide](https://developer.squareup.com/docs/docs/working-with-apis/pagination) for more information. | [optional]
11-
**limit** | getLimit() | setLimit($value) | **int** | Sets the maximum number of results to be returned in a single page. Limit values outside the supported range are ignored. Minimum value: `1` Maximum value: `1,000` | [optional]
1211

1312
Note: All properties are protected and only accessed via getters and setters.
1413

lib/Api/CustomerSegmentsApi.php

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,12 @@ public function setApiClient(ApiClient $apiClient)
7171
* Note: This endpoint is in beta.
7272
*
7373
* @param string $cursor A pagination cursor returned by previous calls to __ListCustomerSegments__. Used to retrieve the next set of query results. See the [Pagination guide](https://developer.squareup.com/docs/docs/working-with-apis/pagination) for more information. (optional)
74-
* @param int $limit Sets the maximum number of results to be returned in a single page. Limit values outside the supported range are ignored. Minimum value: `1` Maximum value: `1,000` (optional)
7574
* @return \SquareConnect\Model\ListCustomerSegmentsResponse
7675
* @throws \SquareConnect\ApiException on non-2xx response
7776
*/
78-
public function listCustomerSegments($cursor = null, $limit = null)
77+
public function listCustomerSegments($cursor = null)
7978
{
80-
list($response, $statusCode, $httpHeader) = $this->listCustomerSegmentsWithHttpInfo ($cursor, $limit);
79+
list($response, $statusCode, $httpHeader) = $this->listCustomerSegmentsWithHttpInfo ($cursor);
8180
return $response;
8281
}
8382

@@ -88,11 +87,10 @@ public function listCustomerSegments($cursor = null, $limit = null)
8887
* ListCustomerSegments
8988
*
9089
* @param string $cursor A pagination cursor returned by previous calls to __ListCustomerSegments__. Used to retrieve the next set of query results. See the [Pagination guide](https://developer.squareup.com/docs/docs/working-with-apis/pagination) for more information. (optional)
91-
* @param int $limit Sets the maximum number of results to be returned in a single page. Limit values outside the supported range are ignored. Minimum value: `1` Maximum value: `1,000` (optional)
9290
* @return Array of \SquareConnect\Model\ListCustomerSegmentsResponse, HTTP status code, HTTP response headers (array of strings)
9391
* @throws \SquareConnect\ApiException on non-2xx response
9492
*/
95-
public function listCustomerSegmentsWithHttpInfo($cursor = null, $limit = null)
93+
public function listCustomerSegmentsWithHttpInfo($cursor = null)
9694
{
9795

9896

@@ -112,9 +110,6 @@ public function listCustomerSegmentsWithHttpInfo($cursor = null, $limit = null)
112110
// query params
113111
if ($cursor !== null) {
114112
$queryParams['cursor'] = $this->apiClient->getSerializer()->toQueryValue($cursor);
115-
}// query params
116-
if ($limit !== null) {
117-
$queryParams['limit'] = $this->apiClient->getSerializer()->toQueryValue($limit);
118113
}
119114

120115

lib/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class Configuration
9494
*
9595
* @var string
9696
*/
97-
protected $userAgent = "Square-Connect-PHP/3.20200422.0";
97+
protected $userAgent = "Square-Connect-PHP/3.20200422.1";
9898

9999
/**
100100
* Debug switch (default set to false)
@@ -501,7 +501,7 @@ public static function toDebugReport()
501501
$report .= " OS: ".php_uname()."\n";
502502
$report .= " PHP Version: ".phpversion()."\n";
503503
$report .= " OpenAPI Spec Version: 2.0\n";
504-
$report .= " SDK Package Version: 3.20200422.0\n";
504+
$report .= " SDK Package Version: 3.20200422.1\n";
505505
$report .= " Temp Folder Path: ".self::getDefaultConfiguration()->getTempFolderPath()."\n";
506506

507507
return $report;

lib/Model/ListCustomerSegmentsRequest.php

Lines changed: 4 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -25,47 +25,38 @@ class ListCustomerSegmentsRequest implements ArrayAccess
2525
* @var string[]
2626
*/
2727
static $swaggerTypes = array(
28-
'cursor' => 'string',
29-
'limit' => 'int'
28+
'cursor' => 'string'
3029
);
3130

3231
/**
3332
* Array of attributes where the key is the local name, and the value is the original name
3433
* @var string[]
3534
*/
3635
static $attributeMap = array(
37-
'cursor' => 'cursor',
38-
'limit' => 'limit'
36+
'cursor' => 'cursor'
3937
);
4038

4139
/**
4240
* Array of attributes to setter functions (for deserialization of responses)
4341
* @var string[]
4442
*/
4543
static $setters = array(
46-
'cursor' => 'setCursor',
47-
'limit' => 'setLimit'
44+
'cursor' => 'setCursor'
4845
);
4946

5047
/**
5148
* Array of attributes to getter functions (for serialization of requests)
5249
* @var string[]
5350
*/
5451
static $getters = array(
55-
'cursor' => 'getCursor',
56-
'limit' => 'getLimit'
52+
'cursor' => 'getCursor'
5753
);
5854

5955
/**
6056
* $cursor A pagination cursor returned by previous calls to __ListCustomerSegments__. Used to retrieve the next set of query results. See the [Pagination guide](https://developer.squareup.com/docs/docs/working-with-apis/pagination) for more information.
6157
* @var string
6258
*/
6359
protected $cursor;
64-
/**
65-
* $limit Sets the maximum number of results to be returned in a single page. Limit values outside the supported range are ignored. Minimum value: `1` Maximum value: `1,000`
66-
* @var int
67-
*/
68-
protected $limit;
6960

7061
/**
7162
* Constructor
@@ -79,11 +70,6 @@ public function __construct(array $data = null)
7970
} else {
8071
$this->cursor = null;
8172
}
82-
if (isset($data["limit"])) {
83-
$this->limit = $data["limit"];
84-
} else {
85-
$this->limit = null;
86-
}
8773
}
8874
}
8975
/**
@@ -105,25 +91,6 @@ public function setCursor($cursor)
10591
$this->cursor = $cursor;
10692
return $this;
10793
}
108-
/**
109-
* Gets limit
110-
* @return int
111-
*/
112-
public function getLimit()
113-
{
114-
return $this->limit;
115-
}
116-
117-
/**
118-
* Sets limit
119-
* @param int $limit Sets the maximum number of results to be returned in a single page. Limit values outside the supported range are ignored. Minimum value: `1` Maximum value: `1,000`
120-
* @return $this
121-
*/
122-
public function setLimit($limit)
123-
{
124-
$this->limit = $limit;
125-
return $this;
126-
}
12794
/**
12895
* Returns true if offset exists. False otherwise.
12996
* @param integer $offset Offset

0 commit comments

Comments
 (0)