Skip to content

Commit

Permalink
Merge pull request #132 from square/release/28.0.0
Browse files Browse the repository at this point in the history
Generated PR for Release: 28.0.0
  • Loading branch information
jessdelacruzsantos committed Jun 7, 2023
2 parents 088b5dc + 598fdcb commit b4d6a28
Show file tree
Hide file tree
Showing 183 changed files with 3,768 additions and 2,373 deletions.
3 changes: 1 addition & 2 deletions doc/api/apple-pay.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ async registerDomain(
## Example Usage

```ts
const contentType = null;
const body: RegisterDomainRequest = {
domainName: 'example.com',
};
Expand All @@ -53,7 +52,7 @@ try {
const { result, ...httpResponse } = await applePayApi.registerDomain(body);
// Get more response info...
// const { statusCode, headers } = httpResponse;
} catch(error) {
} catch (error) {
if (error instanceof ApiError) {
const errors = error.result;
// const { statusCode, headers } = error;
Expand Down
8 changes: 5 additions & 3 deletions doc/api/bank-accounts.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ try {
const { result, ...httpResponse } = await bankAccountsApi.listBankAccounts();
// Get more response info...
// const { statusCode, headers } = httpResponse;
} catch(error) {
} catch (error) {
if (error instanceof ApiError) {
const errors = error.result;
// const { statusCode, headers } = error;
Expand Down Expand Up @@ -83,11 +83,12 @@ async getBankAccountByV1Id(

```ts
const v1BankAccountId = 'v1_bank_account_id8';

try {
const { result, ...httpResponse } = await bankAccountsApi.getBankAccountByV1Id(v1BankAccountId);
// Get more response info...
// const { statusCode, headers } = httpResponse;
} catch(error) {
} catch (error) {
if (error instanceof ApiError) {
const errors = error.result;
// const { statusCode, headers } = error;
Expand Down Expand Up @@ -123,11 +124,12 @@ async getBankAccount(

```ts
const bankAccountId = 'bank_account_id0';

try {
const { result, ...httpResponse } = await bankAccountsApi.getBankAccount(bankAccountId);
// Get more response info...
// const { statusCode, headers } = httpResponse;
} catch(error) {
} catch (error) {
if (error instanceof ApiError) {
const errors = error.result;
// const { statusCode, headers } = error;
Expand Down
98 changes: 66 additions & 32 deletions doc/api/booking-custom-attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ try {
const { result, ...httpResponse } = await bookingCustomAttributesApi.listBookingCustomAttributeDefinitions();
// Get more response info...
// const { statusCode, headers } = httpResponse;
} catch(error) {
} catch (error) {
if (error instanceof ApiError) {
const errors = error.result;
// const { statusCode, headers } = error;
Expand Down Expand Up @@ -97,18 +97,15 @@ async createBookingCustomAttributeDefinition(
## Example Usage

```ts
const contentType = null;
const bodyCustomAttributeDefinition: CustomAttributeDefinition = {};

const body: CreateBookingCustomAttributeDefinitionRequest = {
customAttributeDefinition: bodyCustomAttributeDefinition,
customAttributeDefinition: {},
};

try {
const { result, ...httpResponse } = await bookingCustomAttributesApi.createBookingCustomAttributeDefinition(body);
// Get more response info...
// const { statusCode, headers } = httpResponse;
} catch(error) {
} catch (error) {
if (error instanceof ApiError) {
const errors = error.result;
// const { statusCode, headers } = error;
Expand Down Expand Up @@ -149,11 +146,12 @@ async deleteBookingCustomAttributeDefinition(

```ts
const key = 'key0';

try {
const { result, ...httpResponse } = await bookingCustomAttributesApi.deleteBookingCustomAttributeDefinition(key);
// Get more response info...
// const { statusCode, headers } = httpResponse;
} catch(error) {
} catch (error) {
if (error instanceof ApiError) {
const errors = error.result;
// const { statusCode, headers } = error;
Expand Down Expand Up @@ -193,11 +191,12 @@ async retrieveBookingCustomAttributeDefinition(

```ts
const key = 'key0';

try {
const { result, ...httpResponse } = await bookingCustomAttributesApi.retrieveBookingCustomAttributeDefinition(key);
// Get more response info...
// const { statusCode, headers } = httpResponse;
} catch(error) {
} catch (error) {
if (error instanceof ApiError) {
const errors = error.result;
// const { statusCode, headers } = error;
Expand Down Expand Up @@ -240,18 +239,19 @@ async updateBookingCustomAttributeDefinition(

```ts
const key = 'key0';
const contentType = null;
const bodyCustomAttributeDefinition: CustomAttributeDefinition = {};

const body: UpdateBookingCustomAttributeDefinitionRequest = {
customAttributeDefinition: bodyCustomAttributeDefinition,
customAttributeDefinition: {},
};

try {
const { result, ...httpResponse } = await bookingCustomAttributesApi.updateBookingCustomAttributeDefinition(key, body);
const { result, ...httpResponse } = await bookingCustomAttributesApi.updateBookingCustomAttributeDefinition(
key,
body
);
// Get more response info...
// const { statusCode, headers } = httpResponse;
} catch(error) {
} catch (error) {
if (error instanceof ApiError) {
const errors = error.result;
// const { statusCode, headers } = error;
Expand Down Expand Up @@ -291,17 +291,24 @@ async bulkDeleteBookingCustomAttributes(
## Example Usage

```ts
const contentType = null;
const bodyValues: Record<string, BookingCustomAttributeDeleteRequest> = {};
const body: BulkDeleteBookingCustomAttributesRequest = {
values: bodyValues,
values: {
'key0': {
bookingId: 'booking_id8',
key: 'key4',
},
'key1': {
bookingId: 'booking_id9',
key: 'key5',
}
},
};

try {
const { result, ...httpResponse } = await bookingCustomAttributesApi.bulkDeleteBookingCustomAttributes(body);
// Get more response info...
// const { statusCode, headers } = httpResponse;
} catch(error) {
} catch (error) {
if (error instanceof ApiError) {
const errors = error.result;
// const { statusCode, headers } = error;
Expand Down Expand Up @@ -341,17 +348,24 @@ async bulkUpsertBookingCustomAttributes(
## Example Usage

```ts
const contentType = null;
const bodyValues: Record<string, BookingCustomAttributeUpsertRequest> = {};
const body: BulkUpsertBookingCustomAttributesRequest = {
values: bodyValues,
values: {
'key0': {
bookingId: 'booking_id8',
customAttribute: {},
},
'key1': {
bookingId: 'booking_id9',
customAttribute: {},
}
},
};

try {
const { result, ...httpResponse } = await bookingCustomAttributesApi.bulkUpsertBookingCustomAttributes(body);
// Get more response info...
// const { statusCode, headers } = httpResponse;
} catch(error) {
} catch (error) {
if (error instanceof ApiError) {
const errors = error.result;
// const { statusCode, headers } = error;
Expand Down Expand Up @@ -395,12 +409,17 @@ async listBookingCustomAttributes(

```ts
const bookingId = 'booking_id4';

const withDefinitions = false;

try {
const { result, ...httpResponse } = await bookingCustomAttributesApi.listBookingCustomAttributes(bookingId, None, None, withDefinitions);
const { result, ...httpResponse } = await bookingCustomAttributesApi.listBookingCustomAttributes(
bookingId,
withDefinitions
);
// Get more response info...
// const { statusCode, headers } = httpResponse;
} catch(error) {
} catch (error) {
if (error instanceof ApiError) {
const errors = error.result;
// const { statusCode, headers } = error;
Expand Down Expand Up @@ -443,12 +462,17 @@ async deleteBookingCustomAttribute(

```ts
const bookingId = 'booking_id4';

const key = 'key0';

try {
const { result, ...httpResponse } = await bookingCustomAttributesApi.deleteBookingCustomAttribute(bookingId, key);
const { result, ...httpResponse } = await bookingCustomAttributesApi.deleteBookingCustomAttribute(
bookingId,
key
);
// Get more response info...
// const { statusCode, headers } = httpResponse;
} catch(error) {
} catch (error) {
if (error instanceof ApiError) {
const errors = error.result;
// const { statusCode, headers } = error;
Expand Down Expand Up @@ -492,13 +516,20 @@ async retrieveBookingCustomAttribute(

```ts
const bookingId = 'booking_id4';

const key = 'key0';

const withDefinition = false;

try {
const { result, ...httpResponse } = await bookingCustomAttributesApi.retrieveBookingCustomAttribute(bookingId, key, withDefinition);
const { result, ...httpResponse } = await bookingCustomAttributesApi.retrieveBookingCustomAttribute(
bookingId,
key,
withDefinition
);
// Get more response info...
// const { statusCode, headers } = httpResponse;
} catch(error) {
} catch (error) {
if (error instanceof ApiError) {
const errors = error.result;
// const { statusCode, headers } = error;
Expand Down Expand Up @@ -543,19 +574,22 @@ async upsertBookingCustomAttribute(

```ts
const bookingId = 'booking_id4';

const key = 'key0';
const contentType = null;
const bodyCustomAttribute: CustomAttribute = {};

const body: UpsertBookingCustomAttributeRequest = {
customAttribute: bodyCustomAttribute,
customAttribute: {},
};

try {
const { result, ...httpResponse } = await bookingCustomAttributesApi.upsertBookingCustomAttribute(bookingId, key, body);
const { result, ...httpResponse } = await bookingCustomAttributesApi.upsertBookingCustomAttribute(
bookingId,
key,
body
);
// Get more response info...
// const { statusCode, headers } = httpResponse;
} catch(error) {
} catch (error) {
if (error instanceof ApiError) {
const errors = error.result;
// const { statusCode, headers } = error;
Expand Down
Loading

0 comments on commit b4d6a28

Please sign in to comment.