Skip to content

Commit 021f97a

Browse files
author
autobot
committed
Release 2024-11-20
1 parent cbc322a commit 021f97a

File tree

374 files changed

+906
-848
lines changed

Some content is hidden

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

374 files changed

+906
-848
lines changed

doc/api/location-custom-attributes.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -257,15 +257,9 @@ This method returns a `ApiResponse` instance. The `data` property in this instan
257257
```ruby
258258
body = {
259259
:values => {
260-
'id1' => {
261-
:key => 'bestseller'
262-
},
263-
'id2' => {
264-
:key => 'bestseller'
265-
},
266-
'id3' => {
267-
:key => 'phone-number'
268-
}
260+
'id1' => {},
261+
'id2' => {},
262+
'id3' => {}
269263
}
270264
}
271265

doc/api/merchant-custom-attributes.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,8 @@ This method returns a `ApiResponse` instance. The `data` property in this instan
257257
```ruby
258258
body = {
259259
:values => {
260-
'id1' => {
261-
:key => 'alternative_seller_name'
262-
},
263-
'id2' => {
264-
:key => 'has_seen_tutorial'
265-
}
260+
'id1' => {},
261+
'id2' => {}
266262
}
267263
}
268264

doc/api/order-custom-attributes.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,12 +272,10 @@ This method returns a `ApiResponse` instance. The `data` property in this instan
272272
body = {
273273
:values => {
274274
'cover-count' => {
275-
:order_id => '7BbXGEIWNldxAzrtGf9GPVZTwZ4F',
276-
:key => 'cover-count'
275+
:order_id => '7BbXGEIWNldxAzrtGf9GPVZTwZ4F'
277276
},
278277
'table-number' => {
279-
:order_id => '7BbXGEIWNldxAzrtGf9GPVZTwZ4F',
280-
:key => 'table-number'
278+
:order_id => '7BbXGEIWNldxAzrtGf9GPVZTwZ4F'
281279
}
282280
}
283281
}

doc/api/team.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ body = {
177177
'AFMwA08kR-MIF-3Vs0OE' => {
178178
:team_member => {
179179
:reference_id => 'reference_id_2',
180-
:is_owner => false,
181180
:status => 'ACTIVE',
182181
:given_name => 'Jane',
183182
:family_name => 'Smith',
@@ -191,7 +190,6 @@ body = {
191190
'fpgteZNMaf0qOK-a4t6P' => {
192191
:team_member => {
193192
:reference_id => 'reference_id_1',
194-
:is_owner => false,
195193
:status => 'ACTIVE',
196194
:given_name => 'Joe',
197195
:family_name => '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-
| `square_version` | `String` | Square Connect API versions<br>*Default*: `'2024-10-17'` |
8+
| `square_version` | `String` | Square Connect API versions<br>*Default*: `'2024-11-20'` |
99
| `custom_url` | `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
| `connection` | `Faraday::Connection` | The Faraday connection object passed by the SDK user for making requests |
@@ -25,7 +25,7 @@ The API client can be initialized as follows:
2525

2626
```ruby
2727
client = Square::Client.new(
28-
square_version: '2024-10-17',
28+
square_version: '2024-11-20',
2929
bearer_auth_credentials: BearerAuthCredentials.new(
3030
access_token: 'AccessToken'
3131
),
@@ -55,7 +55,7 @@ require 'square'
5555
include Square
5656

5757
client = Square::Client.new(
58-
square_version: '2024-10-17',
58+
square_version: '2024-11-20',
5959
bearer_auth_credentials: BearerAuthCredentials.new(
6060
access_token: 'AccessToken'
6161
),

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)