Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 3 additions & 9 deletions doc/api/location-custom-attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,15 +280,9 @@ requestOptions?: RequestOptions): Promise<ApiResponse<BulkDeleteLocationCustomAt
```ts
const body: BulkDeleteLocationCustomAttributesRequest = {
values: {
'id1': {
key: 'bestseller',
},
'id2': {
key: 'bestseller',
},
'id3': {
key: 'phone-number',
}
'id1': {},
'id2': {},
'id3': {}
},
};

Expand Down
8 changes: 2 additions & 6 deletions doc/api/merchant-custom-attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,12 +280,8 @@ requestOptions?: RequestOptions): Promise<ApiResponse<BulkDeleteMerchantCustomAt
```ts
const body: BulkDeleteMerchantCustomAttributesRequest = {
values: {
'id1': {
key: 'alternative_seller_name',
},
'id2': {
key: 'has_seen_tutorial',
}
'id1': {},
'id2': {}
},
};

Expand Down
2 changes: 0 additions & 2 deletions doc/api/order-custom-attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,11 +296,9 @@ const body: BulkDeleteOrderCustomAttributesRequest = {
values: {
'cover-count': {
orderId: '7BbXGEIWNldxAzrtGf9GPVZTwZ4F',
key: 'cover-count',
},
'table-number': {
orderId: '7BbXGEIWNldxAzrtGf9GPVZTwZ4F',
key: 'table-number',
}
},
};
Expand Down
2 changes: 0 additions & 2 deletions doc/api/team.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ const body: BulkUpdateTeamMembersRequest = {
'AFMwA08kR-MIF-3Vs0OE': {
teamMember: {
referenceId: 'reference_id_2',
isOwner: false,
status: 'ACTIVE',
givenName: 'Jane',
familyName: 'Smith',
Expand All @@ -201,7 +200,6 @@ const body: BulkUpdateTeamMembersRequest = {
'fpgteZNMaf0qOK-a4t6P': {
teamMember: {
referenceId: 'reference_id_1',
isOwner: false,
status: 'ACTIVE',
givenName: 'Joe',
familyName: 'Doe',
Expand Down
6 changes: 3 additions & 3 deletions doc/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The following parameters are configurable for the API Client:

| Parameter | Type | Description |
| --- | --- | --- |
| `squareVersion` | `string` | Square Connect API versions<br>*Default*: `'2024-10-17'` |
| `squareVersion` | `string` | Square Connect API versions<br>*Default*: `'2024-11-20'` |
| `customUrl` | `string` | Sets the base URL requests are made to. Defaults to `https://connect.squareup.com`<br>*Default*: `'https://connect.squareup.com'` |
| `environment` | `string` | The API environment. <br> **Default: `production`** |
| `additionalHeaders` | `Readonly<Record<string, string>>` | Additional headers to add to each API call<br>*Default*: `{}` |
Expand Down Expand Up @@ -43,7 +43,7 @@ const client = new Client({
bearerAuthCredentials: {
accessToken: 'AccessToken'
},
squareVersion: '2024-10-17',
squareVersion: '2024-11-20',
timeout: 60000,
additionalHeaders: {},
userAgentDetail: '',
Expand All @@ -61,7 +61,7 @@ const client = new Client({
bearerAuthCredentials: {
accessToken: 'AccessToken'
},
squareVersion: '2024-10-17',
squareVersion: '2024-11-20',
timeout: 60000,
additionalHeaders: {},
userAgentDetail: '',
Expand Down
6 changes: 3 additions & 3 deletions doc/models/accept-dispute-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,19 @@ Defines the fields in an `AcceptDispute` response.
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
Expand Down
2 changes: 1 addition & 1 deletion doc/models/accumulate-loyalty-points-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Represents an [AccumulateLoyaltyPoints](../../doc/api/loyalty.md#accumulate-loya
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
Expand Down
7 changes: 5 additions & 2 deletions doc/models/activity-type.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
| `AUTOMATIC_SAVINGS` | An automatic transfer from the payment processing balance to the Square Savings account. These are generally proportional to the seller's sales. |
| `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. |
| `CHARGE` | A credit card payment capture. |
| `DEPOSIT_FEE` | Any fees involved with deposits such as instant deposits. |
| `DEPOSIT_FEE` | A fee assessed because of a deposit, such as an instant deposit. |
| `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. |
| `DISPUTE` | The balance change due to a dispute event. |
| `ESCHEATMENT` | An escheatment entry for remittance. |
| `FEE` | The cost plus adjustment fee. |
Expand Down Expand Up @@ -43,7 +44,7 @@
| `TAX_ON_FEE` | The tax paid on fee amounts. |
| `THIRD_PARTY_FEE` | Fees collected by a third-party platform. |
| `THIRD_PARTY_FEE_REFUND` | Refunded fees from a third-party platform. |
| `PAYOUT` | The balance change due to money transfer. |
| `PAYOUT` | The balance change due to a money transfer. Note that this type is never returned by the Payouts API. |
| `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. |
| `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. |
| `CREDIT_CARD_REPAYMENT` | Indicates that a repayment toward the outstanding balance on the seller's Square credit card was made. |
Expand All @@ -64,4 +65,6 @@
| `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.' |
| `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. |
| `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. |
| `SQUARE_PAYROLL_TRANSFER` | A payroll payment that was transferred to a team member’s bank account. |
| `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. |

2 changes: 1 addition & 1 deletion doc/models/add-group-to-customer-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ a request to the [AddGroupToCustomer](../../doc/api/customers.md#add-group-to-cu
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
Expand Down
2 changes: 1 addition & 1 deletion doc/models/additional-recipient.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Represents an additional recipient (other than the merchant) receiving a portion
"description": "description2",
"amount_money": {
"amount": 186,
"currency": "TZS"
"currency": "AUD"
},
"receivable_id": "receivable_id8"
}
Expand Down
2 changes: 1 addition & 1 deletion doc/models/adjust-loyalty-points-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Represents an [AdjustLoyaltyPoints](../../doc/api/loyalty.md#adjust-loyalty-poin
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
Expand Down
2 changes: 1 addition & 1 deletion doc/models/bank-account.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ linking a bank account to a Square account, see
"id": "id2",
"account_number_suffix": "account_number_suffix6",
"country": "TT",
"currency": "SLL",
"currency": "MVR",
"account_type": "OTHER",
"holder_name": "holder_name8",
"primary_bank_identification_number": "primary_bank_identification_number0",
Expand Down
2 changes: 1 addition & 1 deletion doc/models/batch-delete-catalog-objects-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
Expand Down
6 changes: 3 additions & 3 deletions doc/models/batch-retrieve-catalog-objects-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,19 +254,19 @@
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
Expand Down
6 changes: 3 additions & 3 deletions doc/models/batch-retrieve-orders-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,19 +99,19 @@ a request to the `BatchRetrieveOrders` endpoint.
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
Expand Down
2 changes: 1 addition & 1 deletion doc/models/batch-upsert-catalog-objects-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
Expand Down
6 changes: 3 additions & 3 deletions doc/models/booking-custom-attribute-upsert-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,19 @@ Represents a response for an individual upsert request in a [BulkUpsertBookingCu
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
Expand Down
16 changes: 8 additions & 8 deletions doc/models/bulk-create-customers-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,19 @@ Defines the fields included in the response body from the
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
Expand Down Expand Up @@ -112,19 +112,19 @@ Defines the fields included in the response body from the
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
Expand All @@ -134,13 +134,13 @@ Defines the fields included in the response body from the
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
Expand Down
10 changes: 5 additions & 5 deletions doc/models/bulk-create-team-members-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ Represents a response from a bulk create request containing the created `TeamMem
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
Expand All @@ -69,13 +69,13 @@ Represents a response from a bulk create request containing the created `TeamMem
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
Expand All @@ -85,7 +85,7 @@ Represents a response from a bulk create request containing the created `TeamMem
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
Expand Down
6 changes: 3 additions & 3 deletions doc/models/bulk-create-vendors-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,19 @@ Represents an output from a call to [BulkCreateVendors](../../doc/api/vendors.md
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
Expand Down
Loading
Loading