You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`body`|[`Bulk Retrieve Team Member Booking Profiles Request Hash`](../../doc/models/bulk-retrieve-team-member-booking-profiles-request.md)| Body, Required | An object containing the fields to POST for the request.<br><br>See the corresponding object definition for field details. |
286
+
287
+
## Response Type
288
+
289
+
This method returns a `\ApiResponse` instance. The `data` property in this instance returns the response data which is of type [`Bulk Retrieve Team Member Booking Profiles Response Hash`](../../doc/models/bulk-retrieve-team-member-booking-profiles-response.md).
290
+
291
+
## Example Usage
292
+
293
+
```ruby
294
+
body = {
295
+
:team_member_ids => [
296
+
'team_member_ids3',
297
+
'team_member_ids4',
298
+
'team_member_ids5'
299
+
]
300
+
}
301
+
302
+
303
+
result = bookings_api.bulk_retrieve_team_member_booking_profiles(body: body)
List devices associated with the merchant. Currently, only Terminal API
23
+
devices are supported.
24
+
25
+
```ruby
26
+
deflist_devices(cursor:nil,
27
+
sort_order:nil,
28
+
limit:nil,
29
+
location_id:nil)
30
+
```
31
+
32
+
## Parameters
33
+
34
+
| Parameter | Type | Tags | Description |
35
+
| --- | --- | --- | --- |
36
+
|`cursor`|`String`| Query, Optional | A pagination cursor returned by a previous call to this endpoint.<br>Provide this cursor to retrieve the next set of results for the original query.<br>See [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination) for more information. |
37
+
|`sort_order`|[`String (Sort Order)`](../../doc/models/sort-order.md)| Query, Optional | The order in which results are listed.<br><br>- `ASC` - Oldest to newest.<br>- `DESC` - Newest to oldest (default). |
38
+
|`limit`|`Integer`| Query, Optional | The number of results to return in a single page. |
39
+
|`location_id`|`String`| Query, Optional | If present, only returns devices at the target location. |
40
+
41
+
## Response Type
42
+
43
+
This method returns a `\ApiResponse` instance. The `data` property in this instance returns the response data which is of type [`List Devices Response Hash`](../../doc/models/list-devices-response.md).
44
+
45
+
## Example Usage
46
+
47
+
```ruby
48
+
result = devices_api.list_devices
49
+
50
+
if result.success?
51
+
puts result.data
52
+
elsif result.error?
53
+
warn result.errors
54
+
end
55
+
```
16
56
17
57
18
58
# List Device Codes
@@ -127,3 +167,37 @@ elsif result.error?
127
167
end
128
168
```
129
169
170
+
171
+
# Get Device
172
+
173
+
Retrieves Device with the associated `device_id`.
174
+
175
+
```ruby
176
+
defget_device(device_id:)
177
+
```
178
+
179
+
## Parameters
180
+
181
+
| Parameter | Type | Tags | Description |
182
+
| --- | --- | --- | --- |
183
+
|`device_id`|`String`| Template, Required | The unique ID for the desired `Device`. |
184
+
185
+
## Response Type
186
+
187
+
This method returns a `\ApiResponse` instance. The `data` property in this instance returns the response data which is of type [`Get Device Response Hash`](../../doc/models/get-device-response.md).
188
+
189
+
## Example Usage
190
+
191
+
```ruby
192
+
device_id ='device_id6'
193
+
194
+
195
+
result = devices_api.get_device(device_id: device_id)
0 commit comments