You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/client.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ The following parameters are configurable for the API Client:
5
5
6
6
| Parameter | Type | Description |
7
7
| --- | --- | --- |
8
-
|`square_version`|`string`| Square Connect API versions<br>*Default*: `'2022-09-21'`|
8
+
|`square_version`|`string`| Square Connect API versions<br>*Default*: `'2022-10-19'`|
9
9
|`custom_url`|`string`| Sets the base URL requests are made to. Defaults to `https://connect.squareup.com`<br>*Default*: `'https://connect.squareup.com'`|
10
10
|`environment`|`string`| The API environment. <br> **Default: `production`**|
11
11
|`http_client_instance`|`HttpClient`| The Http Client passed from the sdk user for making requests |
@@ -26,7 +26,7 @@ The API client can be initialized as follows:
Copy file name to clipboardExpand all lines: doc/models/create-customer-request.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,16 +13,16 @@ Defines the body parameters that can be included in a request to the
13
13
| Name | Type | Tags | Description |
14
14
| --- | --- | --- | --- |
15
15
|`idempotency_key`|`string`| Optional | The idempotency key for the request. For more information, see<br>[Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency). |
16
-
|`given_name`|`string`| Optional | The given name (that is, the first name) associated with the customer profile. |
17
-
|`family_name`|`string`| Optional | The family name (that is, the last name) associated with the customer profile. |
18
-
|`company_name`|`string`| Optional | A business name associated with the customer profile. |
19
-
|`nickname`|`string`| Optional | A nickname for the customer profile. |
20
-
|`email_address`|`string`| Optional | The email address associated with the customer profile. |
16
+
|`given_name`|`string`| Optional | The given name (that is, the first name) associated with the customer profile.<br><br>The maximum length for this value is 300 characters.|
17
+
|`family_name`|`string`| Optional | The family name (that is, the last name) associated with the customer profile.<br><br>The maximum length for this value is 300 characters.|
18
+
|`company_name`|`string`| Optional | A business name associated with the customer profile.<br><br>The maximum length for this value is 500 characters.|
19
+
|`nickname`|`string`| Optional | A nickname for the customer profile.<br><br>The maximum length for this value is 100 characters.|
20
+
|`email_address`|`string`| Optional | The email address associated with the customer profile.<br><br>The maximum length for this value is 254 characters.|
21
21
|`address`|[`Address`](../../doc/models/address.md)| Optional | Represents a postal address in a country.<br>For more information, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses). |
22
-
|`phone_number`|`string`| Optional | The phone number associated with the customer profile. A phone number can contain9–16 digits, with an optional `+` prefix. |
23
-
|`reference_id`|`string`| Optional | An optional second ID used to associate the customer profile with an<br>entity in another system. |
22
+
|`phone_number`|`string`| Optional | The phone number associated with the customer profile. The phone number must be valid and can contain<br>9–16 digits, with an optional `+` prefix and country code. For more information, see<br>[Customer phone numbers](https://developer.squareup.com/docs/customers-api/use-the-api/keep-records#phone-number). |
23
+
|`reference_id`|`string`| Optional | An optional second ID used to associate the customer profile with an<br>entity in another system.<br><br>The maximum length for this value is 100 characters.|
24
24
|`note`|`string`| Optional | A custom note associated with the customer profile. |
25
-
|`birthday`|`string`| Optional | The birthday associated with the customer profile, in RFC 3339 format. The year is optional. The timezone and time are not allowed.<br>For example, `0000-09-21T00:00:00-00:00` represents a birthday on September 21 and `1998-09-21T00:00:00-00:00` represents a birthday on September 21, 1998.<br>You can also specify this value in `YYYY-MM-DD`format. |
25
+
|`birthday`|`string`| Optional | The birthday associated with the customer profile, in `YYYY-MM-DD` or `MM-DD`format. For example,<br>specify `1998-09-21` for September 21, 1998, or `09-21` for September 21. Birthdays are returned in `YYYY-MM-DD`<br>format, where `YYYY` is the specified birth year or `0000` if a birth year is not specified. |
26
26
|`tax_ids`|[`Customer Tax Ids`](../../doc/models/customer-tax-ids.md)| Optional | Represents the tax ID associated with a [customer profile](../../doc/models/customer.md). The corresponding `tax_ids` field is available only for customers of sellers in EU countries or the United Kingdom.<br>For more information, see [Customer tax IDs](https://developer.squareup.com/docs/customers-api/what-it-does#customer-tax-ids). |
27
27
28
28
## Example (as JSON)
@@ -41,7 +41,7 @@ Defines the body parameters that can be included in a request to the
0 commit comments