Skip to content

Commit 69abda0

Browse files
author
autobot
committed
Generated PR for Release: 25.0.0.20221019
1 parent 5b0059b commit 69abda0

File tree

883 files changed

+11956
-21118
lines changed

Some content is hidden

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

883 files changed

+11956
-21118
lines changed

doc/api/customers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ CreateCustomerRequest body = new CreateCustomerRequest.Builder()
107107
.familyName("Earhart")
108108
.emailAddress("[email protected]")
109109
.address(bodyAddress)
110-
.phoneNumber("1-212-555-4240")
110+
.phoneNumber("+1-212-555-4240")
111111
.referenceId("YOUR_REFERENCE_ID")
112112
.note("a customer")
113113
.build();

doc/api/invoices.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ InvoiceAcceptedPaymentMethods invoiceAcceptedPaymentMethods = new InvoiceAccepte
111111
.card(true)
112112
.squareGiftCard(false)
113113
.bankAccount(false)
114+
.buyNowPayLater(false)
114115
.build();
115116
List<InvoiceCustomField> bodyInvoiceCustomFields = new LinkedList<>();
116117

doc/client.md

Lines changed: 3 additions & 3 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-
| `squareVersion` | `String` | Square Connect API versions<br>*Default*: `"2022-09-21"` |
8+
| `squareVersion` | `String` | Square Connect API versions<br>*Default*: `"2022-10-19"` |
99
| `customUrl` | `String` | Sets the base URL requests are made to. Defaults to `https://connect.squareup.com`<br>*Default*: `"https://connect.squareup.com"` |
1010
| `environment` | `string` | The API environment. <br> **Default: `production`** |
1111
| `httpClientConfig` | `ReadonlyHttpClientConfiguration` | Http Client Configuration instance. |
@@ -19,7 +19,7 @@ The API client can be initialized as follows:
1919
SquareClient client = new SquareClient.Builder()
2020
.httpClientConfig(configBuilder -> configBuilder
2121
.timeout(0))
22-
.squareVersion("2022-09-21")
22+
.squareVersion("2022-10-19")
2323
.accessToken("AccessToken")
2424
.environment(Environment.PRODUCTION)
2525
.customUrl("https://connect.squareup.com")
@@ -45,7 +45,7 @@ public class Program {
4545
SquareClient client = new SquareClient.Builder()
4646
.httpClientConfig(configBuilder -> configBuilder
4747
.timeout(0))
48-
.squareVersion("2022-09-21")
48+
.squareVersion("2022-10-19")
4949
.accessToken("AccessToken")
5050
.build();
5151

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 | Getter |
1414
| --- | --- | --- | --- | --- |
1515
| `IdempotencyKey` | `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). | String getIdempotencyKey() |
16-
| `GivenName` | `String` | Optional | The given name (that is, the first name) associated with the customer profile. | String getGivenName() |
17-
| `FamilyName` | `String` | Optional | The family name (that is, the last name) associated with the customer profile. | String getFamilyName() |
18-
| `CompanyName` | `String` | Optional | A business name associated with the customer profile. | String getCompanyName() |
19-
| `Nickname` | `String` | Optional | A nickname for the customer profile. | String getNickname() |
20-
| `EmailAddress` | `String` | Optional | The email address associated with the customer profile. | String getEmailAddress() |
16+
| `GivenName` | `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. | String getGivenName() |
17+
| `FamilyName` | `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. | String getFamilyName() |
18+
| `CompanyName` | `String` | Optional | A business name associated with the customer profile.<br><br>The maximum length for this value is 500 characters. | String getCompanyName() |
19+
| `Nickname` | `String` | Optional | A nickname for the customer profile.<br><br>The maximum length for this value is 100 characters. | String getNickname() |
20+
| `EmailAddress` | `String` | Optional | The email address associated with the customer profile.<br><br>The maximum length for this value is 254 characters. | String getEmailAddress() |
2121
| `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). | Address getAddress() |
22-
| `PhoneNumber` | `String` | Optional | The phone number associated with the customer profile. A phone number can contain 9–16 digits, with an optional `+` prefix. | String getPhoneNumber() |
23-
| `ReferenceId` | `String` | Optional | An optional second ID used to associate the customer profile with an<br>entity in another system. | String getReferenceId() |
22+
| `PhoneNumber` | `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). | String getPhoneNumber() |
23+
| `ReferenceId` | `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. | String getReferenceId() |
2424
| `Note` | `String` | Optional | A custom note associated with the customer profile. | String getNote() |
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. | String getBirthday() |
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. | String getBirthday() |
2626
| `TaxIds` | [`CustomerTaxIds`](../../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). | CustomerTaxIds getTaxIds() |
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` | `Boolean` | 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 | Boolean getAutocomplete() |
2323
| `OrderId` | `String` | Optional | Associates a previously created order with this payment. | String getOrderId() |
2424
| `CustomerId` | `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. | String getCustomerId() |
25-
| `LocationId` | `String` | Optional | The location ID to associate with the payment. If not specified, the default location is<br>used. | String getLocationId() |
25+
| `LocationId` | `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. | String getLocationId() |
2626
| `TeamMemberId` | `String` | Optional | An optional [TeamMember](../../doc/models/team-member.md) ID to associate with<br>this payment. | String getTeamMemberId() |
2727
| `ReferenceId` | `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` | String getReferenceId() |
2828
| `VerificationToken` | `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). | String getVerificationToken() |

0 commit comments

Comments
 (0)