Skip to content

Commit a43610b

Browse files
authored
Merge pull request #137 from square/release/31.0.0
Generated PR for Release: 31.0.0
2 parents 73a7121 + 65d4758 commit a43610b

File tree

836 files changed

+9188
-8296
lines changed

Some content is hidden

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

836 files changed

+9188
-8296
lines changed

doc/api/apple-pay.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,15 @@ const body: RegisterDomainRequest = {
4949
};
5050

5151
try {
52+
// @ts-expect-error: unused variables
53+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
5254
const { result, ...httpResponse } = await applePayApi.registerDomain(body);
5355
// Get more response info...
5456
// const { statusCode, headers } = httpResponse;
5557
} catch (error) {
5658
if (error instanceof ApiError) {
59+
// @ts-expect-error: unused variables
60+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
5761
const errors = error.result;
5862
// const { statusCode, headers } = error;
5963
}

doc/api/bank-accounts.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,15 @@ async listBankAccounts(
4545

4646
```ts
4747
try {
48+
// @ts-expect-error: unused variables
49+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
4850
const { result, ...httpResponse } = await bankAccountsApi.listBankAccounts();
4951
// Get more response info...
5052
// const { statusCode, headers } = httpResponse;
5153
} catch (error) {
5254
if (error instanceof ApiError) {
55+
// @ts-expect-error: unused variables
56+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
5357
const errors = error.result;
5458
// const { statusCode, headers } = error;
5559
}
@@ -85,11 +89,15 @@ async getBankAccountByV1Id(
8589
const v1BankAccountId = 'v1_bank_account_id8';
8690

8791
try {
92+
// @ts-expect-error: unused variables
93+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
8894
const { result, ...httpResponse } = await bankAccountsApi.getBankAccountByV1Id(v1BankAccountId);
8995
// Get more response info...
9096
// const { statusCode, headers } = httpResponse;
9197
} catch (error) {
9298
if (error instanceof ApiError) {
99+
// @ts-expect-error: unused variables
100+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
93101
const errors = error.result;
94102
// const { statusCode, headers } = error;
95103
}
@@ -126,11 +134,15 @@ async getBankAccount(
126134
const bankAccountId = 'bank_account_id0';
127135

128136
try {
137+
// @ts-expect-error: unused variables
138+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
129139
const { result, ...httpResponse } = await bankAccountsApi.getBankAccount(bankAccountId);
130140
// Get more response info...
131141
// const { statusCode, headers } = httpResponse;
132142
} catch (error) {
133143
if (error instanceof ApiError) {
144+
// @ts-expect-error: unused variables
145+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
134146
const errors = error.result;
135147
// const { statusCode, headers } = error;
136148
}

doc/api/booking-custom-attributes.md

Lines changed: 69 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,15 @@ async listBookingCustomAttributeDefinitions(
5454

5555
```ts
5656
try {
57+
// @ts-expect-error: unused variables
58+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
5759
const { result, ...httpResponse } = await bookingCustomAttributesApi.listBookingCustomAttributeDefinitions();
5860
// Get more response info...
5961
// const { statusCode, headers } = httpResponse;
6062
} catch (error) {
6163
if (error instanceof ApiError) {
64+
// @ts-expect-error: unused variables
65+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
6266
const errors = error.result;
6367
// const { statusCode, headers } = error;
6468
}
@@ -102,11 +106,15 @@ const body: CreateBookingCustomAttributeDefinitionRequest = {
102106
};
103107

104108
try {
109+
// @ts-expect-error: unused variables
110+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
105111
const { result, ...httpResponse } = await bookingCustomAttributesApi.createBookingCustomAttributeDefinition(body);
106112
// Get more response info...
107113
// const { statusCode, headers } = httpResponse;
108114
} catch (error) {
109115
if (error instanceof ApiError) {
116+
// @ts-expect-error: unused variables
117+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
110118
const errors = error.result;
111119
// const { statusCode, headers } = error;
112120
}
@@ -148,11 +156,15 @@ async deleteBookingCustomAttributeDefinition(
148156
const key = 'key0';
149157

150158
try {
159+
// @ts-expect-error: unused variables
160+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
151161
const { result, ...httpResponse } = await bookingCustomAttributesApi.deleteBookingCustomAttributeDefinition(key);
152162
// Get more response info...
153163
// const { statusCode, headers } = httpResponse;
154164
} catch (error) {
155165
if (error instanceof ApiError) {
166+
// @ts-expect-error: unused variables
167+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
156168
const errors = error.result;
157169
// const { statusCode, headers } = error;
158170
}
@@ -193,11 +205,15 @@ async retrieveBookingCustomAttributeDefinition(
193205
const key = 'key0';
194206

195207
try {
208+
// @ts-expect-error: unused variables
209+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
196210
const { result, ...httpResponse } = await bookingCustomAttributesApi.retrieveBookingCustomAttributeDefinition(key);
197211
// Get more response info...
198212
// const { statusCode, headers } = httpResponse;
199213
} catch (error) {
200214
if (error instanceof ApiError) {
215+
// @ts-expect-error: unused variables
216+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
201217
const errors = error.result;
202218
// const { statusCode, headers } = error;
203219
}
@@ -245,14 +261,18 @@ const body: UpdateBookingCustomAttributeDefinitionRequest = {
245261
};
246262

247263
try {
264+
// @ts-expect-error: unused variables
265+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
248266
const { result, ...httpResponse } = await bookingCustomAttributesApi.updateBookingCustomAttributeDefinition(
249-
key,
250-
body
251-
);
267+
key,
268+
body
269+
);
252270
// Get more response info...
253271
// const { statusCode, headers } = httpResponse;
254272
} catch (error) {
255273
if (error instanceof ApiError) {
274+
// @ts-expect-error: unused variables
275+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
256276
const errors = error.result;
257277
// const { statusCode, headers } = error;
258278
}
@@ -294,22 +314,26 @@ async bulkDeleteBookingCustomAttributes(
294314
const body: BulkDeleteBookingCustomAttributesRequest = {
295315
values: {
296316
'key0': {
297-
bookingId: 'booking_id8',
298-
key: 'key4',
317+
bookingId: 'booking_id4',
318+
key: 'key0',
299319
},
300320
'key1': {
301-
bookingId: 'booking_id9',
302-
key: 'key5',
321+
bookingId: 'booking_id4',
322+
key: 'key0',
303323
}
304324
},
305325
};
306326

307327
try {
328+
// @ts-expect-error: unused variables
329+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
308330
const { result, ...httpResponse } = await bookingCustomAttributesApi.bulkDeleteBookingCustomAttributes(body);
309331
// Get more response info...
310332
// const { statusCode, headers } = httpResponse;
311333
} catch (error) {
312334
if (error instanceof ApiError) {
335+
// @ts-expect-error: unused variables
336+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
313337
const errors = error.result;
314338
// const { statusCode, headers } = error;
315339
}
@@ -351,22 +375,26 @@ async bulkUpsertBookingCustomAttributes(
351375
const body: BulkUpsertBookingCustomAttributesRequest = {
352376
values: {
353377
'key0': {
354-
bookingId: 'booking_id8',
378+
bookingId: 'booking_id4',
355379
customAttribute: {},
356380
},
357381
'key1': {
358-
bookingId: 'booking_id9',
382+
bookingId: 'booking_id4',
359383
customAttribute: {},
360384
}
361385
},
362386
};
363387

364388
try {
389+
// @ts-expect-error: unused variables
390+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
365391
const { result, ...httpResponse } = await bookingCustomAttributesApi.bulkUpsertBookingCustomAttributes(body);
366392
// Get more response info...
367393
// const { statusCode, headers } = httpResponse;
368394
} catch (error) {
369395
if (error instanceof ApiError) {
396+
// @ts-expect-error: unused variables
397+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
370398
const errors = error.result;
371399
// const { statusCode, headers } = error;
372400
}
@@ -413,14 +441,20 @@ const bookingId = 'booking_id4';
413441
const withDefinitions = false;
414442

415443
try {
444+
// @ts-expect-error: unused variables
445+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
416446
const { result, ...httpResponse } = await bookingCustomAttributesApi.listBookingCustomAttributes(
417-
bookingId,
418-
withDefinitions
419-
);
447+
bookingId,
448+
undefined,
449+
undefined,
450+
withDefinitions
451+
);
420452
// Get more response info...
421453
// const { statusCode, headers } = httpResponse;
422454
} catch (error) {
423455
if (error instanceof ApiError) {
456+
// @ts-expect-error: unused variables
457+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
424458
const errors = error.result;
425459
// const { statusCode, headers } = error;
426460
}
@@ -466,14 +500,18 @@ const bookingId = 'booking_id4';
466500
const key = 'key0';
467501

468502
try {
503+
// @ts-expect-error: unused variables
504+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
469505
const { result, ...httpResponse } = await bookingCustomAttributesApi.deleteBookingCustomAttribute(
470-
bookingId,
471-
key
472-
);
506+
bookingId,
507+
key
508+
);
473509
// Get more response info...
474510
// const { statusCode, headers } = httpResponse;
475511
} catch (error) {
476512
if (error instanceof ApiError) {
513+
// @ts-expect-error: unused variables
514+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
477515
const errors = error.result;
478516
// const { statusCode, headers } = error;
479517
}
@@ -522,15 +560,19 @@ const key = 'key0';
522560
const withDefinition = false;
523561

524562
try {
563+
// @ts-expect-error: unused variables
564+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
525565
const { result, ...httpResponse } = await bookingCustomAttributesApi.retrieveBookingCustomAttribute(
526-
bookingId,
527-
key,
528-
withDefinition
529-
);
566+
bookingId,
567+
key,
568+
withDefinition
569+
);
530570
// Get more response info...
531571
// const { statusCode, headers } = httpResponse;
532572
} catch (error) {
533573
if (error instanceof ApiError) {
574+
// @ts-expect-error: unused variables
575+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
534576
const errors = error.result;
535577
// const { statusCode, headers } = error;
536578
}
@@ -582,15 +624,19 @@ const body: UpsertBookingCustomAttributeRequest = {
582624
};
583625

584626
try {
627+
// @ts-expect-error: unused variables
628+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
585629
const { result, ...httpResponse } = await bookingCustomAttributesApi.upsertBookingCustomAttribute(
586-
bookingId,
587-
key,
588-
body
589-
);
630+
bookingId,
631+
key,
632+
body
633+
);
590634
// Get more response info...
591635
// const { statusCode, headers } = httpResponse;
592636
} catch (error) {
593637
if (error instanceof ApiError) {
638+
// @ts-expect-error: unused variables
639+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
594640
const errors = error.result;
595641
// const { statusCode, headers } = error;
596642
}

0 commit comments

Comments
 (0)