Skip to content

Commit 9e2d392

Browse files
Merge pull request #108 from square/release/24.0.0.20221019
Generated PR for Release: 24.0.0.20221019
2 parents 30a90ca + 727f71b commit 9e2d392

61 files changed

Lines changed: 481 additions & 66 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

doc/api/customers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ body[:address][:locality] = 'New York'
104104
body[:address][:administrative_district_level_1] = 'NY'
105105
body[:address][:postal_code] = '10003'
106106
body[:address][:country] = 'US'
107-
body[:phone_number] = '1-212-555-4240'
107+
body[:phone_number] = '+1-212-555-4240'
108108
body[:reference_id] = 'YOUR_REFERENCE_ID'
109109
body[:note] = 'a customer'
110110

doc/api/invoices.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ body[:invoice][:accepted_payment_methods] = {}
115115
body[:invoice][:accepted_payment_methods][:card] = true
116116
body[:invoice][:accepted_payment_methods][:square_gift_card] = false
117117
body[:invoice][:accepted_payment_methods][:bank_account] = false
118+
body[:invoice][:accepted_payment_methods][:buy_now_pay_later] = false
118119
body[:invoice][:custom_fields] = []
119120

120121

doc/client.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The following parameters are configurable for the API Client:
55

66
| Parameter | Type | Description |
77
| --- | --- | --- |
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'` |
99
| `access_token` | `String` | The OAuth 2.0 Access Token to use for API requests. |
1010
| `custom_url` | `String` | Sets the base URL requests are made to. Defaults to `https://connect.squareup.com`<br>*Default*: `'https://connect.squareup.com'` |
1111
| `environment` | `string` | The API environment. <br> **Default: `production`** |
@@ -24,7 +24,7 @@ The API client can be initialized as follows:
2424

2525
```ruby
2626
client = Square::Client.new(
27-
square_version: '2022-09-21',
27+
square_version: '2022-10-19',
2828
access_token: 'AccessToken',
2929
environment: 'production',
3030
custom_url: 'https://connect.squareup.com',

doc/models/activity-type.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@
4343
| `TAX_ON_FEE` | The tax paid on fee amounts. |
4444
| `THIRD_PARTY_FEE` | Fees collected by a third-party platform. |
4545
| `THIRD_PARTY_FEE_REFUND` | Refunded fees from a third-party platform. |
46+
| `PAYOUT` | Balance change due to money transfer. |
4647

doc/models/cancel-invoice-response.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ The response returned by the `CancelInvoice` request.
2222
"invoice": {
2323
"accepted_payment_methods": {
2424
"bank_account": false,
25+
"buy_now_pay_later": false,
2526
"card": true,
2627
"square_gift_card": false
2728
},

doc/models/create-customer-request.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ Defines the body parameters that can be included in a request to the
1313
| Name | Type | Tags | Description |
1414
| --- | --- | --- | --- |
1515
| `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. |
2121
| `address` | [`Address Hash`](../../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 contain 9–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. |
2424
| `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. |
2626
| `tax_ids` | [`Customer Tax Ids Hash`](../../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). |
2727

2828
## Example (as JSON)
@@ -41,7 +41,7 @@ Defines the body parameters that can be included in a request to the
4141
"family_name": "Earhart",
4242
"given_name": "Amelia",
4343
"note": "a customer",
44-
"phone_number": "1-212-555-4240",
44+
"phone_number": "+1-212-555-4240",
4545
"reference_id": "YOUR_REFERENCE_ID"
4646
}
4747
```

doc/models/create-customer-response.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Either `errors` or `customer` is present in a given response (never both).
3737
"given_name": "Amelia",
3838
"id": "JDKYHBWT1D4F8MFH63DBMEN8Y4",
3939
"note": "a customer",
40-
"phone_number": "1-212-555-4240",
40+
"phone_number": "+1-212-555-4240",
4141
"preferences": {
4242
"email_unsubscribed": false
4343
},

doc/models/create-invoice-request.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Describes a `CreateInvoice` request.
2222
"invoice": {
2323
"accepted_payment_methods": {
2424
"bank_account": false,
25+
"buy_now_pay_later": false,
2526
"card": true,
2627
"square_gift_card": false
2728
},

doc/models/create-invoice-response.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ The response returned by the `CreateInvoice` request.
2222
"invoice": {
2323
"accepted_payment_methods": {
2424
"bank_account": false,
25+
"buy_now_pay_later": false,
2526
"card": true,
2627
"square_gift_card": false
2728
},

doc/models/create-payment-request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Describes a request to create a payment using
2222
| `autocomplete` | `TrueClass\|FalseClass` | Optional | If set to `true`, this payment will be completed when possible. If<br>set to `false`, this payment is held in an approved state until either<br>explicitly completed (captured) or canceled (voided). For more information, see<br>[Delayed capture](https://developer.squareup.com/docs/payments-api/take-payments/card-payments#delayed-capture-of-a-card-payment).<br><br>Default: true |
2323
| `order_id` | `String` | Optional | Associates a previously created order with this payment. |
2424
| `customer_id` | `String` | Optional | The [Customer](../../doc/models/customer.md) ID of the customer associated with the payment.<br><br>This is required if the `source_id` refers to a card on file created using the Customers API. |
25-
| `location_id` | `String` | Optional | The location ID to associate with the payment. If not specified, the default location is<br>used. |
25+
| `location_id` | `String` | Optional | The location ID to associate with the payment. If not specified, the [main location](https://developer.squareup.com/docs/locations-api#about-the-main-location) is<br>used. |
2626
| `team_member_id` | `String` | Optional | An optional [TeamMember](../../doc/models/team-member.md) ID to associate with<br>this payment. |
2727
| `reference_id` | `String` | Optional | A user-defined ID to associate with the payment.<br><br>You can use this field to associate the payment to an entity in an external system<br>(for example, you might specify an order ID that is generated by a third-party shopping cart).<br>**Constraints**: *Maximum Length*: `40` |
2828
| `verification_token` | `String` | Optional | An identifying token generated by [payments.verifyBuyer()](https://developer.squareup.com/reference/sdks/web/payments/objects/Payments#Payments.verifyBuyer).<br>Verification tokens encapsulate customer device information and 3-D Secure<br>challenge results to indicate that Square has verified the buyer identity.<br><br>For more information, see [SCA Overview](https://developer.squareup.com/docs/sca-overview). |

0 commit comments

Comments
 (0)