Skip to content

Commit 8a09554

Browse files
author
autobot
committed
Generated PR for Release: 33.0.0.20230925
1 parent 769e694 commit 8a09554

File tree

810 files changed

+10829
-8201
lines changed

Some content is hidden

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

810 files changed

+10829
-8201
lines changed

doc/api/booking-custom-attributes.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -266,13 +266,13 @@ CompletableFuture<BulkDeleteBookingCustomAttributesResponse> bulkDeleteBookingCu
266266
BulkDeleteBookingCustomAttributesRequest body = new BulkDeleteBookingCustomAttributesRequest.Builder(
267267
new LinkedHashMap<String, BookingCustomAttributeDeleteRequest>() {{
268268
put("key0", new BookingCustomAttributeDeleteRequest.Builder(
269-
"booking_id8",
270-
"key4"
269+
"booking_id4",
270+
"key0"
271271
)
272272
.build());
273273
put("key1", new BookingCustomAttributeDeleteRequest.Builder(
274-
"booking_id9",
275-
"key5"
274+
"booking_id4",
275+
"key0"
276276
)
277277
.build());
278278
}}
@@ -321,13 +321,13 @@ CompletableFuture<BulkUpsertBookingCustomAttributesResponse> bulkUpsertBookingCu
321321
BulkUpsertBookingCustomAttributesRequest body = new BulkUpsertBookingCustomAttributesRequest.Builder(
322322
new LinkedHashMap<String, BookingCustomAttributeUpsertRequest>() {{
323323
put("key0", new BookingCustomAttributeUpsertRequest.Builder(
324-
"booking_id8",
324+
"booking_id4",
325325
new CustomAttribute.Builder()
326326
.build()
327327
)
328328
.build());
329329
put("key1", new BookingCustomAttributeUpsertRequest.Builder(
330-
"booking_id9",
330+
"booking_id4",
331331
new CustomAttribute.Builder()
332332
.build()
333333
)

doc/api/bookings.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ BookingsApi bookingsApi = client.getBookingsApi();
1616
* [Bulk Retrieve Bookings](../../doc/api/bookings.md#bulk-retrieve-bookings)
1717
* [Retrieve Business Booking Profile](../../doc/api/bookings.md#retrieve-business-booking-profile)
1818
* [List Team Member Booking Profiles](../../doc/api/bookings.md#list-team-member-booking-profiles)
19+
* [Bulk Retrieve Team Member Booking Profiles](../../doc/api/bookings.md#bulk-retrieve-team-member-booking-profiles)
1920
* [Retrieve Team Member Booking Profile](../../doc/api/bookings.md#retrieve-team-member-booking-profile)
2021
* [Retrieve Booking](../../doc/api/bookings.md#retrieve-booking)
2122
* [Update Booking](../../doc/api/bookings.md#update-booking)
@@ -283,6 +284,48 @@ bookingsApi.listTeamMemberBookingProfilesAsync(bookableOnly, null, null, null).t
283284
```
284285

285286

287+
# Bulk Retrieve Team Member Booking Profiles
288+
289+
Retrieves one or more team members' booking profiles.
290+
291+
```java
292+
CompletableFuture<BulkRetrieveTeamMemberBookingProfilesResponse> bulkRetrieveTeamMemberBookingProfilesAsync(
293+
final BulkRetrieveTeamMemberBookingProfilesRequest body)
294+
```
295+
296+
## Parameters
297+
298+
| Parameter | Type | Tags | Description |
299+
| --- | --- | --- | --- |
300+
| `body` | [`BulkRetrieveTeamMemberBookingProfilesRequest`](../../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. |
301+
302+
## Response Type
303+
304+
[`BulkRetrieveTeamMemberBookingProfilesResponse`](../../doc/models/bulk-retrieve-team-member-booking-profiles-response.md)
305+
306+
## Example Usage
307+
308+
```java
309+
BulkRetrieveTeamMemberBookingProfilesRequest body = new BulkRetrieveTeamMemberBookingProfilesRequest.Builder(
310+
Arrays.asList(
311+
"team_member_ids3",
312+
"team_member_ids4",
313+
"team_member_ids5"
314+
)
315+
)
316+
.build();
317+
318+
bookingsApi.bulkRetrieveTeamMemberBookingProfilesAsync(body).thenAccept(result -> {
319+
// TODO success callback handler
320+
System.out.println(result);
321+
}).exceptionally(exception -> {
322+
// TODO failure callback handler
323+
exception.printStackTrace();
324+
return null;
325+
});
326+
```
327+
328+
286329
# Retrieve Team Member Booking Profile
287330

288331
Retrieves a team member's booking profile.

doc/api/checkout.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ directed to in order to provide their payment information using a
2727
payment processing workflow hosted on connect.squareup.com.
2828

2929
NOTE: The Checkout API has been updated with new features.
30-
For more information, see [Checkout API highlights](https://developer.squareup.com/docs/checkout-api#checkout-api-highlights).
31-
We recommend that you use the new [CreatePaymentLink](api-endpoint:Checkout-CreatePaymentLink) 
32-
endpoint in place of this previously released endpoint.
30+
For more information, see [Checkout API highlights](https://developer.squareup.com/docs/checkout-api#checkout-api-highlights).
3331

3432
```java
3533
CompletableFuture<CreateCheckoutResponse> createCheckoutAsync(

doc/api/customer-custom-attributes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,13 +284,13 @@ CompletableFuture<BulkUpsertCustomerCustomAttributesResponse> bulkUpsertCustomer
284284
BulkUpsertCustomerCustomAttributesRequest body = new BulkUpsertCustomerCustomAttributesRequest.Builder(
285285
new LinkedHashMap<String, BulkUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest>() {{
286286
put("key0", new BulkUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest.Builder(
287-
"customer_id2",
287+
"customer_id8",
288288
new CustomAttribute.Builder()
289289
.build()
290290
)
291291
.build());
292292
put("key1", new BulkUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest.Builder(
293-
"customer_id3",
293+
"customer_id8",
294294
new CustomAttribute.Builder()
295295
.build()
296296
)

doc/api/customers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ SearchCustomersRequest body = new SearchCustomersRequest.Builder()
169169
.rule("INCLUDE")
170170
.build())
171171
.createdAt(new TimeRange.Builder()
172-
.startAt("2018-01-01T00:00:00+00:00")
173-
.endAt("2018-02-01T00:00:00+00:00")
172+
.startAt("2018-01-01T00:00:00-00:00")
173+
.endAt("2018-02-01T00:00:00-00:00")
174174
.build())
175175
.emailAddress(new CustomerTextFilter.Builder()
176176
.fuzzy("example.com")

doc/api/devices.md

Lines changed: 78 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,51 @@ DevicesApi devicesApi = client.getDevicesApi();
1010

1111
## Methods
1212

13+
* [List Devices](../../doc/api/devices.md#list-devices)
1314
* [List Device Codes](../../doc/api/devices.md#list-device-codes)
1415
* [Create Device Code](../../doc/api/devices.md#create-device-code)
15-
* [Get Device Code](../../doc/api/devices.md#get-device-code)
16+
* [Get Device Code](../../doc/api/devices.md#get-device-code)
17+
* [Get Device](../../doc/api/devices.md#get-device)
18+
19+
20+
# List Devices
21+
22+
List devices associated with the merchant. Currently, only Terminal API
23+
devices are supported.
24+
25+
```java
26+
CompletableFuture<ListDevicesResponse> listDevicesAsync(
27+
final String cursor,
28+
final String sortOrder,
29+
final Integer limit,
30+
final String locationId)
31+
```
32+
33+
## Parameters
34+
35+
| Parameter | Type | Tags | Description |
36+
| --- | --- | --- | --- |
37+
| `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. |
38+
| `sortOrder` | [`String`](../../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). |
39+
| `limit` | `Integer` | Query, Optional | The number of results to return in a single page. |
40+
| `locationId` | `String` | Query, Optional | If present, only returns devices at the target location. |
41+
42+
## Response Type
43+
44+
[`ListDevicesResponse`](../../doc/models/list-devices-response.md)
45+
46+
## Example Usage
47+
48+
```java
49+
devicesApi.listDevicesAsync(null, null, null, null).thenAccept(result -> {
50+
// TODO success callback handler
51+
System.out.println(result);
52+
}).exceptionally(exception -> {
53+
// TODO failure callback handler
54+
exception.printStackTrace();
55+
return null;
56+
});
57+
```
1658

1759

1860
# List Device Codes
@@ -133,3 +175,38 @@ devicesApi.getDeviceCodeAsync(id).thenAccept(result -> {
133175
});
134176
```
135177

178+
179+
# Get Device
180+
181+
Retrieves Device with the associated `device_id`.
182+
183+
```java
184+
CompletableFuture<GetDeviceResponse> getDeviceAsync(
185+
final String deviceId)
186+
```
187+
188+
## Parameters
189+
190+
| Parameter | Type | Tags | Description |
191+
| --- | --- | --- | --- |
192+
| `deviceId` | `String` | Template, Required | The unique ID for the desired `Device`. |
193+
194+
## Response Type
195+
196+
[`GetDeviceResponse`](../../doc/models/get-device-response.md)
197+
198+
## Example Usage
199+
200+
```java
201+
String deviceId = "device_id6";
202+
203+
devicesApi.getDeviceAsync(deviceId).thenAccept(result -> {
204+
// TODO success callback handler
205+
System.out.println(result);
206+
}).exceptionally(exception -> {
207+
// TODO failure callback handler
208+
exception.printStackTrace();
209+
return null;
210+
});
211+
```
212+

doc/api/inventory.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ BatchRetrieveInventoryChangesRequest body = new BatchRetrieveInventoryChangesReq
193193
.states(Arrays.asList(
194194
"IN_STOCK"
195195
))
196-
.updatedAfter("2016-11-01T00:00:00Z")
197-
.updatedBefore("2016-12-01T00:00:00Z")
196+
.updatedAfter("2016-11-01T00:00:00.000Z")
197+
.updatedBefore("2016-12-01T00:00:00.000Z")
198198
.build();
199199

200200
inventoryApi.deprecatedBatchRetrieveInventoryChangesAsync(body).thenAccept(result -> {
@@ -240,7 +240,7 @@ BatchRetrieveInventoryCountsRequest body = new BatchRetrieveInventoryCountsReque
240240
.locationIds(Arrays.asList(
241241
"59TNP9SA8VGDA"
242242
))
243-
.updatedAfter("2016-11-16T00:00:00Z")
243+
.updatedAfter("2016-11-16T00:00:00.000Z")
244244
.build();
245245

246246
inventoryApi.deprecatedBatchRetrieveInventoryCountsAsync(body).thenAccept(result -> {
@@ -353,8 +353,8 @@ BatchRetrieveInventoryChangesRequest body = new BatchRetrieveInventoryChangesReq
353353
.states(Arrays.asList(
354354
"IN_STOCK"
355355
))
356-
.updatedAfter("2016-11-01T00:00:00Z")
357-
.updatedBefore("2016-12-01T00:00:00Z")
356+
.updatedAfter("2016-11-01T00:00:00.000Z")
357+
.updatedBefore("2016-12-01T00:00:00.000Z")
358358
.build();
359359

360360
inventoryApi.batchRetrieveInventoryChangesAsync(body).thenAccept(result -> {
@@ -407,7 +407,7 @@ BatchRetrieveInventoryCountsRequest body = new BatchRetrieveInventoryCountsReque
407407
.locationIds(Arrays.asList(
408408
"59TNP9SA8VGDA"
409409
))
410-
.updatedAfter("2016-11-16T00:00:00Z")
410+
.updatedAfter("2016-11-16T00:00:00.000Z")
411411
.build();
412412

413413
inventoryApi.batchRetrieveInventoryCountsAsync(body).thenAccept(result -> {

doc/api/labor.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -361,10 +361,10 @@ CompletableFuture<CreateShiftResponse> createShiftAsync(
361361
```java
362362
CreateShiftRequest body = new CreateShiftRequest.Builder(
363363
new Shift.Builder(
364-
"2019-01-25T08:11:00+00:00"
364+
"2019-01-25T03:11:00-05:00"
365365
)
366366
.locationId("PAA1RJZZKXBFG")
367-
.endAt("2019-01-25T18:11:00+00:00")
367+
.endAt("2019-01-25T13:11:00-05:00")
368368
.wage(new ShiftWage.Builder()
369369
.title("Barista")
370370
.hourlyRate(new Money.Builder()
@@ -374,13 +374,13 @@ CreateShiftRequest body = new CreateShiftRequest.Builder(
374374
.build())
375375
.breaks(Arrays.asList(
376376
new Break.Builder(
377-
"2019-01-25T11:11:00+00:00",
377+
"2019-01-25T06:11:00-05:00",
378378
"REGS1EQR1TPZ5",
379379
"Tea Break",
380380
"PT5M",
381381
true
382382
)
383-
.endAt("2019-01-25T11:16:00+00:00")
383+
.endAt("2019-01-25T06:16:00-05:00")
384384
.build()
385385
))
386386
.teamMemberId("ormj0jJJZ5OZIzxrZYJI")
@@ -567,10 +567,10 @@ CompletableFuture<UpdateShiftResponse> updateShiftAsync(
567567
String id = "id0";
568568
UpdateShiftRequest body = new UpdateShiftRequest.Builder(
569569
new Shift.Builder(
570-
"2019-01-25T08:11:00+00:00"
570+
"2019-01-25T03:11:00-05:00"
571571
)
572572
.locationId("PAA1RJZZKXBFG")
573-
.endAt("2019-01-25T18:11:00+00:00")
573+
.endAt("2019-01-25T13:11:00-05:00")
574574
.wage(new ShiftWage.Builder()
575575
.title("Bartender")
576576
.hourlyRate(new Money.Builder()
@@ -580,14 +580,14 @@ UpdateShiftRequest body = new UpdateShiftRequest.Builder(
580580
.build())
581581
.breaks(Arrays.asList(
582582
new Break.Builder(
583-
"2019-01-25T11:11:00+00:00",
583+
"2019-01-25T06:11:00-05:00",
584584
"REGS1EQR1TPZ5",
585585
"Tea Break",
586586
"PT5M",
587587
true
588588
)
589589
.id("X7GAQYVVRRG6P")
590-
.endAt("2019-01-25T11:16:00+00:00")
590+
.endAt("2019-01-25T06:16:00-05:00")
591591
.build()
592592
))
593593
.version(1)

doc/api/location-custom-attributes.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,13 @@ CompletableFuture<BulkDeleteLocationCustomAttributesResponse> bulkDeleteLocation
263263
BulkDeleteLocationCustomAttributesRequest body = new BulkDeleteLocationCustomAttributesRequest.Builder(
264264
new LinkedHashMap<String, BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest>() {{
265265
put("id1", new BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest.Builder()
266+
.key("bestseller")
266267
.build());
267268
put("id2", new BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest.Builder()
269+
.key("bestseller")
268270
.build());
269271
put("id3", new BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest.Builder()
272+
.key("phone-number")
270273
.build());
271274
}}
272275
)
@@ -317,13 +320,13 @@ CompletableFuture<BulkUpsertLocationCustomAttributesResponse> bulkUpsertLocation
317320
BulkUpsertLocationCustomAttributesRequest body = new BulkUpsertLocationCustomAttributesRequest.Builder(
318321
new LinkedHashMap<String, BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest>() {{
319322
put("key0", new BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest.Builder(
320-
"location_id8",
323+
"location_id4",
321324
new CustomAttribute.Builder()
322325
.build()
323326
)
324327
.build());
325328
put("key1", new BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest.Builder(
326-
"location_id9",
329+
"location_id4",
327330
new CustomAttribute.Builder()
328331
.build()
329332
)

doc/api/merchant-custom-attributes.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,10 @@ CompletableFuture<BulkDeleteMerchantCustomAttributesResponse> bulkDeleteMerchant
263263
BulkDeleteMerchantCustomAttributesRequest body = new BulkDeleteMerchantCustomAttributesRequest.Builder(
264264
new LinkedHashMap<String, BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest>() {{
265265
put("id1", new BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest.Builder()
266+
.key("alternative_seller_name")
266267
.build());
267268
put("id2", new BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest.Builder()
269+
.key("has_seen_tutorial")
268270
.build());
269271
}}
270272
)
@@ -315,13 +317,13 @@ CompletableFuture<BulkUpsertMerchantCustomAttributesResponse> bulkUpsertMerchant
315317
BulkUpsertMerchantCustomAttributesRequest body = new BulkUpsertMerchantCustomAttributesRequest.Builder(
316318
new LinkedHashMap<String, BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest>() {{
317319
put("key0", new BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest.Builder(
318-
"merchant_id4",
320+
"merchant_id0",
319321
new CustomAttribute.Builder()
320322
.build()
321323
)
322324
.build());
323325
put("key1", new BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest.Builder(
324-
"merchant_id5",
326+
"merchant_id0",
325327
new CustomAttribute.Builder()
326328
.build()
327329
)

0 commit comments

Comments
 (0)