Skip to content

Commit 10dfded

Browse files
authored
Merge pull request #160 from square/release/2024-11-20
Generated PR for Release: 2024-11-20
2 parents 13541c8 + 66aa587 commit 10dfded

File tree

380 files changed

+974
-847
lines changed

Some content is hidden

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

380 files changed

+974
-847
lines changed

doc/api/location-custom-attributes.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -280,15 +280,9 @@ requestOptions?: RequestOptions): Promise<ApiResponse<BulkDeleteLocationCustomAt
280280
```ts
281281
const body: BulkDeleteLocationCustomAttributesRequest = {
282282
values: {
283-
'id1': {
284-
key: 'bestseller',
285-
},
286-
'id2': {
287-
key: 'bestseller',
288-
},
289-
'id3': {
290-
key: 'phone-number',
291-
}
283+
'id1': {},
284+
'id2': {},
285+
'id3': {}
292286
},
293287
};
294288

doc/api/merchant-custom-attributes.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -280,12 +280,8 @@ requestOptions?: RequestOptions): Promise<ApiResponse<BulkDeleteMerchantCustomAt
280280
```ts
281281
const body: BulkDeleteMerchantCustomAttributesRequest = {
282282
values: {
283-
'id1': {
284-
key: 'alternative_seller_name',
285-
},
286-
'id2': {
287-
key: 'has_seen_tutorial',
288-
}
283+
'id1': {},
284+
'id2': {}
289285
},
290286
};
291287

doc/api/order-custom-attributes.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,11 +296,9 @@ const body: BulkDeleteOrderCustomAttributesRequest = {
296296
values: {
297297
'cover-count': {
298298
orderId: '7BbXGEIWNldxAzrtGf9GPVZTwZ4F',
299-
key: 'cover-count',
300299
},
301300
'table-number': {
302301
orderId: '7BbXGEIWNldxAzrtGf9GPVZTwZ4F',
303-
key: 'table-number',
304302
}
305303
},
306304
};

doc/api/team.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ const body: BulkUpdateTeamMembersRequest = {
187187
'AFMwA08kR-MIF-3Vs0OE': {
188188
teamMember: {
189189
referenceId: 'reference_id_2',
190-
isOwner: false,
191190
status: 'ACTIVE',
192191
givenName: 'Jane',
193192
familyName: 'Smith',
@@ -201,7 +200,6 @@ const body: BulkUpdateTeamMembersRequest = {
201200
'fpgteZNMaf0qOK-a4t6P': {
202201
teamMember: {
203202
referenceId: 'reference_id_1',
204-
isOwner: false,
205203
status: 'ACTIVE',
206204
givenName: 'Joe',
207205
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
| `additionalHeaders` | `Readonly<Record<string, string>>` | Additional headers to add to each API call<br>*Default*: `{}` |
@@ -43,7 +43,7 @@ const client = new Client({
4343
bearerAuthCredentials: {
4444
accessToken: 'AccessToken'
4545
},
46-
squareVersion: '2024-10-17',
46+
squareVersion: '2024-11-20',
4747
timeout: 60000,
4848
additionalHeaders: {},
4949
userAgentDetail: '',
@@ -61,7 +61,7 @@ const client = new Client({
6161
bearerAuthCredentials: {
6262
accessToken: 'AccessToken'
6363
},
64-
squareVersion: '2024-10-17',
64+
squareVersion: '2024-11-20',
6565
timeout: 60000,
6666
additionalHeaders: {},
6767
userAgentDetail: '',

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)