Skip to content

Commit e17ce35

Browse files
authored
Merge pull request #112 from square/release/26.2.0.20230315
Generated PR for Release: 26.2.0.20230315
2 parents 2b2dc5f + 1ea4cd1 commit e17ce35

File tree

205 files changed

+4711
-9362
lines changed

Some content is hidden

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

205 files changed

+4711
-9362
lines changed

doc/api/bookings.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ end
6969

7070
Creates a booking.
7171

72+
The required input must include the following:
73+
74+
- `Booking.location_id`,
75+
- `Booking.start_at`,
76+
- `Booking.team_member_id`
77+
- `Booking.AppointmentSegment.service_variation_id`
78+
- `Booking.AppointmentSegment.service_variation_version`
79+
7280
To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope.
7381
To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope.
7482

doc/api/catalog.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -447,9 +447,6 @@ body[:object][:item_data][:variations][1][:item_variation_data] = {}
447447
body[:object][:item_data][:variations][1][:item_variation_data][:item_id] = '#Cocoa'
448448
body[:object][:item_data][:variations][1][:item_variation_data][:name] = 'Large'
449449
body[:object][:item_data][:variations][1][:item_variation_data][:pricing_type] = 'FIXED_PRICING'
450-
body[:object][:item_data][:variations][1][:item_variation_data][:price_money] = {}
451-
body[:object][:item_data][:variations][1][:item_variation_data][:price_money][:amount] = 400
452-
body[:object][:item_data][:variations][1][:item_variation_data][:price_money][:currency] = 'USD'
453450

454451
body[:object][:item_data][:description_html] = '<p><strong>Hot</strong> Chocolate</p>'
455452

doc/api/checkout.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,23 +76,14 @@ body[:order][:order][:line_items][0][:applied_discounts] = []
7676
body[:order][:order][:line_items][0][:applied_discounts][0] = {}
7777
body[:order][:order][:line_items][0][:applied_discounts][0][:discount_uid] = '56ae1696-z1e3-9328-af6d-f1e04d947gd4'
7878

79-
body[:order][:order][:line_items][0][:base_price_money] = {}
80-
body[:order][:order][:line_items][0][:base_price_money][:amount] = 1500
81-
body[:order][:order][:line_items][0][:base_price_money][:currency] = 'USD'
8279

8380
body[:order][:order][:line_items][1] = {}
8481
body[:order][:order][:line_items][1][:name] = 'Slim Jeans'
8582
body[:order][:order][:line_items][1][:quantity] = '1'
86-
body[:order][:order][:line_items][1][:base_price_money] = {}
87-
body[:order][:order][:line_items][1][:base_price_money][:amount] = 2500
88-
body[:order][:order][:line_items][1][:base_price_money][:currency] = 'USD'
8983

9084
body[:order][:order][:line_items][2] = {}
9185
body[:order][:order][:line_items][2][:name] = 'Woven Sweater'
9286
body[:order][:order][:line_items][2][:quantity] = '3'
93-
body[:order][:order][:line_items][2][:base_price_money] = {}
94-
body[:order][:order][:line_items][2][:base_price_money][:amount] = 3500
95-
body[:order][:order][:line_items][2][:base_price_money][:currency] = 'USD'
9687

9788
body[:order][:order][:taxes] = []
9889

@@ -109,9 +100,6 @@ body[:order][:order][:discounts] = []
109100
body[:order][:order][:discounts][0] = {}
110101
body[:order][:order][:discounts][0][:uid] = '56ae1696-z1e3-9328-af6d-f1e04d947gd4'
111102
body[:order][:order][:discounts][0][:type] = 'FIXED_AMOUNT'
112-
body[:order][:order][:discounts][0][:amount_money] = {}
113-
body[:order][:order][:discounts][0][:amount_money][:amount] = 100
114-
body[:order][:order][:discounts][0][:amount_money][:currency] = 'USD'
115103
body[:order][:order][:discounts][0][:scope] = 'LINE_ITEM'
116104

117105
body[:order][:idempotency_key] = '12ae1696-z1e3-4328-af6d-f1e04d947gd4'

doc/api/orders.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ body[:order][:line_items] = []
5757
body[:order][:line_items][0] = {}
5858
body[:order][:line_items][0][:name] = 'New York Strip Steak'
5959
body[:order][:line_items][0][:quantity] = '1'
60-
body[:order][:line_items][0][:base_price_money] = {}
61-
body[:order][:line_items][0][:base_price_money][:amount] = 1599
62-
body[:order][:line_items][0][:base_price_money][:currency] = 'USD'
6360

6461
body[:order][:line_items][1] = {}
6562
body[:order][:line_items][1][:quantity] = '2'
@@ -103,9 +100,6 @@ body[:order][:discounts][1][:scope] = 'ORDER'
103100
body[:order][:discounts][2] = {}
104101
body[:order][:discounts][2][:uid] = 'one-dollar-off'
105102
body[:order][:discounts][2][:name] = 'Sale - $1.00 off'
106-
body[:order][:discounts][2][:amount_money] = {}
107-
body[:order][:discounts][2][:amount_money][:amount] = 100
108-
body[:order][:discounts][2][:amount_money][:currency] = 'USD'
109103
body[:order][:discounts][2][:scope] = 'LINE_ITEM'
110104

111105
body[:idempotency_key] = '8193148c-9586-11e6-99f9-28cfe92138cf'
@@ -187,16 +181,10 @@ body[:order][:line_items] = []
187181
body[:order][:line_items][0] = {}
188182
body[:order][:line_items][0][:name] = 'Item 1'
189183
body[:order][:line_items][0][:quantity] = '1'
190-
body[:order][:line_items][0][:base_price_money] = {}
191-
body[:order][:line_items][0][:base_price_money][:amount] = 500
192-
body[:order][:line_items][0][:base_price_money][:currency] = 'USD'
193184

194185
body[:order][:line_items][1] = {}
195186
body[:order][:line_items][1][:name] = 'Item 2'
196187
body[:order][:line_items][1][:quantity] = '2'
197-
body[:order][:line_items][1][:base_price_money] = {}
198-
body[:order][:line_items][1][:base_price_money][:amount] = 300
199-
body[:order][:line_items][1][:base_price_money][:currency] = 'USD'
200188

201189
body[:order][:discounts] = []
202190

doc/api/subscriptions.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ body[:price_override_money][:amount] = 100
6060
body[:price_override_money][:currency] = 'USD'
6161
body[:card_id] = 'ccof:qy5x8hHGYsgLrp4Q4GB'
6262
body[:timezone] = 'America/Los_Angeles'
63-
body[:source] = {}
6463

6564
result = subscriptions_api.create_subscription(body: body)
6665

doc/client.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +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*: `'2023-01-19'` |
9-
| `access_token` | `String` | The OAuth 2.0 Access Token to use for API requests. |
8+
| `square_version` | `String` | Square Connect API versions<br>*Default*: `'2023-03-15'` |
109
| `custom_url` | `String` | Sets the base URL requests are made to. Defaults to `https://connect.squareup.com`<br>*Default*: `'https://connect.squareup.com'` |
1110
| `environment` | `string` | The API environment. <br> **Default: `production`** |
1211
| `connection` | `Faraday::Connection` | The Faraday connection object passed by the SDK user for making requests |
@@ -17,14 +16,16 @@ The following parameters are configurable for the API Client:
1716
| `backoff_factor` | `Float` | The amount to multiply each successive retry's interval amount by in order to provide backoff. <br> **Default: 2** |
1817
| `retry_statuses` | `Array` | A list of HTTP statuses to retry. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |
1918
| `retry_methods` | `Array` | A list of HTTP methods to retry. <br> **Default: %i[get put]** |
19+
| `http_callback` | `HttpCallBack` | The Http CallBack allows defining callables for pre and post API calls. |
2020
| `user_agent_detail` | `string` | User agent detail, to be appended with user-agent header. |
2121
| `additional_headers` | `String` | Additional headers to add to each API request |
22+
| `access_token` | `String` | The OAuth 2.0 Access Token to use for API requests. |
2223

2324
The API client can be initialized as follows:
2425

2526
```ruby
2627
client = Square::Client.new(
27-
square_version: '2023-01-19',
28+
square_version: '2023-03-15',
2829
access_token: 'AccessToken',
2930
environment: 'production',
3031
custom_url: 'https://connect.squareup.com',

doc/models/appointment-segment.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ Defines an appointment segment of a booking.
2626
"duration_minutes": null,
2727
"service_variation_id": null,
2828
"team_member_id": "team_member_id0",
29-
"service_variation_version": null
29+
"service_variation_version": null,
30+
"intermission_minutes": null,
31+
"any_team_member": null,
32+
"resource_ids": null
3033
}
3134
```
3235

doc/models/availability.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Defines an appointment slot that encapsulates the appointment segments, location
2020
```json
2121
{
2222
"start_at": null,
23+
"location_id": null,
2324
"appointment_segments": null
2425
}
2526
```

doc/models/bank-account-payment-details.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Additional details about BANK_ACCOUNT type payments.
1313
| --- | --- | --- | --- |
1414
| `bank_name` | `String` | Optional | The name of the bank associated with the bank account.<br>**Constraints**: *Maximum Length*: `100` |
1515
| `transfer_type` | `String` | Optional | The type of the bank transfer. The type can be `ACH` or `UNKNOWN`.<br>**Constraints**: *Maximum Length*: `50` |
16-
| `account_ownership_type` | `String` | Optional | The ownership type of the bank account performing the transfer.<br>The type can be `INDIVIDUAL`, `COMPANY`, or `UNKNOWN`.<br>**Constraints**: *Maximum Length*: `50` |
16+
| `account_ownership_type` | `String` | Optional | The ownership type of the bank account performing the transfer.<br>The type can be `INDIVIDUAL`, `COMPANY`, or `ACCOUNT_TYPE_UNKNOWN`.<br>**Constraints**: *Maximum Length*: `50` |
1717
| `fingerprint` | `String` | Optional | Uniquely identifies the bank account for this seller and can be used<br>to determine if payments are from the same bank account.<br>**Constraints**: *Maximum Length*: `255` |
1818
| `country` | `String` | Optional | The two-letter ISO code representing the country the bank account is located in.<br>**Constraints**: *Minimum Length*: `2`, *Maximum Length*: `2` |
1919
| `statement_description` | `String` | Optional | The statement description as sent to the bank.<br>**Constraints**: *Maximum Length*: `1000` |

doc/models/booking-creator-details.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ Information about a booking creator.
1919

2020
```json
2121
{
22-
"creator_type": null
22+
"creator_type": null,
23+
"team_member_id": null,
24+
"customer_id": null
2325
}
2426
```
2527

0 commit comments

Comments
 (0)