Skip to content

Commit 0a1ef41

Browse files
author
autobot
committed
Release 2024-11-20
1 parent be3114b commit 0a1ef41

File tree

378 files changed

+1484
-871
lines changed

Some content is hidden

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

378 files changed

+1484
-871
lines changed

doc/api/location-custom-attributes.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,13 +263,10 @@ CompletableFuture<BulkDeleteLocationCustomAttributesResponse> bulkDeleteLocation
263263
BulkDeleteLocationCustomAttributesRequest body = new BulkDeleteLocationCustomAttributesRequest.Builder(
264264
new LinkedHashMap<String, BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest>() {{
265265
put("id1", new BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest.Builder()
266-
.key("bestseller")
267266
.build());
268267
put("id2", new BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest.Builder()
269-
.key("bestseller")
270268
.build());
271269
put("id3", new BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest.Builder()
272-
.key("phone-number")
273270
.build());
274271
}}
275272
)

doc/api/merchant-custom-attributes.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,8 @@ CompletableFuture<BulkDeleteMerchantCustomAttributesResponse> bulkDeleteMerchant
263263
BulkDeleteMerchantCustomAttributesRequest body = new BulkDeleteMerchantCustomAttributesRequest.Builder(
264264
new LinkedHashMap<String, BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest>() {{
265265
put("id1", new BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest.Builder()
266-
.key("alternative_seller_name")
267266
.build());
268267
put("id2", new BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest.Builder()
269-
.key("has_seen_tutorial")
270268
.build());
271269
}}
272270
)

doc/api/order-custom-attributes.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,12 +279,10 @@ BulkDeleteOrderCustomAttributesRequest body = new BulkDeleteOrderCustomAttribute
279279
put("cover-count", new BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute.Builder(
280280
"7BbXGEIWNldxAzrtGf9GPVZTwZ4F"
281281
)
282-
.key("cover-count")
283282
.build());
284283
put("table-number", new BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute.Builder(
285284
"7BbXGEIWNldxAzrtGf9GPVZTwZ4F"
286285
)
287-
.key("table-number")
288286
.build());
289287
}}
290288
)

doc/api/team.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ BulkUpdateTeamMembersRequest body = new BulkUpdateTeamMembersRequest.Builder(
181181
put("AFMwA08kR-MIF-3Vs0OE", new UpdateTeamMemberRequest.Builder()
182182
.teamMember(new TeamMember.Builder()
183183
.referenceId("reference_id_2")
184-
.isOwner(false)
185184
.status("ACTIVE")
186185
.givenName("Jane")
187186
.familyName("Smith")
@@ -195,7 +194,6 @@ BulkUpdateTeamMembersRequest body = new BulkUpdateTeamMembersRequest.Builder(
195194
put("fpgteZNMaf0qOK-a4t6P", new UpdateTeamMemberRequest.Builder()
196195
.teamMember(new TeamMember.Builder()
197196
.referenceId("reference_id_1")
198-
.isOwner(false)
199197
.status("ACTIVE")
200198
.givenName("Joe")
201199
.familyName("Doe")

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*: `"2024-10-17"` |
8+
| `squareVersion` | `String` | Square Connect API versions<br>*Default*: `"2024-11-20"` |
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` | [`Consumer<HttpClientConfiguration.Builder>`](http-client-configuration-builder.md) | Set up 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("2024-10-17")
22+
.squareVersion("2024-11-20")
2323
.bearerAuthCredentials(new BearerAuthModel.Builder(
2424
"AccessToken"
2525
)
@@ -45,7 +45,7 @@ public class Program {
4545
SquareClient client = new SquareClient.Builder()
4646
.httpClientConfig(configBuilder -> configBuilder
4747
.timeout(0))
48-
.squareVersion("2024-10-17")
48+
.squareVersion("2024-11-20")
4949
.bearerAuthCredentials(new BearerAuthModel.Builder(
5050
"AccessToken"
5151
)

doc/models/accept-dispute-response.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,19 @@ Defines the fields in an `AcceptDispute` response.
4242
"errors": [
4343
{
4444
"category": "MERCHANT_SUBSCRIPTION_ERROR",
45-
"code": "MAP_KEY_LENGTH_TOO_LONG",
45+
"code": "INVALID_EXPIRATION",
4646
"detail": "detail6",
4747
"field": "field4"
4848
},
4949
{
5050
"category": "MERCHANT_SUBSCRIPTION_ERROR",
51-
"code": "MAP_KEY_LENGTH_TOO_LONG",
51+
"code": "INVALID_EXPIRATION",
5252
"detail": "detail6",
5353
"field": "field4"
5454
},
5555
{
5656
"category": "MERCHANT_SUBSCRIPTION_ERROR",
57-
"code": "MAP_KEY_LENGTH_TOO_LONG",
57+
"code": "INVALID_EXPIRATION",
5858
"detail": "detail6",
5959
"field": "field4"
6060
}

doc/models/accumulate-loyalty-points-response.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Represents an [AccumulateLoyaltyPoints](../../doc/api/loyalty.md#accumulate-loya
5757
"errors": [
5858
{
5959
"category": "MERCHANT_SUBSCRIPTION_ERROR",
60-
"code": "MAP_KEY_LENGTH_TOO_LONG",
60+
"code": "INVALID_EXPIRATION",
6161
"detail": "detail6",
6262
"field": "field4"
6363
}

doc/models/activity-type.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
| `AUTOMATIC_SAVINGS` | An automatic transfer from the payment processing balance to the Square Savings account. These are generally proportional to the seller's sales. |
1616
| `AUTOMATIC_SAVINGS_REVERSED` | An automatic transfer from the Square Savings account back to the processing balance. These are generally proportional to the seller's refunds. |
1717
| `CHARGE` | A credit card payment capture. |
18-
| `DEPOSIT_FEE` | Any fees involved with deposits such as instant deposits. |
18+
| `DEPOSIT_FEE` | A fee assessed because of a deposit, such as an instant deposit. |
19+
| `DEPOSIT_FEE_REVERSED` | Indicates that Square returned a fee that was previously assessed because of a deposit, such as an instant deposit, back to the seller's account. |
1920
| `DISPUTE` | The balance change due to a dispute event. |
2021
| `ESCHEATMENT` | An escheatment entry for remittance. |
2122
| `FEE` | The cost plus adjustment fee. |
@@ -43,7 +44,7 @@
4344
| `TAX_ON_FEE` | The tax paid on fee amounts. |
4445
| `THIRD_PARTY_FEE` | Fees collected by a third-party platform. |
4546
| `THIRD_PARTY_FEE_REFUND` | Refunded fees from a third-party platform. |
46-
| `PAYOUT` | The balance change due to money transfer. |
47+
| `PAYOUT` | The balance change due to a money transfer. Note that this type is never returned by the Payouts API. |
4748
| `AUTOMATIC_BITCOIN_CONVERSIONS` | Indicates that the portion of each payment withheld by Square was automatically converted into bitcoin using Cash App. The seller manages their bitcoin in their Cash App account. |
4849
| `AUTOMATIC_BITCOIN_CONVERSIONS_REVERSED` | Indicates that a withheld payment, which was scheduled to be converted into bitcoin using Cash App, was deposited back to the Square payments balance. |
4950
| `CREDIT_CARD_REPAYMENT` | Indicates that a repayment toward the outstanding balance on the seller's Square credit card was made. |
@@ -64,4 +65,6 @@
6465
| `BALANCE_FOLDERS_TRANSFER_REVERSED` | A reversal of transfer of funds from a banking folder. In the United States, the folder name is 'Checking Folder'; in Canada, it's 'Balance Folder.' |
6566
| `GIFT_CARD_POOL_TRANSFER` | A transfer of gift card funds to a central gift card pool account. In franchises, when gift cards are loaded or reloaded at any location, the money transfers to the franchisor's account. |
6667
| `GIFT_CARD_POOL_TRANSFER_REVERSED` | A reversal of transfer of gift card funds from a central gift card pool account. In franchises, when gift cards are loaded or reloaded at any location, the money transfers to the franchisor's account. |
68+
| `SQUARE_PAYROLL_TRANSFER` | A payroll payment that was transferred to a team member’s bank account. |
69+
| `SQUARE_PAYROLL_TRANSFER_REVERSED` | A payroll payment to a team member’s bank account that was deposited back to the seller’s account by Square. |
6770

doc/models/add-group-to-customer-response.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ a request to the [AddGroupToCustomer](../../doc/api/customers.md#add-group-to-cu
2121
"errors": [
2222
{
2323
"category": "MERCHANT_SUBSCRIPTION_ERROR",
24-
"code": "MAP_KEY_LENGTH_TOO_LONG",
24+
"code": "INVALID_EXPIRATION",
2525
"detail": "detail6",
2626
"field": "field4"
2727
}

doc/models/additional-recipient.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Represents an additional recipient (other than the merchant) receiving a portion
2424
"description": "description2",
2525
"amount_money": {
2626
"amount": 186,
27-
"currency": "TZS"
27+
"currency": "AUD"
2828
},
2929
"receivable_id": "receivable_id8"
3030
}

0 commit comments

Comments
 (0)