Skip to content

Commit 1e873a1

Browse files
authored
Merge pull request #113 from square/release/27.0.0.20230419
Generated PR for Release: 27.0.0.20230419
2 parents e17ce35 + 50f1eb3 commit 1e873a1

File tree

591 files changed

+34268
-4113
lines changed

Some content is hidden

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

591 files changed

+34268
-4113
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ rake
126126
* [Mobile Authorization]
127127
* [OAuth]
128128

129+
### Webhook Subscriptions
130+
* [Webhook Subscriptions]
131+
129132
## Deprecated APIs
130133

131134
The following Square APIs are [deprecated](https://developer.squareup.com/docs/build-basics/api-lifecycle):
@@ -176,3 +179,4 @@ The following Square APIs are [deprecated](https://developer.squareup.com/docs/b
176179
[Gift Card Activities]: doc/api/gift-card-activities.md
177180
[Employees]: doc/api/employees.md
178181
[Transactions]: doc/api/transactions.md
182+
[Webhook Subscriptions]: doc/api/webhook-subscriptions.md

doc/api/apple-pay.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ def register_domain(body:)
4040
## Example Usage
4141

4242
```ruby
43-
body = {}
44-
body[:domain_name] = 'example.com'
43+
body = {
44+
:domain_name => 'example.com'
45+
}
46+
4547

4648
result = apple_pay_api.register_domain(body: body)
4749

doc/api/bank-accounts.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def list_bank_accounts(cursor: nil,
4040
## Example Usage
4141

4242
```ruby
43-
result = bank_accounts_api.list_bank_accounts()
43+
result = bank_accounts_api.list_bank_accounts
4444

4545
if result.success?
4646
puts result.data
@@ -73,6 +73,7 @@ def get_bank_account_by_v1_id(v1_bank_account_id:)
7373
```ruby
7474
v1_bank_account_id = 'v1_bank_account_id8'
7575

76+
7677
result = bank_accounts_api.get_bank_account_by_v1_id(v1_bank_account_id: v1_bank_account_id)
7778

7879
if result.success?
@@ -107,6 +108,7 @@ def get_bank_account(bank_account_id:)
107108
```ruby
108109
bank_account_id = 'bank_account_id0'
109110

111+
110112
result = bank_accounts_api.get_bank_account(bank_account_id: bank_account_id)
111113

112114
if result.success?

doc/api/booking-custom-attributes.md

Lines changed: 80 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def list_booking_custom_attribute_definitions(limit: nil,
4949
## Example Usage
5050

5151
```ruby
52-
result = booking_custom_attributes_api.list_booking_custom_attribute_definitions()
52+
result = booking_custom_attributes_api.list_booking_custom_attribute_definitions
5353

5454
if result.success?
5555
puts result.data
@@ -86,8 +86,10 @@ def create_booking_custom_attribute_definition(body:)
8686
## Example Usage
8787

8888
```ruby
89-
body = {}
90-
body[:custom_attribute_definition] = {}
89+
body = {
90+
:custom_attribute_definition => {}
91+
}
92+
9193

9294
result = booking_custom_attributes_api.create_booking_custom_attribute_definition(body: body)
9395

@@ -128,6 +130,7 @@ def delete_booking_custom_attribute_definition(key:)
128130
```ruby
129131
key = 'key0'
130132

133+
131134
result = booking_custom_attributes_api.delete_booking_custom_attribute_definition(key: key)
132135

133136
if result.success?
@@ -166,7 +169,8 @@ def retrieve_booking_custom_attribute_definition(key:,
166169
```ruby
167170
key = 'key0'
168171

169-
result = booking_custom_attributes_api.retrieve_booking_custom_attribute_definition(key: key, )
172+
173+
result = booking_custom_attributes_api.retrieve_booking_custom_attribute_definition(key: key)
170174

171175
if result.success?
172176
puts result.data
@@ -206,10 +210,16 @@ def update_booking_custom_attribute_definition(key:,
206210

207211
```ruby
208212
key = 'key0'
209-
body = {}
210-
body[:custom_attribute_definition] = {}
211213

212-
result = booking_custom_attributes_api.update_booking_custom_attribute_definition(key: key, body: body)
214+
body = {
215+
:custom_attribute_definition => {}
216+
}
217+
218+
219+
result = booking_custom_attributes_api.update_booking_custom_attribute_definition(
220+
key: key,
221+
body: body
222+
)
213223

214224
if result.success?
215225
puts result.data
@@ -246,10 +256,19 @@ def bulk_delete_booking_custom_attributes(body:)
246256
## Example Usage
247257

248258
```ruby
249-
body = {}
250-
body[:values] = {}
251-
body[:values][:booking_id] = nil
252-
body[:values][:key] = nil
259+
body = {
260+
:values => {
261+
'key0': {
262+
:booking_id => 'booking_id8',
263+
:key => 'key4'
264+
},
265+
'key1': {
266+
:booking_id => 'booking_id9',
267+
:key => 'key5'
268+
}
269+
}
270+
}
271+
253272

254273
result = booking_custom_attributes_api.bulk_delete_booking_custom_attributes(body: body)
255274

@@ -288,10 +307,19 @@ def bulk_upsert_booking_custom_attributes(body:)
288307
## Example Usage
289308

290309
```ruby
291-
body = {}
292-
body[:values] = {}
293-
body[:values][:booking_id] = nil
294-
body[:values][:custom_attribute] = {}
310+
body = {
311+
:values => {
312+
'key0': {
313+
:booking_id => 'booking_id8',
314+
:custom_attribute => {}
315+
},
316+
'key1': {
317+
:booking_id => 'booking_id9',
318+
:custom_attribute => {}
319+
}
320+
}
321+
}
322+
295323

296324
result = booking_custom_attributes_api.bulk_upsert_booking_custom_attributes(body: body)
297325

@@ -321,10 +349,10 @@ def list_booking_custom_attributes(booking_id:,
321349

322350
| Parameter | Type | Tags | Description |
323351
| --- | --- | --- | --- |
324-
| `booking_id` | `String` | Template, Required | The ID of the target [booking](../../doc/models/booking.md). |
352+
| `booking_id` | `String` | Template, Required | The ID of the target [booking](entity:Booking). |
325353
| `limit` | `Integer` | Query, Optional | The maximum number of results to return in a single paged response. This limit is advisory.<br>The response might contain more or fewer results. The minimum value is 1 and the maximum value is 100.<br>The default value is 20. For more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination). |
326354
| `cursor` | `String` | Query, Optional | The cursor returned in the paged response from the previous call to this endpoint.<br>Provide this cursor to retrieve the next page of results for your original request. For more<br>information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination). |
327-
| `with_definitions` | `TrueClass\|FalseClass` | Query, Optional | Indicates whether to return the [custom attribute definition](../../doc/models/custom-attribute-definition.md) in the `definition` field of each<br>custom attribute. Set this parameter to `true` to get the name and description of each custom<br>attribute, information about the data type, or other definition details. The default value is `false`.<br>**Default**: `false` |
355+
| `with_definitions` | `TrueClass\|FalseClass` | Query, Optional | Indicates whether to return the [custom attribute definition](entity:CustomAttributeDefinition) in the `definition` field of each<br>custom attribute. Set this parameter to `true` to get the name and description of each custom<br>attribute, information about the data type, or other definition details. The default value is `false`.<br>**Default**: `false` |
328356

329357
## Response Type
330358

@@ -334,9 +362,14 @@ def list_booking_custom_attributes(booking_id:,
334362

335363
```ruby
336364
booking_id = 'booking_id4'
365+
337366
with_definitions = false
338367

339-
result = booking_custom_attributes_api.list_booking_custom_attributes(booking_id: booking_id, with_definitions: with_definitions)
368+
369+
result = booking_custom_attributes_api.list_booking_custom_attributes(
370+
booking_id: booking_id,
371+
with_definitions: with_definitions
372+
)
340373

341374
if result.success?
342375
puts result.data
@@ -365,7 +398,7 @@ def delete_booking_custom_attribute(booking_id:,
365398

366399
| Parameter | Type | Tags | Description |
367400
| --- | --- | --- | --- |
368-
| `booking_id` | `String` | Template, Required | The ID of the target [booking](../../doc/models/booking.md). |
401+
| `booking_id` | `String` | Template, Required | The ID of the target [booking](entity:Booking). |
369402
| `key` | `String` | Template, Required | The key of the custom attribute to delete. This key must match the `key` of a custom<br>attribute definition in the Square seller account. If the requesting application is not the<br>definition owner, you must use the qualified key. |
370403

371404
## Response Type
@@ -376,9 +409,14 @@ def delete_booking_custom_attribute(booking_id:,
376409

377410
```ruby
378411
booking_id = 'booking_id4'
412+
379413
key = 'key0'
380414

381-
result = booking_custom_attributes_api.delete_booking_custom_attribute(booking_id: booking_id, key: key)
415+
416+
result = booking_custom_attributes_api.delete_booking_custom_attribute(
417+
booking_id: booking_id,
418+
key: key
419+
)
382420

383421
if result.success?
384422
puts result.data
@@ -406,9 +444,9 @@ def retrieve_booking_custom_attribute(booking_id:,
406444

407445
| Parameter | Type | Tags | Description |
408446
| --- | --- | --- | --- |
409-
| `booking_id` | `String` | Template, Required | The ID of the target [booking](../../doc/models/booking.md). |
447+
| `booking_id` | `String` | Template, Required | The ID of the target [booking](entity:Booking). |
410448
| `key` | `String` | Template, Required | The key of the custom attribute to retrieve. This key must match the `key` of a custom<br>attribute definition in the Square seller account. If the requesting application is not the<br>definition owner, you must use the qualified key. |
411-
| `with_definition` | `TrueClass\|FalseClass` | Query, Optional | Indicates whether to return the [custom attribute definition](../../doc/models/custom-attribute-definition.md) in the `definition` field of<br>the custom attribute. Set this parameter to `true` to get the name and description of the custom<br>attribute, information about the data type, or other definition details. The default value is `false`.<br>**Default**: `false` |
449+
| `with_definition` | `TrueClass\|FalseClass` | Query, Optional | Indicates whether to return the [custom attribute definition](entity:CustomAttributeDefinition) in the `definition` field of<br>the custom attribute. Set this parameter to `true` to get the name and description of the custom<br>attribute, information about the data type, or other definition details. The default value is `false`.<br>**Default**: `false` |
412450
| `version` | `Integer` | Query, Optional | The current version of the custom attribute, which is used for strongly consistent reads to<br>guarantee that you receive the most up-to-date data. When included in the request, Square<br>returns the specified version or a higher version if one exists. If the specified version is<br>higher than the current version, Square returns a `BAD_REQUEST` error. |
413451

414452
## Response Type
@@ -419,10 +457,17 @@ def retrieve_booking_custom_attribute(booking_id:,
419457

420458
```ruby
421459
booking_id = 'booking_id4'
460+
422461
key = 'key0'
462+
423463
with_definition = false
424464

425-
result = booking_custom_attributes_api.retrieve_booking_custom_attribute(booking_id: booking_id, key: key, with_definition: with_definition, )
465+
466+
result = booking_custom_attributes_api.retrieve_booking_custom_attribute(
467+
booking_id: booking_id,
468+
key: key,
469+
with_definition: with_definition
470+
)
426471

427472
if result.success?
428473
puts result.data
@@ -452,7 +497,7 @@ def upsert_booking_custom_attribute(booking_id:,
452497

453498
| Parameter | Type | Tags | Description |
454499
| --- | --- | --- | --- |
455-
| `booking_id` | `String` | Template, Required | The ID of the target [booking](../../doc/models/booking.md). |
500+
| `booking_id` | `String` | Template, Required | The ID of the target [booking](entity:Booking). |
456501
| `key` | `String` | Template, Required | The key of the custom attribute to create or update. This key must match the `key` of a<br>custom attribute definition in the Square seller account. If the requesting application is not<br>the definition owner, you must use the qualified key. |
457502
| `body` | [`Upsert Booking Custom Attribute Request Hash`](../../doc/models/upsert-booking-custom-attribute-request.md) | Body, Required | An object containing the fields to POST for the request.<br><br>See the corresponding object definition for field details. |
458503

@@ -464,11 +509,19 @@ def upsert_booking_custom_attribute(booking_id:,
464509

465510
```ruby
466511
booking_id = 'booking_id4'
512+
467513
key = 'key0'
468-
body = {}
469-
body[:custom_attribute] = {}
470514

471-
result = booking_custom_attributes_api.upsert_booking_custom_attribute(booking_id: booking_id, key: key, body: body)
515+
body = {
516+
:custom_attribute => {}
517+
}
518+
519+
520+
result = booking_custom_attributes_api.upsert_booking_custom_attribute(
521+
booking_id: booking_id,
522+
key: key,
523+
body: body
524+
)
472525

473526
if result.success?
474527
puts result.data

0 commit comments

Comments
 (0)