diff --git a/doc/api/apple-pay.md b/doc/api/apple-pay.md index 698862ec..83ab3adc 100644 --- a/doc/api/apple-pay.md +++ b/doc/api/apple-pay.md @@ -49,11 +49,15 @@ const body: RegisterDomainRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await applePayApi.registerDomain(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/bank-accounts.md b/doc/api/bank-accounts.md index 7bfa7a63..f23cb7cf 100644 --- a/doc/api/bank-accounts.md +++ b/doc/api/bank-accounts.md @@ -45,11 +45,15 @@ async listBankAccounts( ```ts try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await bankAccountsApi.listBankAccounts(); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -85,11 +89,15 @@ async getBankAccountByV1Id( const v1BankAccountId = 'v1_bank_account_id8'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await bankAccountsApi.getBankAccountByV1Id(v1BankAccountId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -126,11 +134,15 @@ async getBankAccount( const bankAccountId = 'bank_account_id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await bankAccountsApi.getBankAccount(bankAccountId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/booking-custom-attributes.md b/doc/api/booking-custom-attributes.md index 8cfee6ff..b4b464fb 100644 --- a/doc/api/booking-custom-attributes.md +++ b/doc/api/booking-custom-attributes.md @@ -54,11 +54,15 @@ async listBookingCustomAttributeDefinitions( ```ts try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await bookingCustomAttributesApi.listBookingCustomAttributeDefinitions(); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -102,11 +106,15 @@ const body: CreateBookingCustomAttributeDefinitionRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await bookingCustomAttributesApi.createBookingCustomAttributeDefinition(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -148,11 +156,15 @@ async deleteBookingCustomAttributeDefinition( const key = 'key0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await bookingCustomAttributesApi.deleteBookingCustomAttributeDefinition(key); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -193,11 +205,15 @@ async retrieveBookingCustomAttributeDefinition( const key = 'key0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await bookingCustomAttributesApi.retrieveBookingCustomAttributeDefinition(key); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -245,14 +261,18 @@ const body: UpdateBookingCustomAttributeDefinitionRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await bookingCustomAttributesApi.updateBookingCustomAttributeDefinition( - key, - body - ); + key, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -294,22 +314,26 @@ async bulkDeleteBookingCustomAttributes( const body: BulkDeleteBookingCustomAttributesRequest = { values: { 'key0': { - bookingId: 'booking_id8', - key: 'key4', + bookingId: 'booking_id4', + key: 'key0', }, 'key1': { - bookingId: 'booking_id9', - key: 'key5', + bookingId: 'booking_id4', + key: 'key0', } }, }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await bookingCustomAttributesApi.bulkDeleteBookingCustomAttributes(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -351,22 +375,26 @@ async bulkUpsertBookingCustomAttributes( const body: BulkUpsertBookingCustomAttributesRequest = { values: { 'key0': { - bookingId: 'booking_id8', + bookingId: 'booking_id4', customAttribute: {}, }, 'key1': { - bookingId: 'booking_id9', + bookingId: 'booking_id4', customAttribute: {}, } }, }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await bookingCustomAttributesApi.bulkUpsertBookingCustomAttributes(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -413,14 +441,20 @@ const bookingId = 'booking_id4'; const withDefinitions = false; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await bookingCustomAttributesApi.listBookingCustomAttributes( - bookingId, - withDefinitions - ); + bookingId, + undefined, + undefined, + withDefinitions +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -466,14 +500,18 @@ const bookingId = 'booking_id4'; const key = 'key0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await bookingCustomAttributesApi.deleteBookingCustomAttribute( - bookingId, - key - ); + bookingId, + key +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -522,15 +560,19 @@ const key = 'key0'; const withDefinition = false; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await bookingCustomAttributesApi.retrieveBookingCustomAttribute( - bookingId, - key, - withDefinition - ); + bookingId, + key, + withDefinition +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -582,15 +624,19 @@ const body: UpsertBookingCustomAttributeRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await bookingCustomAttributesApi.upsertBookingCustomAttribute( - bookingId, - key, - body - ); + bookingId, + key, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/bookings.md b/doc/api/bookings.md index 8e5f0f01..6c1c3cb3 100644 --- a/doc/api/bookings.md +++ b/doc/api/bookings.md @@ -16,6 +16,7 @@ const bookingsApi = client.bookingsApi; * [Bulk Retrieve Bookings](../../doc/api/bookings.md#bulk-retrieve-bookings) * [Retrieve Business Booking Profile](../../doc/api/bookings.md#retrieve-business-booking-profile) * [List Team Member Booking Profiles](../../doc/api/bookings.md#list-team-member-booking-profiles) +* [Bulk Retrieve Team Member Booking Profiles](../../doc/api/bookings.md#bulk-retrieve-team-member-booking-profiles) * [Retrieve Team Member Booking Profile](../../doc/api/bookings.md#retrieve-team-member-booking-profile) * [Retrieve Booking](../../doc/api/bookings.md#retrieve-booking) * [Update Booking](../../doc/api/bookings.md#update-booking) @@ -63,11 +64,15 @@ async listBookings( ```ts try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await bookingsApi.listBookings(); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -119,11 +124,15 @@ const body: CreateBookingRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await bookingsApi.createBooking(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -168,11 +177,15 @@ const body: SearchAvailabilityRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await bookingsApi.searchAvailability(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -217,11 +230,15 @@ const body: BulkRetrieveBookingsRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await bookingsApi.bulkRetrieveBookings(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -253,11 +270,15 @@ async retrieveBusinessBookingProfile( ```ts try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await bookingsApi.retrieveBusinessBookingProfile(); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -299,13 +320,65 @@ async listTeamMemberBookingProfiles( const bookableOnly = false; try { - const { result, ...httpResponse } = await bookingsApi.listTeamMemberBookingProfiles( - bookableOnly - ); + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const { result, ...httpResponse } = await bookingsApi.listTeamMemberBookingProfiles(bookableOnly); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const errors = error.result; + // const { statusCode, headers } = error; + } +} +``` + + +# Bulk Retrieve Team Member Booking Profiles + +Retrieves one or more team members' booking profiles. + +```ts +async bulkRetrieveTeamMemberBookingProfiles( + body: BulkRetrieveTeamMemberBookingProfilesRequest, + requestOptions?: RequestOptions +): Promise> +``` + +## Parameters + +| Parameter | Type | Tags | Description | +| --- | --- | --- | --- | +| `body` | [`BulkRetrieveTeamMemberBookingProfilesRequest`](../../doc/models/bulk-retrieve-team-member-booking-profiles-request.md) | Body, Required | An object containing the fields to POST for the request.

See the corresponding object definition for field details. | +| `requestOptions` | `RequestOptions \| undefined` | Optional | Pass additional request options. | + +## Response Type + +[`BulkRetrieveTeamMemberBookingProfilesResponse`](../../doc/models/bulk-retrieve-team-member-booking-profiles-response.md) + +## Example Usage + +```ts +const body: BulkRetrieveTeamMemberBookingProfilesRequest = { + teamMemberIds: [ + 'team_member_ids3', + 'team_member_ids4', + 'team_member_ids5' + ], +}; + +try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const { result, ...httpResponse } = await bookingsApi.bulkRetrieveTeamMemberBookingProfiles(body); + // Get more response info... + // const { statusCode, headers } = httpResponse; +} catch (error) { + if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -341,11 +414,15 @@ async retrieveTeamMemberBookingProfile( const teamMemberId = 'team_member_id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await bookingsApi.retrieveTeamMemberBookingProfile(teamMemberId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -384,11 +461,15 @@ async retrieveBooking( const bookingId = 'booking_id4'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await bookingsApi.retrieveBooking(bookingId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -436,14 +517,18 @@ const body: UpdateBookingRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await bookingsApi.updateBooking( - bookingId, - body - ); + bookingId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -489,14 +574,18 @@ const bookingId = 'booking_id4'; const body: CancelBookingRequest = {}; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await bookingsApi.cancelBooking( - bookingId, - body - ); + bookingId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/cards.md b/doc/api/cards.md index 8e787b79..19558aec 100644 --- a/doc/api/cards.md +++ b/doc/api/cards.md @@ -53,13 +53,19 @@ async listCards( const includeDisabled = false; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await cardsApi.listCards( - includeDisabled - ); + undefined, + undefined, + includeDisabled +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -111,11 +117,15 @@ const body: CreateCardRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await cardsApi.createCard(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -151,11 +161,15 @@ async retrieveCard( const cardId = 'card_id4'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await cardsApi.retrieveCard(cardId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -192,11 +206,15 @@ async disableCard( const cardId = 'card_id4'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await cardsApi.disableCard(cardId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/cash-drawers.md b/doc/api/cash-drawers.md index ba16e8ff..9df55b97 100644 --- a/doc/api/cash-drawers.md +++ b/doc/api/cash-drawers.md @@ -54,11 +54,15 @@ async listCashDrawerShifts( const locationId = 'location_id4'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await cashDrawersApi.listCashDrawerShifts(locationId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -99,14 +103,18 @@ const locationId = 'location_id4'; const shiftId = 'shift_id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await cashDrawersApi.retrieveCashDrawerShift( - locationId, - shiftId - ); + locationId, + shiftId +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -150,14 +158,18 @@ const locationId = 'location_id4'; const shiftId = 'shift_id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await cashDrawersApi.listCashDrawerShiftEvents( - locationId, - shiftId - ); + locationId, + shiftId +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/catalog.md b/doc/api/catalog.md index 7f44dada..7c558dbd 100644 --- a/doc/api/catalog.md +++ b/doc/api/catalog.md @@ -72,11 +72,15 @@ const body: BatchDeleteCatalogObjectsRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await catalogApi.batchDeleteCatalogObjects(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -123,11 +127,15 @@ const body: BatchRetrieveCatalogObjectsRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await catalogApi.batchRetrieveCatalogObjects(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -276,11 +284,15 @@ const body: BatchUpsertCatalogObjectsRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await catalogApi.batchUpsertCatalogObjects(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -333,13 +345,15 @@ const request: CreateCatalogImageRequest = { }; try { - const { result, ...httpResponse } = await catalogApi.createCatalogImage( - request - ); + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const { result, ...httpResponse } = await catalogApi.createCatalogImage(request); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -386,14 +400,18 @@ const request: UpdateCatalogImageRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await catalogApi.updateCatalogImage( - imageId, - request - ); + imageId, + request +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -426,11 +444,15 @@ async catalogInfo( ```ts try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await catalogApi.catalogInfo(); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -475,11 +497,15 @@ async listCatalog( ```ts try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await catalogApi.listCatalog(); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -554,11 +580,15 @@ const body: UpsertCatalogObjectRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await catalogApi.upsertCatalogObject(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -603,11 +633,15 @@ async deleteCatalogObject( const objectId = 'object_id8'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await catalogApi.deleteCatalogObject(objectId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -655,14 +689,18 @@ const objectId = 'object_id8'; const includeRelatedObjects = false; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await catalogApi.retrieveCatalogObject( - objectId, - includeRelatedObjects - ); + objectId, + includeRelatedObjects +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -718,11 +756,15 @@ const body: SearchCatalogObjectsRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await catalogApi.searchCatalogObjects(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -804,11 +846,15 @@ const body: SearchCatalogItemsRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await catalogApi.searchCatalogItems(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -858,11 +904,15 @@ const body: UpdateItemModifierListsRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await catalogApi.updateItemModifierLists(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -911,11 +961,15 @@ const body: UpdateItemTaxesRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await catalogApi.updateItemTaxes(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/checkout.md b/doc/api/checkout.md index aef94c2e..5e9b788e 100644 --- a/doc/api/checkout.md +++ b/doc/api/checkout.md @@ -28,8 +28,6 @@ payment processing workflow hosted on connect.squareup.com. NOTE: The Checkout API has been updated with new features. For more information, see [Checkout API highlights](https://developer.squareup.com/docs/checkout-api#checkout-api-highlights). -We recommend that you use the new [CreatePaymentLink](api-endpoint:Checkout-CreatePaymentLink)  -endpoint in place of this previously released endpoint. ```ts async createCheckout( @@ -148,14 +146,18 @@ const body: CreateCheckoutRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await checkoutApi.createCheckout( - locationId, - body - ); + locationId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -191,11 +193,15 @@ async listPaymentLinks( ```ts try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await checkoutApi.listPaymentLinks(); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -241,11 +247,15 @@ const body: CreatePaymentLinkRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await checkoutApi.createPaymentLink(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -281,11 +291,15 @@ async deletePaymentLink( const id = 'id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await checkoutApi.deletePaymentLink(id); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -321,11 +335,15 @@ async retrievePaymentLink( const id = 'id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await checkoutApi.retrievePaymentLink(id); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -374,14 +392,18 @@ const body: UpdatePaymentLinkRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await checkoutApi.updatePaymentLink( - id, - body - ); + id, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/customer-custom-attributes.md b/doc/api/customer-custom-attributes.md index 3ab5b035..7bcd3cac 100644 --- a/doc/api/customer-custom-attributes.md +++ b/doc/api/customer-custom-attributes.md @@ -55,11 +55,15 @@ async listCustomerCustomAttributeDefinitions( ```ts try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await customerCustomAttributesApi.listCustomerCustomAttributeDefinitions(); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -112,11 +116,15 @@ const body: CreateCustomerCustomAttributeDefinitionRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await customerCustomAttributesApi.createCustomerCustomAttributeDefinition(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -157,11 +165,15 @@ async deleteCustomerCustomAttributeDefinition( const key = 'key0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await customerCustomAttributesApi.deleteCustomerCustomAttributeDefinition(key); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -203,11 +215,15 @@ async retrieveCustomerCustomAttributeDefinition( const key = 'key0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await customerCustomAttributesApi.retrieveCustomerCustomAttributeDefinition(key); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -258,14 +274,18 @@ const body: UpdateCustomerCustomAttributeDefinitionRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await customerCustomAttributesApi.updateCustomerCustomAttributeDefinition( - key, - body - ); + key, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -314,22 +334,26 @@ async bulkUpsertCustomerCustomAttributes( const body: BulkUpsertCustomerCustomAttributesRequest = { values: { 'key0': { - customerId: 'customer_id2', + customerId: 'customer_id8', customAttribute: {}, }, 'key1': { - customerId: 'customer_id3', + customerId: 'customer_id8', customAttribute: {}, } }, }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await customerCustomAttributesApi.bulkUpsertCustomerCustomAttributes(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -380,14 +404,20 @@ const customerId = 'customer_id8'; const withDefinitions = false; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await customerCustomAttributesApi.listCustomerCustomAttributes( - customerId, - withDefinitions - ); + customerId, + undefined, + undefined, + withDefinitions +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -431,14 +461,18 @@ const customerId = 'customer_id8'; const key = 'key0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await customerCustomAttributesApi.deleteCustomerCustomAttribute( - customerId, - key - ); + customerId, + key +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -491,15 +525,19 @@ const key = 'key0'; const withDefinition = false; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await customerCustomAttributesApi.retrieveCustomerCustomAttribute( - customerId, - key, - withDefinition - ); + customerId, + key, + withDefinition +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -553,15 +591,19 @@ const body: UpsertCustomerCustomAttributeRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await customerCustomAttributesApi.upsertCustomerCustomAttribute( - customerId, - key, - body - ); + customerId, + key, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/customer-groups.md b/doc/api/customer-groups.md index d33b5fb1..ca0ac27f 100644 --- a/doc/api/customer-groups.md +++ b/doc/api/customer-groups.md @@ -45,11 +45,15 @@ async listCustomerGroups( ```ts try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await customerGroupsApi.listCustomerGroups(); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -91,11 +95,15 @@ const body: CreateCustomerGroupRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await customerGroupsApi.createCustomerGroup(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -131,11 +139,15 @@ async deleteCustomerGroup( const groupId = 'group_id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await customerGroupsApi.deleteCustomerGroup(groupId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -171,11 +183,15 @@ async retrieveCustomerGroup( const groupId = 'group_id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await customerGroupsApi.retrieveCustomerGroup(groupId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -219,14 +235,18 @@ const body: UpdateCustomerGroupRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await customerGroupsApi.updateCustomerGroup( - groupId, - body - ); + groupId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/customer-segments.md b/doc/api/customer-segments.md index 01e1370d..de2f6398 100644 --- a/doc/api/customer-segments.md +++ b/doc/api/customer-segments.md @@ -42,11 +42,15 @@ async listCustomerSegments( ```ts try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await customerSegmentsApi.listCustomerSegments(); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -82,11 +86,15 @@ async retrieveCustomerSegment( const segmentId = 'segment_id4'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await customerSegmentsApi.retrieveCustomerSegment(segmentId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/customers.md b/doc/api/customers.md index 13ce617f..ad5eaad0 100644 --- a/doc/api/customers.md +++ b/doc/api/customers.md @@ -62,13 +62,21 @@ async listCustomers( const count = false; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await customersApi.listCustomers( - count - ); + undefined, + undefined, + undefined, + undefined, + count +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -128,11 +136,15 @@ const body: CreateCustomerRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await customersApi.createCustomer(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -184,8 +196,8 @@ const body: SearchCustomersRequest = { rule: 'INCLUDE', }, createdAt: { - startAt: '2018-01-01T00:00:00+00:00', - endAt: '2018-02-01T00:00:00+00:00', + startAt: '2018-01-01T00:00:00-00:00', + endAt: '2018-02-01T00:00:00-00:00', }, emailAddress: { fuzzy: 'example.com', @@ -204,11 +216,15 @@ const body: SearchCustomersRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await customersApi.searchCustomers(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -251,11 +267,15 @@ async deleteCustomer( const customerId = 'customer_id8'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await customersApi.deleteCustomer(customerId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -291,11 +311,15 @@ async retrieveCustomer( const customerId = 'customer_id8'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await customersApi.retrieveCustomer(customerId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -349,14 +373,18 @@ const body: UpdateCustomerRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await customersApi.updateCustomer( - customerId, - body - ); + customerId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -413,14 +441,18 @@ const body: CreateCustomerCardRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await customersApi.createCustomerCard( - customerId, - body - ); + customerId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -462,14 +494,18 @@ const customerId = 'customer_id8'; const cardId = 'card_id4'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await customersApi.deleteCustomerCard( - customerId, - cardId - ); + customerId, + cardId +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -512,14 +548,18 @@ const customerId = 'customer_id8'; const groupId = 'group_id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await customersApi.removeGroupFromCustomer( - customerId, - groupId - ); + customerId, + groupId +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -562,14 +602,18 @@ const customerId = 'customer_id8'; const groupId = 'group_id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await customersApi.addGroupToCustomer( - customerId, - groupId - ); + customerId, + groupId +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/devices.md b/doc/api/devices.md index f25772cb..741199ba 100644 --- a/doc/api/devices.md +++ b/doc/api/devices.md @@ -10,9 +10,60 @@ const devicesApi = client.devicesApi; ## Methods +* [List Devices](../../doc/api/devices.md#list-devices) * [List Device Codes](../../doc/api/devices.md#list-device-codes) * [Create Device Code](../../doc/api/devices.md#create-device-code) * [Get Device Code](../../doc/api/devices.md#get-device-code) +* [Get Device](../../doc/api/devices.md#get-device) + + +# List Devices + +List devices associated with the merchant. Currently, only Terminal API +devices are supported. + +```ts +async listDevices( + cursor?: string, + sortOrder?: string, + limit?: number, + locationId?: string, + requestOptions?: RequestOptions +): Promise> +``` + +## Parameters + +| Parameter | Type | Tags | Description | +| --- | --- | --- | --- | +| `cursor` | `string \| undefined` | Query, Optional | A pagination cursor returned by a previous call to this endpoint.
Provide this cursor to retrieve the next set of results for the original query.
See [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination) for more information. | +| `sortOrder` | [`string \| undefined`](../../doc/models/sort-order.md) | Query, Optional | The order in which results are listed.

- `ASC` - Oldest to newest.
- `DESC` - Newest to oldest (default). | +| `limit` | `number \| undefined` | Query, Optional | The number of results to return in a single page. | +| `locationId` | `string \| undefined` | Query, Optional | If present, only returns devices at the target location. | +| `requestOptions` | `RequestOptions \| undefined` | Optional | Pass additional request options. | + +## Response Type + +[`ListDevicesResponse`](../../doc/models/list-devices-response.md) + +## Example Usage + +```ts +try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const { result, ...httpResponse } = await devicesApi.listDevices(); + // Get more response info... + // const { statusCode, headers } = httpResponse; +} catch (error) { + if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const errors = error.result; + // const { statusCode, headers } = error; + } +} +``` # List Device Codes @@ -47,11 +98,15 @@ async listDeviceCodes( ```ts try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await devicesApi.listDeviceCodes(); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -95,11 +150,15 @@ const body: CreateDeviceCodeRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await devicesApi.createDeviceCode(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -135,11 +194,59 @@ async getDeviceCode( const id = 'id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await devicesApi.getDeviceCode(id); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const errors = error.result; + // const { statusCode, headers } = error; + } +} +``` + + +# Get Device + +Retrieves Device with the associated `device_id`. + +```ts +async getDevice( + deviceId: string, + requestOptions?: RequestOptions +): Promise> +``` + +## Parameters + +| Parameter | Type | Tags | Description | +| --- | --- | --- | --- | +| `deviceId` | `string` | Template, Required | The unique ID for the desired `Device`. | +| `requestOptions` | `RequestOptions \| undefined` | Optional | Pass additional request options. | + +## Response Type + +[`GetDeviceResponse`](../../doc/models/get-device-response.md) + +## Example Usage + +```ts +const deviceId = 'device_id6'; + +try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const { result, ...httpResponse } = await devicesApi.getDevice(deviceId); + // Get more response info... + // const { statusCode, headers } = httpResponse; +} catch (error) { + if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/disputes.md b/doc/api/disputes.md index dc0ca7f6..06806f46 100644 --- a/doc/api/disputes.md +++ b/doc/api/disputes.md @@ -51,11 +51,15 @@ async listDisputes( ```ts try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await disputesApi.listDisputes(); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -91,11 +95,15 @@ async retrieveDispute( const disputeId = 'dispute_id2'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await disputesApi.retrieveDispute(disputeId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -135,11 +143,15 @@ async acceptDispute( const disputeId = 'dispute_id2'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await disputesApi.acceptDispute(disputeId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -177,11 +189,15 @@ async listDisputeEvidence( const disputeId = 'dispute_id2'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await disputesApi.listDisputeEvidence(disputeId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -222,11 +238,15 @@ async createDisputeEvidenceFile( const disputeId = 'dispute_id2'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await disputesApi.createDisputeEvidenceFile(disputeId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -270,14 +290,18 @@ const body: CreateDisputeEvidenceTextRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await disputesApi.createDisputeEvidenceText( - disputeId, - body - ); + disputeId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -318,14 +342,18 @@ const disputeId = 'dispute_id2'; const evidenceId = 'evidence_id2'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await disputesApi.deleteDisputeEvidence( - disputeId, - evidenceId - ); + disputeId, + evidenceId +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -367,14 +395,18 @@ const disputeId = 'dispute_id2'; const evidenceId = 'evidence_id2'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await disputesApi.retrieveDisputeEvidence( - disputeId, - evidenceId - ); + disputeId, + evidenceId +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -416,11 +448,15 @@ async submitEvidence( const disputeId = 'dispute_id2'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await disputesApi.submitEvidence(disputeId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/employees.md b/doc/api/employees.md index 36048f65..2ccd5332 100644 --- a/doc/api/employees.md +++ b/doc/api/employees.md @@ -48,11 +48,15 @@ async listEmployees( ```ts try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await employeesApi.listEmployees(); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -90,11 +94,15 @@ async retrieveEmployee( const id = 'id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await employeesApi.retrieveEmployee(id); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/gift-card-activities.md b/doc/api/gift-card-activities.md index 6054513a..7b8611e5 100644 --- a/doc/api/gift-card-activities.md +++ b/doc/api/gift-card-activities.md @@ -57,11 +57,15 @@ async listGiftCardActivities( ```ts try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await giftCardActivitiesApi.listGiftCardActivities(); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -110,11 +114,15 @@ const body: CreateGiftCardActivityRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await giftCardActivitiesApi.createGiftCardActivity(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/gift-cards.md b/doc/api/gift-cards.md index 52e23c73..a8cb1221 100644 --- a/doc/api/gift-cards.md +++ b/doc/api/gift-cards.md @@ -54,11 +54,15 @@ async listGiftCards( ```ts try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await giftCardsApi.listGiftCards(); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -102,11 +106,15 @@ const body: CreateGiftCardRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await giftCardsApi.createGiftCard(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -144,11 +152,15 @@ const body: RetrieveGiftCardFromGANRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await giftCardsApi.retrieveGiftCardFromGAN(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -186,11 +198,15 @@ const body: RetrieveGiftCardFromNonceRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await giftCardsApi.retrieveGiftCardFromNonce(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -232,14 +248,18 @@ const body: LinkCustomerToGiftCardRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await giftCardsApi.linkCustomerToGiftCard( - giftCardId, - body - ); + giftCardId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -281,14 +301,18 @@ const body: UnlinkCustomerFromGiftCardRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await giftCardsApi.unlinkCustomerFromGiftCard( - giftCardId, - body - ); + giftCardId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -324,11 +348,15 @@ async retrieveGiftCard( const id = 'id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await giftCardsApi.retrieveGiftCard(id); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/inventory.md b/doc/api/inventory.md index 28a58fe5..f4dca06c 100644 --- a/doc/api/inventory.md +++ b/doc/api/inventory.md @@ -56,11 +56,15 @@ async deprecatedRetrieveInventoryAdjustment( const adjustmentId = 'adjustment_id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await inventoryApi.deprecatedRetrieveInventoryAdjustment(adjustmentId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -97,11 +101,15 @@ async retrieveInventoryAdjustment( const adjustmentId = 'adjustment_id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await inventoryApi.retrieveInventoryAdjustment(adjustmentId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -157,11 +165,15 @@ const body: BatchChangeInventoryRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await inventoryApi.deprecatedBatchChangeInventory(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -210,16 +222,20 @@ const body: BatchRetrieveInventoryChangesRequest = { states: [ 'IN_STOCK' ], - updatedAfter: '2016-11-01T00:00:00Z', - updatedBefore: '2016-12-01T00:00:00Z', + updatedAfter: '2016-11-01T00:00:00.000Z', + updatedBefore: '2016-12-01T00:00:00.000Z', }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await inventoryApi.deprecatedBatchRetrieveInventoryChanges(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -262,15 +278,19 @@ const body: BatchRetrieveInventoryCountsRequest = { locationIds: [ '59TNP9SA8VGDA' ], - updatedAfter: '2016-11-16T00:00:00Z', + updatedAfter: '2016-11-16T00:00:00.000Z', }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await inventoryApi.deprecatedBatchRetrieveInventoryCounts(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -327,11 +347,15 @@ const body: BatchChangeInventoryRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await inventoryApi.batchChangeInventory(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -384,16 +408,20 @@ const body: BatchRetrieveInventoryChangesRequest = { states: [ 'IN_STOCK' ], - updatedAfter: '2016-11-01T00:00:00Z', - updatedBefore: '2016-12-01T00:00:00Z', + updatedAfter: '2016-11-01T00:00:00.000Z', + updatedBefore: '2016-12-01T00:00:00.000Z', }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await inventoryApi.batchRetrieveInventoryChanges(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -443,15 +471,19 @@ const body: BatchRetrieveInventoryCountsRequest = { locationIds: [ '59TNP9SA8VGDA' ], - updatedAfter: '2016-11-16T00:00:00Z', + updatedAfter: '2016-11-16T00:00:00.000Z', }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await inventoryApi.batchRetrieveInventoryCounts(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -490,11 +522,15 @@ async deprecatedRetrieveInventoryPhysicalCount( const physicalCountId = 'physical_count_id2'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await inventoryApi.deprecatedRetrieveInventoryPhysicalCount(physicalCountId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -531,11 +567,15 @@ async retrieveInventoryPhysicalCount( const physicalCountId = 'physical_count_id2'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await inventoryApi.retrieveInventoryPhysicalCount(physicalCountId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -572,11 +612,15 @@ async retrieveInventoryTransfer( const transferId = 'transfer_id6'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await inventoryApi.retrieveInventoryTransfer(transferId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -619,11 +663,15 @@ async retrieveInventoryCount( const catalogObjectId = 'catalog_object_id6'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await inventoryApi.retrieveInventoryCount(catalogObjectId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -677,11 +725,15 @@ async retrieveInventoryChanges( const catalogObjectId = 'catalog_object_id6'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await inventoryApi.retrieveInventoryChanges(catalogObjectId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/invoices.md b/doc/api/invoices.md index 1b6b2071..f07e43fe 100644 --- a/doc/api/invoices.md +++ b/doc/api/invoices.md @@ -54,11 +54,15 @@ async listInvoices( const locationId = 'location_id4'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await invoicesApi.listInvoices(locationId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -147,11 +151,15 @@ const body: CreateInvoiceRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await invoicesApi.createInvoice(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -208,11 +216,15 @@ const body: SearchInvoicesRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await invoicesApi.searchInvoices(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -252,11 +264,15 @@ async deleteInvoice( const invoiceId = 'invoice_id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await invoicesApi.deleteInvoice(invoiceId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -292,11 +308,15 @@ async getInvoice( const invoiceId = 'invoice_id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await invoicesApi.getInvoice(invoiceId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -353,14 +373,18 @@ const body: UpdateInvoiceRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await invoicesApi.updateInvoice( - invoiceId, - body - ); + invoiceId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -405,14 +429,18 @@ const body: CancelInvoiceRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await invoicesApi.cancelInvoice( - invoiceId, - body - ); + invoiceId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -465,14 +493,18 @@ const body: PublishInvoiceRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await invoicesApi.publishInvoice( - invoiceId, - body - ); + invoiceId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/labor.md b/doc/api/labor.md index 65db4742..e6649dd8 100644 --- a/doc/api/labor.md +++ b/doc/api/labor.md @@ -58,11 +58,15 @@ async listBreakTypes( ```ts try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await laborApi.listBreakTypes(); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -119,11 +123,15 @@ const body: CreateBreakTypeRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await laborApi.createBreakType(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -161,11 +169,15 @@ async deleteBreakType( const id = 'id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await laborApi.deleteBreakType(id); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -201,11 +213,15 @@ async getBreakType( const id = 'id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await laborApi.getBreakType(id); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -253,14 +269,18 @@ const body: UpdateBreakTypeRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await laborApi.updateBreakType( - id, - body - ); + id, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -300,11 +320,15 @@ async listEmployeeWages( ```ts try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await laborApi.listEmployeeWages(); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -342,11 +366,15 @@ async getEmployeeWage( const id = 'id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await laborApi.getEmployeeWage(id); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -399,9 +427,9 @@ async createShift( ```ts const body: CreateShiftRequest = { shift: { - startAt: '2019-01-25T08:11:00+00:00', + startAt: '2019-01-25T03:11:00-05:00', locationId: 'PAA1RJZZKXBFG', - endAt: '2019-01-25T18:11:00+00:00', + endAt: '2019-01-25T13:11:00-05:00', wage: { title: 'Barista', hourlyRate: { @@ -411,12 +439,12 @@ const body: CreateShiftRequest = { }, breaks: [ { - startAt: '2019-01-25T11:11:00+00:00', + startAt: '2019-01-25T06:11:00-05:00', breakTypeId: 'REGS1EQR1TPZ5', name: 'Tea Break', expectedDuration: 'PT5M', isPaid: true, - endAt: '2019-01-25T11:16:00+00:00', + endAt: '2019-01-25T06:16:00-05:00', } ], teamMemberId: 'ormj0jJJZ5OZIzxrZYJI', @@ -425,11 +453,15 @@ const body: CreateShiftRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await laborApi.createShift(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -494,11 +526,15 @@ const body: SearchShiftsRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await laborApi.searchShifts(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -534,11 +570,15 @@ async deleteShift( const id = 'id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await laborApi.deleteShift(id); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -574,11 +614,15 @@ async getShift( const id = 'id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await laborApi.getShift(id); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -623,9 +667,9 @@ const id = 'id0'; const body: UpdateShiftRequest = { shift: { - startAt: '2019-01-25T08:11:00+00:00', + startAt: '2019-01-25T03:11:00-05:00', locationId: 'PAA1RJZZKXBFG', - endAt: '2019-01-25T18:11:00+00:00', + endAt: '2019-01-25T13:11:00-05:00', wage: { title: 'Bartender', hourlyRate: { @@ -635,13 +679,13 @@ const body: UpdateShiftRequest = { }, breaks: [ { - startAt: '2019-01-25T11:11:00+00:00', + startAt: '2019-01-25T06:11:00-05:00', breakTypeId: 'REGS1EQR1TPZ5', name: 'Tea Break', expectedDuration: 'PT5M', isPaid: true, id: 'X7GAQYVVRRG6P', - endAt: '2019-01-25T11:16:00+00:00', + endAt: '2019-01-25T06:16:00-05:00', } ], version: 1, @@ -650,14 +694,18 @@ const body: UpdateShiftRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await laborApi.updateShift( - id, - body - ); + id, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -695,11 +743,15 @@ async listTeamMemberWages( ```ts try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await laborApi.listTeamMemberWages(); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -735,11 +787,15 @@ async getTeamMemberWage( const id = 'id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await laborApi.getTeamMemberWage(id); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -775,11 +831,15 @@ async listWorkweekConfigs( ```ts try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await laborApi.listWorkweekConfigs(); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -825,14 +885,18 @@ const body: UpdateWorkweekConfigRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await laborApi.updateWorkweekConfig( - id, - body - ); + id, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/location-custom-attributes.md b/doc/api/location-custom-attributes.md index dc3c6989..a0b6f8eb 100644 --- a/doc/api/location-custom-attributes.md +++ b/doc/api/location-custom-attributes.md @@ -56,11 +56,15 @@ async listLocationCustomAttributeDefinitions( ```ts try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await locationCustomAttributesApi.listLocationCustomAttributeDefinitions(); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -109,11 +113,15 @@ const body: CreateLocationCustomAttributeDefinitionRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await locationCustomAttributesApi.createLocationCustomAttributeDefinition(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -152,11 +160,15 @@ async deleteLocationCustomAttributeDefinition( const key = 'key0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await locationCustomAttributesApi.deleteLocationCustomAttributeDefinition(key); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -196,11 +208,15 @@ async retrieveLocationCustomAttributeDefinition( const key = 'key0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await locationCustomAttributesApi.retrieveLocationCustomAttributeDefinition(key); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -248,14 +264,18 @@ const body: UpdateLocationCustomAttributeDefinitionRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await locationCustomAttributesApi.updateLocationCustomAttributeDefinition( - key, - body - ); + key, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -292,18 +312,28 @@ async bulkDeleteLocationCustomAttributes( ```ts const body: BulkDeleteLocationCustomAttributesRequest = { values: { - 'id1': {}, - 'id2': {}, - 'id3': {} + 'id1': { + key: 'bestseller', + }, + 'id2': { + key: 'bestseller', + }, + 'id3': { + key: 'phone-number', + } }, }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await locationCustomAttributesApi.bulkDeleteLocationCustomAttributes(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -348,22 +378,26 @@ async bulkUpsertLocationCustomAttributes( const body: BulkUpsertLocationCustomAttributesRequest = { values: { 'key0': { - locationId: 'location_id8', + locationId: 'location_id4', customAttribute: {}, }, 'key1': { - locationId: 'location_id9', + locationId: 'location_id4', customAttribute: {}, } }, }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await locationCustomAttributesApi.bulkUpsertLocationCustomAttributes(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -414,14 +448,21 @@ const locationId = 'location_id4'; const withDefinitions = false; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await locationCustomAttributesApi.listLocationCustomAttributes( - locationId, - withDefinitions - ); + locationId, + undefined, + undefined, + undefined, + withDefinitions +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -463,14 +504,18 @@ const locationId = 'location_id4'; const key = 'key0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await locationCustomAttributesApi.deleteLocationCustomAttribute( - locationId, - key - ); + locationId, + key +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -520,15 +565,19 @@ const key = 'key0'; const withDefinition = false; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await locationCustomAttributesApi.retrieveLocationCustomAttribute( - locationId, - key, - withDefinition - ); + locationId, + key, + withDefinition +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -579,15 +628,19 @@ const body: UpsertLocationCustomAttributeRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await locationCustomAttributesApi.upsertLocationCustomAttribute( - locationId, - key, - body - ); + locationId, + key, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/locations.md b/doc/api/locations.md index 433667ca..ad1d7e1d 100644 --- a/doc/api/locations.md +++ b/doc/api/locations.md @@ -41,11 +41,15 @@ async listLocations( ```ts try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await locationsApi.listLocations(); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -98,11 +102,15 @@ const body: CreateLocationRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await locationsApi.createLocation(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -139,11 +147,15 @@ async retrieveLocation( const locationId = 'location_id4'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await locationsApi.retrieveLocation(locationId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -206,14 +218,18 @@ const body: UpdateLocationRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await locationsApi.updateLocation( - locationId, - body - ); + locationId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/loyalty.md b/doc/api/loyalty.md index 055c1b03..20466ad9 100644 --- a/doc/api/loyalty.md +++ b/doc/api/loyalty.md @@ -66,11 +66,15 @@ const body: CreateLoyaltyAccountRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await loyaltyApi.createLoyaltyAccount(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -119,11 +123,15 @@ const body: SearchLoyaltyAccountsRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await loyaltyApi.searchLoyaltyAccounts(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -159,11 +167,15 @@ async retrieveLoyaltyAccount( const accountId = 'account_id2'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await loyaltyApi.retrieveLoyaltyAccount(accountId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -222,14 +234,18 @@ const body: AccumulateLoyaltyPointsRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await loyaltyApi.accumulateLoyaltyPoints( - accountId, - body - ); + accountId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -279,14 +295,18 @@ const body: AdjustLoyaltyPointsRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await loyaltyApi.adjustLoyaltyPoints( - accountId, - body - ); + accountId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -338,11 +358,15 @@ const body: SearchLoyaltyEventsRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await loyaltyApi.searchLoyaltyEvents(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -379,11 +403,15 @@ async listLoyaltyPrograms( ```ts try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await loyaltyApi.listLoyaltyPrograms(); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -421,11 +449,15 @@ async retrieveLoyaltyProgram( const programId = 'program_id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await loyaltyApi.retrieveLoyaltyProgram(programId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -482,14 +514,18 @@ const body: CalculateLoyaltyPointsRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await loyaltyApi.calculateLoyaltyPoints( - programId, - body - ); + programId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -532,11 +568,15 @@ async listLoyaltyPromotions( const programId = 'program_id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await loyaltyApi.listLoyaltyPromotions(programId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -608,14 +648,18 @@ const body: CreateLoyaltyPromotionRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await loyaltyApi.createLoyaltyPromotion( - programId, - body - ); + programId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -655,14 +699,18 @@ const promotionId = 'promotion_id0'; const programId = 'program_id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await loyaltyApi.retrieveLoyaltyPromotion( - promotionId, - programId - ); + promotionId, + programId +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -707,14 +755,18 @@ const promotionId = 'promotion_id0'; const programId = 'program_id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await loyaltyApi.cancelLoyaltyPromotion( - promotionId, - programId - ); + promotionId, + programId +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -764,11 +816,15 @@ const body: CreateLoyaltyRewardRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await loyaltyApi.createLoyaltyReward(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -815,11 +871,15 @@ const body: SearchLoyaltyRewardsRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await loyaltyApi.searchLoyaltyRewards(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -863,11 +923,15 @@ async deleteLoyaltyReward( const rewardId = 'reward_id4'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await loyaltyApi.deleteLoyaltyReward(rewardId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -903,11 +967,15 @@ async retrieveLoyaltyReward( const rewardId = 'reward_id4'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await loyaltyApi.retrieveLoyaltyReward(rewardId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -960,14 +1028,18 @@ const body: RedeemLoyaltyRewardRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await loyaltyApi.redeemLoyaltyReward( - rewardId, - body - ); + rewardId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/merchant-custom-attributes.md b/doc/api/merchant-custom-attributes.md index 9853a9c7..4b786585 100644 --- a/doc/api/merchant-custom-attributes.md +++ b/doc/api/merchant-custom-attributes.md @@ -56,11 +56,15 @@ async listMerchantCustomAttributeDefinitions( ```ts try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await merchantCustomAttributesApi.listMerchantCustomAttributeDefinitions(); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -109,11 +113,15 @@ const body: CreateMerchantCustomAttributeDefinitionRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await merchantCustomAttributesApi.createMerchantCustomAttributeDefinition(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -152,11 +160,15 @@ async deleteMerchantCustomAttributeDefinition( const key = 'key0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await merchantCustomAttributesApi.deleteMerchantCustomAttributeDefinition(key); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -196,11 +208,15 @@ async retrieveMerchantCustomAttributeDefinition( const key = 'key0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await merchantCustomAttributesApi.retrieveMerchantCustomAttributeDefinition(key); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -248,14 +264,18 @@ const body: UpdateMerchantCustomAttributeDefinitionRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await merchantCustomAttributesApi.updateMerchantCustomAttributeDefinition( - key, - body - ); + key, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -292,17 +312,25 @@ async bulkDeleteMerchantCustomAttributes( ```ts const body: BulkDeleteMerchantCustomAttributesRequest = { values: { - 'id1': {}, - 'id2': {} + 'id1': { + key: 'alternative_seller_name', + }, + 'id2': { + key: 'has_seen_tutorial', + } }, }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await merchantCustomAttributesApi.bulkDeleteMerchantCustomAttributes(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -347,22 +375,26 @@ async bulkUpsertMerchantCustomAttributes( const body: BulkUpsertMerchantCustomAttributesRequest = { values: { 'key0': { - merchantId: 'merchant_id4', + merchantId: 'merchant_id0', customAttribute: {}, }, 'key1': { - merchantId: 'merchant_id5', + merchantId: 'merchant_id0', customAttribute: {}, } }, }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await merchantCustomAttributesApi.bulkUpsertMerchantCustomAttributes(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -413,14 +445,21 @@ const merchantId = 'merchant_id0'; const withDefinitions = false; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await merchantCustomAttributesApi.listMerchantCustomAttributes( - merchantId, - withDefinitions - ); + merchantId, + undefined, + undefined, + undefined, + withDefinitions +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -462,14 +501,18 @@ const merchantId = 'merchant_id0'; const key = 'key0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await merchantCustomAttributesApi.deleteMerchantCustomAttribute( - merchantId, - key - ); + merchantId, + key +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -519,15 +562,19 @@ const key = 'key0'; const withDefinition = false; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await merchantCustomAttributesApi.retrieveMerchantCustomAttribute( - merchantId, - key, - withDefinition - ); + merchantId, + key, + withDefinition +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -578,15 +625,19 @@ const body: UpsertMerchantCustomAttributeRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await merchantCustomAttributesApi.upsertMerchantCustomAttribute( - merchantId, - key, - body - ); + merchantId, + key, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/merchants.md b/doc/api/merchants.md index e3d13e89..7a8c134f 100644 --- a/doc/api/merchants.md +++ b/doc/api/merchants.md @@ -49,11 +49,15 @@ async listMerchants( ```ts try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await merchantsApi.listMerchants(); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -89,11 +93,15 @@ async retrieveMerchant( const merchantId = 'merchant_id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await merchantsApi.retrieveMerchant(merchantId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/mobile-authorization.md b/doc/api/mobile-authorization.md index ad614acc..c4977417 100644 --- a/doc/api/mobile-authorization.md +++ b/doc/api/mobile-authorization.md @@ -50,11 +50,15 @@ const body: CreateMobileAuthorizationCodeRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await mobileAuthorizationApi.createMobileAuthorizationCode(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/o-auth.md b/doc/api/o-auth.md index 8aba4f0d..49aa366d 100644 --- a/doc/api/o-auth.md +++ b/doc/api/o-auth.md @@ -76,15 +76,19 @@ const body: RenewTokenRequest = { const authorization = 'Client CLIENT_SECRET'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await oAuthApi.renewToken( - clientId, - body, - authorization - ); + clientId, + body, + authorization +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -97,9 +101,7 @@ try { Revokes an access token generated with the OAuth flow. If an account has more than one OAuth access token for your application, this -endpoint revokes all of them, regardless of which token you specify. When an -OAuth access token is revoked, all of the active subscriptions associated -with that OAuth token are canceled immediately. +endpoint revokes all of them, regardless of which token you specify. __Important:__ The `Authorization` header for this endpoint must have the following format: @@ -144,14 +146,18 @@ const body: RevokeTokenRequest = { const authorization = 'Client CLIENT_SECRET'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await oAuthApi.revokeToken( - body, - authorization - ); + body, + authorization +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -210,11 +216,15 @@ const body: ObtainTokenRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await oAuthApi.obtainToken(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -265,11 +275,15 @@ async retrieveTokenStatus( const authorization = 'Client CLIENT_SECRET'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await oAuthApi.retrieveTokenStatus(authorization); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/order-custom-attributes.md b/doc/api/order-custom-attributes.md index 4252f49e..76ea8c5c 100644 --- a/doc/api/order-custom-attributes.md +++ b/doc/api/order-custom-attributes.md @@ -58,11 +58,15 @@ async listOrderCustomAttributeDefinitions( ```ts try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await orderCustomAttributesApi.listOrderCustomAttributeDefinitions(); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -110,11 +114,15 @@ const body: CreateOrderCustomAttributeDefinitionRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await orderCustomAttributesApi.createOrderCustomAttributeDefinition(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -152,11 +160,15 @@ async deleteOrderCustomAttributeDefinition( const key = 'key0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await orderCustomAttributesApi.deleteOrderCustomAttributeDefinition(key); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -198,11 +210,15 @@ async retrieveOrderCustomAttributeDefinition( const key = 'key0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await orderCustomAttributesApi.retrieveOrderCustomAttributeDefinition(key); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -251,14 +267,18 @@ const body: UpdateOrderCustomAttributeDefinitionRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await orderCustomAttributesApi.updateOrderCustomAttributeDefinition( - key, - body - ); + key, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -318,11 +338,15 @@ const body: BulkDeleteOrderCustomAttributesRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await orderCustomAttributesApi.bulkDeleteOrderCustomAttributes(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -372,21 +396,25 @@ const body: BulkUpsertOrderCustomAttributesRequest = { values: { 'key0': { customAttribute: {}, - orderId: 'order_id2', + orderId: 'order_id4', }, 'key1': { customAttribute: {}, - orderId: 'order_id1', + orderId: 'order_id4', } }, }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await orderCustomAttributesApi.bulkUpsertOrderCustomAttributes(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -439,14 +467,21 @@ const orderId = 'order_id6'; const withDefinitions = false; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await orderCustomAttributesApi.listOrderCustomAttributes( - orderId, - withDefinitions - ); + orderId, + undefined, + undefined, + undefined, + withDefinitions +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -490,14 +525,18 @@ const orderId = 'order_id6'; const customAttributeKey = 'custom_attribute_key2'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await orderCustomAttributesApi.deleteOrderCustomAttribute( - orderId, - customAttributeKey - ); + orderId, + customAttributeKey +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -550,15 +589,20 @@ const customAttributeKey = 'custom_attribute_key2'; const withDefinition = false; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await orderCustomAttributesApi.retrieveOrderCustomAttribute( - orderId, - customAttributeKey, - withDefinition - ); + orderId, + customAttributeKey, + undefined, + withDefinition +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -612,15 +656,19 @@ const body: UpsertOrderCustomAttributeRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await orderCustomAttributesApi.upsertOrderCustomAttribute( - orderId, - customAttributeKey, - body - ); + orderId, + customAttributeKey, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/orders.md b/doc/api/orders.md index 7823602e..2841278e 100644 --- a/doc/api/orders.md +++ b/doc/api/orders.md @@ -114,11 +114,15 @@ const body: CreateOrderRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await ordersApi.createOrder(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -162,11 +166,15 @@ const body: BatchRetrieveOrdersRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await ordersApi.batchRetrieveOrders(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -231,11 +239,15 @@ const body: CalculateOrderRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await ordersApi.calculateOrder(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -276,11 +288,15 @@ const body: CloneOrderRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await ordersApi.cloneOrder(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -358,11 +374,15 @@ const body: SearchOrdersRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await ordersApi.searchOrders(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -398,11 +418,15 @@ async retrieveOrder( const orderId = 'order_id6'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await ordersApi.retrieveOrder(orderId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -456,14 +480,18 @@ const orderId = 'order_id6'; const body: UpdateOrderRequest = {}; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await ordersApi.updateOrder( - orderId, - body - ); + orderId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -522,14 +550,18 @@ const body: PayOrderRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await ordersApi.payOrder( - orderId, - body - ); + orderId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/payments.md b/doc/api/payments.md index d930b1cd..5adcee74 100644 --- a/doc/api/payments.md +++ b/doc/api/payments.md @@ -66,11 +66,15 @@ async listPayments( ```ts try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await paymentsApi.listPayments(); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -129,11 +133,15 @@ const body: CreatePaymentRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await paymentsApi.createPayment(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -181,11 +189,15 @@ const body: CancelPaymentByIdempotencyKeyRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await paymentsApi.cancelPaymentByIdempotencyKey(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -221,11 +233,15 @@ async getPayment( const paymentId = 'payment_id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await paymentsApi.getPayment(paymentId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -279,14 +295,18 @@ const body: UpdatePaymentRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await paymentsApi.updatePayment( - paymentId, - body - ); + paymentId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -323,11 +343,15 @@ async cancelPayment( const paymentId = 'payment_id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await paymentsApi.cancelPayment(paymentId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -370,14 +394,18 @@ const paymentId = 'payment_id0'; const body: CompletePaymentRequest = {}; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await paymentsApi.completePayment( - paymentId, - body - ); + paymentId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/payouts.md b/doc/api/payouts.md index dc33df5d..bfb9694d 100644 --- a/doc/api/payouts.md +++ b/doc/api/payouts.md @@ -55,11 +55,15 @@ async listPayouts( ```ts try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await payoutsApi.listPayouts(); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -96,11 +100,15 @@ async getPayout( const payoutId = 'payout_id6'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await payoutsApi.getPayout(payoutId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -143,11 +151,15 @@ async listPayoutEntries( const payoutId = 'payout_id6'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await payoutsApi.listPayoutEntries(payoutId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/refunds.md b/doc/api/refunds.md index 6109deae..4123bb97 100644 --- a/doc/api/refunds.md +++ b/doc/api/refunds.md @@ -60,11 +60,15 @@ async listPaymentRefunds( ```ts try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await refundsApi.listPaymentRefunds(); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -115,11 +119,15 @@ const body: RefundPaymentRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await refundsApi.refundPayment(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -155,11 +163,15 @@ async getPaymentRefund( const refundId = 'refund_id4'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await refundsApi.getPaymentRefund(refundId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/sites.md b/doc/api/sites.md index f72f3234..e39daca7 100644 --- a/doc/api/sites.md +++ b/doc/api/sites.md @@ -35,11 +35,15 @@ async listSites( ```ts try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await sitesApi.listSites(); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/snippets.md b/doc/api/snippets.md index cf100019..42cd5dbb 100644 --- a/doc/api/snippets.md +++ b/doc/api/snippets.md @@ -47,11 +47,15 @@ async deleteSnippet( const siteId = 'site_id6'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await snippetsApi.deleteSnippet(siteId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -91,11 +95,15 @@ async retrieveSnippet( const siteId = 'site_id6'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await snippetsApi.retrieveSnippet(siteId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -144,14 +152,18 @@ const body: UpsertSnippetRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await snippetsApi.upsertSnippet( - siteId, - body - ); + siteId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/subscriptions.md b/doc/api/subscriptions.md index ee9548df..77df807e 100644 --- a/doc/api/subscriptions.md +++ b/doc/api/subscriptions.md @@ -74,11 +74,15 @@ const body: CreateSubscriptionRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await subscriptionsApi.createSubscription(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -141,11 +145,15 @@ const body: SearchSubscriptionsRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await subscriptionsApi.searchSubscriptions(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -183,11 +191,15 @@ async retrieveSubscription( const subscriptionId = 'subscription_id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await subscriptionsApi.retrieveSubscription(subscriptionId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -226,18 +238,25 @@ async updateSubscription( const subscriptionId = 'subscription_id0'; const body: UpdateSubscriptionRequest = { - subscription: {}, + subscription: { + canceledDate: 'canceled_date6', + cardId: '{NEW CARD ID}', + }, }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await subscriptionsApi.updateSubscription( - subscriptionId, - body - ); + subscriptionId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -277,14 +296,18 @@ const subscriptionId = 'subscription_id0'; const actionId = 'action_id6'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await subscriptionsApi.deleteSubscriptionAction( - subscriptionId, - actionId - ); + subscriptionId, + actionId +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -322,11 +345,15 @@ async cancelSubscription( const subscriptionId = 'subscription_id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await subscriptionsApi.cancelSubscription(subscriptionId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -366,11 +393,15 @@ async listSubscriptionEvents( const subscriptionId = 'subscription_id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await subscriptionsApi.listSubscriptionEvents(subscriptionId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -410,14 +441,18 @@ const subscriptionId = 'subscription_id0'; const body: PauseSubscriptionRequest = {}; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await subscriptionsApi.pauseSubscription( - subscriptionId, - body - ); + subscriptionId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -457,14 +492,18 @@ const subscriptionId = 'subscription_id0'; const body: ResumeSubscriptionRequest = {}; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await subscriptionsApi.resumeSubscription( - subscriptionId, - body - ); + subscriptionId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -513,14 +552,18 @@ const body: SwapPlanRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await subscriptionsApi.swapPlan( - subscriptionId, - body - ); + subscriptionId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/team.md b/doc/api/team.md index 3c4c6258..8657111d 100644 --- a/doc/api/team.md +++ b/doc/api/team.md @@ -71,11 +71,15 @@ const body: CreateTeamMemberRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await teamApi.createTeamMember(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -147,11 +151,15 @@ const body: BulkCreateTeamMembersRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await teamApi.bulkCreateTeamMembers(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -226,11 +234,15 @@ const body: BulkUpdateTeamMembersRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await teamApi.bulkUpdateTeamMembers(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -280,11 +292,15 @@ const body: SearchTeamMembersRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await teamApi.searchTeamMembers(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -321,11 +337,15 @@ async retrieveTeamMember( const teamMemberId = 'team_member_id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await teamApi.retrieveTeamMember(teamMemberId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -382,14 +402,18 @@ const body: UpdateTeamMemberRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await teamApi.updateTeamMember( - teamMemberId, - body - ); + teamMemberId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -427,11 +451,15 @@ async retrieveWageSetting( const teamMemberId = 'team_member_id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await teamApi.retrieveWageSetting(teamMemberId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -498,14 +526,18 @@ const body: UpdateWageSettingRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await teamApi.updateWageSetting( - teamMemberId, - body - ); + teamMemberId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/terminal.md b/doc/api/terminal.md index 044a0d34..f854c044 100644 --- a/doc/api/terminal.md +++ b/doc/api/terminal.md @@ -64,11 +64,15 @@ const body: CreateTerminalActionRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await terminalApi.createTerminalAction(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -105,7 +109,7 @@ const body: SearchTerminalActionsRequest = { query: { filter: { createdAt: { - startAt: '2022-04-01T00:00:00Z', + startAt: '2022-04-01T00:00:00.000Z', }, }, sort: { @@ -116,11 +120,15 @@ const body: SearchTerminalActionsRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await terminalApi.searchTerminalActions(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -156,11 +164,15 @@ async getTerminalAction( const actionId = 'action_id6'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await terminalApi.getTerminalAction(actionId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -196,11 +208,15 @@ async cancelTerminalAction( const actionId = 'action_id6'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await terminalApi.cancelTerminalAction(actionId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -238,11 +254,15 @@ async dismissTerminalAction( const actionId = 'action_id6'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await terminalApi.dismissTerminalAction(actionId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -292,11 +312,15 @@ const body: CreateTerminalCheckoutRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await terminalApi.createTerminalCheckout(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -339,11 +363,15 @@ const body: SearchTerminalCheckoutsRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await terminalApi.searchTerminalCheckouts(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -379,11 +407,15 @@ async getTerminalCheckout( const checkoutId = 'checkout_id8'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await terminalApi.getTerminalCheckout(checkoutId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -419,11 +451,15 @@ async cancelTerminalCheckout( const checkoutId = 'checkout_id8'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await terminalApi.cancelTerminalCheckout(checkoutId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -470,11 +506,15 @@ const body: CreateTerminalRefundRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await terminalApi.createTerminalRefund(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -517,11 +557,15 @@ const body: SearchTerminalRefundsRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await terminalApi.searchTerminalRefunds(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -557,11 +601,15 @@ async getTerminalRefund( const terminalRefundId = 'terminal_refund_id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await terminalApi.getTerminalRefund(terminalRefundId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -597,11 +645,15 @@ async cancelTerminalRefund( const terminalRefundId = 'terminal_refund_id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await terminalApi.cancelTerminalRefund(terminalRefundId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/transactions.md b/doc/api/transactions.md index 65c3e793..b0f5bf21 100644 --- a/doc/api/transactions.md +++ b/doc/api/transactions.md @@ -59,11 +59,15 @@ async listTransactions( const locationId = 'location_id4'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await transactionsApi.listTransactions(locationId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -105,14 +109,18 @@ const locationId = 'location_id4'; const transactionId = 'transaction_id8'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await transactionsApi.retrieveTransaction( - locationId, - transactionId - ); + locationId, + transactionId +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -158,14 +166,18 @@ const locationId = 'location_id4'; const transactionId = 'transaction_id8'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await transactionsApi.captureTransaction( - locationId, - transactionId - ); + locationId, + transactionId +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -211,14 +223,18 @@ const locationId = 'location_id4'; const transactionId = 'transaction_id8'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await transactionsApi.voidTransaction( - locationId, - transactionId - ); + locationId, + transactionId +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/v1-transactions.md b/doc/api/v1-transactions.md index 11c78e5c..cc8d4863 100644 --- a/doc/api/v1-transactions.md +++ b/doc/api/v1-transactions.md @@ -57,11 +57,15 @@ async v1ListOrders( const locationId = 'location_id4'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await v1TransactionsApi.v1ListOrders(locationId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -103,14 +107,18 @@ const locationId = 'location_id4'; const orderId = 'order_id6'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await v1TransactionsApi.v1RetrieveOrder( - locationId, - orderId - ); + locationId, + orderId +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -158,15 +166,19 @@ const body: V1UpdateOrderRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await v1TransactionsApi.v1UpdateOrder( - locationId, - orderId, - body - ); + locationId, + orderId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -228,14 +240,23 @@ const locationId = 'location_id4'; const includePartial = false; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await v1TransactionsApi.v1ListPayments( - locationId, - includePartial - ); + locationId, + undefined, + undefined, + undefined, + undefined, + undefined, + includePartial +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -277,14 +298,18 @@ const locationId = 'location_id4'; const paymentId = 'payment_id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await v1TransactionsApi.v1RetrievePayment( - locationId, - paymentId - ); + locationId, + paymentId +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -332,11 +357,15 @@ async v1ListRefunds( const locationId = 'location_id4'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await v1TransactionsApi.v1ListRefunds(locationId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -393,14 +422,18 @@ const body: V1CreateRefundRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await v1TransactionsApi.v1CreateRefund( - locationId, - body - ); + locationId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -455,11 +488,15 @@ async v1ListSettlements( const locationId = 'location_id4'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await v1TransactionsApi.v1ListSettlements(locationId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -517,14 +554,18 @@ const locationId = 'location_id4'; const settlementId = 'settlement_id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await v1TransactionsApi.v1RetrieveSettlement( - locationId, - settlementId - ); + locationId, + settlementId +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/vendors.md b/doc/api/vendors.md index 13a679a3..1209446f 100644 --- a/doc/api/vendors.md +++ b/doc/api/vendors.md @@ -52,11 +52,15 @@ const body: BulkCreateVendorsRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await vendorsApi.bulkCreateVendors(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -96,11 +100,15 @@ const body: BulkRetrieveVendorsRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await vendorsApi.bulkRetrieveVendors(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -145,11 +153,15 @@ const body: BulkUpdateVendorsRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await vendorsApi.bulkUpdateVendors(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -187,11 +199,15 @@ const body: CreateVendorRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await vendorsApi.createVendor(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -227,11 +243,15 @@ async searchVendors( const body: SearchVendorsRequest = {}; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await vendorsApi.searchVendors(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -267,11 +287,15 @@ async retrieveVendor( const vendorId = 'vendor_id8'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await vendorsApi.retrieveVendor(vendorId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -319,14 +343,18 @@ const body: UpdateVendorRequest = { const vendorId = 'vendor_id8'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await vendorsApi.updateVendor( - body, - vendorId - ); + body, + vendorId +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/api/webhook-subscriptions.md b/doc/api/webhook-subscriptions.md index 467e5ed1..4bde11c2 100644 --- a/doc/api/webhook-subscriptions.md +++ b/doc/api/webhook-subscriptions.md @@ -46,11 +46,15 @@ async listWebhookEventTypes( ```ts try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await webhookSubscriptionsApi.listWebhookEventTypes(); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -92,13 +96,18 @@ async listWebhookSubscriptions( const includeDisabled = false; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await webhookSubscriptionsApi.listWebhookSubscriptions( - includeDisabled - ); + undefined, + includeDisabled +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -145,11 +154,15 @@ const body: CreateWebhookSubscriptionRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await webhookSubscriptionsApi.createWebhookSubscription(body); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -185,11 +198,15 @@ async deleteWebhookSubscription( const subscriptionId = 'subscription_id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await webhookSubscriptionsApi.deleteWebhookSubscription(subscriptionId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -225,11 +242,15 @@ async retrieveWebhookSubscription( const subscriptionId = 'subscription_id0'; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await webhookSubscriptionsApi.retrieveWebhookSubscription(subscriptionId); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -274,14 +295,18 @@ const body: UpdateWebhookSubscriptionRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await webhookSubscriptionsApi.updateWebhookSubscription( - subscriptionId, - body - ); + subscriptionId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -323,14 +348,18 @@ const body: UpdateWebhookSubscriptionSignatureKeyRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await webhookSubscriptionsApi.updateWebhookSubscriptionSignatureKey( - subscriptionId, - body - ); + subscriptionId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } @@ -372,14 +401,18 @@ const body: TestWebhookSubscriptionRequest = { }; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await webhookSubscriptionsApi.testWebhookSubscription( - subscriptionId, - body - ); + subscriptionId, + body +); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/client.md b/doc/client.md index 6ef810aa..4b10a8c9 100644 --- a/doc/client.md +++ b/doc/client.md @@ -5,7 +5,7 @@ The following parameters are configurable for the API Client: | Parameter | Type | Description | | --- | --- | --- | -| `squareVersion` | `string` | Square Connect API versions
*Default*: `'2023-08-16'` | +| `squareVersion` | `string` | Square Connect API versions
*Default*: `'2023-09-25'` | | `customUrl` | `string` | Sets the base URL requests are made to. Defaults to `https://connect.squareup.com`
*Default*: `'https://connect.squareup.com'` | | `environment` | `string` | The API environment.
**Default: `production`** | | `additionalHeaders` | `Readonly>` | Additional headers to add to each API call
*Default*: `{}` | @@ -40,7 +40,7 @@ The API client can be initialized as follows: ```ts const client = new Client({ - squareVersion: '2023-08-16', + squareVersion: '2023-09-25', timeout: 60000, additionalHeaders: {}, userAgentDetail: '', @@ -55,7 +55,7 @@ const client = new Client({ import { ApiError, Client } from 'square'; const client = new Client({ - squareVersion: '2023-08-16', + squareVersion: '2023-09-25', timeout: 60000, additionalHeaders: {}, userAgentDetail: '', @@ -65,11 +65,15 @@ const client = new Client({ const locationsApi = client.locationsApi; try { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { result, ...httpResponse } = await locationsApi.listLocations(); // Get more response info... // const { statusCode, headers } = httpResponse; } catch (error) { if (error instanceof ApiError) { + // @ts-expect-error: unused variables + // eslint-disable-next-line @typescript-eslint/no-unused-vars const errors = error.result; // const { statusCode, headers } = error; } diff --git a/doc/models/accept-dispute-response.md b/doc/models/accept-dispute-response.md index 35108e38..ea2fd06c 100644 --- a/doc/models/accept-dispute-response.md +++ b/doc/models/accept-dispute-response.md @@ -41,22 +41,22 @@ Defines the fields in an `AcceptDispute` response. }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/accumulate-loyalty-points-response.md b/doc/models/accumulate-loyalty-points-response.md index 0baa7df5..85119554 100644 --- a/doc/models/accumulate-loyalty-points-response.md +++ b/doc/models/accumulate-loyalty-points-response.md @@ -33,45 +33,33 @@ Represents an [AccumulateLoyaltyPoints](../../doc/api/loyalty.md#accumulate-loya "source": "LOYALTY_API", "type": "ACCUMULATE_POINTS", "create_reward": { - "loyalty_program_id": "loyalty_program_id8", - "reward_id": "reward_id2", - "points": 148 + "loyalty_program_id": "loyalty_program_id2", + "reward_id": "reward_id6", + "points": 90 }, "redeem_reward": { "loyalty_program_id": "loyalty_program_id8", "reward_id": "reward_id2", - "order_id": "order_id2" + "order_id": "order_id8" }, "delete_reward": { "loyalty_program_id": "loyalty_program_id4", "reward_id": "reward_id8", - "points": 130 + "points": 104 }, "adjust_points": { - "loyalty_program_id": "loyalty_program_id8", - "points": 142, - "reason": "reason6" + "loyalty_program_id": "loyalty_program_id2", + "points": 96, + "reason": "reason2" } } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], "event": { @@ -79,14 +67,14 @@ Represents an [AccumulateLoyaltyPoints](../../doc/api/loyalty.md#accumulate-loya "type": "ADJUST_POINTS", "created_at": "created_at8", "accumulate_points": { - "loyalty_program_id": "loyalty_program_id2", - "points": 224, - "order_id": "order_id4" + "loyalty_program_id": "loyalty_program_id8", + "points": 118, + "order_id": "order_id8" }, "create_reward": { "loyalty_program_id": "loyalty_program_id2", "reward_id": "reward_id6", - "points": 220 + "points": 90 }, "redeem_reward": { "loyalty_program_id": "loyalty_program_id8", @@ -96,12 +84,12 @@ Represents an [AccumulateLoyaltyPoints](../../doc/api/loyalty.md#accumulate-loya "delete_reward": { "loyalty_program_id": "loyalty_program_id4", "reward_id": "reward_id8", - "points": 26 + "points": 104 }, "adjust_points": { - "loyalty_program_id": "loyalty_program_id8", - "points": 246, - "reason": "reason6" + "loyalty_program_id": "loyalty_program_id2", + "points": 96, + "reason": "reason2" }, "loyalty_account_id": "loyalty_account_id0", "source": "SQUARE" diff --git a/doc/models/ach-details.md b/doc/models/ach-details.md index 0dfde474..614a12b7 100644 --- a/doc/models/ach-details.md +++ b/doc/models/ach-details.md @@ -19,9 +19,9 @@ ACH-specific details about `BANK_ACCOUNT` type payments with the `transfer_type` ```json { - "routing_number": "routing_number4", - "account_number_suffix": "account_number_suffix8", - "account_type": "account_type4" + "routing_number": "routing_number6", + "account_number_suffix": "account_number_suffix6", + "account_type": "account_type8" } ``` diff --git a/doc/models/add-group-to-customer-response.md b/doc/models/add-group-to-customer-response.md index 873d2507..e9f8124e 100644 --- a/doc/models/add-group-to-customer-response.md +++ b/doc/models/add-group-to-customer-response.md @@ -19,23 +19,11 @@ a request to the [AddGroupToCustomer](../../doc/api/customers.md#add-group-to-cu ```json { "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/additional-recipient.md b/doc/models/additional-recipient.md index 2d4cbc9d..e3115cda 100644 --- a/doc/models/additional-recipient.md +++ b/doc/models/additional-recipient.md @@ -20,13 +20,13 @@ Represents an additional recipient (other than the merchant) receiving a portion ```json { - "location_id": "location_id4", - "description": "description0", + "location_id": "location_id2", + "description": "description2", "amount_money": { "amount": 186, "currency": "TZS" }, - "receivable_id": "receivable_id0" + "receivable_id": "receivable_id8" } ``` diff --git a/doc/models/address.md b/doc/models/address.md index 549abe34..2334fc0e 100644 --- a/doc/models/address.md +++ b/doc/models/address.md @@ -31,11 +31,11 @@ For more information, see [Working with Addresses](https://developer.squareup.co ```json { - "address_line_1": "address_line_10", - "address_line_2": "address_line_20", - "address_line_3": "address_line_36", - "locality": "locality0", - "sublocality": "sublocality0" + "address_line_1": "address_line_18", + "address_line_2": "address_line_28", + "address_line_3": "address_line_34", + "locality": "locality8", + "sublocality": "sublocality8" } ``` diff --git a/doc/models/adjust-loyalty-points-response.md b/doc/models/adjust-loyalty-points-response.md index f5585c24..8b042d22 100644 --- a/doc/models/adjust-loyalty-points-response.md +++ b/doc/models/adjust-loyalty-points-response.md @@ -30,14 +30,14 @@ Represents an [AdjustLoyaltyPoints](../../doc/api/loyalty.md#adjust-loyalty-poin "source": "LOYALTY_API", "type": "ADJUST_POINTS", "accumulate_points": { - "loyalty_program_id": "loyalty_program_id2", - "points": 224, - "order_id": "order_id4" + "loyalty_program_id": "loyalty_program_id8", + "points": 118, + "order_id": "order_id8" }, "create_reward": { "loyalty_program_id": "loyalty_program_id2", "reward_id": "reward_id6", - "points": 220 + "points": 90 }, "redeem_reward": { "loyalty_program_id": "loyalty_program_id8", @@ -47,27 +47,15 @@ Represents an [AdjustLoyaltyPoints](../../doc/api/loyalty.md#adjust-loyalty-poin "delete_reward": { "loyalty_program_id": "loyalty_program_id4", "reward_id": "reward_id8", - "points": 26 + "points": 104 } }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/application-details.md b/doc/models/application-details.md index 616a8c42..d4b01e74 100644 --- a/doc/models/application-details.md +++ b/doc/models/application-details.md @@ -18,8 +18,8 @@ Details about the application that took the payment. ```json { - "square_product": "TERMINAL_API", - "application_id": "application_id4" + "square_product": "APPOINTMENTS", + "application_id": "application_id2" } ``` diff --git a/doc/models/application-type.md b/doc/models/application-type.md new file mode 100644 index 00000000..ab57c1f9 --- /dev/null +++ b/doc/models/application-type.md @@ -0,0 +1,13 @@ + +# Application Type + +## Enumeration + +`ApplicationType` + +## Fields + +| Name | +| --- | +| `TERMINAL_API` | + diff --git a/doc/models/appointment-segment.md b/doc/models/appointment-segment.md index 2a808071..4327b989 100644 --- a/doc/models/appointment-segment.md +++ b/doc/models/appointment-segment.md @@ -23,11 +23,11 @@ Defines an appointment segment of a booking. ```json { - "duration_minutes": 144, - "service_variation_id": "service_variation_id6", + "duration_minutes": 36, + "service_variation_id": "service_variation_id4", "team_member_id": "team_member_id0", - "service_variation_version": 56, - "intermission_minutes": 62, + "service_variation_version": 204, + "intermission_minutes": 210, "any_team_member": false } ``` diff --git a/doc/models/availability.md b/doc/models/availability.md index 48c84fb0..5a66e78c 100644 --- a/doc/models/availability.md +++ b/doc/models/availability.md @@ -19,15 +19,15 @@ Defines an appointment slot that encapsulates the appointment segments, location ```json { - "start_at": "start_at2", - "location_id": "location_id4", + "start_at": "start_at6", + "location_id": "location_id8", "appointment_segments": [ { - "duration_minutes": 4, + "duration_minutes": 136, "service_variation_id": "service_variation_id4", "team_member_id": "team_member_id0", - "service_variation_version": 172, - "intermission_minutes": 178, + "service_variation_version": 48, + "intermission_minutes": 54, "any_team_member": false } ] diff --git a/doc/models/bank-account.md b/doc/models/bank-account.md index 11a7ec3a..699f785d 100644 --- a/doc/models/bank-account.md +++ b/doc/models/bank-account.md @@ -35,21 +35,21 @@ linking a bank account to a Square account, see ```json { - "id": "id0", - "account_number_suffix": "account_number_suffix8", - "country": "FO", + "id": "id2", + "account_number_suffix": "account_number_suffix6", + "country": "TT", "currency": "SLL", - "account_type": "BUSINESS_CHECKING", - "holder_name": "holder_name4", - "primary_bank_identification_number": "primary_bank_identification_number8", - "secondary_bank_identification_number": "secondary_bank_identification_number0", - "debit_mandate_reference_id": "debit_mandate_reference_id4", - "reference_id": "reference_id2", - "location_id": "location_id4", - "status": "DISABLED", + "account_type": "OTHER", + "holder_name": "holder_name8", + "primary_bank_identification_number": "primary_bank_identification_number0", + "secondary_bank_identification_number": "secondary_bank_identification_number2", + "debit_mandate_reference_id": "debit_mandate_reference_id2", + "reference_id": "reference_id0", + "location_id": "location_id6", + "status": "VERIFICATION_IN_PROGRESS", "creditable": false, "debitable": false, - "fingerprint": "fingerprint6" + "fingerprint": "fingerprint8" } ``` diff --git a/doc/models/batch-change-inventory-request.md b/doc/models/batch-change-inventory-request.md index 4a98eed5..fff4a91b 100644 --- a/doc/models/batch-change-inventory-request.md +++ b/doc/models/batch-change-inventory-request.md @@ -27,36 +27,36 @@ "reference_id": "1536bfbf-efed-48bf-b17d-a197141b2a92", "state": "IN_STOCK", "team_member_id": "LRK57NSQ5X7PUD05", - "id": "id6", - "catalog_object_type": "catalog_object_type0" + "id": "id2", + "catalog_object_type": "catalog_object_type6" }, "type": "PHYSICAL_COUNT", "adjustment": { - "id": "id0", - "reference_id": "reference_id8", - "from_state": "SOLD", - "to_state": "COMPOSED", - "location_id": "location_id4" + "id": "id4", + "reference_id": "reference_id2", + "from_state": "IN_TRANSIT_TO", + "to_state": "SOLD", + "location_id": "location_id8" }, "transfer": { - "id": "id4", - "reference_id": "reference_id8", - "state": "SUPPORTED_BY_NEWER_VERSION", - "from_location_id": "from_location_id6", - "to_location_id": "to_location_id4" + "id": "id8", + "reference_id": "reference_id6", + "state": "RESERVED_FOR_SALE", + "from_location_id": "from_location_id0", + "to_location_id": "to_location_id0" }, "measurement_unit": { "measurement_unit": { "custom_unit": { - "name": "name6", - "abbreviation": "abbreviation8" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "IMPERIAL_SQUARE_FOOT", - "length_unit": "METRIC_METER", - "volume_unit": "IMPERIAL_CUBIC_INCH", + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_LITER", "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 118 + "precision": 184 } } ], diff --git a/doc/models/batch-change-inventory-response.md b/doc/models/batch-change-inventory-response.md index 23f0f840..ecd3fa0a 100644 --- a/doc/models/batch-change-inventory-response.md +++ b/doc/models/batch-change-inventory-response.md @@ -32,38 +32,38 @@ { "type": "TRANSFER", "physical_count": { - "id": "id6", - "reference_id": "reference_id4", - "catalog_object_id": "catalog_object_id0", - "catalog_object_type": "catalog_object_type0", - "state": "RESERVED_FOR_SALE" + "id": "id2", + "reference_id": "reference_id0", + "catalog_object_id": "catalog_object_id6", + "catalog_object_type": "catalog_object_type6", + "state": "SUPPORTED_BY_NEWER_VERSION" }, "adjustment": { - "id": "id0", - "reference_id": "reference_id8", - "from_state": "SOLD", - "to_state": "COMPOSED", - "location_id": "location_id4" + "id": "id4", + "reference_id": "reference_id2", + "from_state": "IN_TRANSIT_TO", + "to_state": "SOLD", + "location_id": "location_id8" }, "transfer": { - "id": "id4", - "reference_id": "reference_id8", - "state": "SUPPORTED_BY_NEWER_VERSION", - "from_location_id": "from_location_id6", - "to_location_id": "to_location_id4" + "id": "id8", + "reference_id": "reference_id6", + "state": "RESERVED_FOR_SALE", + "from_location_id": "from_location_id0", + "to_location_id": "to_location_id0" }, "measurement_unit": { "measurement_unit": { "custom_unit": { - "name": "name6", - "abbreviation": "abbreviation8" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "IMPERIAL_SQUARE_FOOT", - "length_unit": "METRIC_METER", - "volume_unit": "IMPERIAL_CUBIC_INCH", + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_LITER", "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 118 + "precision": 184 } } ] diff --git a/doc/models/batch-delete-catalog-objects-response.md b/doc/models/batch-delete-catalog-objects-response.md index bb0b2c26..00ab5f17 100644 --- a/doc/models/batch-delete-catalog-objects-response.md +++ b/doc/models/batch-delete-catalog-objects-response.md @@ -23,23 +23,11 @@ "AA27W3M2GGTF3H6AVPNB77CK" ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/batch-retrieve-catalog-objects-request.md b/doc/models/batch-retrieve-catalog-objects-request.md index 276e2cc8..797d475e 100644 --- a/doc/models/batch-retrieve-catalog-objects-request.md +++ b/doc/models/batch-retrieve-catalog-objects-request.md @@ -23,7 +23,7 @@ "W62UWFY35CWMYGVWK6TWJDNI", "AA27W3M2GGTF3H6AVPNB77CK" ], - "catalog_version": 126, + "catalog_version": 190, "include_deleted_objects": false } ``` diff --git a/doc/models/batch-retrieve-catalog-objects-response.md b/doc/models/batch-retrieve-catalog-objects-response.md index 798adcd3..5a1376c7 100644 --- a/doc/models/batch-retrieve-catalog-objects-response.md +++ b/doc/models/batch-retrieve-catalog-objects-response.md @@ -55,11 +55,11 @@ "version": 1479335124878, "custom_attribute_values": { "key0": { - "name": "name9", - "string_value": "string_value3", - "custom_attribute_definition_id": "custom_attribute_definition_id3", - "type": "SELECTION", - "number_value": "number_value9" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" }, "key1": { "name": "name8", @@ -71,8 +71,16 @@ }, "catalog_v1_ids": [ { - "catalog_v1_id": "catalog_v1_id2", - "location_id": "location_id2" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" + }, + { + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" + }, + { + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" } ] }, @@ -131,17 +139,28 @@ "version": 1479335124878, "custom_attribute_values": { "key0": { - "name": "name0", - "string_value": "string_value4", - "custom_attribute_definition_id": "custom_attribute_definition_id2", - "type": "NUMBER", - "number_value": "number_value0" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" + }, + "key1": { + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" } }, "catalog_v1_ids": [ { - "catalog_v1_id": "catalog_v1_id3", - "location_id": "location_id3" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" + }, + { + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" }, { "catalog_v1_id": "catalog_v1_id4", @@ -163,21 +182,24 @@ "version": 1479335124878, "custom_attribute_values": { "key0": { - "name": "name1", - "string_value": "string_value5", - "custom_attribute_definition_id": "custom_attribute_definition_id1", - "type": "SELECTION", - "number_value": "number_value1" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" + }, + "key1": { + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" } }, "catalog_v1_ids": [ { - "catalog_v1_id": "catalog_v1_id2", - "location_id": "location_id2" - }, - { - "catalog_v1_id": "catalog_v1_id3", - "location_id": "location_id3" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" } ] }, @@ -197,61 +219,46 @@ "version": 1479335124878, "custom_attribute_values": { "key0": { - "name": "name0", - "string_value": "string_value4", - "custom_attribute_definition_id": "custom_attribute_definition_id2", + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", "type": "STRING", - "number_value": "number_value0" + "number_value": "number_value8" }, "key1": { - "name": "name1", - "string_value": "string_value5", - "custom_attribute_definition_id": "custom_attribute_definition_id1", - "type": "SELECTION", - "number_value": "number_value1" - }, - "key2": { - "name": "name2", - "string_value": "string_value6", - "custom_attribute_definition_id": "custom_attribute_definition_id0", - "type": "NUMBER", - "number_value": "number_value2" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" } }, "catalog_v1_ids": [ - { - "catalog_v1_id": "catalog_v1_id3", - "location_id": "location_id3" - }, { "catalog_v1_id": "catalog_v1_id4", "location_id": "location_id4" - }, - { - "catalog_v1_id": "catalog_v1_id5", - "location_id": "location_id5" } ] } ], "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/batch-retrieve-inventory-changes-response.md b/doc/models/batch-retrieve-inventory-changes-response.md index 16849af7..f3c8283c 100644 --- a/doc/models/batch-retrieve-inventory-changes-response.md +++ b/doc/models/batch-retrieve-inventory-changes-response.md @@ -38,36 +38,36 @@ }, "type": "PHYSICAL_COUNT", "adjustment": { - "id": "id0", - "reference_id": "reference_id8", - "from_state": "SOLD", - "to_state": "COMPOSED", - "location_id": "location_id4" + "id": "id4", + "reference_id": "reference_id2", + "from_state": "IN_TRANSIT_TO", + "to_state": "SOLD", + "location_id": "location_id8" }, "transfer": { - "id": "id4", - "reference_id": "reference_id8", - "state": "SUPPORTED_BY_NEWER_VERSION", - "from_location_id": "from_location_id6", - "to_location_id": "to_location_id4" + "id": "id8", + "reference_id": "reference_id6", + "state": "RESERVED_FOR_SALE", + "from_location_id": "from_location_id0", + "to_location_id": "to_location_id0" }, "measurement_unit": { "measurement_unit": { "custom_unit": { - "name": "name6", - "abbreviation": "abbreviation8" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "IMPERIAL_SQUARE_FOOT", - "length_unit": "METRIC_METER", - "volume_unit": "IMPERIAL_CUBIC_INCH", + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_LITER", "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 118 + "precision": 184 } } ], "errors": [], - "cursor": "cursor6" + "cursor": "cursor2" } ``` diff --git a/doc/models/batch-retrieve-inventory-counts-request.md b/doc/models/batch-retrieve-inventory-counts-request.md index acbe04b8..abc52c79 100644 --- a/doc/models/batch-retrieve-inventory-counts-request.md +++ b/doc/models/batch-retrieve-inventory-counts-request.md @@ -27,10 +27,10 @@ "59TNP9SA8VGDA" ], "updated_after": "2016-11-16T00:00:00.000Z", - "cursor": "cursor6", + "cursor": "cursor2", "states": [ - "COMPOSED", - "DECOMPOSED" + "RESERVED_FOR_SALE", + "RETURNED_BY_CUSTOMER" ] } ``` diff --git a/doc/models/batch-retrieve-inventory-counts-response.md b/doc/models/batch-retrieve-inventory-counts-response.md index b10029d0..a7011605 100644 --- a/doc/models/batch-retrieve-inventory-counts-response.md +++ b/doc/models/batch-retrieve-inventory-counts-response.md @@ -28,7 +28,7 @@ } ], "errors": [], - "cursor": "cursor6" + "cursor": "cursor8" } ``` diff --git a/doc/models/batch-retrieve-orders-response.md b/doc/models/batch-retrieve-orders-response.md index 2d4b80a2..a28db992 100644 --- a/doc/models/batch-retrieve-orders-response.md +++ b/doc/models/batch-retrieve-orders-response.md @@ -38,20 +38,20 @@ a request to the `BatchRetrieveOrders` endpoint. "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name1", - "abbreviation": "abbreviation3" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "METRIC_SQUARE_CENTIMETER", - "length_unit": "IMPERIAL_MILE", - "volume_unit": "METRIC_MILLILITER", - "weight_unit": "IMPERIAL_POUND" + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_LITER", + "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 217, - "catalog_object_id": "catalog_object_id7", - "catalog_version": 105 + "precision": 54, + "catalog_object_id": "catalog_object_id0", + "catalog_version": 12 }, - "note": "note1", - "catalog_object_id": "catalog_object_id3" + "note": "note4", + "catalog_object_id": "catalog_object_id2" }, { "base_price_money": { @@ -71,16 +71,16 @@ a request to the `BatchRetrieveOrders` endpoint. "name": "name2", "abbreviation": "abbreviation4" }, - "area_unit": "METRIC_SQUARE_METER", - "length_unit": "IMPERIAL_YARD", + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", "volume_unit": "METRIC_LITER", "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 218, - "catalog_object_id": "catalog_object_id6", - "catalog_version": 104 + "precision": 54, + "catalog_object_id": "catalog_object_id0", + "catalog_version": 12 }, - "note": "note0", + "note": "note4", "catalog_object_id": "catalog_object_id2" } ], @@ -91,29 +91,29 @@ a request to the `BatchRetrieveOrders` endpoint. "currency": "USD" }, "source": { - "name": "name8" + "name": "name4" }, - "customer_id": "customer_id4" + "customer_id": "customer_id0" } ], "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/batch-upsert-catalog-objects-request.md b/doc/models/batch-upsert-catalog-objects-request.md index 618706bf..e86eacd5 100644 --- a/doc/models/batch-upsert-catalog-objects-request.md +++ b/doc/models/batch-upsert-catalog-objects-request.md @@ -47,44 +47,37 @@ }, "present_at_all_locations": true, "type": "ITEM", - "updated_at": "updated_at0", - "version": 244, + "updated_at": "updated_at2", + "version": 164, "is_deleted": false, "custom_attribute_values": { "key0": { - "name": "name5", - "string_value": "string_value9", - "custom_attribute_definition_id": "custom_attribute_definition_id7", - "type": "BOOLEAN", - "number_value": "number_value5" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" }, "key1": { - "name": "name6", - "string_value": "string_value0", - "custom_attribute_definition_id": "custom_attribute_definition_id6", + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", "type": "STRING", - "number_value": "number_value6" - }, - "key2": { - "name": "name7", - "string_value": "string_value1", - "custom_attribute_definition_id": "custom_attribute_definition_id5", - "type": "SELECTION", - "number_value": "number_value7" + "number_value": "number_value8" } }, "catalog_v1_ids": [ { - "catalog_v1_id": "catalog_v1_id8", - "location_id": "location_id8" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" }, { - "catalog_v1_id": "catalog_v1_id9", - "location_id": "location_id9" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" }, { - "catalog_v1_id": "catalog_v1_id0", - "location_id": "location_id0" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" } ] }, @@ -130,29 +123,37 @@ }, "present_at_all_locations": true, "type": "ITEM", - "updated_at": "updated_at9", - "version": 245, - "is_deleted": true, + "updated_at": "updated_at2", + "version": 164, + "is_deleted": false, "custom_attribute_values": { "key0": { - "name": "name4", - "string_value": "string_value8", - "custom_attribute_definition_id": "custom_attribute_definition_id8", - "type": "NUMBER", - "number_value": "number_value4" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" }, "key1": { - "name": "name5", - "string_value": "string_value9", - "custom_attribute_definition_id": "custom_attribute_definition_id7", - "type": "BOOLEAN", - "number_value": "number_value5" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" } }, "catalog_v1_ids": [ { - "catalog_v1_id": "catalog_v1_id9", - "location_id": "location_id9" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" + }, + { + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" + }, + { + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" } ] }, @@ -163,26 +164,37 @@ "id": "#Beverages", "present_at_all_locations": true, "type": "CATEGORY", - "updated_at": "updated_at8", - "version": 246, + "updated_at": "updated_at2", + "version": 164, "is_deleted": false, "custom_attribute_values": { "key0": { - "name": "name3", - "string_value": "string_value7", - "custom_attribute_definition_id": "custom_attribute_definition_id9", - "type": "SELECTION", - "number_value": "number_value3" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" + }, + "key1": { + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" } }, "catalog_v1_ids": [ { - "catalog_v1_id": "catalog_v1_id0", - "location_id": "location_id0" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" }, { - "catalog_v1_id": "catalog_v1_id1", - "location_id": "location_id1" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" + }, + { + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" } ] }, @@ -198,44 +210,37 @@ "percentage": "5.0" }, "type": "TAX", - "updated_at": "updated_at7", - "version": 247, - "is_deleted": true, + "updated_at": "updated_at2", + "version": 164, + "is_deleted": false, "custom_attribute_values": { "key0": { - "name": "name2", - "string_value": "string_value6", - "custom_attribute_definition_id": "custom_attribute_definition_id0", + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", "type": "STRING", - "number_value": "number_value2" + "number_value": "number_value8" }, "key1": { - "name": "name3", - "string_value": "string_value7", - "custom_attribute_definition_id": "custom_attribute_definition_id9", - "type": "SELECTION", - "number_value": "number_value3" - }, - "key2": { - "name": "name4", - "string_value": "string_value8", - "custom_attribute_definition_id": "custom_attribute_definition_id8", - "type": "NUMBER", - "number_value": "number_value4" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" } }, "catalog_v1_ids": [ { - "catalog_v1_id": "catalog_v1_id1", - "location_id": "location_id1" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" }, { - "catalog_v1_id": "catalog_v1_id2", - "location_id": "location_id2" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" }, { - "catalog_v1_id": "catalog_v1_id3", - "location_id": "location_id3" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" } ] } diff --git a/doc/models/batch-upsert-catalog-objects-response.md b/doc/models/batch-upsert-catalog-objects-response.md index a8c89407..f11f37d7 100644 --- a/doc/models/batch-upsert-catalog-objects-response.md +++ b/doc/models/batch-upsert-catalog-objects-response.md @@ -88,11 +88,11 @@ "version": 1494442119798, "custom_attribute_values": { "key0": { - "name": "name9", - "string_value": "string_value3", - "custom_attribute_definition_id": "custom_attribute_definition_id3", - "type": "SELECTION", - "number_value": "number_value9" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" }, "key1": { "name": "name8", @@ -104,8 +104,16 @@ }, "catalog_v1_ids": [ { - "catalog_v1_id": "catalog_v1_id2", - "location_id": "location_id2" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" + }, + { + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" + }, + { + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" } ] }, @@ -166,17 +174,28 @@ "version": 1494442119798, "custom_attribute_values": { "key0": { - "name": "name0", - "string_value": "string_value4", - "custom_attribute_definition_id": "custom_attribute_definition_id2", - "type": "NUMBER", - "number_value": "number_value0" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" + }, + "key1": { + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" } }, "catalog_v1_ids": [ { - "catalog_v1_id": "catalog_v1_id3", - "location_id": "location_id3" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" + }, + { + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" }, { "catalog_v1_id": "catalog_v1_id4", @@ -196,25 +215,18 @@ "version": 1494442119798, "custom_attribute_values": { "key0": { - "name": "name1", - "string_value": "string_value5", - "custom_attribute_definition_id": "custom_attribute_definition_id1", - "type": "BOOLEAN", - "number_value": "number_value1" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" }, "key1": { - "name": "name0", - "string_value": "string_value4", - "custom_attribute_definition_id": "custom_attribute_definition_id2", - "type": "NUMBER", - "number_value": "number_value0" - }, - "key2": { - "name": "name9", - "string_value": "string_value3", - "custom_attribute_definition_id": "custom_attribute_definition_id3", - "type": "SELECTION", - "number_value": "number_value9" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" } }, "catalog_v1_ids": [ @@ -223,12 +235,12 @@ "location_id": "location_id4" }, { - "catalog_v1_id": "catalog_v1_id5", - "location_id": "location_id5" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" }, { - "catalog_v1_id": "catalog_v1_id6", - "location_id": "location_id6" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" } ] }, @@ -249,49 +261,45 @@ "version": 1494442119798, "custom_attribute_values": { "key0": { - "name": "name2", - "string_value": "string_value6", - "custom_attribute_definition_id": "custom_attribute_definition_id0", + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", "type": "STRING", - "number_value": "number_value2" + "number_value": "number_value8" }, "key1": { - "name": "name1", - "string_value": "string_value5", - "custom_attribute_definition_id": "custom_attribute_definition_id1", - "type": "BOOLEAN", - "number_value": "number_value1" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" } }, "catalog_v1_ids": [ { - "catalog_v1_id": "catalog_v1_id5", - "location_id": "location_id5" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" + }, + { + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" + }, + { + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" } ] } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], - "updated_at": "updated_at4" + "updated_at": "updated_at6" } ``` diff --git a/doc/models/booking-creator-details.md b/doc/models/booking-creator-details.md index 66fd4c11..7e0bbb58 100644 --- a/doc/models/booking-creator-details.md +++ b/doc/models/booking-creator-details.md @@ -20,8 +20,8 @@ Information about a booking creator. ```json { "creator_type": "TEAM_MEMBER", - "team_member_id": "team_member_id0", - "customer_id": "customer_id8" + "team_member_id": "team_member_id4", + "customer_id": "customer_id2" } ``` diff --git a/doc/models/booking-custom-attribute-delete-request.md b/doc/models/booking-custom-attribute-delete-request.md index fd8cbfda..b2c94264 100644 --- a/doc/models/booking-custom-attribute-delete-request.md +++ b/doc/models/booking-custom-attribute-delete-request.md @@ -19,8 +19,8 @@ request. An individual request contains a booking ID, the custom attribute to de ```json { - "booking_id": "booking_id4", - "key": "key0" + "booking_id": "booking_id0", + "key": "key6" } ``` diff --git a/doc/models/booking-custom-attribute-upsert-request.md b/doc/models/booking-custom-attribute-upsert-request.md index 7c6a79af..5caa7322 100644 --- a/doc/models/booking-custom-attribute-upsert-request.md +++ b/doc/models/booking-custom-attribute-upsert-request.md @@ -21,7 +21,7 @@ and an optional idempotency key. ```json { - "booking_id": "booking_id4", + "booking_id": "booking_id2", "custom_attribute": { "key": "key2", "value": { @@ -31,17 +31,17 @@ and an optional idempotency key. "version": 102, "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key2", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name2", - "description": "description2", - "visibility": "VISIBILITY_READ_ONLY" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } }, - "idempotency_key": "idempotency_key6" + "idempotency_key": "idempotency_key4" } ``` diff --git a/doc/models/booking-custom-attribute-upsert-response.md b/doc/models/booking-custom-attribute-upsert-response.md index e51e2441..77d05970 100644 --- a/doc/models/booking-custom-attribute-upsert-response.md +++ b/doc/models/booking-custom-attribute-upsert-response.md @@ -19,7 +19,7 @@ Represents a response for an individual upsert request in a [BulkUpsertBookingCu ```json { - "booking_id": "booking_id4", + "booking_id": "booking_id6", "custom_attribute": { "key": "key2", "value": { @@ -29,34 +29,34 @@ Represents a response for an individual upsert request in a [BulkUpsertBookingCu "version": 102, "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key2", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name2", - "description": "description2", - "visibility": "VISIBILITY_READ_ONLY" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/booking.md b/doc/models/booking.md index a63d5244..eabd5aae 100644 --- a/doc/models/booking.md +++ b/doc/models/booking.md @@ -33,11 +33,11 @@ at a given location to a requesting customer in one or more appointment segments ```json { - "id": "id0", - "version": 172, - "status": "CANCELLED_BY_SELLER", + "id": "id4", + "version": 92, + "status": "PENDING", "created_at": "created_at2", - "updated_at": "updated_at4" + "updated_at": "updated_at0" } ``` diff --git a/doc/models/break-type.md b/doc/models/break-type.md index 21c6279b..387b97cf 100644 --- a/doc/models/break-type.md +++ b/doc/models/break-type.md @@ -25,14 +25,14 @@ instances on a `Shift`. ```json { - "id": "id0", - "location_id": "location_id4", - "break_name": "break_name8", - "expected_duration": "expected_duration4", + "id": "id4", + "location_id": "location_id8", + "break_name": "break_name4", + "expected_duration": "expected_duration0", "is_paid": false, - "version": 172, - "created_at": "created_at2", - "updated_at": "updated_at4" + "version": 236, + "created_at": "created_at8", + "updated_at": "updated_at0" } ``` diff --git a/doc/models/break.md b/doc/models/break.md index e80b9806..aca71b0c 100644 --- a/doc/models/break.md +++ b/doc/models/break.md @@ -23,12 +23,12 @@ A record of an employee's break during a shift. ```json { - "id": "id0", - "start_at": "start_at2", - "end_at": "end_at0", - "break_type_id": "break_type_id6", - "name": "name0", - "expected_duration": "expected_duration4", + "id": "id6", + "start_at": "start_at8", + "end_at": "end_at4", + "break_type_id": "break_type_id2", + "name": "name6", + "expected_duration": "expected_duration8", "is_paid": false } ``` diff --git a/doc/models/bulk-create-team-members-request.md b/doc/models/bulk-create-team-members-request.md index 9b9a73e5..d5aebad2 100644 --- a/doc/models/bulk-create-team-members-request.md +++ b/doc/models/bulk-create-team-members-request.md @@ -32,11 +32,11 @@ Represents a bulk create request for `TeamMember` objects. "given_name": "Joe", "phone_number": "+14159283333", "reference_id": "reference_id_1", - "id": "id3", - "is_owner": true, - "status": "INACTIVE" + "id": "id6", + "is_owner": false, + "status": "ACTIVE" }, - "idempotency_key": "idempotency_key3" + "idempotency_key": "idempotency_key4" }, "idempotency-key-2": { "team_member": { @@ -48,7 +48,7 @@ Represents a bulk create request for `TeamMember` objects. "given_name": "Jane", "phone_number": "+14159223334", "reference_id": "reference_id_2", - "id": "id4", + "id": "id6", "is_owner": false, "status": "ACTIVE" }, diff --git a/doc/models/bulk-create-team-members-response.md b/doc/models/bulk-create-team-members-response.md index 61e3aefe..89342b26 100644 --- a/doc/models/bulk-create-team-members-response.md +++ b/doc/models/bulk-create-team-members-response.md @@ -39,22 +39,16 @@ Represents a response from a bulk create request containing the created `TeamMem }, "errors": [ { - "category": "PAYMENT_METHOD_ERROR", - "code": "REQUEST_TIMEOUT", - "detail": "detail8", - "field": "field6" - }, - { - "category": "REFUND_ERROR", - "code": "CONFLICT", - "detail": "detail9", - "field": "field7" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "GONE", - "detail": "detail0", - "field": "field8" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] }, @@ -74,32 +68,26 @@ Represents a response from a bulk create request containing the created `TeamMem }, "errors": [ { - "category": "REFUND_ERROR", - "code": "CONFLICT", - "detail": "detail9", - "field": "field7" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" + }, + { + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/bulk-create-vendors-request.md b/doc/models/bulk-create-vendors-request.md index 34328624..a5f9ca24 100644 --- a/doc/models/bulk-create-vendors-request.md +++ b/doc/models/bulk-create-vendors-request.md @@ -19,23 +19,10 @@ Represents an input to a call to [BulkCreateVendors](../../doc/api/vendors.md#bu { "vendors": { "key0": { - "id": "id9", - "created_at": "created_at7", - "updated_at": "updated_at5", - "name": "name9", - "address": { - "address_line_1": "address_line_15", - "address_line_2": "address_line_25", - "address_line_3": "address_line_31", - "locality": "locality5", - "sublocality": "sublocality5" - } - }, - "key1": { - "id": "id0", - "created_at": "created_at8", + "id": "id8", + "created_at": "created_at6", "updated_at": "updated_at4", - "name": "name0", + "name": "name8", "address": { "address_line_1": "address_line_16", "address_line_2": "address_line_26", @@ -43,19 +30,6 @@ Represents an input to a call to [BulkCreateVendors](../../doc/api/vendors.md#bu "locality": "locality6", "sublocality": "sublocality6" } - }, - "key2": { - "id": "id1", - "created_at": "created_at9", - "updated_at": "updated_at3", - "name": "name1", - "address": { - "address_line_1": "address_line_17", - "address_line_2": "address_line_27", - "address_line_3": "address_line_33", - "locality": "locality7", - "sublocality": "sublocality7" - } } } } diff --git a/doc/models/bulk-create-vendors-response.md b/doc/models/bulk-create-vendors-response.md index 8c312e2d..998bad69 100644 --- a/doc/models/bulk-create-vendors-response.md +++ b/doc/models/bulk-create-vendors-response.md @@ -71,35 +71,35 @@ Represents an output from a call to [BulkCreateVendors](../../doc/api/vendors.md "key0": { "errors": [ { - "category": "PAYMENT_METHOD_ERROR", - "code": "INVALID_CARD", - "detail": "detail8", - "field": "field6" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "REFUND_ERROR", - "code": "PAYMENT_AMOUNT_MISMATCH", - "detail": "detail9", - "field": "field7" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "GENERIC_DECLINE", - "detail": "detail0", - "field": "field8" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], "vendor": { - "id": "id3", - "created_at": "created_at1", - "updated_at": "updated_at9", - "name": "name3", + "id": "id6", + "created_at": "created_at4", + "updated_at": "updated_at2", + "name": "name6", "address": { - "address_line_1": "address_line_19", - "address_line_2": "address_line_29", - "address_line_3": "address_line_35", - "locality": "locality9", - "sublocality": "sublocality9" + "address_line_1": "address_line_16", + "address_line_2": "address_line_26", + "address_line_3": "address_line_32", + "locality": "locality6", + "sublocality": "sublocality6" } } } diff --git a/doc/models/bulk-delete-booking-custom-attributes-request.md b/doc/models/bulk-delete-booking-custom-attributes-request.md index 527972f1..fc75ab33 100644 --- a/doc/models/bulk-delete-booking-custom-attributes-request.md +++ b/doc/models/bulk-delete-booking-custom-attributes-request.md @@ -21,14 +21,6 @@ Represents a [BulkDeleteBookingCustomAttributes](../../doc/api/booking-custom-at "key0": { "booking_id": "booking_id4", "key": "key0" - }, - "key1": { - "booking_id": "booking_id5", - "key": "key1" - }, - "key2": { - "booking_id": "booking_id6", - "key": "key2" } } } diff --git a/doc/models/bulk-delete-location-custom-attributes-request-location-custom-attribute-delete-request.md b/doc/models/bulk-delete-location-custom-attributes-request-location-custom-attribute-delete-request.md index 0b87a0bf..bad55207 100644 --- a/doc/models/bulk-delete-location-custom-attributes-request-location-custom-attribute-delete-request.md +++ b/doc/models/bulk-delete-location-custom-attributes-request-location-custom-attribute-delete-request.md @@ -19,7 +19,7 @@ and optional key of the associated custom attribute definition. ```json { - "key": "key0" + "key": "key8" } ``` diff --git a/doc/models/bulk-delete-location-custom-attributes-response.md b/doc/models/bulk-delete-location-custom-attributes-response.md index fc232820..cadcdd66 100644 --- a/doc/models/bulk-delete-location-custom-attributes-response.md +++ b/doc/models/bulk-delete-location-custom-attributes-response.md @@ -34,23 +34,11 @@ which contains a map of responses that each corresponds to an individual delete } }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/bulk-delete-merchant-custom-attributes-response.md b/doc/models/bulk-delete-merchant-custom-attributes-response.md index d7517218..3594d980 100644 --- a/doc/models/bulk-delete-merchant-custom-attributes-response.md +++ b/doc/models/bulk-delete-merchant-custom-attributes-response.md @@ -30,23 +30,17 @@ which contains a map of responses that each corresponds to an individual delete } }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/bulk-delete-order-custom-attributes-request-delete-custom-attribute.md b/doc/models/bulk-delete-order-custom-attributes-request-delete-custom-attribute.md index 7736f50d..2cecded4 100644 --- a/doc/models/bulk-delete-order-custom-attributes-request-delete-custom-attribute.md +++ b/doc/models/bulk-delete-order-custom-attributes-request-delete-custom-attribute.md @@ -18,7 +18,7 @@ Represents one delete within the bulk operation. ```json { - "key": "key0", + "key": "key2", "order_id": "order_id6" } ``` diff --git a/doc/models/bulk-delete-order-custom-attributes-response.md b/doc/models/bulk-delete-order-custom-attributes-response.md index 1ffd55ea..16c25caa 100644 --- a/doc/models/bulk-delete-order-custom-attributes-response.md +++ b/doc/models/bulk-delete-order-custom-attributes-response.md @@ -22,10 +22,16 @@ Represents a response from deleting one or more order custom attributes. "cover-count": { "errors": [ { - "category": "REFUND_ERROR", - "code": "INVALID_ENUM_VALUE", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" + }, + { + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] }, @@ -33,37 +39,25 @@ Represents a response from deleting one or more order custom attributes. "errors": [ { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "INVALID_CONTENT_TYPE", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "INVALID_FORM_VALUE", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/bulk-retrieve-bookings-request.md b/doc/models/bulk-retrieve-bookings-request.md index 70107b28..fc710e90 100644 --- a/doc/models/bulk-retrieve-bookings-request.md +++ b/doc/models/bulk-retrieve-bookings-request.md @@ -18,7 +18,9 @@ Request payload for bulk retrieval of bookings. ```json { "booking_ids": [ - "booking_ids4" + "booking_ids8", + "booking_ids9", + "booking_ids0" ] } ``` diff --git a/doc/models/bulk-retrieve-bookings-response.md b/doc/models/bulk-retrieve-bookings-response.md index da3423e4..eab55044 100644 --- a/doc/models/bulk-retrieve-bookings-response.md +++ b/doc/models/bulk-retrieve-bookings-response.md @@ -52,11 +52,11 @@ Response payload for bulk retrieval of bookings. } ], "booking": { - "id": "id8", - "version": 86, + "id": "id4", + "version": 156, "status": "CANCELLED_BY_SELLER", - "created_at": "created_at6", - "updated_at": "updated_at6" + "created_at": "created_at2", + "updated_at": "updated_at0" } }, "tdegug1fqni3wh": { diff --git a/doc/models/bulk-retrieve-team-member-booking-profiles-request.md b/doc/models/bulk-retrieve-team-member-booking-profiles-request.md new file mode 100644 index 00000000..a14fa8fc --- /dev/null +++ b/doc/models/bulk-retrieve-team-member-booking-profiles-request.md @@ -0,0 +1,26 @@ + +# Bulk Retrieve Team Member Booking Profiles Request + +Request payload for the [BulkRetrieveTeamMemberBookingProfiles](../../doc/api/bookings.md#bulk-retrieve-team-member-booking-profiles) endpoint. + +## Structure + +`BulkRetrieveTeamMemberBookingProfilesRequest` + +## Fields + +| Name | Type | Tags | Description | +| --- | --- | --- | --- | +| `teamMemberIds` | `string[]` | Required | A non-empty list of IDs of team members whose booking profiles you want to retrieve. | + +## Example (as JSON) + +```json +{ + "team_member_ids": [ + "team_member_ids1", + "team_member_ids2" + ] +} +``` + diff --git a/doc/models/bulk-retrieve-team-member-booking-profiles-response.md b/doc/models/bulk-retrieve-team-member-booking-profiles-response.md new file mode 100644 index 00000000..c4a2465a --- /dev/null +++ b/doc/models/bulk-retrieve-team-member-booking-profiles-response.md @@ -0,0 +1,59 @@ + +# Bulk Retrieve Team Member Booking Profiles Response + +Response payload for the [BulkRetrieveTeamMemberBookingProfiles](../../doc/api/bookings.md#bulk-retrieve-team-member-booking-profiles) endpoint. + +## Structure + +`BulkRetrieveTeamMemberBookingProfilesResponse` + +## Fields + +| Name | Type | Tags | Description | +| --- | --- | --- | --- | +| `teamMemberBookingProfiles` | [`Record \| undefined`](../../doc/models/retrieve-team-member-booking-profile-response.md) | Optional | The returned team members' booking profiles, as a map with `team_member_id` as the key and [TeamMemberBookingProfile](entity:TeamMemberBookingProfile) the value. | +| `errors` | [`Error[] \| undefined`](../../doc/models/error.md) | Optional | Errors that occurred during the request. | + +## Example (as JSON) + +```json +{ + "errors": [], + "team_member_booking_profiles": { + "TMXUrsBWWcHTt79t": { + "errors": [ + { + "category": "INVALID_REQUEST_ERROR", + "code": "NOT_FOUND", + "detail": "Resource not found.", + "field": "field4" + } + ], + "team_member_booking_profile": { + "team_member_id": "team_member_id2", + "description": "description2", + "display_name": "display_name2", + "is_bookable": false, + "profile_image_url": "profile_image_url8" + } + }, + "TMaJcbiRqPIGZuS9": { + "errors": [], + "team_member_booking_profile": { + "display_name": "Sandbox Staff 1", + "is_bookable": true, + "team_member_id": "TMaJcbiRqPIGZuS9" + } + }, + "TMtdegug1fqni3wh": { + "errors": [], + "team_member_booking_profile": { + "display_name": "Sandbox Staff 2", + "is_bookable": true, + "team_member_id": "TMtdegug1fqni3wh" + } + } + } +} +``` + diff --git a/doc/models/bulk-retrieve-vendors-response.md b/doc/models/bulk-retrieve-vendors-response.md index b823c26f..b6420654 100644 --- a/doc/models/bulk-retrieve-vendors-response.md +++ b/doc/models/bulk-retrieve-vendors-response.md @@ -53,35 +53,70 @@ Represents an output from a call to [BulkRetrieveVendors](../../doc/api/vendors. "key0": { "errors": [ { - "category": "PAYMENT_METHOD_ERROR", - "code": "INVALID_CARD", - "detail": "detail8", - "field": "field6" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "REFUND_ERROR", - "code": "PAYMENT_AMOUNT_MISMATCH", - "detail": "detail9", - "field": "field7" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" + }, + { + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" + } + ], + "vendor": { + "id": "id6", + "created_at": "created_at4", + "updated_at": "updated_at2", + "name": "name6", + "address": { + "address_line_1": "address_line_16", + "address_line_2": "address_line_26", + "address_line_3": "address_line_32", + "locality": "locality6", + "sublocality": "sublocality6" + } + } + }, + "key1": { + "errors": [ + { + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" + }, + { + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "GENERIC_DECLINE", - "detail": "detail0", - "field": "field8" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], "vendor": { - "id": "id3", - "created_at": "created_at1", - "updated_at": "updated_at9", - "name": "name3", + "id": "id6", + "created_at": "created_at4", + "updated_at": "updated_at2", + "name": "name6", "address": { - "address_line_1": "address_line_19", - "address_line_2": "address_line_29", - "address_line_3": "address_line_35", - "locality": "locality9", - "sublocality": "sublocality9" + "address_line_1": "address_line_16", + "address_line_2": "address_line_26", + "address_line_3": "address_line_32", + "locality": "locality6", + "sublocality": "sublocality6" } } } diff --git a/doc/models/bulk-update-team-members-request.md b/doc/models/bulk-update-team-members-request.md index 1456c986..efca21ab 100644 --- a/doc/models/bulk-update-team-members-request.md +++ b/doc/models/bulk-update-team-members-request.md @@ -30,7 +30,7 @@ Represents a bulk update request for `TeamMember` objects. "phone_number": "+14159223334", "reference_id": "reference_id_2", "status": "ACTIVE", - "id": "id3" + "id": "id6" } }, "fpgteZNMaf0qOK-a4t6P": { @@ -49,7 +49,7 @@ Represents a bulk update request for `TeamMember` objects. "phone_number": "+14159283333", "reference_id": "reference_id_1", "status": "ACTIVE", - "id": "id4" + "id": "id6" } } } diff --git a/doc/models/bulk-update-team-members-response.md b/doc/models/bulk-update-team-members-response.md index d8bd16b4..d5fa96f0 100644 --- a/doc/models/bulk-update-team-members-response.md +++ b/doc/models/bulk-update-team-members-response.md @@ -37,22 +37,16 @@ Represents a response from a bulk update request containing the updated `TeamMem }, "errors": [ { - "category": "PAYMENT_METHOD_ERROR", - "code": "REQUEST_TIMEOUT", - "detail": "detail8", - "field": "field6" - }, - { - "category": "REFUND_ERROR", - "code": "CONFLICT", - "detail": "detail9", - "field": "field7" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "GONE", - "detail": "detail0", - "field": "field8" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] }, @@ -78,32 +72,26 @@ Represents a response from a bulk update request containing the updated `TeamMem }, "errors": [ { - "category": "REFUND_ERROR", - "code": "CONFLICT", - "detail": "detail9", - "field": "field7" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" + }, + { + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/bulk-update-vendors-request.md b/doc/models/bulk-update-vendors-request.md index 3f71ec32..fc0094e5 100644 --- a/doc/models/bulk-update-vendors-request.md +++ b/doc/models/bulk-update-vendors-request.md @@ -19,50 +19,50 @@ Represents an input to a call to [BulkUpdateVendors](../../doc/api/vendors.md#bu { "vendors": { "key0": { - "idempotency_key": "idempotency_key5", + "idempotency_key": "idempotency_key4", "vendor": { - "id": "id5", - "created_at": "created_at3", - "updated_at": "updated_at1", - "name": "name5", + "id": "id6", + "created_at": "created_at4", + "updated_at": "updated_at2", + "name": "name6", "address": { - "address_line_1": "address_line_11", - "address_line_2": "address_line_21", - "address_line_3": "address_line_37", - "locality": "locality1", - "sublocality": "sublocality1" + "address_line_1": "address_line_16", + "address_line_2": "address_line_26", + "address_line_3": "address_line_32", + "locality": "locality6", + "sublocality": "sublocality6" } } }, "key1": { - "idempotency_key": "idempotency_key6", + "idempotency_key": "idempotency_key4", "vendor": { "id": "id6", "created_at": "created_at4", "updated_at": "updated_at2", "name": "name6", "address": { - "address_line_1": "address_line_12", - "address_line_2": "address_line_22", - "address_line_3": "address_line_38", - "locality": "locality2", - "sublocality": "sublocality2" + "address_line_1": "address_line_16", + "address_line_2": "address_line_26", + "address_line_3": "address_line_32", + "locality": "locality6", + "sublocality": "sublocality6" } } }, "key2": { - "idempotency_key": "idempotency_key7", + "idempotency_key": "idempotency_key4", "vendor": { - "id": "id7", - "created_at": "created_at5", - "updated_at": "updated_at3", - "name": "name7", + "id": "id6", + "created_at": "created_at4", + "updated_at": "updated_at2", + "name": "name6", "address": { - "address_line_1": "address_line_13", - "address_line_2": "address_line_23", - "address_line_3": "address_line_39", - "locality": "locality3", - "sublocality": "sublocality3" + "address_line_1": "address_line_16", + "address_line_2": "address_line_26", + "address_line_3": "address_line_32", + "locality": "locality6", + "sublocality": "sublocality6" } } } diff --git a/doc/models/bulk-update-vendors-response.md b/doc/models/bulk-update-vendors-response.md index 3dd9ce04..f31a5522 100644 --- a/doc/models/bulk-update-vendors-response.md +++ b/doc/models/bulk-update-vendors-response.md @@ -72,58 +72,122 @@ Represents an output from a call to [BulkUpdateVendors](../../doc/api/vendors.md } }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], "responses": { "key0": { "errors": [ { - "category": "PAYMENT_METHOD_ERROR", - "code": "INVALID_CARD", - "detail": "detail8", - "field": "field6" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" + }, + { + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "REFUND_ERROR", - "code": "PAYMENT_AMOUNT_MISMATCH", - "detail": "detail9", - "field": "field7" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" + } + ], + "vendor": { + "id": "id6", + "created_at": "created_at4", + "updated_at": "updated_at2", + "name": "name6", + "address": { + "address_line_1": "address_line_16", + "address_line_2": "address_line_26", + "address_line_3": "address_line_32", + "locality": "locality6", + "sublocality": "sublocality6" + } + } + }, + "key1": { + "errors": [ + { + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" + }, + { + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" + }, + { + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" + } + ], + "vendor": { + "id": "id6", + "created_at": "created_at4", + "updated_at": "updated_at2", + "name": "name6", + "address": { + "address_line_1": "address_line_16", + "address_line_2": "address_line_26", + "address_line_3": "address_line_32", + "locality": "locality6", + "sublocality": "sublocality6" + } + } + }, + "key2": { + "errors": [ + { + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" + }, + { + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "GENERIC_DECLINE", - "detail": "detail0", - "field": "field8" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], "vendor": { - "id": "id3", - "created_at": "created_at1", - "updated_at": "updated_at9", - "name": "name3", + "id": "id6", + "created_at": "created_at4", + "updated_at": "updated_at2", + "name": "name6", "address": { - "address_line_1": "address_line_19", - "address_line_2": "address_line_29", - "address_line_3": "address_line_35", - "locality": "locality9", - "sublocality": "sublocality9" + "address_line_1": "address_line_16", + "address_line_2": "address_line_26", + "address_line_3": "address_line_32", + "locality": "locality6", + "sublocality": "sublocality6" } } } diff --git a/doc/models/bulk-upsert-booking-custom-attributes-request.md b/doc/models/bulk-upsert-booking-custom-attributes-request.md index 25a937d7..08c59f24 100644 --- a/doc/models/bulk-upsert-booking-custom-attributes-request.md +++ b/doc/models/bulk-upsert-booking-custom-attributes-request.md @@ -21,59 +21,36 @@ Represents a [BulkUpsertBookingCustomAttributes](../../doc/api/booking-custom-at "key0": { "booking_id": "booking_id4", "custom_attribute": { - "key": "key8", + "key": "key2", "value": { "key1": "val1", "key2": "val2" }, - "version": 82, - "visibility": "VISIBILITY_READ_WRITE_VALUES", + "version": 102, + "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key8", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name8", - "description": "description8", + "name": "name0", + "description": "description0", "visibility": "VISIBILITY_HIDDEN" } }, "idempotency_key": "idempotency_key6" }, "key1": { - "booking_id": "booking_id5", + "booking_id": "booking_id4", "custom_attribute": { - "key": "key9", + "key": "key2", "value": { "key1": "val1", "key2": "val2" }, - "version": 83, + "version": 102, "visibility": "VISIBILITY_READ_ONLY", - "definition": { - "key": "key9", - "schema": { - "key1": "val1", - "key2": "val2" - }, - "name": "name9", - "description": "description9", - "visibility": "VISIBILITY_READ_ONLY" - } - }, - "idempotency_key": "idempotency_key7" - }, - "key2": { - "booking_id": "booking_id6", - "custom_attribute": { - "key": "key0", - "value": { - "key1": "val1", - "key2": "val2" - }, - "version": 84, - "visibility": "VISIBILITY_HIDDEN", "definition": { "key": "key0", "schema": { @@ -82,10 +59,10 @@ Represents a [BulkUpsertBookingCustomAttributes](../../doc/api/booking-custom-at }, "name": "name0", "description": "description0", - "visibility": "VISIBILITY_READ_WRITE_VALUES" + "visibility": "VISIBILITY_HIDDEN" } }, - "idempotency_key": "idempotency_key8" + "idempotency_key": "idempotency_key6" } } } diff --git a/doc/models/bulk-upsert-booking-custom-attributes-response.md b/doc/models/bulk-upsert-booking-custom-attributes-response.md index 1f34f14b..998a433b 100644 --- a/doc/models/bulk-upsert-booking-custom-attributes-response.md +++ b/doc/models/bulk-upsert-booking-custom-attributes-response.md @@ -23,79 +23,85 @@ which contains a map of responses that each corresponds to an individual upsert "key0": { "booking_id": "booking_id4", "custom_attribute": { - "key": "key8", + "key": "key2", "value": { "key1": "val1", "key2": "val2" }, - "version": 82, - "visibility": "VISIBILITY_READ_WRITE_VALUES", + "version": 102, + "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key8", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name8", - "description": "description8", + "name": "name0", + "description": "description0", "visibility": "VISIBILITY_HIDDEN" } }, "errors": [ { - "category": "REFUND_ERROR", - "code": "INVALID_ENUM_VALUE", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" + }, + { + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] }, "key1": { - "booking_id": "booking_id5", + "booking_id": "booking_id4", "custom_attribute": { - "key": "key9", + "key": "key2", "value": { "key1": "val1", "key2": "val2" }, - "version": 83, + "version": 102, "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key9", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name9", - "description": "description9", - "visibility": "VISIBILITY_READ_ONLY" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } }, "errors": [ { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "INVALID_CONTENT_TYPE", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "INVALID_FORM_VALUE", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] }, "key2": { - "booking_id": "booking_id6", + "booking_id": "booking_id4", "custom_attribute": { - "key": "key0", + "key": "key2", "value": { "key1": "val1", "key2": "val2" }, - "version": 84, - "visibility": "VISIBILITY_HIDDEN", + "version": 102, + "visibility": "VISIBILITY_READ_ONLY", "definition": { "key": "key0", "schema": { @@ -104,49 +110,31 @@ which contains a map of responses that each corresponds to an individual upsert }, "name": "name0", "description": "description0", - "visibility": "VISIBILITY_READ_WRITE_VALUES" + "visibility": "VISIBILITY_HIDDEN" } }, "errors": [ { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "INVALID_FORM_VALUE", - "detail": "detail3", - "field": "field1" - }, - { - "category": "API_ERROR", - "code": "CUSTOMER_NOT_FOUND", - "detail": "detail4", - "field": "field2" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "AUTHENTICATION_ERROR", - "code": "ONE_INSTRUMENT_EXPECTED", - "detail": "detail5", - "field": "field3" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/bulk-upsert-customer-custom-attributes-request-customer-custom-attribute-upsert-request.md b/doc/models/bulk-upsert-customer-custom-attributes-request-customer-custom-attribute-upsert-request.md index 552b5be6..0456a25c 100644 --- a/doc/models/bulk-upsert-customer-custom-attributes-request-customer-custom-attribute-upsert-request.md +++ b/doc/models/bulk-upsert-customer-custom-attributes-request-customer-custom-attribute-upsert-request.md @@ -21,7 +21,7 @@ and an optional idempotency key. ```json { - "customer_id": "customer_id8", + "customer_id": "customer_id0", "custom_attribute": { "key": "key2", "value": { @@ -31,17 +31,17 @@ and an optional idempotency key. "version": 102, "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key2", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name2", - "description": "description2", - "visibility": "VISIBILITY_READ_ONLY" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } }, - "idempotency_key": "idempotency_key6" + "idempotency_key": "idempotency_key8" } ``` diff --git a/doc/models/bulk-upsert-customer-custom-attributes-request.md b/doc/models/bulk-upsert-customer-custom-attributes-request.md index 26bb34a5..ba313c34 100644 --- a/doc/models/bulk-upsert-customer-custom-attributes-request.md +++ b/doc/models/bulk-upsert-customer-custom-attributes-request.md @@ -21,59 +21,13 @@ Represents a [BulkUpsertCustomerCustomAttributes](../../doc/api/customer-custom- "key0": { "customer_id": "customer_id8", "custom_attribute": { - "key": "key8", + "key": "key2", "value": { "key1": "val1", "key2": "val2" }, - "version": 82, - "visibility": "VISIBILITY_READ_WRITE_VALUES", - "definition": { - "key": "key8", - "schema": { - "key1": "val1", - "key2": "val2" - }, - "name": "name8", - "description": "description8", - "visibility": "VISIBILITY_HIDDEN" - } - }, - "idempotency_key": "idempotency_key6" - }, - "key1": { - "customer_id": "customer_id9", - "custom_attribute": { - "key": "key9", - "value": { - "key1": "val1", - "key2": "val2" - }, - "version": 83, + "version": 102, "visibility": "VISIBILITY_READ_ONLY", - "definition": { - "key": "key9", - "schema": { - "key1": "val1", - "key2": "val2" - }, - "name": "name9", - "description": "description9", - "visibility": "VISIBILITY_READ_ONLY" - } - }, - "idempotency_key": "idempotency_key7" - }, - "key2": { - "customer_id": "customer_id0", - "custom_attribute": { - "key": "key0", - "value": { - "key1": "val1", - "key2": "val2" - }, - "version": 84, - "visibility": "VISIBILITY_HIDDEN", "definition": { "key": "key0", "schema": { @@ -82,10 +36,10 @@ Represents a [BulkUpsertCustomerCustomAttributes](../../doc/api/customer-custom- }, "name": "name0", "description": "description0", - "visibility": "VISIBILITY_READ_WRITE_VALUES" + "visibility": "VISIBILITY_HIDDEN" } }, - "idempotency_key": "idempotency_key8" + "idempotency_key": "idempotency_key6" } } } diff --git a/doc/models/bulk-upsert-customer-custom-attributes-response-customer-custom-attribute-upsert-response.md b/doc/models/bulk-upsert-customer-custom-attributes-response-customer-custom-attribute-upsert-response.md index 52047ae0..a1355d43 100644 --- a/doc/models/bulk-upsert-customer-custom-attributes-response-customer-custom-attribute-upsert-response.md +++ b/doc/models/bulk-upsert-customer-custom-attributes-response-customer-custom-attribute-upsert-response.md @@ -19,7 +19,7 @@ Represents a response for an individual upsert request in a [BulkUpsertCustomerC ```json { - "customer_id": "customer_id8", + "customer_id": "customer_id4", "custom_attribute": { "key": "key2", "value": { @@ -29,34 +29,34 @@ Represents a response for an individual upsert request in a [BulkUpsertCustomerC "version": 102, "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key2", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name2", - "description": "description2", - "visibility": "VISIBILITY_READ_ONLY" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/bulk-upsert-customer-custom-attributes-response.md b/doc/models/bulk-upsert-customer-custom-attributes-response.md index 745eba12..2c9c6208 100644 --- a/doc/models/bulk-upsert-customer-custom-attributes-response.md +++ b/doc/models/bulk-upsert-customer-custom-attributes-response.md @@ -23,79 +23,85 @@ which contains a map of responses that each corresponds to an individual upsert "key0": { "customer_id": "customer_id8", "custom_attribute": { - "key": "key8", + "key": "key2", "value": { "key1": "val1", "key2": "val2" }, - "version": 82, - "visibility": "VISIBILITY_READ_WRITE_VALUES", + "version": 102, + "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key8", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name8", - "description": "description8", + "name": "name0", + "description": "description0", "visibility": "VISIBILITY_HIDDEN" } }, "errors": [ { - "category": "REFUND_ERROR", - "code": "INVALID_ENUM_VALUE", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" + }, + { + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] }, "key1": { - "customer_id": "customer_id9", + "customer_id": "customer_id8", "custom_attribute": { - "key": "key9", + "key": "key2", "value": { "key1": "val1", "key2": "val2" }, - "version": 83, + "version": 102, "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key9", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name9", - "description": "description9", - "visibility": "VISIBILITY_READ_ONLY" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } }, "errors": [ { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "INVALID_CONTENT_TYPE", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "INVALID_FORM_VALUE", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] }, "key2": { - "customer_id": "customer_id0", + "customer_id": "customer_id8", "custom_attribute": { - "key": "key0", + "key": "key2", "value": { "key1": "val1", "key2": "val2" }, - "version": 84, - "visibility": "VISIBILITY_HIDDEN", + "version": 102, + "visibility": "VISIBILITY_READ_ONLY", "definition": { "key": "key0", "schema": { @@ -104,49 +110,43 @@ which contains a map of responses that each corresponds to an individual upsert }, "name": "name0", "description": "description0", - "visibility": "VISIBILITY_READ_WRITE_VALUES" + "visibility": "VISIBILITY_HIDDEN" } }, "errors": [ { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "INVALID_FORM_VALUE", - "detail": "detail3", - "field": "field1" - }, - { - "category": "API_ERROR", - "code": "CUSTOMER_NOT_FOUND", - "detail": "detail4", - "field": "field2" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "AUTHENTICATION_ERROR", - "code": "ONE_INSTRUMENT_EXPECTED", - "detail": "detail5", - "field": "field3" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/bulk-upsert-location-custom-attributes-request-location-custom-attribute-upsert-request.md b/doc/models/bulk-upsert-location-custom-attributes-request-location-custom-attribute-upsert-request.md index 7edbdcfe..b9adfd55 100644 --- a/doc/models/bulk-upsert-location-custom-attributes-request-location-custom-attribute-upsert-request.md +++ b/doc/models/bulk-upsert-location-custom-attributes-request-location-custom-attribute-upsert-request.md @@ -21,7 +21,7 @@ and an optional idempotency key. ```json { - "location_id": "location_id4", + "location_id": "location_id2", "custom_attribute": { "key": "key2", "value": { @@ -31,17 +31,17 @@ and an optional idempotency key. "version": 102, "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key2", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name2", - "description": "description2", - "visibility": "VISIBILITY_READ_ONLY" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } }, - "idempotency_key": "idempotency_key6" + "idempotency_key": "idempotency_key4" } ``` diff --git a/doc/models/bulk-upsert-location-custom-attributes-request.md b/doc/models/bulk-upsert-location-custom-attributes-request.md index 3575ddc9..74bde39d 100644 --- a/doc/models/bulk-upsert-location-custom-attributes-request.md +++ b/doc/models/bulk-upsert-location-custom-attributes-request.md @@ -21,59 +21,13 @@ Represents a [BulkUpsertLocationCustomAttributes](../../doc/api/location-custom- "key0": { "location_id": "location_id4", "custom_attribute": { - "key": "key8", + "key": "key2", "value": { "key1": "val1", "key2": "val2" }, - "version": 82, - "visibility": "VISIBILITY_READ_WRITE_VALUES", - "definition": { - "key": "key8", - "schema": { - "key1": "val1", - "key2": "val2" - }, - "name": "name8", - "description": "description8", - "visibility": "VISIBILITY_HIDDEN" - } - }, - "idempotency_key": "idempotency_key6" - }, - "key1": { - "location_id": "location_id5", - "custom_attribute": { - "key": "key9", - "value": { - "key1": "val1", - "key2": "val2" - }, - "version": 83, + "version": 102, "visibility": "VISIBILITY_READ_ONLY", - "definition": { - "key": "key9", - "schema": { - "key1": "val1", - "key2": "val2" - }, - "name": "name9", - "description": "description9", - "visibility": "VISIBILITY_READ_ONLY" - } - }, - "idempotency_key": "idempotency_key7" - }, - "key2": { - "location_id": "location_id6", - "custom_attribute": { - "key": "key0", - "value": { - "key1": "val1", - "key2": "val2" - }, - "version": 84, - "visibility": "VISIBILITY_HIDDEN", "definition": { "key": "key0", "schema": { @@ -82,10 +36,10 @@ Represents a [BulkUpsertLocationCustomAttributes](../../doc/api/location-custom- }, "name": "name0", "description": "description0", - "visibility": "VISIBILITY_READ_WRITE_VALUES" + "visibility": "VISIBILITY_HIDDEN" } }, - "idempotency_key": "idempotency_key8" + "idempotency_key": "idempotency_key6" } } } diff --git a/doc/models/bulk-upsert-location-custom-attributes-response-location-custom-attribute-upsert-response.md b/doc/models/bulk-upsert-location-custom-attributes-response-location-custom-attribute-upsert-response.md index a02fbc87..1540f018 100644 --- a/doc/models/bulk-upsert-location-custom-attributes-response-location-custom-attribute-upsert-response.md +++ b/doc/models/bulk-upsert-location-custom-attributes-response-location-custom-attribute-upsert-response.md @@ -19,7 +19,7 @@ Represents a response for an individual upsert request in a [BulkUpsertLocationC ```json { - "location_id": "location_id4", + "location_id": "location_id8", "custom_attribute": { "key": "key2", "value": { @@ -29,34 +29,28 @@ Represents a response for an individual upsert request in a [BulkUpsertLocationC "version": 102, "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key2", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name2", - "description": "description2", - "visibility": "VISIBILITY_READ_ONLY" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/bulk-upsert-location-custom-attributes-response.md b/doc/models/bulk-upsert-location-custom-attributes-response.md index 3d1a33af..0705b969 100644 --- a/doc/models/bulk-upsert-location-custom-attributes-response.md +++ b/doc/models/bulk-upsert-location-custom-attributes-response.md @@ -23,79 +23,13 @@ which contains a map of responses that each corresponds to an individual upsert "key0": { "location_id": "location_id4", "custom_attribute": { - "key": "key8", + "key": "key2", "value": { "key1": "val1", "key2": "val2" }, - "version": 82, - "visibility": "VISIBILITY_READ_WRITE_VALUES", - "definition": { - "key": "key8", - "schema": { - "key1": "val1", - "key2": "val2" - }, - "name": "name8", - "description": "description8", - "visibility": "VISIBILITY_HIDDEN" - } - }, - "errors": [ - { - "category": "REFUND_ERROR", - "code": "INVALID_ENUM_VALUE", - "detail": "detail1", - "field": "field9" - } - ] - }, - "key1": { - "location_id": "location_id5", - "custom_attribute": { - "key": "key9", - "value": { - "key1": "val1", - "key2": "val2" - }, - "version": 83, + "version": 102, "visibility": "VISIBILITY_READ_ONLY", - "definition": { - "key": "key9", - "schema": { - "key1": "val1", - "key2": "val2" - }, - "name": "name9", - "description": "description9", - "visibility": "VISIBILITY_READ_ONLY" - } - }, - "errors": [ - { - "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "INVALID_CONTENT_TYPE", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "INVALID_FORM_VALUE", - "detail": "detail3", - "field": "field1" - } - ] - }, - "key2": { - "location_id": "location_id6", - "custom_attribute": { - "key": "key0", - "value": { - "key1": "val1", - "key2": "val2" - }, - "version": 84, - "visibility": "VISIBILITY_HIDDEN", "definition": { "key": "key0", "schema": { @@ -104,49 +38,37 @@ which contains a map of responses that each corresponds to an individual upsert }, "name": "name0", "description": "description0", - "visibility": "VISIBILITY_READ_WRITE_VALUES" + "visibility": "VISIBILITY_HIDDEN" } }, "errors": [ { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "INVALID_FORM_VALUE", - "detail": "detail3", - "field": "field1" - }, - { - "category": "API_ERROR", - "code": "CUSTOMER_NOT_FOUND", - "detail": "detail4", - "field": "field2" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "AUTHENTICATION_ERROR", - "code": "ONE_INSTRUMENT_EXPECTED", - "detail": "detail5", - "field": "field3" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/bulk-upsert-merchant-custom-attributes-request-merchant-custom-attribute-upsert-request.md b/doc/models/bulk-upsert-merchant-custom-attributes-request-merchant-custom-attribute-upsert-request.md index 9bc2a900..d8c0488e 100644 --- a/doc/models/bulk-upsert-merchant-custom-attributes-request-merchant-custom-attribute-upsert-request.md +++ b/doc/models/bulk-upsert-merchant-custom-attributes-request-merchant-custom-attribute-upsert-request.md @@ -21,7 +21,7 @@ and an optional idempotency key. ```json { - "merchant_id": "merchant_id0", + "merchant_id": "merchant_id8", "custom_attribute": { "key": "key2", "value": { @@ -31,17 +31,17 @@ and an optional idempotency key. "version": 102, "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key2", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name2", - "description": "description2", - "visibility": "VISIBILITY_READ_ONLY" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } }, - "idempotency_key": "idempotency_key6" + "idempotency_key": "idempotency_key4" } ``` diff --git a/doc/models/bulk-upsert-merchant-custom-attributes-request.md b/doc/models/bulk-upsert-merchant-custom-attributes-request.md index aaaeff71..d3214da7 100644 --- a/doc/models/bulk-upsert-merchant-custom-attributes-request.md +++ b/doc/models/bulk-upsert-merchant-custom-attributes-request.md @@ -21,59 +21,59 @@ Represents a [BulkUpsertMerchantCustomAttributes](../../doc/api/merchant-custom- "key0": { "merchant_id": "merchant_id0", "custom_attribute": { - "key": "key8", + "key": "key2", "value": { "key1": "val1", "key2": "val2" }, - "version": 82, - "visibility": "VISIBILITY_READ_WRITE_VALUES", + "version": 102, + "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key8", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name8", - "description": "description8", + "name": "name0", + "description": "description0", "visibility": "VISIBILITY_HIDDEN" } }, "idempotency_key": "idempotency_key6" }, "key1": { - "merchant_id": "merchant_id1", + "merchant_id": "merchant_id0", "custom_attribute": { - "key": "key9", + "key": "key2", "value": { "key1": "val1", "key2": "val2" }, - "version": 83, + "version": 102, "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key9", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name9", - "description": "description9", - "visibility": "VISIBILITY_READ_ONLY" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } }, - "idempotency_key": "idempotency_key7" + "idempotency_key": "idempotency_key6" }, "key2": { - "merchant_id": "merchant_id2", + "merchant_id": "merchant_id0", "custom_attribute": { - "key": "key0", + "key": "key2", "value": { "key1": "val1", "key2": "val2" }, - "version": 84, - "visibility": "VISIBILITY_HIDDEN", + "version": 102, + "visibility": "VISIBILITY_READ_ONLY", "definition": { "key": "key0", "schema": { @@ -82,10 +82,10 @@ Represents a [BulkUpsertMerchantCustomAttributes](../../doc/api/merchant-custom- }, "name": "name0", "description": "description0", - "visibility": "VISIBILITY_READ_WRITE_VALUES" + "visibility": "VISIBILITY_HIDDEN" } }, - "idempotency_key": "idempotency_key8" + "idempotency_key": "idempotency_key6" } } } diff --git a/doc/models/bulk-upsert-merchant-custom-attributes-response-merchant-custom-attribute-upsert-response.md b/doc/models/bulk-upsert-merchant-custom-attributes-response-merchant-custom-attribute-upsert-response.md index 8ff58435..5142eae9 100644 --- a/doc/models/bulk-upsert-merchant-custom-attributes-response-merchant-custom-attribute-upsert-response.md +++ b/doc/models/bulk-upsert-merchant-custom-attributes-response-merchant-custom-attribute-upsert-response.md @@ -29,34 +29,34 @@ Represents a response for an individual upsert request in a [BulkUpsertMerchantC "version": 102, "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key2", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name2", - "description": "description2", - "visibility": "VISIBILITY_READ_ONLY" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/bulk-upsert-merchant-custom-attributes-response.md b/doc/models/bulk-upsert-merchant-custom-attributes-response.md index 7ca71768..20a5f099 100644 --- a/doc/models/bulk-upsert-merchant-custom-attributes-response.md +++ b/doc/models/bulk-upsert-merchant-custom-attributes-response.md @@ -23,79 +23,49 @@ which contains a map of responses that each corresponds to an individual upsert "key0": { "merchant_id": "merchant_id0", "custom_attribute": { - "key": "key8", + "key": "key2", "value": { "key1": "val1", "key2": "val2" }, - "version": 82, - "visibility": "VISIBILITY_READ_WRITE_VALUES", - "definition": { - "key": "key8", - "schema": { - "key1": "val1", - "key2": "val2" - }, - "name": "name8", - "description": "description8", - "visibility": "VISIBILITY_HIDDEN" - } - }, - "errors": [ - { - "category": "REFUND_ERROR", - "code": "INVALID_ENUM_VALUE", - "detail": "detail1", - "field": "field9" - } - ] - }, - "key1": { - "merchant_id": "merchant_id1", - "custom_attribute": { - "key": "key9", - "value": { - "key1": "val1", - "key2": "val2" - }, - "version": 83, + "version": 102, "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key9", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name9", - "description": "description9", - "visibility": "VISIBILITY_READ_ONLY" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } }, "errors": [ { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "INVALID_CONTENT_TYPE", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "INVALID_FORM_VALUE", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] }, - "key2": { - "merchant_id": "merchant_id2", + "key1": { + "merchant_id": "merchant_id0", "custom_attribute": { - "key": "key0", + "key": "key2", "value": { "key1": "val1", "key2": "val2" }, - "version": 84, - "visibility": "VISIBILITY_HIDDEN", + "version": 102, + "visibility": "VISIBILITY_READ_ONLY", "definition": { "key": "key0", "schema": { @@ -104,49 +74,31 @@ which contains a map of responses that each corresponds to an individual upsert }, "name": "name0", "description": "description0", - "visibility": "VISIBILITY_READ_WRITE_VALUES" + "visibility": "VISIBILITY_HIDDEN" } }, "errors": [ { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "INVALID_FORM_VALUE", - "detail": "detail3", - "field": "field1" - }, - { - "category": "API_ERROR", - "code": "CUSTOMER_NOT_FOUND", - "detail": "detail4", - "field": "field2" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "AUTHENTICATION_ERROR", - "code": "ONE_INSTRUMENT_EXPECTED", - "detail": "detail5", - "field": "field3" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/bulk-upsert-order-custom-attributes-request-upsert-custom-attribute.md b/doc/models/bulk-upsert-order-custom-attributes-request-upsert-custom-attribute.md index 1898b742..ed5b1e6e 100644 --- a/doc/models/bulk-upsert-order-custom-attributes-request-upsert-custom-attribute.md +++ b/doc/models/bulk-upsert-order-custom-attributes-request-upsert-custom-attribute.md @@ -28,18 +28,18 @@ Represents one upsert within the bulk operation. "version": 102, "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key2", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name2", - "description": "description2", - "visibility": "VISIBILITY_READ_ONLY" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } }, - "idempotency_key": "idempotency_key6", - "order_id": "order_id6" + "idempotency_key": "idempotency_key4", + "order_id": "order_id2" } ``` diff --git a/doc/models/bulk-upsert-order-custom-attributes-request.md b/doc/models/bulk-upsert-order-custom-attributes-request.md index 6e6af2db..3975a40d 100644 --- a/doc/models/bulk-upsert-order-custom-attributes-request.md +++ b/doc/models/bulk-upsert-order-custom-attributes-request.md @@ -20,21 +20,21 @@ Represents a bulk upsert request for one or more order custom attributes. "values": { "key0": { "custom_attribute": { - "key": "key8", + "key": "key2", "value": { "key1": "val1", "key2": "val2" }, - "version": 82, - "visibility": "VISIBILITY_READ_WRITE_VALUES", + "version": 102, + "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key8", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name8", - "description": "description8", + "name": "name0", + "description": "description0", "visibility": "VISIBILITY_HIDDEN" } }, @@ -43,36 +43,36 @@ Represents a bulk upsert request for one or more order custom attributes. }, "key1": { "custom_attribute": { - "key": "key9", + "key": "key2", "value": { "key1": "val1", "key2": "val2" }, - "version": 83, + "version": 102, "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key9", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name9", - "description": "description9", - "visibility": "VISIBILITY_READ_ONLY" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } }, - "idempotency_key": "idempotency_key7", - "order_id": "order_id5" + "idempotency_key": "idempotency_key6", + "order_id": "order_id4" }, "key2": { "custom_attribute": { - "key": "key0", + "key": "key2", "value": { "key1": "val1", "key2": "val2" }, - "version": 84, - "visibility": "VISIBILITY_HIDDEN", + "version": 102, + "visibility": "VISIBILITY_READ_ONLY", "definition": { "key": "key0", "schema": { @@ -81,11 +81,11 @@ Represents a bulk upsert request for one or more order custom attributes. }, "name": "name0", "description": "description0", - "visibility": "VISIBILITY_READ_WRITE_VALUES" + "visibility": "VISIBILITY_HIDDEN" } }, - "idempotency_key": "idempotency_key8", - "order_id": "order_id6" + "idempotency_key": "idempotency_key6", + "order_id": "order_id4" } } } diff --git a/doc/models/bulk-upsert-order-custom-attributes-response.md b/doc/models/bulk-upsert-order-custom-attributes-response.md index 9fe79b0a..f08053a9 100644 --- a/doc/models/bulk-upsert-order-custom-attributes-response.md +++ b/doc/models/bulk-upsert-order-custom-attributes-response.md @@ -19,99 +19,29 @@ Represents a response from a bulk upsert of order custom attributes. ```json { "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], "values": { "key0": { "custom_attribute": { - "key": "key8", + "key": "key2", "value": { "key1": "val1", "key2": "val2" }, - "version": 82, - "visibility": "VISIBILITY_READ_WRITE_VALUES", - "definition": { - "key": "key8", - "schema": { - "key1": "val1", - "key2": "val2" - }, - "name": "name8", - "description": "description8", - "visibility": "VISIBILITY_HIDDEN" - } - }, - "errors": [ - { - "category": "REFUND_ERROR", - "code": "INVALID_ENUM_VALUE", - "detail": "detail1", - "field": "field9" - } - ] - }, - "key1": { - "custom_attribute": { - "key": "key9", - "value": { - "key1": "val1", - "key2": "val2" - }, - "version": 83, + "version": 102, "visibility": "VISIBILITY_READ_ONLY", - "definition": { - "key": "key9", - "schema": { - "key1": "val1", - "key2": "val2" - }, - "name": "name9", - "description": "description9", - "visibility": "VISIBILITY_READ_ONLY" - } - }, - "errors": [ - { - "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "INVALID_CONTENT_TYPE", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "INVALID_FORM_VALUE", - "detail": "detail3", - "field": "field1" - } - ] - }, - "key2": { - "custom_attribute": { - "key": "key0", - "value": { - "key1": "val1", - "key2": "val2" - }, - "version": 84, - "visibility": "VISIBILITY_HIDDEN", "definition": { "key": "key0", "schema": { @@ -120,27 +50,21 @@ Represents a response from a bulk upsert of order custom attributes. }, "name": "name0", "description": "description0", - "visibility": "VISIBILITY_READ_WRITE_VALUES" + "visibility": "VISIBILITY_HIDDEN" } }, "errors": [ { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "INVALID_FORM_VALUE", - "detail": "detail3", - "field": "field1" - }, - { - "category": "API_ERROR", - "code": "CUSTOMER_NOT_FOUND", - "detail": "detail4", - "field": "field2" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "AUTHENTICATION_ERROR", - "code": "ONE_INSTRUMENT_EXPECTED", - "detail": "detail5", - "field": "field3" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/business-appointment-settings.md b/doc/models/business-appointment-settings.md index 006593b7..ebcf877c 100644 --- a/doc/models/business-appointment-settings.md +++ b/doc/models/business-appointment-settings.md @@ -30,12 +30,11 @@ The service appointment settings, including where and how the service is provide ```json { "location_types": [ - "BUSINESS_LOCATION", - "CUSTOMER_LOCATION" + "PHONE" ], - "alignment_time": "HALF_HOURLY", - "min_booking_lead_time_seconds": 38, - "max_booking_lead_time_seconds": 48, + "alignment_time": "SERVICE_DURATION", + "min_booking_lead_time_seconds": 88, + "max_booking_lead_time_seconds": 98, "any_team_member_booking_enabled": false } ``` diff --git a/doc/models/business-booking-profile.md b/doc/models/business-booking-profile.md index f62e78a0..d6981716 100644 --- a/doc/models/business-booking-profile.md +++ b/doc/models/business-booking-profile.md @@ -23,7 +23,7 @@ ```json { "seller_id": "seller_id8", - "created_at": "created_at2", + "created_at": "created_at8", "booking_enabled": false, "customer_timezone_choice": "BUSINESS_LOCATION_TIMEZONE", "booking_policy": "ACCEPT_ALL" diff --git a/doc/models/business-hours-period.md b/doc/models/business-hours-period.md index c5f91664..bfc2d3d3 100644 --- a/doc/models/business-hours-period.md +++ b/doc/models/business-hours-period.md @@ -19,9 +19,9 @@ Represents a period of time during which a business location is open. ```json { - "day_of_week": "SAT", - "start_local_time": "start_local_time6", - "end_local_time": "end_local_time8" + "day_of_week": "SUN", + "start_local_time": "start_local_time2", + "end_local_time": "end_local_time4" } ``` diff --git a/doc/models/business-hours.md b/doc/models/business-hours.md index ccf78353..ccdf86f9 100644 --- a/doc/models/business-hours.md +++ b/doc/models/business-hours.md @@ -19,19 +19,19 @@ The hours of operation for a location. { "periods": [ { - "day_of_week": "MON", - "start_local_time": "start_local_time5", - "end_local_time": "end_local_time7" + "day_of_week": "WED", + "start_local_time": "start_local_time4", + "end_local_time": "end_local_time6" }, { - "day_of_week": "SUN", - "start_local_time": "start_local_time6", - "end_local_time": "end_local_time8" + "day_of_week": "WED", + "start_local_time": "start_local_time4", + "end_local_time": "end_local_time6" }, { - "day_of_week": "SAT", - "start_local_time": "start_local_time7", - "end_local_time": "end_local_time9" + "day_of_week": "WED", + "start_local_time": "start_local_time4", + "end_local_time": "end_local_time6" } ] } diff --git a/doc/models/buy-now-pay-later-details.md b/doc/models/buy-now-pay-later-details.md index 816dd49f..59a91767 100644 --- a/doc/models/buy-now-pay-later-details.md +++ b/doc/models/buy-now-pay-later-details.md @@ -19,7 +19,7 @@ Additional details about a Buy Now Pay Later payment type. ```json { - "brand": "brand4", + "brand": "brand6", "afterpay_details": { "email_address": "email_address4" }, diff --git a/doc/models/calculate-loyalty-points-response.md b/doc/models/calculate-loyalty-points-response.md index a45433be..f9a316fb 100644 --- a/doc/models/calculate-loyalty-points-response.md +++ b/doc/models/calculate-loyalty-points-response.md @@ -23,22 +23,22 @@ Represents a [CalculateLoyaltyPoints](../../doc/api/loyalty.md#calculate-loyalty "promotion_points": 12, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/calculate-order-request.md b/doc/models/calculate-order-request.md index 9aa3a657..6bc8e071 100644 --- a/doc/models/calculate-order-request.md +++ b/doc/models/calculate-order-request.md @@ -33,24 +33,24 @@ }, "name": "Item 1", "quantity": "1", - "uid": "uid1", + "uid": "uid8", "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name9", - "abbreviation": "abbreviation1" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "METRIC_SQUARE_CENTIMETER", - "length_unit": "IMPERIAL_MILE", - "volume_unit": "GENERIC_FLUID_OUNCE", - "weight_unit": "METRIC_KILOGRAM" + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_LITER", + "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 201, - "catalog_object_id": "catalog_object_id1", - "catalog_version": 135 + "precision": 54, + "catalog_object_id": "catalog_object_id0", + "catalog_version": 12 }, - "note": "note3", - "catalog_object_id": "catalog_object_id5" + "note": "note4", + "catalog_object_id": "catalog_object_id2" }, { "base_price_money": { @@ -59,31 +59,31 @@ }, "name": "Item 2", "quantity": "2", - "uid": "uid0", + "uid": "uid8", "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name8", - "abbreviation": "abbreviation0" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "IMPERIAL_SQUARE_MILE", - "length_unit": "METRIC_MILLIMETER", + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", "volume_unit": "METRIC_LITER", "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 200, + "precision": 54, "catalog_object_id": "catalog_object_id0", - "catalog_version": 134 + "catalog_version": 12 }, "note": "note4", - "catalog_object_id": "catalog_object_id6" + "catalog_object_id": "catalog_object_id2" } ], "location_id": "D7AVYMEAPJ3A3", "id": "id6", "reference_id": "reference_id4", "source": { - "name": "name2" + "name": "name4" }, "customer_id": "customer_id4" }, @@ -91,10 +91,6 @@ { "id": "id0", "reward_tier_id": "reward_tier_id6" - }, - { - "id": "id1", - "reward_tier_id": "reward_tier_id7" } ] } diff --git a/doc/models/calculate-order-response.md b/doc/models/calculate-order-response.md index d20eb3d0..8854e9f1 100644 --- a/doc/models/calculate-order-response.md +++ b/doc/models/calculate-order-response.md @@ -77,20 +77,20 @@ "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name9", - "abbreviation": "abbreviation1" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "METRIC_SQUARE_CENTIMETER", - "length_unit": "IMPERIAL_MILE", - "volume_unit": "GENERIC_FLUID_OUNCE", - "weight_unit": "METRIC_KILOGRAM" + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_LITER", + "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 201, - "catalog_object_id": "catalog_object_id1", - "catalog_version": 135 + "precision": 54, + "catalog_object_id": "catalog_object_id0", + "catalog_version": 12 }, - "note": "note3", - "catalog_object_id": "catalog_object_id5" + "note": "note4", + "catalog_object_id": "catalog_object_id2" }, { "applied_discounts": [ @@ -137,20 +137,20 @@ "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name8", - "abbreviation": "abbreviation0" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "IMPERIAL_SQUARE_MILE", - "length_unit": "METRIC_MILLIMETER", + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", "volume_unit": "METRIC_LITER", "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 200, + "precision": 54, "catalog_object_id": "catalog_object_id0", - "catalog_version": 134 + "catalog_version": 12 }, "note": "note4", - "catalog_object_id": "catalog_object_id6" + "catalog_object_id": "catalog_object_id2" } ], "location_id": "D7AVYMEAPJ3A3", @@ -202,28 +202,28 @@ "id": "id6", "reference_id": "reference_id4", "source": { - "name": "name2" + "name": "name4" }, "customer_id": "customer_id4" }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/cancel-booking-request.md b/doc/models/cancel-booking-request.md index 0b16b622..eacd1c08 100644 --- a/doc/models/cancel-booking-request.md +++ b/doc/models/cancel-booking-request.md @@ -16,8 +16,8 @@ ```json { - "idempotency_key": "idempotency_key6", - "booking_version": 0 + "idempotency_key": "idempotency_key0", + "booking_version": 224 } ``` diff --git a/doc/models/cancel-invoice-response.md b/doc/models/cancel-invoice-response.md index c4573452..62e29fb6 100644 --- a/doc/models/cancel-invoice-response.md +++ b/doc/models/cancel-invoice-response.md @@ -94,23 +94,17 @@ The response returned by the `CancelInvoice` request. "version": 1 }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/cancel-loyalty-promotion-response.md b/doc/models/cancel-loyalty-promotion-response.md index 7b012790..43949ef7 100644 --- a/doc/models/cancel-loyalty-promotion-response.md +++ b/doc/models/cancel-loyalty-promotion-response.md @@ -25,7 +25,7 @@ Either `loyalty_promotion` or `errors` is present in the response. "time_periods": [ "BEGIN:VEVENT\nDTSTART:20220816T160000\nDURATION:PT2H\nRRULE:FREQ=WEEKLY;BYDAY=TU\nEND:VEVENT" ], - "end_date": "end_date2" + "end_date": "end_date8" }, "canceled_at": "2022-08-17T12:42:49Z", "created_at": "2022-08-16T08:38:54Z", @@ -37,7 +37,7 @@ Either `loyalty_promotion` or `errors` is present in the response. }, "type": "POINTS_MULTIPLIER", "points_addition_data": { - "points_addition": 192 + "points_addition": 218 } }, "loyalty_program_id": "d619f755-2d17-41f3-990d-c04ecedd64dd", @@ -58,22 +58,22 @@ Either `loyalty_promotion` or `errors` is present in the response. }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/cancel-payment-by-idempotency-key-response.md b/doc/models/cancel-payment-by-idempotency-key-response.md index f34e0561..caa64c7b 100644 --- a/doc/models/cancel-payment-by-idempotency-key-response.md +++ b/doc/models/cancel-payment-by-idempotency-key-response.md @@ -20,23 +20,17 @@ On success, `errors` is empty. ```json { "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/cancel-payment-response.md b/doc/models/cancel-payment-response.md index f24c2c97..b8330acc 100644 --- a/doc/models/cancel-payment-response.md +++ b/doc/models/cancel-payment-response.md @@ -80,23 +80,17 @@ Defines the response returned by [CancelPayment](../../doc/api/payments.md#cance "version_token": "N8AGYgEjCiY9Q57Jw7aVHEpBq8bzGCDCQMRX8Vs56N06o" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/cancel-subscription-response.md b/doc/models/cancel-subscription-response.md index 1d6cbc4c..57313759 100644 --- a/doc/models/cancel-subscription-response.md +++ b/doc/models/cancel-subscription-response.md @@ -43,84 +43,102 @@ Defines output parameters in a response from the }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], "actions": [ { - "id": "id9", - "type": "PAUSE", - "effective_date": "effective_date1", + "id": "id8", + "type": "CANCEL", + "effective_date": "effective_date8", "phases": [ { - "uid": "uid6", - "ordinal": 186, - "order_template_id": "order_template_id8", - "plan_phase_uid": "plan_phase_uid2" + "uid": "uid0", + "ordinal": 78, + "order_template_id": "order_template_id2", + "plan_phase_uid": "plan_phase_uid6" + }, + { + "uid": "uid0", + "ordinal": 78, + "order_template_id": "order_template_id2", + "plan_phase_uid": "plan_phase_uid6" + }, + { + "uid": "uid0", + "ordinal": 78, + "order_template_id": "order_template_id2", + "plan_phase_uid": "plan_phase_uid6" } ], - "new_plan_variation_id": "new_plan_variation_id9" + "new_plan_variation_id": "new_plan_variation_id8" }, { - "id": "id0", + "id": "id8", "type": "CANCEL", - "effective_date": "effective_date0", + "effective_date": "effective_date8", "phases": [ { - "uid": "uid5", - "ordinal": 185, - "order_template_id": "order_template_id7", - "plan_phase_uid": "plan_phase_uid1" + "uid": "uid0", + "ordinal": 78, + "order_template_id": "order_template_id2", + "plan_phase_uid": "plan_phase_uid6" }, { - "uid": "uid6", - "ordinal": 186, - "order_template_id": "order_template_id8", - "plan_phase_uid": "plan_phase_uid2" + "uid": "uid0", + "ordinal": 78, + "order_template_id": "order_template_id2", + "plan_phase_uid": "plan_phase_uid6" }, { - "uid": "uid7", - "ordinal": 187, - "order_template_id": "order_template_id9", - "plan_phase_uid": "plan_phase_uid3" + "uid": "uid0", + "ordinal": 78, + "order_template_id": "order_template_id2", + "plan_phase_uid": "plan_phase_uid6" } ], - "new_plan_variation_id": "new_plan_variation_id0" + "new_plan_variation_id": "new_plan_variation_id8" }, { - "id": "id1", - "type": "SWAP_PLAN", - "effective_date": "effective_date9", + "id": "id8", + "type": "CANCEL", + "effective_date": "effective_date8", "phases": [ { - "uid": "uid4", - "ordinal": 184, - "order_template_id": "order_template_id6", - "plan_phase_uid": "plan_phase_uid0" + "uid": "uid0", + "ordinal": 78, + "order_template_id": "order_template_id2", + "plan_phase_uid": "plan_phase_uid6" + }, + { + "uid": "uid0", + "ordinal": 78, + "order_template_id": "order_template_id2", + "plan_phase_uid": "plan_phase_uid6" }, { - "uid": "uid5", - "ordinal": 185, - "order_template_id": "order_template_id7", - "plan_phase_uid": "plan_phase_uid1" + "uid": "uid0", + "ordinal": 78, + "order_template_id": "order_template_id2", + "plan_phase_uid": "plan_phase_uid6" } ], - "new_plan_variation_id": "new_plan_variation_id1" + "new_plan_variation_id": "new_plan_variation_id8" } ] } diff --git a/doc/models/cancel-terminal-action-response.md b/doc/models/cancel-terminal-action-response.md index 3ccd9473..218c92c4 100644 --- a/doc/models/cancel-terminal-action-response.md +++ b/doc/models/cancel-terminal-action-response.md @@ -34,22 +34,22 @@ }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/cancel-terminal-checkout-response.md b/doc/models/cancel-terminal-checkout-response.md index ac4a1a86..5e86baad 100644 --- a/doc/models/cancel-terminal-checkout-response.md +++ b/doc/models/cancel-terminal-checkout-response.md @@ -33,9 +33,7 @@ "separate_tip_screen": false, "custom_tip_field": false, "tip_percentages": [ - 196, - 195, - 194 + 48 ], "smart_tipping": false }, @@ -51,29 +49,29 @@ "order_id": "order_id6", "payment_options": { "autocomplete": false, - "delay_duration": "delay_duration0", + "delay_duration": "delay_duration2", "accept_partial_authorization": false, "delay_action": "CANCEL" } }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/cancel-terminal-refund-response.md b/doc/models/cancel-terminal-refund-response.md index 97ad54e6..16869cca 100644 --- a/doc/models/cancel-terminal-refund-response.md +++ b/doc/models/cancel-terminal-refund-response.md @@ -46,22 +46,22 @@ }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/capture-transaction-response.md b/doc/models/capture-transaction-response.md index 2d4f0212..8d771d5b 100644 --- a/doc/models/capture-transaction-response.md +++ b/doc/models/capture-transaction-response.md @@ -19,23 +19,11 @@ a request to the [CaptureTransaction](api-endpoint:Transactions-CaptureTransacti ```json { "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/card-payment-details.md b/doc/models/card-payment-details.md index 2a749bad..758cdeb3 100644 --- a/doc/models/card-payment-details.md +++ b/doc/models/card-payment-details.md @@ -32,7 +32,7 @@ Reflects the current status of a card payment. Contains only non-confidential in ```json { - "status": "status8", + "status": "status6", "card": { "id": "id6", "card_brand": "OTHER_BRAND", @@ -40,9 +40,9 @@ Reflects the current status of a card payment. Contains only non-confidential in "exp_month": 228, "exp_year": 68 }, - "entry_method": "entry_method6", - "cvv_status": "cvv_status8", - "avs_status": "avs_status4" + "entry_method": "entry_method8", + "cvv_status": "cvv_status4", + "avs_status": "avs_status6" } ``` diff --git a/doc/models/card-payment-timeline.md b/doc/models/card-payment-timeline.md index f1f3d76b..dc1c881d 100644 --- a/doc/models/card-payment-timeline.md +++ b/doc/models/card-payment-timeline.md @@ -19,9 +19,9 @@ The timeline for card payments. ```json { - "authorized_at": "authorized_at4", - "captured_at": "captured_at4", - "voided_at": "voided_at8" + "authorized_at": "authorized_at2", + "captured_at": "captured_at2", + "voided_at": "voided_at6" } ``` diff --git a/doc/models/card.md b/doc/models/card.md index 84b682a1..99f9ab55 100644 --- a/doc/models/card.md +++ b/doc/models/card.md @@ -35,10 +35,10 @@ details are determined by the payment token generated by Web Payments SDK. ```json { "id": "id0", - "card_brand": "OTHER_BRAND", + "card_brand": "INTERAC", "last_4": "last_42", - "exp_month": 42, - "exp_year": 254 + "exp_month": 240, + "exp_year": 56 } ``` diff --git a/doc/models/cash-app-details.md b/doc/models/cash-app-details.md index 88878e8c..292277e6 100644 --- a/doc/models/cash-app-details.md +++ b/doc/models/cash-app-details.md @@ -19,9 +19,9 @@ Additional details about `WALLET` type payments with the `brand` of `CASH_APP`. ```json { - "buyer_full_name": "buyer_full_name4", - "buyer_country_code": "buyer_country_code4", - "buyer_cashtag": "buyer_cashtag6" + "buyer_full_name": "buyer_full_name0", + "buyer_country_code": "buyer_country_code0", + "buyer_cashtag": "buyer_cashtag2" } ``` diff --git a/doc/models/cash-drawer-device.md b/doc/models/cash-drawer-device.md index d93dc6fa..f4f4479d 100644 --- a/doc/models/cash-drawer-device.md +++ b/doc/models/cash-drawer-device.md @@ -16,8 +16,8 @@ ```json { - "id": "id0", - "name": "name0" + "id": "id2", + "name": "name2" } ``` diff --git a/doc/models/cash-drawer-shift-event.md b/doc/models/cash-drawer-shift-event.md index 909a8140..2946dd64 100644 --- a/doc/models/cash-drawer-shift-event.md +++ b/doc/models/cash-drawer-shift-event.md @@ -20,14 +20,14 @@ ```json { - "id": "id0", - "event_type": "OTHER_TENDER_CANCELLED_PAYMENT", + "id": "id6", + "event_type": "OTHER_TENDER_PAYMENT", "event_money": { "amount": 148, "currency": "AMD" }, - "created_at": "created_at2", - "description": "description0" + "created_at": "created_at4", + "description": "description6" } ``` diff --git a/doc/models/cash-drawer-shift.md b/doc/models/cash-drawer-shift.md index 8a468b58..759b7333 100644 --- a/doc/models/cash-drawer-shift.md +++ b/doc/models/cash-drawer-shift.md @@ -40,11 +40,11 @@ event types. ```json { - "id": "id0", - "state": "CLOSED", - "opened_at": "opened_at8", - "ended_at": "ended_at2", - "closed_at": "closed_at2" + "id": "id6", + "state": "OPEN", + "opened_at": "opened_at4", + "ended_at": "ended_at8", + "closed_at": "closed_at8" } ``` diff --git a/doc/models/catalog-category.md b/doc/models/catalog-category.md index 5b034f3e..edf2de4b 100644 --- a/doc/models/catalog-category.md +++ b/doc/models/catalog-category.md @@ -26,11 +26,11 @@ A category to which a `CatalogItem` instance belongs. "present_at_all_locations": true, "type": "CATEGORY" }, - "name": "name0", + "name": "name2", "image_ids": [ - "image_ids5", + "image_ids7", "image_ids6", - "image_ids7" + "image_ids5" ] } ``` diff --git a/doc/models/catalog-custom-attribute-definition-number-config.md b/doc/models/catalog-custom-attribute-definition-number-config.md index 7393b596..f4580169 100644 --- a/doc/models/catalog-custom-attribute-definition-number-config.md +++ b/doc/models/catalog-custom-attribute-definition-number-config.md @@ -15,7 +15,7 @@ ```json { - "precision": 196 + "precision": 208 } ``` diff --git a/doc/models/catalog-custom-attribute-definition-selection-config-custom-attribute-selection.md b/doc/models/catalog-custom-attribute-definition-selection-config-custom-attribute-selection.md index 8311b4f3..f627a6f0 100644 --- a/doc/models/catalog-custom-attribute-definition-selection-config-custom-attribute-selection.md +++ b/doc/models/catalog-custom-attribute-definition-selection-config-custom-attribute-selection.md @@ -18,8 +18,8 @@ A named selection for this `SELECTION`-type custom attribute definition. ```json { - "uid": "uid0", - "name": "name0" + "uid": "uid4", + "name": "name4" } ``` diff --git a/doc/models/catalog-custom-attribute-definition-selection-config.md b/doc/models/catalog-custom-attribute-definition-selection-config.md index 81ab7469..ff113e4a 100644 --- a/doc/models/catalog-custom-attribute-definition-selection-config.md +++ b/doc/models/catalog-custom-attribute-definition-selection-config.md @@ -18,19 +18,19 @@ Configuration associated with `SELECTION`-type custom attribute definitions. ```json { - "max_allowed_selections": 86, + "max_allowed_selections": 124, "allowed_selections": [ { - "uid": "uid5", - "name": "name5" + "uid": "uid0", + "name": "name0" }, { - "uid": "uid6", - "name": "name6" + "uid": "uid0", + "name": "name0" }, { - "uid": "uid7", - "name": "name7" + "uid": "uid0", + "name": "name0" } ] } diff --git a/doc/models/catalog-custom-attribute-definition.md b/doc/models/catalog-custom-attribute-definition.md index 49bf1839..c46c7645 100644 --- a/doc/models/catalog-custom-attribute-definition.md +++ b/doc/models/catalog-custom-attribute-definition.md @@ -32,7 +32,7 @@ to store any sensitive information (personally identifiable information, card de ```json { - "type": "NUMBER", + "type": "STRING", "name": "name0", "description": "description0", "source_application": { @@ -41,9 +41,8 @@ to store any sensitive information (personally identifiable information, card de "name": "name2" }, "allowed_object_types": [ - "TIME_PERIOD", - "MEASUREMENT_UNIT", - "SUBSCRIPTION_PLAN_VARIATION" + "ITEM", + "SUBSCRIPTION_PLAN" ], "seller_visibility": "SELLER_VISIBILITY_HIDDEN", "app_visibility": "APP_VISIBILITY_HIDDEN", diff --git a/doc/models/catalog-custom-attribute-value.md b/doc/models/catalog-custom-attribute-value.md index 78d8e613..d4c1e3ee 100644 --- a/doc/models/catalog-custom-attribute-value.md +++ b/doc/models/catalog-custom-attribute-value.md @@ -26,11 +26,11 @@ added to `ITEM` and `ITEM_VARIATION` type catalog objects. ```json { - "name": "name0", - "string_value": "string_value4", - "custom_attribute_definition_id": "custom_attribute_definition_id2", + "name": "name2", + "string_value": "string_value6", + "custom_attribute_definition_id": "custom_attribute_definition_id0", "type": "NUMBER", - "number_value": "number_value0" + "number_value": "number_value2" } ``` diff --git a/doc/models/catalog-discount.md b/doc/models/catalog-discount.md index e694bccb..bc22a52e 100644 --- a/doc/models/catalog-discount.md +++ b/doc/models/catalog-discount.md @@ -36,9 +36,9 @@ A discount applicable to items. "present_at_all_locations": true, "type": "DISCOUNT" }, - "name": "name0", + "name": "name8", "discount_type": "VARIABLE_PERCENTAGE", - "percentage": "percentage8", + "percentage": "percentage6", "amount_money": { "amount": 186, "currency": "TZS" diff --git a/doc/models/catalog-id-mapping.md b/doc/models/catalog-id-mapping.md index c8b6cbce..7f90ddab 100644 --- a/doc/models/catalog-id-mapping.md +++ b/doc/models/catalog-id-mapping.md @@ -28,8 +28,8 @@ to the new object. The permanent ID is unique across the Square catalog. ```json { - "client_object_id": "client_object_id0", - "object_id": "object_id8" + "client_object_id": "client_object_id8", + "object_id": "object_id0" } ``` diff --git a/doc/models/catalog-info-response-limits.md b/doc/models/catalog-info-response-limits.md index d7cb9ed2..8745250e 100644 --- a/doc/models/catalog-info-response-limits.md +++ b/doc/models/catalog-info-response-limits.md @@ -25,11 +25,11 @@ ```json { - "batch_upsert_max_objects_per_batch": 126, - "batch_upsert_max_total_objects": 214, - "batch_retrieve_max_object_ids": 230, - "search_max_page_limit": 192, - "batch_delete_max_object_ids": 216 + "batch_upsert_max_objects_per_batch": 206, + "batch_upsert_max_total_objects": 122, + "batch_retrieve_max_object_ids": 54, + "search_max_page_limit": 144, + "batch_delete_max_object_ids": 40 } ``` diff --git a/doc/models/catalog-info-response.md b/doc/models/catalog-info-response.md index 746d6724..32f19d39 100644 --- a/doc/models/catalog-info-response.md +++ b/doc/models/catalog-info-response.md @@ -31,23 +31,11 @@ "update_item_taxes_max_taxes_to_enable": 1000 }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], "standard_unit_description_group": { @@ -55,30 +43,30 @@ { "unit": { "custom_unit": { - "name": "name9", - "abbreviation": "abbreviation1" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "METRIC_SQUARE_KILOMETER", - "length_unit": "METRIC_KILOMETER", - "volume_unit": "GENERIC_QUART", - "weight_unit": "METRIC_MILLIGRAM" + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_MILLILITER", + "weight_unit": "IMPERIAL_STONE" }, - "name": "name9", - "abbreviation": "abbreviation1" + "name": "name4", + "abbreviation": "abbreviation6" }, { "unit": { "custom_unit": { - "name": "name0", - "abbreviation": "abbreviation2" + "name": "name2", + "abbreviation": "abbreviation4" }, "area_unit": "IMPERIAL_ACRE", "length_unit": "IMPERIAL_INCH", - "volume_unit": "GENERIC_GALLON", - "weight_unit": "METRIC_GRAM" + "volume_unit": "METRIC_MILLILITER", + "weight_unit": "IMPERIAL_STONE" }, - "name": "name0", - "abbreviation": "abbreviation2" + "name": "name4", + "abbreviation": "abbreviation6" } ], "language_code": "language_code6" diff --git a/doc/models/catalog-item-modifier-list-info.md b/doc/models/catalog-item-modifier-list-info.md index 469d7329..35db31e4 100644 --- a/doc/models/catalog-item-modifier-list-info.md +++ b/doc/models/catalog-item-modifier-list-info.md @@ -24,12 +24,16 @@ Options to control the properties of a `CatalogModifierList` applied to a `Catal "modifier_list_id": "modifier_list_id6", "modifier_overrides": [ { - "modifier_id": "modifier_id1", - "on_by_default": true + "modifier_id": "modifier_id8", + "on_by_default": false + }, + { + "modifier_id": "modifier_id8", + "on_by_default": false } ], - "min_selected_modifiers": 38, - "max_selected_modifiers": 198, + "min_selected_modifiers": 170, + "max_selected_modifiers": 66, "enabled": false } ``` diff --git a/doc/models/catalog-item-option-for-item.md b/doc/models/catalog-item-option-for-item.md index 3fba4881..a811f3de 100644 --- a/doc/models/catalog-item-option-for-item.md +++ b/doc/models/catalog-item-option-for-item.md @@ -18,7 +18,7 @@ For example, a t-shirt item may offer a color option or a size option. ```json { - "item_option_id": "item_option_id2" + "item_option_id": "item_option_id4" } ``` diff --git a/doc/models/catalog-item-option-value-for-item-variation.md b/doc/models/catalog-item-option-value-for-item-variation.md index 8f8e4ec4..2fcd5964 100644 --- a/doc/models/catalog-item-option-value-for-item-variation.md +++ b/doc/models/catalog-item-option-value-for-item-variation.md @@ -21,8 +21,8 @@ For example, "Color:Red, Size:Small" or "Color:Blue, Size:Medium". ```json { - "item_option_id": "item_option_id2", - "item_option_value_id": "item_option_value_id0" + "item_option_id": "item_option_id0", + "item_option_value_id": "item_option_value_id2" } ``` diff --git a/doc/models/catalog-item-option-value.md b/doc/models/catalog-item-option-value.md index 7dfdddf1..be7e281a 100644 --- a/doc/models/catalog-item-option-value.md +++ b/doc/models/catalog-item-option-value.md @@ -23,11 +23,11 @@ its item option values. ```json { - "item_option_id": "item_option_id2", - "name": "name0", - "description": "description0", - "color": "color6", - "ordinal": 80 + "item_option_id": "item_option_id6", + "name": "name4", + "description": "description4", + "color": "color8", + "ordinal": 198 } ``` diff --git a/doc/models/catalog-item-option.md b/doc/models/catalog-item-option.md index 62b687b0..e99f4bc7 100644 --- a/doc/models/catalog-item-option.md +++ b/doc/models/catalog-item-option.md @@ -21,107 +21,80 @@ A group of variations for a `CatalogItem`. ```json { - "name": "name0", - "display_name": "display_name0", - "description": "description0", + "name": "name2", + "display_name": "display_name2", + "description": "description2", "show_colors": false, "values": [ { - "type": "TAX", + "type": "SUBSCRIPTION_PLAN_VARIATION", "id": "id0", "updated_at": "updated_at6", - "version": 100, + "version": 116, "is_deleted": false, "custom_attribute_values": { "key0": { - "name": "name1", - "string_value": "string_value5", - "custom_attribute_definition_id": "custom_attribute_definition_id1", - "type": "SELECTION", - "number_value": "number_value1" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" }, "key1": { - "name": "name0", - "string_value": "string_value4", - "custom_attribute_definition_id": "custom_attribute_definition_id2", + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", "type": "STRING", - "number_value": "number_value0" + "number_value": "number_value8" }, "key2": { - "name": "name9", - "string_value": "string_value3", - "custom_attribute_definition_id": "custom_attribute_definition_id3", - "type": "BOOLEAN", - "number_value": "number_value9" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" } }, "catalog_v1_ids": [ { "catalog_v1_id": "catalog_v1_id4", "location_id": "location_id4" - }, - { - "catalog_v1_id": "catalog_v1_id5", - "location_id": "location_id5" - }, - { - "catalog_v1_id": "catalog_v1_id6", - "location_id": "location_id6" } ] }, { - "type": "ITEM_VARIATION", - "id": "id1", - "updated_at": "updated_at7", - "version": 101, - "is_deleted": true, + "type": "SUBSCRIPTION_PLAN_VARIATION", + "id": "id0", + "updated_at": "updated_at6", + "version": 116, + "is_deleted": false, "custom_attribute_values": { "key0": { - "name": "name2", - "string_value": "string_value6", - "custom_attribute_definition_id": "custom_attribute_definition_id0", - "type": "NUMBER", - "number_value": "number_value2" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" }, "key1": { - "name": "name1", - "string_value": "string_value5", - "custom_attribute_definition_id": "custom_attribute_definition_id1", - "type": "SELECTION", - "number_value": "number_value1" - } - }, - "catalog_v1_ids": [ - { - "catalog_v1_id": "catalog_v1_id5", - "location_id": "location_id5" - } - ] - }, - { - "type": "CATEGORY", - "id": "id2", - "updated_at": "updated_at8", - "version": 102, - "is_deleted": false, - "custom_attribute_values": { - "key0": { - "name": "name3", - "string_value": "string_value7", - "custom_attribute_definition_id": "custom_attribute_definition_id9", - "type": "BOOLEAN", - "number_value": "number_value3" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" + }, + "key2": { + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" } }, "catalog_v1_ids": [ { - "catalog_v1_id": "catalog_v1_id6", - "location_id": "location_id6" - }, - { - "catalog_v1_id": "catalog_v1_id7", - "location_id": "location_id7" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" } ] } diff --git a/doc/models/catalog-item-variation.md b/doc/models/catalog-item-variation.md index 6e9e900b..1453f880 100644 --- a/doc/models/catalog-item-variation.md +++ b/doc/models/catalog-item-variation.md @@ -46,11 +46,11 @@ decreases by 2, and the stockable count automatically decreases by 0.4 bottle ac ```json { - "item_id": "item_id0", - "name": "name0", - "sku": "sku4", + "item_id": "item_id4", + "name": "name4", + "sku": "sku0", "upc": "upc2", - "ordinal": 80 + "ordinal": 76 } ``` diff --git a/doc/models/catalog-item.md b/doc/models/catalog-item.md index 7a25a9f9..53b9dffd 100644 --- a/doc/models/catalog-item.md +++ b/doc/models/catalog-item.md @@ -46,10 +46,10 @@ A [CatalogObject](../../doc/models/catalog-object.md) instance of the `ITEM` typ "present_at_all_locations": true, "type": "ITEM" }, - "name": "name0", - "description": "description0", - "abbreviation": "abbreviation2", - "label_color": "label_color2", + "name": "name6", + "description": "description6", + "abbreviation": "abbreviation8", + "label_color": "label_color8", "available_online": false } ``` diff --git a/doc/models/catalog-measurement-unit.md b/doc/models/catalog-measurement-unit.md index 59e0d3d7..31ab1b14 100644 --- a/doc/models/catalog-measurement-unit.md +++ b/doc/models/catalog-measurement-unit.md @@ -29,7 +29,7 @@ specifies the precision for decimal quantities. "volume_unit": "METRIC_LITER", "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 196 + "precision": 78 } ``` diff --git a/doc/models/catalog-modifier-list.md b/doc/models/catalog-modifier-list.md index 0d18ecbc..24d6e7c4 100644 --- a/doc/models/catalog-modifier-list.md +++ b/doc/models/catalog-modifier-list.md @@ -69,85 +69,57 @@ the modifier list are allowed. }, "present_at_all_locations": true, "type": "MODIFIER_LIST", - "name": "name0", - "ordinal": 80, + "name": "name4", + "ordinal": 226, "selection_type": "SINGLE", "modifiers": [ { - "type": "DISCOUNT", - "id": "id1", - "updated_at": "updated_at7", - "version": 145, - "is_deleted": true, - "custom_attribute_values": { - "key0": { - "name": "name2", - "string_value": "string_value6", - "custom_attribute_definition_id": "custom_attribute_definition_id0", - "type": "NUMBER", - "number_value": "number_value2" - } - }, - "catalog_v1_ids": [ - { - "catalog_v1_id": "catalog_v1_id5", - "location_id": "location_id5" - }, - { - "catalog_v1_id": "catalog_v1_id6", - "location_id": "location_id6" - } - ] - }, - { - "type": "TAX", - "id": "id2", - "updated_at": "updated_at8", - "version": 146, + "type": "QUICK_AMOUNTS_SETTINGS", + "id": "id4", + "updated_at": "updated_at0", + "version": 210, "is_deleted": false, "custom_attribute_values": { "key0": { - "name": "name3", - "string_value": "string_value7", - "custom_attribute_definition_id": "custom_attribute_definition_id9", - "type": "BOOLEAN", - "number_value": "number_value3" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" }, "key1": { - "name": "name2", - "string_value": "string_value6", - "custom_attribute_definition_id": "custom_attribute_definition_id0", - "type": "NUMBER", - "number_value": "number_value2" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" }, "key2": { - "name": "name1", - "string_value": "string_value5", - "custom_attribute_definition_id": "custom_attribute_definition_id1", - "type": "SELECTION", - "number_value": "number_value1" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" } }, "catalog_v1_ids": [ { - "catalog_v1_id": "catalog_v1_id6", - "location_id": "location_id6" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" }, { - "catalog_v1_id": "catalog_v1_id7", - "location_id": "location_id7" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" }, { - "catalog_v1_id": "catalog_v1_id8", - "location_id": "location_id8" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" } ] } ], "image_ids": [ - "image_ids5", - "image_ids6", - "image_ids7" + "image_ids9" ] } ``` diff --git a/doc/models/catalog-modifier.md b/doc/models/catalog-modifier.md index c5329716..0a8bc5d0 100644 --- a/doc/models/catalog-modifier.md +++ b/doc/models/catalog-modifier.md @@ -33,34 +33,37 @@ A modifier applicable to items at the time of sale. An example of a modifier is "present_at_all_locations": true, "type": "MODIFIER" }, - "name": "name0", + "name": "name6", "price_money": { "amount": 202, "currency": "CNY" }, - "ordinal": 80, - "modifier_list_id": "modifier_list_id6", + "ordinal": 70, + "modifier_list_id": "modifier_list_id2", "location_overrides": [ { - "location_id": "location_id5", + "location_id": "location_id8", "price_money": { - "amount": 155, - "currency": "XPT" - } + "amount": 202, + "currency": "CNY" + }, + "sold_out": false }, { - "location_id": "location_id6", + "location_id": "location_id8", "price_money": { - "amount": 156, - "currency": "XTS" - } + "amount": 202, + "currency": "CNY" + }, + "sold_out": false }, { - "location_id": "location_id7", + "location_id": "location_id8", "price_money": { - "amount": 157, - "currency": "XXX" - } + "amount": 202, + "currency": "CNY" + }, + "sold_out": false } ] } diff --git a/doc/models/catalog-object-batch.md b/doc/models/catalog-object-batch.md index 49191516..09fabccc 100644 --- a/doc/models/catalog-object-batch.md +++ b/doc/models/catalog-object-batch.md @@ -19,8 +19,8 @@ A batch of catalog objects. { "objects": [ { - "type": "MODIFIER_LIST", - "id": "id8", + "type": "PRICING_RULE", + "id": "id6", "item_data": { "object": { "id": "#Cocoa", @@ -131,16 +131,16 @@ A batch of catalog objects. "type": "MODIFIER" } }, - "updated_at": "updated_at4", - "version": 252, + "updated_at": "updated_at2", + "version": 164, "is_deleted": false, "custom_attribute_values": { "key0": { - "name": "name9", - "string_value": "string_value3", - "custom_attribute_definition_id": "custom_attribute_definition_id3", - "type": "SELECTION", - "number_value": "number_value9" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" }, "key1": { "name": "name8", @@ -152,8 +152,16 @@ A batch of catalog objects. }, "catalog_v1_ids": [ { - "catalog_v1_id": "catalog_v1_id2", - "location_id": "location_id2" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" + }, + { + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" + }, + { + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" } ] } diff --git a/doc/models/catalog-object-reference.md b/doc/models/catalog-object-reference.md index 462cb27e..80619d87 100644 --- a/doc/models/catalog-object-reference.md +++ b/doc/models/catalog-object-reference.md @@ -20,8 +20,8 @@ at a specific version. ```json { - "object_id": "object_id8", - "catalog_version": 126 + "object_id": "object_id0", + "catalog_version": 84 } ``` diff --git a/doc/models/catalog-object.md b/doc/models/catalog-object.md index 0e10f892..6d723885 100644 --- a/doc/models/catalog-object.md +++ b/doc/models/catalog-object.md @@ -53,8 +53,8 @@ For a more detailed discussion of the Catalog data model, please see the ```json { - "type": "CATEGORY", - "id": "id0", + "type": "TAX", + "id": "id4", "item_data": { "object": { "id": "#Cocoa", @@ -165,16 +165,30 @@ For a more detailed discussion of the Catalog data model, please see the "type": "MODIFIER" } }, - "updated_at": "updated_at4", - "version": 172, + "updated_at": "updated_at0", + "version": 186, "is_deleted": false, "custom_attribute_values": { "key0": { - "name": "name9", - "string_value": "string_value3", - "custom_attribute_definition_id": "custom_attribute_definition_id3", - "type": "BOOLEAN", - "number_value": "number_value9" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" + }, + "key1": { + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" + }, + "key2": { + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" } }, "catalog_v1_ids": [ @@ -183,8 +197,12 @@ For a more detailed discussion of the Catalog data model, please see the "location_id": "location_id4" }, { - "catalog_v1_id": "catalog_v1_id5", - "location_id": "location_id5" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" + }, + { + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" } ] } diff --git a/doc/models/catalog-pricing-rule.md b/doc/models/catalog-pricing-rule.md index 3d896913..aebca6c9 100644 --- a/doc/models/catalog-pricing-rule.md +++ b/doc/models/catalog-pricing-rule.md @@ -30,15 +30,13 @@ during the active time period. ```json { - "name": "name0", + "name": "name6", "time_period_ids": [ - "time_period_ids2", - "time_period_ids3", - "time_period_ids4" + "time_period_ids8" ], - "discount_id": "discount_id8", - "match_products_id": "match_products_id2", - "apply_products_id": "apply_products_id6" + "discount_id": "discount_id4", + "match_products_id": "match_products_id4", + "apply_products_id": "apply_products_id0" } ``` diff --git a/doc/models/catalog-product-set.md b/doc/models/catalog-product-set.md index d341bc87..d2e980df 100644 --- a/doc/models/catalog-product-set.md +++ b/doc/models/catalog-product-set.md @@ -27,17 +27,15 @@ a product set will also include its item variations. ```json { - "name": "name0", + "name": "name6", "product_ids_any": [ - "product_ids_any8", - "product_ids_any9" + "product_ids_any8" ], "product_ids_all": [ - "product_ids_all9", - "product_ids_all0" + "product_ids_all7" ], - "quantity_exact": 90, - "quantity_min": 44 + "quantity_exact": 222, + "quantity_min": 100 } ``` diff --git a/doc/models/catalog-query-item-variations-for-item-option-values.md b/doc/models/catalog-query-item-variations-for-item-option-values.md index d223ed76..c49bba1d 100644 --- a/doc/models/catalog-query-item-variations-for-item-option-values.md +++ b/doc/models/catalog-query-item-variations-for-item-option-values.md @@ -19,7 +19,8 @@ The query filter to return the item variations containing the specified item opt { "item_option_value_ids": [ "item_option_value_ids0", - "item_option_value_ids1" + "item_option_value_ids9", + "item_option_value_ids8" ] } ``` diff --git a/doc/models/catalog-query-items-for-item-options.md b/doc/models/catalog-query-items-for-item-options.md index c0ba891c..dbfc2e41 100644 --- a/doc/models/catalog-query-items-for-item-options.md +++ b/doc/models/catalog-query-items-for-item-options.md @@ -18,7 +18,8 @@ The query filter to return the items containing the specified item option IDs. ```json { "item_option_ids": [ - "item_option_ids9" + "item_option_ids5", + "item_option_ids6" ] } ``` diff --git a/doc/models/catalog-query-items-for-modifier-list.md b/doc/models/catalog-query-items-for-modifier-list.md index 7e28daf6..f9d41fff 100644 --- a/doc/models/catalog-query-items-for-modifier-list.md +++ b/doc/models/catalog-query-items-for-modifier-list.md @@ -18,6 +18,8 @@ The query filter to return the items containing the specified modifier list IDs. ```json { "modifier_list_ids": [ + "modifier_list_ids8", + "modifier_list_ids9", "modifier_list_ids0" ] } diff --git a/doc/models/catalog-query-items-for-tax.md b/doc/models/catalog-query-items-for-tax.md index 325e02e2..cb4f5c12 100644 --- a/doc/models/catalog-query-items-for-tax.md +++ b/doc/models/catalog-query-items-for-tax.md @@ -18,7 +18,8 @@ The query filter to return the items containing the specified tax IDs. ```json { "tax_ids": [ - "tax_ids7" + "tax_ids9", + "tax_ids8" ] } ``` diff --git a/doc/models/catalog-query-prefix.md b/doc/models/catalog-query-prefix.md index d8bff858..33ee710d 100644 --- a/doc/models/catalog-query-prefix.md +++ b/doc/models/catalog-query-prefix.md @@ -18,8 +18,8 @@ The query filter to return the search result whose named attribute values are pr ```json { - "attribute_name": "attribute_name4", - "attribute_prefix": "attribute_prefix0" + "attribute_name": "attribute_name8", + "attribute_prefix": "attribute_prefix6" } ``` diff --git a/doc/models/catalog-query-range.md b/doc/models/catalog-query-range.md index 3a316d10..99a93c98 100644 --- a/doc/models/catalog-query-range.md +++ b/doc/models/catalog-query-range.md @@ -19,9 +19,9 @@ The query filter to return the search result whose named attribute values fall b ```json { - "attribute_name": "attribute_name4", - "attribute_min_value": 232, - "attribute_max_value": 114 + "attribute_name": "attribute_name0", + "attribute_min_value": 184, + "attribute_max_value": 94 } ``` diff --git a/doc/models/catalog-query-set.md b/doc/models/catalog-query-set.md index 15293bca..bedd8665 100644 --- a/doc/models/catalog-query-set.md +++ b/doc/models/catalog-query-set.md @@ -19,11 +19,9 @@ the `attribute_values`. ```json { - "attribute_name": "attribute_name4", + "attribute_name": "attribute_name0", "attribute_values": [ - "attribute_values2", - "attribute_values3", - "attribute_values4" + "attribute_values8" ] } ``` diff --git a/doc/models/catalog-query-sorted-attribute.md b/doc/models/catalog-query-sorted-attribute.md index 5c22f0d4..c1bea9b7 100644 --- a/doc/models/catalog-query-sorted-attribute.md +++ b/doc/models/catalog-query-sorted-attribute.md @@ -19,8 +19,8 @@ The query expression to specify the key to sort search results. ```json { - "attribute_name": "attribute_name4", - "initial_attribute_value": "initial_attribute_value6", + "attribute_name": "attribute_name2", + "initial_attribute_value": "initial_attribute_value4", "sort_order": "DESC" } ``` diff --git a/doc/models/catalog-query-text.md b/doc/models/catalog-query-text.md index 0505321b..8c51a8e4 100644 --- a/doc/models/catalog-query-text.md +++ b/doc/models/catalog-query-text.md @@ -18,8 +18,7 @@ The query filter to return the search result whose searchable attribute values c ```json { "keywords": [ - "keywords3", - "keywords4" + "keywords1" ] } ``` diff --git a/doc/models/catalog-quick-amount.md b/doc/models/catalog-quick-amount.md index 14774997..723563ea 100644 --- a/doc/models/catalog-quick-amount.md +++ b/doc/models/catalog-quick-amount.md @@ -25,8 +25,8 @@ Represents a Quick Amount in the Catalog. "amount": 0, "currency": "MNT" }, - "score": 148, - "ordinal": 80 + "score": 12, + "ordinal": 200 } ``` diff --git a/doc/models/catalog-quick-amounts-settings.md b/doc/models/catalog-quick-amounts-settings.md index 3f9f0c28..45049bb6 100644 --- a/doc/models/catalog-quick-amounts-settings.md +++ b/doc/models/catalog-quick-amounts-settings.md @@ -25,20 +25,20 @@ A parent Catalog Object model represents a set of Quick Amounts and the settings { "type": "QUICK_AMOUNT_TYPE_MANUAL", "amount": { - "amount": 244, - "currency": "SRD" + "amount": 0, + "currency": "MNT" }, - "score": 228, - "ordinal": 160 + "score": 116, + "ordinal": 48 }, { - "type": "QUICK_AMOUNT_TYPE_AUTO", + "type": "QUICK_AMOUNT_TYPE_MANUAL", "amount": { - "amount": 245, - "currency": "SSP" + "amount": 0, + "currency": "MNT" }, - "score": 229, - "ordinal": 161 + "score": 116, + "ordinal": 48 } ] } diff --git a/doc/models/catalog-stock-conversion.md b/doc/models/catalog-stock-conversion.md index 2ff73cae..32347647 100644 --- a/doc/models/catalog-stock-conversion.md +++ b/doc/models/catalog-stock-conversion.md @@ -23,7 +23,7 @@ share the same underlying stock. { "stockable_item_variation_id": "stockable_item_variation_id2", "stockable_quantity": "stockable_quantity0", - "nonstockable_quantity": "nonstockable_quantity8" + "nonstockable_quantity": "nonstockable_quantity2" } ``` diff --git a/doc/models/catalog-subscription-plan-variation.md b/doc/models/catalog-subscription-plan-variation.md index 17d7bd05..45c49ee6 100644 --- a/doc/models/catalog-subscription-plan-variation.md +++ b/doc/models/catalog-subscription-plan-variation.md @@ -20,32 +20,31 @@ For more information, see [Subscription Plans and Variations](https://developer. ```json { - "name": "name0", + "name": "name2", "phases": [ { - "uid": "uid5", - "cadence": "EVERY_FOUR_MONTHS", - "periods": 241, + "uid": "uid0", + "cadence": "QUARTERLY", + "periods": 112, "recurring_price_money": { - "amount": 193, - "currency": "CHE" + "amount": 66, + "currency": "TMT" }, - "ordinal": 207, + "ordinal": 78, "pricing": { - "type": "RELATIVE", + "type": "STATIC", "discount_ids": [ - "discount_ids0", - "discount_ids1", - "discount_ids2" + "discount_ids5", + "discount_ids6" ], "price_money": { - "amount": 251, - "currency": "NZD" + "amount": 202, + "currency": "CNY" } } } ], - "subscription_plan_id": "subscription_plan_id2" + "subscription_plan_id": "subscription_plan_id0" } ``` diff --git a/doc/models/catalog-subscription-plan.md b/doc/models/catalog-subscription-plan.md index 672872b9..92813e50 100644 --- a/doc/models/catalog-subscription-plan.md +++ b/doc/models/catalog-subscription-plan.md @@ -23,113 +23,169 @@ For more information, see [Subscription Plans and Variations](https://developer. ```json { - "name": "name0", + "name": "name6", "phases": [ { - "uid": "uid5", - "cadence": "EVERY_FOUR_MONTHS", - "periods": 241, + "uid": "uid0", + "cadence": "QUARTERLY", + "periods": 112, "recurring_price_money": { - "amount": 193, - "currency": "CHE" + "amount": 66, + "currency": "TMT" }, - "ordinal": 207, + "ordinal": 78, "pricing": { - "type": "RELATIVE", + "type": "STATIC", "discount_ids": [ - "discount_ids0", - "discount_ids1", - "discount_ids2" + "discount_ids5", + "discount_ids6" ], "price_money": { - "amount": 251, - "currency": "NZD" + "amount": 202, + "currency": "CNY" } } }, { - "uid": "uid6", + "uid": "uid0", "cadence": "QUARTERLY", - "periods": 242, + "periods": 112, "recurring_price_money": { - "amount": 194, - "currency": "CHF" + "amount": 66, + "currency": "TMT" }, - "ordinal": 208, + "ordinal": 78, "pricing": { "type": "STATIC", "discount_ids": [ - "discount_ids9", - "discount_ids0" + "discount_ids5", + "discount_ids6" ], "price_money": { - "amount": 252, - "currency": "OMR" + "amount": 202, + "currency": "CNY" + } + } + }, + { + "uid": "uid0", + "cadence": "QUARTERLY", + "periods": 112, + "recurring_price_money": { + "amount": 66, + "currency": "TMT" + }, + "ordinal": 78, + "pricing": { + "type": "STATIC", + "discount_ids": [ + "discount_ids5", + "discount_ids6" + ], + "price_money": { + "amount": 202, + "currency": "CNY" } } } ], "subscription_plan_variations": [ { - "type": "MODIFIER_LIST", - "id": "id2", - "updated_at": "updated_at2", - "version": 18, + "type": "TIME_PERIOD", + "id": "id4", + "updated_at": "updated_at0", + "version": 208, "is_deleted": false, "custom_attribute_values": { "key0": { - "name": "name7", - "string_value": "string_value1", - "custom_attribute_definition_id": "custom_attribute_definition_id5", - "type": "SELECTION", - "number_value": "number_value7" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" }, "key1": { "name": "name8", "string_value": "string_value2", "custom_attribute_definition_id": "custom_attribute_definition_id4", - "type": "NUMBER", + "type": "STRING", + "number_value": "number_value8" + }, + "key2": { + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", "number_value": "number_value8" } }, "catalog_v1_ids": [ { - "catalog_v1_id": "catalog_v1_id6", - "location_id": "location_id6" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" + }, + { + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" + }, + { + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" } ] }, { - "type": "DISCOUNT", - "id": "id3", - "updated_at": "updated_at1", - "version": 19, - "is_deleted": true, + "type": "TIME_PERIOD", + "id": "id4", + "updated_at": "updated_at0", + "version": 208, + "is_deleted": false, "custom_attribute_values": { "key0": { - "name": "name6", - "string_value": "string_value0", - "custom_attribute_definition_id": "custom_attribute_definition_id6", + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", "type": "STRING", - "number_value": "number_value6" + "number_value": "number_value8" + }, + "key1": { + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" + }, + "key2": { + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" } }, "catalog_v1_ids": [ { - "catalog_v1_id": "catalog_v1_id7", - "location_id": "location_id7" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" + }, + { + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" }, { - "catalog_v1_id": "catalog_v1_id8", - "location_id": "location_id8" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" } ] } ], "eligible_item_ids": [ - "eligible_item_ids8" + "eligible_item_ids8", + "eligible_item_ids7" ], "eligible_category_ids": [ + "eligible_category_ids5", + "eligible_category_ids6", "eligible_category_ids7" ], "all_items": false diff --git a/doc/models/catalog-tax.md b/doc/models/catalog-tax.md index 0886fca5..56eb0eac 100644 --- a/doc/models/catalog-tax.md +++ b/doc/models/catalog-tax.md @@ -36,10 +36,10 @@ A tax applicable to an item. }, "type": "TAX" }, - "name": "name0", + "name": "name2", "calculation_phase": "TAX_SUBTOTAL_PHASE", "inclusion_type": "ADDITIVE", - "percentage": "percentage8", + "percentage": "percentage0", "applies_to_custom_amounts": false } ``` diff --git a/doc/models/catalog-time-period.md b/doc/models/catalog-time-period.md index ab5cbcbb..945c426b 100644 --- a/doc/models/catalog-time-period.md +++ b/doc/models/catalog-time-period.md @@ -17,7 +17,7 @@ Represents a time period - either a single period or a repeating period. ```json { - "event": "event0" + "event": "event8" } ``` diff --git a/doc/models/catalog-v1-id.md b/doc/models/catalog-v1-id.md index 8626438e..614782cc 100644 --- a/doc/models/catalog-v1-id.md +++ b/doc/models/catalog-v1-id.md @@ -18,8 +18,8 @@ A Square API V1 identifier of an item, including the object ID and its associate ```json { - "catalog_v1_id": "catalog_v1_id4", - "location_id": "location_id4" + "catalog_v1_id": "catalog_v1_id2", + "location_id": "location_id2" } ``` diff --git a/doc/models/charge-request-additional-recipient.md b/doc/models/charge-request-additional-recipient.md index 497aac7f..eab7d22b 100644 --- a/doc/models/charge-request-additional-recipient.md +++ b/doc/models/charge-request-additional-recipient.md @@ -20,8 +20,8 @@ Support is currently limited to USD, CAD and GBP currencies ```json { - "location_id": "location_id4", - "description": "description0", + "location_id": "location_id6", + "description": "description2", "amount_money": { "amount": 186, "currency": "TZS" diff --git a/doc/models/charge-request.md b/doc/models/charge-request.md index 9d4e0f88..399e01bf 100644 --- a/doc/models/charge-request.md +++ b/doc/models/charge-request.md @@ -67,7 +67,7 @@ Deprecated - recommend using [CreatePayment](api-endpoint:Payments-CreatePayment "locality": "San Francisco", "postal_code": "94114" }, - "customer_card_id": "customer_card_id2" + "customer_card_id": "customer_card_id0" } ``` diff --git a/doc/models/charge-response.md b/doc/models/charge-response.md index 1cea334b..80e5a717 100644 --- a/doc/models/charge-response.md +++ b/doc/models/charge-response.md @@ -62,67 +62,76 @@ One of `errors` or `transaction` is present in a given response (never both). ], "refunds": [ { - "id": "id6", - "location_id": "location_id0", - "transaction_id": "transaction_id4", - "tender_id": "tender_id4", + "id": "id8", + "location_id": "location_id2", + "transaction_id": "transaction_id6", + "tender_id": "tender_id6", "created_at": "created_at6", - "reason": "reason8", + "reason": "reason4", "amount_money": { - "amount": 162, - "currency": "XPF" + "amount": 186, + "currency": "TZS" }, "status": "PENDING", "processing_fee_money": { - "amount": 88, - "currency": "COU" + "amount": 112, + "currency": "BBD" }, "additional_recipients": [ { - "location_id": "location_id9", - "description": "description5", + "location_id": "location_id0", + "description": "description6", "amount_money": { - "amount": 59, - "currency": "BOB" + "amount": 186, + "currency": "TZS" }, - "receivable_id": "receivable_id5" + "receivable_id": "receivable_id6" + }, + { + "location_id": "location_id0", + "description": "description6", + "amount_money": { + "amount": 186, + "currency": "TZS" + }, + "receivable_id": "receivable_id6" } ] }, { - "id": "id7", - "location_id": "location_id1", - "transaction_id": "transaction_id5", - "tender_id": "tender_id5", - "created_at": "created_at5", - "reason": "reason7", + "id": "id8", + "location_id": "location_id2", + "transaction_id": "transaction_id6", + "tender_id": "tender_id6", + "created_at": "created_at6", + "reason": "reason4", "amount_money": { - "amount": 163, - "currency": "XPT" + "amount": 186, + "currency": "TZS" }, - "status": "FAILED", + "status": "PENDING", "processing_fee_money": { - "amount": 89, - "currency": "CRC" + "amount": 112, + "currency": "BBD" }, "additional_recipients": [ { "location_id": "location_id0", "description": "description6", "amount_money": { - "amount": 60, - "currency": "BOV" + "amount": 186, + "currency": "TZS" }, "receivable_id": "receivable_id6" }, { - "location_id": "location_id1", - "description": "description7", + "location_id": "location_id0", + "description": "description6", "amount_money": { - "amount": 61, - "currency": "BRL" + "amount": 186, + "currency": "TZS" }, - "receivable_id": "receivable_id7" + "receivable_id": "receivable_id6" } ] }, @@ -131,67 +140,46 @@ One of `errors` or `transaction` is present in a given response (never both). "location_id": "location_id2", "transaction_id": "transaction_id6", "tender_id": "tender_id6", - "created_at": "created_at4", - "reason": "reason6", + "created_at": "created_at6", + "reason": "reason4", "amount_money": { - "amount": 164, - "currency": "XTS" + "amount": 186, + "currency": "TZS" }, - "status": "REJECTED", + "status": "PENDING", "processing_fee_money": { - "amount": 90, - "currency": "CUC" + "amount": 112, + "currency": "BBD" }, "additional_recipients": [ { - "location_id": "location_id1", - "description": "description7", - "amount_money": { - "amount": 61, - "currency": "BRL" - }, - "receivable_id": "receivable_id7" - }, - { - "location_id": "location_id2", - "description": "description8", + "location_id": "location_id0", + "description": "description6", "amount_money": { - "amount": 62, - "currency": "BSD" + "amount": 186, + "currency": "TZS" }, - "receivable_id": "receivable_id8" + "receivable_id": "receivable_id6" }, { - "location_id": "location_id3", - "description": "description9", + "location_id": "location_id0", + "description": "description6", "amount_money": { - "amount": 63, - "currency": "BTN" + "amount": 186, + "currency": "TZS" }, - "receivable_id": "receivable_id9" + "receivable_id": "receivable_id6" } ] } ] }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/checkout-options.md b/doc/models/checkout-options.md index b8c671fb..88cee9dc 100644 --- a/doc/models/checkout-options.md +++ b/doc/models/checkout-options.md @@ -28,18 +28,18 @@ "allow_tipping": false, "custom_fields": [ { - "title": "title9" + "title": "title8" }, { - "title": "title0" + "title": "title8" }, { - "title": "title1" + "title": "title8" } ], - "subscription_plan_id": "subscription_plan_id2", - "redirect_url": "redirect_url2", - "merchant_support_email": "merchant_support_email8" + "subscription_plan_id": "subscription_plan_id0", + "redirect_url": "redirect_url4", + "merchant_support_email": "merchant_support_email0" } ``` diff --git a/doc/models/clearpay-details.md b/doc/models/clearpay-details.md index 51e49e6b..5f724274 100644 --- a/doc/models/clearpay-details.md +++ b/doc/models/clearpay-details.md @@ -17,7 +17,7 @@ Additional details about Clearpay payments. ```json { - "email_address": "email_address2" + "email_address": "email_address6" } ``` diff --git a/doc/models/clone-order-response.md b/doc/models/clone-order-response.md index ad4f3cf3..9f49b8b3 100644 --- a/doc/models/clone-order-response.md +++ b/doc/models/clone-order-response.md @@ -125,20 +125,20 @@ a request to the [CloneOrder](../../doc/api/orders.md#clone-order) endpoint. "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name9", - "abbreviation": "abbreviation1" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "METRIC_SQUARE_CENTIMETER", - "length_unit": "IMPERIAL_MILE", - "volume_unit": "GENERIC_FLUID_OUNCE", - "weight_unit": "METRIC_KILOGRAM" + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_LITER", + "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 201, - "catalog_object_id": "catalog_object_id1", - "catalog_version": 135 + "precision": 54, + "catalog_object_id": "catalog_object_id0", + "catalog_version": 12 }, - "note": "note3", - "catalog_object_id": "catalog_object_id5" + "note": "note4", + "catalog_object_id": "catalog_object_id2" }, { "applied_discounts": [ @@ -228,17 +228,17 @@ a request to the [CloneOrder](../../doc/api/orders.md#clone-order) endpoint. "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name8", - "abbreviation": "abbreviation0" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "IMPERIAL_SQUARE_MILE", - "length_unit": "METRIC_MILLIMETER", + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", "volume_unit": "METRIC_LITER", "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 200, + "precision": 54, "catalog_object_id": "catalog_object_id0", - "catalog_version": 134 + "catalog_version": 12 }, "note": "note4" } @@ -310,22 +310,22 @@ a request to the [CloneOrder](../../doc/api/orders.md#clone-order) endpoint. }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/complete-payment-request.md b/doc/models/complete-payment-request.md index 71227d59..14234ddd 100644 --- a/doc/models/complete-payment-request.md +++ b/doc/models/complete-payment-request.md @@ -21,7 +21,7 @@ To complete payments manually, set `autocomplete` to `false`. ```json { - "version_token": "version_token4" + "version_token": "version_token8" } ``` diff --git a/doc/models/complete-payment-response.md b/doc/models/complete-payment-response.md index 1eb4183d..72e35253 100644 --- a/doc/models/complete-payment-response.md +++ b/doc/models/complete-payment-response.md @@ -84,28 +84,22 @@ Defines the response returned by[CompletePayment](../../doc/api/payments.md#comp "updated_at": "2021-10-13T19:34:34.339Z", "version_token": "56pRkL3slrzet2iQrTp9n0bdJVYTB9YEWdTNjQfZOPV6o", "tip_money": { - "amount": 174, - "currency": "LYD" + "amount": 190, + "currency": "ZMK" } }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/component-component-type.md b/doc/models/component-component-type.md new file mode 100644 index 00000000..3619b08e --- /dev/null +++ b/doc/models/component-component-type.md @@ -0,0 +1,20 @@ + +# Component Component Type + +An enum for ComponentType. + +## Enumeration + +`ComponentComponentType` + +## Fields + +| Name | +| --- | +| `APPLICATION` | +| `CARD_READER` | +| `BATTERY` | +| `WIFI` | +| `ETHERNET` | +| `PRINTER` | + diff --git a/doc/models/component.md b/doc/models/component.md new file mode 100644 index 00000000..feabdb13 --- /dev/null +++ b/doc/models/component.md @@ -0,0 +1,54 @@ + +# Component + +The wrapper object for the component entries of a given component type. + +## Structure + +`Component` + +## Fields + +| Name | Type | Tags | Description | +| --- | --- | --- | --- | +| `type` | [`string`](../../doc/models/component-component-type.md) | Required | An enum for ComponentType. | +| `applicationDetails` | [`DeviceComponentDetailsApplicationDetails \| undefined`](../../doc/models/device-component-details-application-details.md) | Optional | - | +| `cardReaderDetails` | [`DeviceComponentDetailsCardReaderDetails \| undefined`](../../doc/models/device-component-details-card-reader-details.md) | Optional | - | +| `batteryDetails` | [`DeviceComponentDetailsBatteryDetails \| undefined`](../../doc/models/device-component-details-battery-details.md) | Optional | - | +| `wifiDetails` | [`DeviceComponentDetailsWiFiDetails \| undefined`](../../doc/models/device-component-details-wi-fi-details.md) | Optional | - | +| `ethernetDetails` | [`DeviceComponentDetailsEthernetDetails \| undefined`](../../doc/models/device-component-details-ethernet-details.md) | Optional | - | + +## Example (as JSON) + +```json +{ + "type": "BATTERY", + "application_details": { + "application_type": "TERMINAL_API", + "version": "version4", + "session_location": "session_location0", + "device_code_id": "device_code_id2" + }, + "card_reader_details": { + "version": "version0" + }, + "battery_details": { + "visible_percent": 108, + "external_power": "AVAILABLE_CHARGING" + }, + "wifi_details": { + "active": false, + "ssid": "ssid8", + "ip_address_v4": "ip_address_v42", + "secure_connection": "secure_connection8", + "signal_strength": { + "value": 222 + } + }, + "ethernet_details": { + "active": false, + "ip_address_v4": "ip_address_v42" + } +} +``` + diff --git a/doc/models/confirmation-options.md b/doc/models/confirmation-options.md index b63598b8..8553d319 100644 --- a/doc/models/confirmation-options.md +++ b/doc/models/confirmation-options.md @@ -19,10 +19,10 @@ ```json { - "title": "title4", - "body": "body6", - "agree_button_text": "agree_button_text4", - "disagree_button_text": "disagree_button_text4", + "title": "title0", + "body": "body0", + "agree_button_text": "agree_button_text8", + "disagree_button_text": "disagree_button_text8", "decision": { "has_agreed": false } diff --git a/doc/models/coordinates.md b/doc/models/coordinates.md index ec0e51d7..a0691f38 100644 --- a/doc/models/coordinates.md +++ b/doc/models/coordinates.md @@ -18,8 +18,8 @@ Latitude and longitude coordinates. ```json { - "latitude": 65.76, - "longitude": 188.04 + "latitude": 200.94, + "longitude": 52.86 } ``` diff --git a/doc/models/create-booking-request.md b/doc/models/create-booking-request.md index 90ef5bef..1eb1778e 100644 --- a/doc/models/create-booking-request.md +++ b/doc/models/create-booking-request.md @@ -16,7 +16,7 @@ ```json { - "idempotency_key": "idempotency_key6", + "idempotency_key": "idempotency_key4", "booking": { "id": "id4", "version": 156, diff --git a/doc/models/create-break-type-response.md b/doc/models/create-break-type-response.md index 91421a80..8536bef5 100644 --- a/doc/models/create-break-type-response.md +++ b/doc/models/create-break-type-response.md @@ -32,22 +32,22 @@ the request resulted in errors. }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/create-card-request.md b/doc/models/create-card-request.md index d4acb331..c806aef5 100644 --- a/doc/models/create-card-request.md +++ b/doc/models/create-card-request.md @@ -41,7 +41,7 @@ HTTP requests at POST https://connect.squareup.com/v2/cards }, "idempotency_key": "4935a656-a929-4792-b97c-8848be85c27c", "source_id": "cnon:uIbfJXhXETSP197M3GB", - "verification_token": "verification_token6" + "verification_token": "verification_token4" } ``` diff --git a/doc/models/create-card-response.md b/doc/models/create-card-response.md index 5f1564a1..0a6b9b69 100644 --- a/doc/models/create-card-response.md +++ b/doc/models/create-card-response.md @@ -49,22 +49,22 @@ present. }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/create-catalog-image-request.md b/doc/models/create-catalog-image-request.md index a42bdad2..07b1ed2b 100644 --- a/doc/models/create-catalog-image-request.md +++ b/doc/models/create-catalog-image-request.md @@ -30,32 +30,32 @@ "is_deleted": false, "custom_attribute_values": { "key0": { - "name": "name9", - "string_value": "string_value3", - "custom_attribute_definition_id": "custom_attribute_definition_id3", - "type": "BOOLEAN", - "number_value": "number_value9" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" }, "key1": { - "name": "name0", - "string_value": "string_value4", - "custom_attribute_definition_id": "custom_attribute_definition_id2", + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", "type": "STRING", - "number_value": "number_value0" + "number_value": "number_value8" } }, "catalog_v1_ids": [ { - "catalog_v1_id": "catalog_v1_id0", - "location_id": "location_id0" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" }, { - "catalog_v1_id": "catalog_v1_id1", - "location_id": "location_id1" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" }, { - "catalog_v1_id": "catalog_v1_id2", - "location_id": "location_id2" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" } ] }, diff --git a/doc/models/create-catalog-image-response.md b/doc/models/create-catalog-image-response.md index 04fa28e8..a62c7dc0 100644 --- a/doc/models/create-catalog-image-response.md +++ b/doc/models/create-catalog-image-response.md @@ -28,53 +28,41 @@ "is_deleted": false, "custom_attribute_values": { "key0": { - "name": "name9", - "string_value": "string_value3", - "custom_attribute_definition_id": "custom_attribute_definition_id3", - "type": "BOOLEAN", - "number_value": "number_value9" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" }, "key1": { - "name": "name0", - "string_value": "string_value4", - "custom_attribute_definition_id": "custom_attribute_definition_id2", + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", "type": "STRING", - "number_value": "number_value0" + "number_value": "number_value8" } }, "catalog_v1_ids": [ { - "catalog_v1_id": "catalog_v1_id0", - "location_id": "location_id0" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" }, { - "catalog_v1_id": "catalog_v1_id1", - "location_id": "location_id1" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" }, { - "catalog_v1_id": "catalog_v1_id2", - "location_id": "location_id2" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" } ] }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/create-checkout-request.md b/doc/models/create-checkout-request.md index 92375c98..2c7c74fe 100644 --- a/doc/models/create-checkout-request.md +++ b/doc/models/create-checkout-request.md @@ -72,24 +72,24 @@ a request to the `CreateCheckout` endpoint. }, "name": "Printed T Shirt", "quantity": "2", - "uid": "uid9", + "uid": "uid8", "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name7", - "abbreviation": "abbreviation9" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "IMPERIAL_SQUARE_YARD", - "length_unit": "METRIC_CENTIMETER", - "volume_unit": "GENERIC_PINT", - "weight_unit": "METRIC_KILOGRAM" + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_LITER", + "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 199, - "catalog_object_id": "catalog_object_id9", - "catalog_version": 133 + "precision": 54, + "catalog_object_id": "catalog_object_id0", + "catalog_version": 12 }, - "note": "note5", - "catalog_object_id": "catalog_object_id7" + "note": "note4", + "catalog_object_id": "catalog_object_id2" }, { "base_price_money": { @@ -98,24 +98,24 @@ a request to the `CreateCheckout` endpoint. }, "name": "Slim Jeans", "quantity": "1", - "uid": "uid0", + "uid": "uid8", "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name8", - "abbreviation": "abbreviation0" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "IMPERIAL_SQUARE_MILE", - "length_unit": "METRIC_MILLIMETER", - "volume_unit": "GENERIC_QUART", - "weight_unit": "METRIC_GRAM" + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_LITER", + "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 200, + "precision": 54, "catalog_object_id": "catalog_object_id0", - "catalog_version": 134 + "catalog_version": 12 }, - "note": "note6", - "catalog_object_id": "catalog_object_id6" + "note": "note4", + "catalog_object_id": "catalog_object_id2" }, { "base_price_money": { @@ -124,24 +124,24 @@ a request to the `CreateCheckout` endpoint. }, "name": "Woven Sweater", "quantity": "3", - "uid": "uid1", + "uid": "uid8", "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name9", - "abbreviation": "abbreviation1" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "METRIC_SQUARE_CENTIMETER", - "length_unit": "IMPERIAL_MILE", - "volume_unit": "GENERIC_GALLON", - "weight_unit": "METRIC_MILLIGRAM" + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_LITER", + "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 201, - "catalog_object_id": "catalog_object_id1", - "catalog_version": 135 + "precision": 54, + "catalog_object_id": "catalog_object_id0", + "catalog_version": 12 }, - "note": "note7", - "catalog_object_id": "catalog_object_id5" + "note": "note4", + "catalog_object_id": "catalog_object_id2" } ], "location_id": "location_id", @@ -154,7 +154,7 @@ a request to the `CreateCheckout` endpoint. "uid": "38ze1696-z1e3-5628-af6d-f1e04d947fg3" } ], - "id": "id0", + "id": "id6", "source": { "name": "name4" } diff --git a/doc/models/create-checkout-response.md b/doc/models/create-checkout-response.md index 4efe079b..204f30fe 100644 --- a/doc/models/create-checkout-response.md +++ b/doc/models/create-checkout-response.md @@ -154,23 +154,17 @@ a request to the `CreateCheckout` endpoint. "version": 1 }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/create-customer-card-request.md b/doc/models/create-customer-card-request.md index a26fec49..4790c2af 100644 --- a/doc/models/create-customer-card-request.md +++ b/doc/models/create-customer-card-request.md @@ -33,7 +33,7 @@ to the `CreateCustomerCard` endpoint. }, "card_nonce": "YOUR_CARD_NONCE", "cardholder_name": "Amelia Earhart", - "verification_token": "verification_token6" + "verification_token": "verification_token0" } ``` diff --git a/doc/models/create-customer-card-response.md b/doc/models/create-customer-card-response.md index e5ff2b14..26882a17 100644 --- a/doc/models/create-customer-card-response.md +++ b/doc/models/create-customer-card-response.md @@ -38,23 +38,17 @@ Either `errors` or `card` is present in a given response (never both). "last_4": "1111" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/create-customer-custom-attribute-definition-request.md b/doc/models/create-customer-custom-attribute-definition-request.md index 976cbacd..73aaa8c7 100644 --- a/doc/models/create-customer-custom-attribute-definition-request.md +++ b/doc/models/create-customer-custom-attribute-definition-request.md @@ -28,7 +28,7 @@ Represents a [CreateCustomerCustomAttributeDefinition](../../doc/api/customer-cu }, "visibility": "VISIBILITY_HIDDEN" }, - "idempotency_key": "idempotency_key6" + "idempotency_key": "idempotency_key4" } ``` diff --git a/doc/models/create-customer-custom-attribute-definition-response.md b/doc/models/create-customer-custom-attribute-definition-response.md index 58722784..ebbac091 100644 --- a/doc/models/create-customer-custom-attribute-definition-response.md +++ b/doc/models/create-customer-custom-attribute-definition-response.md @@ -34,22 +34,22 @@ Either `custom_attribute_definition` or `errors` is present in the response. }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/create-customer-group-request.md b/doc/models/create-customer-group-request.md index 05eddd21..5eda7d66 100644 --- a/doc/models/create-customer-group-request.md +++ b/doc/models/create-customer-group-request.md @@ -25,7 +25,7 @@ Defines the body parameters that can be included in a request to the "created_at": "created_at4", "updated_at": "updated_at6" }, - "idempotency_key": "idempotency_key6" + "idempotency_key": "idempotency_key0" } ``` diff --git a/doc/models/create-customer-group-response.md b/doc/models/create-customer-group-response.md index 487b5192..dc7085c8 100644 --- a/doc/models/create-customer-group-response.md +++ b/doc/models/create-customer-group-response.md @@ -28,23 +28,11 @@ Either `errors` or `group` is present in a given response (never both). "updated_at": "2020-04-13T21:54:58Z" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/create-customer-request.md b/doc/models/create-customer-request.md index 59c0dd4d..8ca46777 100644 --- a/doc/models/create-customer-request.md +++ b/doc/models/create-customer-request.md @@ -43,9 +43,9 @@ Defines the body parameters that can be included in a request to the "note": "a customer", "phone_number": "+1-212-555-4240", "reference_id": "YOUR_REFERENCE_ID", - "idempotency_key": "idempotency_key6", - "company_name": "company_name6", - "nickname": "nickname6" + "idempotency_key": "idempotency_key4", + "company_name": "company_name4", + "nickname": "nickname4" } ``` diff --git a/doc/models/create-customer-response.md b/doc/models/create-customer-response.md index f209c1de..b3cddcc3 100644 --- a/doc/models/create-customer-response.md +++ b/doc/models/create-customer-response.md @@ -46,32 +46,20 @@ Either `errors` or `customer` is present in a given response (never both). "version": 0, "cards": [ { - "id": "id7", - "card_brand": "AMERICAN_EXPRESS", - "last_4": "last_49", - "exp_month": 113, - "exp_year": 183 + "id": "id8", + "card_brand": "DISCOVER", + "last_4": "last_40", + "exp_month": 152, + "exp_year": 144 } ] }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/create-device-code-response.md b/doc/models/create-device-code-response.md index 2cfeb02c..b2348677 100644 --- a/doc/models/create-device-code-response.md +++ b/doc/models/create-device-code-response.md @@ -29,23 +29,11 @@ "device_id": "device_id0" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/create-dispute-evidence-file-request.md b/doc/models/create-dispute-evidence-file-request.md index 9bfe4796..6af5fb25 100644 --- a/doc/models/create-dispute-evidence-file-request.md +++ b/doc/models/create-dispute-evidence-file-request.md @@ -19,8 +19,8 @@ Defines the parameters for a `CreateDisputeEvidenceFile` request. ```json { - "idempotency_key": "idempotency_key6", - "evidence_type": "RECEIPT", + "idempotency_key": "idempotency_key8", + "evidence_type": "REBUTTAL_EXPLANATION", "content_type": "content_type6" } ``` diff --git a/doc/models/create-dispute-evidence-file-response.md b/doc/models/create-dispute-evidence-file-response.md index bae66b2c..7f364f52 100644 --- a/doc/models/create-dispute-evidence-file-response.md +++ b/doc/models/create-dispute-evidence-file-response.md @@ -30,23 +30,17 @@ Defines the fields in a `CreateDisputeEvidenceFile` response. "evidence_text": "evidence_text6" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/create-dispute-evidence-text-response.md b/doc/models/create-dispute-evidence-text-response.md index 1a1b6051..c1d06fd2 100644 --- a/doc/models/create-dispute-evidence-text-response.md +++ b/doc/models/create-dispute-evidence-text-response.md @@ -26,28 +26,22 @@ Defines the fields in a `CreateDisputeEvidenceText` response. "uploaded_at": "2022-05-18T16:01:10.000Z", "evidence_id": "evidence_id0", "evidence_file": { - "filename": "filename0", - "filetype": "filetype0" + "filename": "filename8", + "filetype": "filetype8" } }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/create-gift-card-activity-request.md b/doc/models/create-gift-card-activity-request.md index 026fa2c3..a12ada50 100644 --- a/doc/models/create-gift-card-activity-request.md +++ b/doc/models/create-gift-card-activity-request.md @@ -30,8 +30,8 @@ A request to create a gift card activity. "created_at": "created_at6", "gift_card_gan": "gift_card_gan2", "gift_card_balance_money": { - "amount": 172, - "currency": "WST" + "amount": 82, + "currency": "KPW" } }, "idempotency_key": "U16kfr-kA70er-q4Rsym-7U7NnY" diff --git a/doc/models/create-gift-card-activity-response.md b/doc/models/create-gift-card-activity-response.md index ec1aa395..f4529683 100644 --- a/doc/models/create-gift-card-activity-response.md +++ b/doc/models/create-gift-card-activity-response.md @@ -40,23 +40,17 @@ The response might contain a set of `Error` objects if the request resulted in e "type": "ACTIVATE" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/create-gift-card-request.md b/doc/models/create-gift-card-request.md index 1c7b115a..13b0906d 100644 --- a/doc/models/create-gift-card-request.md +++ b/doc/models/create-gift-card-request.md @@ -25,8 +25,8 @@ Represents a [CreateGiftCard](../../doc/api/gift-cards.md#create-gift-card) requ "gan_source": "SQUARE", "state": "ACTIVE", "balance_money": { - "amount": 250, - "currency": "CHF" + "amount": 146, + "currency": "MVR" }, "gan": "gan6" }, diff --git a/doc/models/create-gift-card-response.md b/doc/models/create-gift-card-response.md index 5b71019c..8357ec59 100644 --- a/doc/models/create-gift-card-response.md +++ b/doc/models/create-gift-card-response.md @@ -33,22 +33,22 @@ resulted in errors. }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/create-invoice-request.md b/doc/models/create-invoice-request.md index e649c1f7..7f095fde 100644 --- a/doc/models/create-invoice-request.md +++ b/doc/models/create-invoice-request.md @@ -60,9 +60,9 @@ Describes a `CreateInvoice` request. ], "primary_recipient": { "customer_id": "JDKYHBWT1D4F8MFH63DBMEN8Y4", - "given_name": "given_name2", - "family_name": "family_name4", - "email_address": "email_address8", + "given_name": "given_name6", + "family_name": "family_name8", + "email_address": "email_address2", "address": { "address_line_1": "address_line_16", "address_line_2": "address_line_26", diff --git a/doc/models/create-invoice-response.md b/doc/models/create-invoice-response.md index 1c4b2cba..1aa5b8ff 100644 --- a/doc/models/create-invoice-response.md +++ b/doc/models/create-invoice-response.md @@ -94,23 +94,11 @@ The response returned by the `CreateInvoice` request. "version": 0 }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/create-location-custom-attribute-definition-response.md b/doc/models/create-location-custom-attribute-definition-response.md index 565c704b..ac403a7d 100644 --- a/doc/models/create-location-custom-attribute-definition-response.md +++ b/doc/models/create-location-custom-attribute-definition-response.md @@ -33,23 +33,11 @@ Either `custom_attribute_definition` or `errors` is present in the response. "visibility": "VISIBILITY_READ_WRITE_VALUES" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/create-location-request.md b/doc/models/create-location-request.md index ec8640f3..03f58167 100644 --- a/doc/models/create-location-request.md +++ b/doc/models/create-location-request.md @@ -23,9 +23,9 @@ The request object for the [CreateLocation](../../doc/api/locations.md#create-lo "administrative_district_level_1": "GA", "locality": "Atlanta", "postal_code": "30309", - "address_line_2": "address_line_20", - "address_line_3": "address_line_36", - "sublocality": "sublocality0" + "address_line_2": "address_line_26", + "address_line_3": "address_line_32", + "sublocality": "sublocality6" }, "description": "Midtown Atlanta store", "name": "Midtown", diff --git a/doc/models/create-location-response.md b/doc/models/create-location-response.md index 68a4a22f..d165239c 100644 --- a/doc/models/create-location-response.md +++ b/doc/models/create-location-response.md @@ -24,9 +24,9 @@ The response object returned by the [CreateLocation](../../doc/api/locations.md# "administrative_district_level_1": "GA", "locality": "Atlanta", "postal_code": "30309", - "address_line_2": "address_line_20", - "address_line_3": "address_line_36", - "sublocality": "sublocality0" + "address_line_2": "address_line_26", + "address_line_3": "address_line_32", + "sublocality": "sublocality6" }, "business_name": "Jet Fuel Coffee", "capabilities": [ @@ -51,22 +51,22 @@ The response object returned by the [CreateLocation](../../doc/api/locations.md# }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/create-loyalty-account-response.md b/doc/models/create-loyalty-account-response.md index 0487ce10..18e3ffa6 100644 --- a/doc/models/create-loyalty-account-response.md +++ b/doc/models/create-loyalty-account-response.md @@ -34,23 +34,11 @@ A response that includes loyalty account created. "enrolled_at": "enrolled_at6" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/create-loyalty-promotion-request.md b/doc/models/create-loyalty-promotion-request.md index 6579e5b5..ee716c73 100644 --- a/doc/models/create-loyalty-promotion-request.md +++ b/doc/models/create-loyalty-promotion-request.md @@ -25,16 +25,16 @@ Represents a [CreateLoyaltyPromotion](../../doc/api/loyalty.md#create-loyalty-pr "BEGIN:VEVENT\nDTSTART:20220816T160000\nDURATION:PT2H\nRRULE:FREQ=WEEKLY;BYDAY=TU\nEND:VEVENT" ], "start_date": "start_date4", - "end_date": "end_date2" + "end_date": "end_date8" }, "incentive": { "points_multiplier_data": { "multiplier": "3.0", - "points_multiplier": 160 + "points_multiplier": 134 }, "type": "POINTS_MULTIPLIER", "points_addition_data": { - "points_addition": 192 + "points_addition": 218 } }, "minimum_spend_amount_money": { diff --git a/doc/models/create-loyalty-promotion-response.md b/doc/models/create-loyalty-promotion-response.md index 926d319f..1ad82937 100644 --- a/doc/models/create-loyalty-promotion-response.md +++ b/doc/models/create-loyalty-promotion-response.md @@ -25,7 +25,7 @@ Either `loyalty_promotion` or `errors` is present in the response. "time_periods": [ "BEGIN:VEVENT\nDTSTART:20220816T160000\nDURATION:PT2H\nRRULE:FREQ=WEEKLY;BYDAY=TU\nEND:VEVENT" ], - "end_date": "end_date2" + "end_date": "end_date8" }, "created_at": "2022-08-16T08:38:54Z", "id": "loypromo_f0f9b849-725e-378d-b810-511237e07b67", @@ -36,7 +36,7 @@ Either `loyalty_promotion` or `errors` is present in the response. }, "type": "POINTS_MULTIPLIER", "points_addition_data": { - "points_addition": 192 + "points_addition": 218 } }, "loyalty_program_id": "d619f755-2d17-41f3-990d-c04ecedd64dd", @@ -57,23 +57,17 @@ Either `loyalty_promotion` or `errors` is present in the response. "canceled_at": "canceled_at0" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/create-loyalty-reward-response.md b/doc/models/create-loyalty-reward-response.md index 15b0972a..b1414f9d 100644 --- a/doc/models/create-loyalty-reward-response.md +++ b/doc/models/create-loyalty-reward-response.md @@ -29,23 +29,17 @@ A response that includes the loyalty reward created. "updated_at": "2020-05-01T21:49:54Z" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/create-merchant-custom-attribute-definition-response.md b/doc/models/create-merchant-custom-attribute-definition-response.md index b83ab70f..68e18ed4 100644 --- a/doc/models/create-merchant-custom-attribute-definition-response.md +++ b/doc/models/create-merchant-custom-attribute-definition-response.md @@ -33,23 +33,11 @@ Either `custom_attribute_definition` or `errors` is present in the response. "visibility": "VISIBILITY_READ_ONLY" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/create-mobile-authorization-code-response.md b/doc/models/create-mobile-authorization-code-response.md index 95b2fb99..e3b41503 100644 --- a/doc/models/create-mobile-authorization-code-response.md +++ b/doc/models/create-mobile-authorization-code-response.md @@ -23,23 +23,17 @@ a request to the `CreateMobileAuthorizationCode` endpoint. "authorization_code": "YOUR_MOBILE_AUTHORIZATION_CODE", "expires_at": "2019-01-10T19:42:08Z", "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/create-order-custom-attribute-definition-response.md b/doc/models/create-order-custom-attribute-definition-response.md index 2324de3d..46db2901 100644 --- a/doc/models/create-order-custom-attribute-definition-response.md +++ b/doc/models/create-order-custom-attribute-definition-response.md @@ -33,22 +33,22 @@ Represents a response from creating an order custom attribute definition. }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/create-order-request.md b/doc/models/create-order-request.md index df2195f0..8e6efc44 100644 --- a/doc/models/create-order-request.md +++ b/doc/models/create-order-request.md @@ -48,24 +48,24 @@ }, "name": "New York Strip Steak", "quantity": "1", - "uid": "uid1", + "uid": "uid8", "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name9", - "abbreviation": "abbreviation1" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "METRIC_SQUARE_CENTIMETER", - "length_unit": "IMPERIAL_MILE", - "volume_unit": "GENERIC_FLUID_OUNCE", - "weight_unit": "METRIC_KILOGRAM" + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_LITER", + "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 201, - "catalog_object_id": "catalog_object_id1", - "catalog_version": 135 + "precision": 54, + "catalog_object_id": "catalog_object_id0", + "catalog_version": 12 }, - "note": "note3", - "catalog_object_id": "catalog_object_id5" + "note": "note4", + "catalog_object_id": "catalog_object_id2" }, { "applied_discounts": [ @@ -80,22 +80,22 @@ } ], "quantity": "2", - "uid": "uid0", - "name": "name0", + "uid": "uid8", + "name": "name8", "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name8", - "abbreviation": "abbreviation0" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "IMPERIAL_SQUARE_MILE", - "length_unit": "METRIC_MILLIMETER", + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", "volume_unit": "METRIC_LITER", "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 200, + "precision": 54, "catalog_object_id": "catalog_object_id0", - "catalog_version": 134 + "catalog_version": 12 }, "note": "note4" } @@ -112,7 +112,7 @@ ], "id": "id6", "source": { - "name": "name2" + "name": "name4" }, "customer_id": "customer_id4" } diff --git a/doc/models/create-order-response.md b/doc/models/create-order-response.md index 1b16bde5..5424b952 100644 --- a/doc/models/create-order-response.md +++ b/doc/models/create-order-response.md @@ -127,20 +127,20 @@ Either `errors` or `order` is present in a given response, but never both. "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name9", - "abbreviation": "abbreviation1" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "METRIC_SQUARE_CENTIMETER", - "length_unit": "IMPERIAL_MILE", - "volume_unit": "GENERIC_FLUID_OUNCE", - "weight_unit": "METRIC_KILOGRAM" + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_LITER", + "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 201, - "catalog_object_id": "catalog_object_id1", - "catalog_version": 135 + "precision": 54, + "catalog_object_id": "catalog_object_id0", + "catalog_version": 12 }, - "note": "note3", - "catalog_object_id": "catalog_object_id5" + "note": "note4", + "catalog_object_id": "catalog_object_id2" }, { "applied_discounts": [ @@ -230,17 +230,17 @@ Either `errors` or `order` is present in a given response, but never both. "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name8", - "abbreviation": "abbreviation0" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "IMPERIAL_SQUARE_MILE", - "length_unit": "METRIC_MILLIMETER", + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", "volume_unit": "METRIC_LITER", "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 200, + "precision": 54, "catalog_object_id": "catalog_object_id0", - "catalog_version": 134 + "catalog_version": 12 }, "note": "note4" } @@ -311,23 +311,17 @@ Either `errors` or `order` is present in a given response, but never both. "customer_id": "customer_id4" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/create-payment-link-request.md b/doc/models/create-payment-link-request.md index 44a7133e..013c10c5 100644 --- a/doc/models/create-payment-link-request.md +++ b/doc/models/create-payment-link-request.md @@ -30,37 +30,37 @@ "currency": "USD" } }, - "description": "description0", + "description": "description6", "order": { "id": "id6", "location_id": "location_id0", "reference_id": "reference_id4", "source": { - "name": "name2" + "name": "name4" }, "customer_id": "customer_id4", "line_items": [ { - "uid": "uid1", - "name": "name1", - "quantity": "quantity7", + "uid": "uid8", + "name": "name8", + "quantity": "quantity4", "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name9", - "abbreviation": "abbreviation1" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "METRIC_SQUARE_CENTIMETER", - "length_unit": "IMPERIAL_MILE", - "volume_unit": "GENERIC_FLUID_OUNCE", - "weight_unit": "METRIC_KILOGRAM" + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_LITER", + "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 201, - "catalog_object_id": "catalog_object_id1", - "catalog_version": 135 + "precision": 54, + "catalog_object_id": "catalog_object_id0", + "catalog_version": 12 }, - "note": "note3", - "catalog_object_id": "catalog_object_id5" + "note": "note4", + "catalog_object_id": "catalog_object_id2" } ] }, @@ -68,10 +68,10 @@ "allow_tipping": false, "custom_fields": [ { - "title": "title9" + "title": "title8" }, { - "title": "title0" + "title": "title8" } ], "subscription_plan_id": "subscription_plan_id8", diff --git a/doc/models/create-payment-link-response.md b/doc/models/create-payment-link-response.md index e8bf62fe..ee8ac77e 100644 --- a/doc/models/create-payment-link-response.md +++ b/doc/models/create-payment-link-response.md @@ -19,22 +19,22 @@ { "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], "payment_link": { @@ -46,65 +46,65 @@ "allow_tipping": false, "custom_fields": [ { - "title": "title1" + "title": "title8" }, { - "title": "title2" + "title": "title8" } ], - "subscription_plan_id": "subscription_plan_id0", - "redirect_url": "redirect_url4", - "merchant_support_email": "merchant_support_email0" + "subscription_plan_id": "subscription_plan_id8", + "redirect_url": "redirect_url2", + "merchant_support_email": "merchant_support_email8" }, "pre_populated_data": { - "buyer_email": "buyer_email6", - "buyer_phone_number": "buyer_phone_number8", + "buyer_email": "buyer_email8", + "buyer_phone_number": "buyer_phone_number0", "buyer_address": { - "address_line_1": "address_line_14", - "address_line_2": "address_line_24", - "address_line_3": "address_line_30", - "locality": "locality4", - "sublocality": "sublocality4" + "address_line_1": "address_line_12", + "address_line_2": "address_line_22", + "address_line_3": "address_line_38", + "locality": "locality2", + "sublocality": "sublocality2" } } }, "related_resources": { "orders": [ { - "id": "id6", - "location_id": "location_id0", - "reference_id": "reference_id6", + "id": "id2", + "location_id": "location_id6", + "reference_id": "reference_id0", "source": { - "name": "name8" + "name": "name4" }, - "customer_id": "customer_id4", + "customer_id": "customer_id0", "line_items": [ { - "uid": "uid3", - "name": "name3", - "quantity": "quantity9", + "uid": "uid8", + "name": "name8", + "quantity": "quantity4", "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name1", - "abbreviation": "abbreviation3" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "METRIC_SQUARE_KILOMETER", - "length_unit": "IMPERIAL_FOOT", - "volume_unit": "GENERIC_PINT", - "weight_unit": "METRIC_MILLIGRAM" + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_LITER", + "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 99, - "catalog_object_id": "catalog_object_id7", - "catalog_version": 223 + "precision": 54, + "catalog_object_id": "catalog_object_id0", + "catalog_version": 12 }, - "note": "note1", - "catalog_object_id": "catalog_object_id3" + "note": "note4", + "catalog_object_id": "catalog_object_id2" }, { - "uid": "uid4", - "name": "name4", - "quantity": "quantity0", + "uid": "uid8", + "name": "name8", + "quantity": "quantity4", "quantity_unit": { "measurement_unit": { "custom_unit": { @@ -113,14 +113,14 @@ }, "area_unit": "IMPERIAL_ACRE", "length_unit": "IMPERIAL_INCH", - "volume_unit": "GENERIC_QUART", - "weight_unit": "IMPERIAL_STONE" + "volume_unit": "METRIC_LITER", + "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 100, - "catalog_object_id": "catalog_object_id6", - "catalog_version": 222 + "precision": 54, + "catalog_object_id": "catalog_object_id0", + "catalog_version": 12 }, - "note": "note0", + "note": "note4", "catalog_object_id": "catalog_object_id2" } ] @@ -128,25 +128,32 @@ ], "subscription_plans": [ { - "type": "PRICING_RULE", - "id": "id0", - "updated_at": "updated_at6", - "version": 172, + "type": "QUICK_AMOUNTS_SETTINGS", + "id": "id4", + "updated_at": "updated_at0", + "version": 112, "is_deleted": false, "custom_attribute_values": { "key0": { - "name": "name3", - "string_value": "string_value7", - "custom_attribute_definition_id": "custom_attribute_definition_id9", - "type": "BOOLEAN", - "number_value": "number_value3" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" }, "key1": { - "name": "name4", - "string_value": "string_value8", - "custom_attribute_definition_id": "custom_attribute_definition_id8", + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" + }, + "key2": { + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", "type": "STRING", - "number_value": "number_value4" + "number_value": "number_value8" } }, "catalog_v1_ids": [ @@ -155,74 +162,100 @@ "location_id": "location_id4" }, { - "catalog_v1_id": "catalog_v1_id5", - "location_id": "location_id5" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" }, { - "catalog_v1_id": "catalog_v1_id6", - "location_id": "location_id6" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" } ] }, { - "type": "PRODUCT_SET", - "id": "id1", - "updated_at": "updated_at7", - "version": 173, - "is_deleted": true, + "type": "QUICK_AMOUNTS_SETTINGS", + "id": "id4", + "updated_at": "updated_at0", + "version": 112, + "is_deleted": false, "custom_attribute_values": { "key0": { - "name": "name4", - "string_value": "string_value8", - "custom_attribute_definition_id": "custom_attribute_definition_id8", + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", "type": "STRING", - "number_value": "number_value4" + "number_value": "number_value8" }, "key1": { - "name": "name5", - "string_value": "string_value9", - "custom_attribute_definition_id": "custom_attribute_definition_id7", - "type": "SELECTION", - "number_value": "number_value5" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" }, "key2": { - "name": "name6", - "string_value": "string_value0", - "custom_attribute_definition_id": "custom_attribute_definition_id6", - "type": "NUMBER", - "number_value": "number_value6" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" } }, "catalog_v1_ids": [ { - "catalog_v1_id": "catalog_v1_id5", - "location_id": "location_id5" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" + }, + { + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" + }, + { + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" } ] }, { - "type": "TIME_PERIOD", - "id": "id2", - "updated_at": "updated_at8", - "version": 174, + "type": "QUICK_AMOUNTS_SETTINGS", + "id": "id4", + "updated_at": "updated_at0", + "version": 112, "is_deleted": false, "custom_attribute_values": { "key0": { - "name": "name5", - "string_value": "string_value9", - "custom_attribute_definition_id": "custom_attribute_definition_id7", - "type": "SELECTION", - "number_value": "number_value5" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" + }, + "key1": { + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" + }, + "key2": { + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" } }, "catalog_v1_ids": [ { - "catalog_v1_id": "catalog_v1_id6", - "location_id": "location_id6" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" }, { - "catalog_v1_id": "catalog_v1_id7", - "location_id": "location_id7" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" + }, + { + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" } ] } diff --git a/doc/models/create-payment-request.md b/doc/models/create-payment-request.md index 7feb1b0f..55783cce 100644 --- a/doc/models/create-payment-request.md +++ b/doc/models/create-payment-request.md @@ -59,8 +59,8 @@ Describes a request to create a payment using "amount": 190, "currency": "ZMK" }, - "delay_duration": "delay_duration2", - "delay_action": "delay_action0" + "delay_duration": "delay_duration6", + "delay_action": "delay_action6" } ``` diff --git a/doc/models/create-payment-response.md b/doc/models/create-payment-response.md index b7957571..0887e2e8 100644 --- a/doc/models/create-payment-response.md +++ b/doc/models/create-payment-response.md @@ -85,28 +85,28 @@ present, or it might be present with a status of `FAILED`. "updated_at": "2021-10-13T21:14:30.504Z", "version_token": "TPtNEOBOa6Qq6E3C3IjckSVOM6b3hMbfhjvTxHBQUsB6o", "tip_money": { - "amount": 174, - "currency": "LYD" + "amount": 190, + "currency": "ZMK" } }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/create-refund-response.md b/doc/models/create-refund-response.md index 7bcf3663..b2a0b8e4 100644 --- a/doc/models/create-refund-response.md +++ b/doc/models/create-refund-response.md @@ -45,28 +45,22 @@ One of `errors` or `refund` is present in a given response (never both). "tender_id": "MtZRYYdDrYNQbOvV7nbuBvMF", "transaction_id": "KnL67ZIwXCPtzOrqj0HrkxMF", "processing_fee_money": { - "amount": 46, - "currency": "TMT" + "amount": 112, + "currency": "BBD" } }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/create-shift-response.md b/doc/models/create-shift-response.md index 404cd668..d7d190f9 100644 --- a/doc/models/create-shift-response.md +++ b/doc/models/create-shift-response.md @@ -54,22 +54,22 @@ the request resulted in errors. }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/create-subscription-response.md b/doc/models/create-subscription-response.md index 3dfddbaf..1bdb4b9e 100644 --- a/doc/models/create-subscription-response.md +++ b/doc/models/create-subscription-response.md @@ -44,22 +44,22 @@ Defines output parameters in a response from the }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/create-team-member-response.md b/doc/models/create-team-member-response.md index 476f2ddb..18845a08 100644 --- a/doc/models/create-team-member-response.md +++ b/doc/models/create-team-member-response.md @@ -39,22 +39,22 @@ Represents a response from a create request containing the created `TeamMember` }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/create-terminal-action-response.md b/doc/models/create-terminal-action-response.md index 187bb71c..c5ddf0f0 100644 --- a/doc/models/create-terminal-action-response.md +++ b/doc/models/create-terminal-action-response.md @@ -33,23 +33,17 @@ "cancel_reason": "TIMED_OUT" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/create-terminal-checkout-request.md b/doc/models/create-terminal-checkout-request.md index b85cc778..7c0db0f3 100644 --- a/doc/models/create-terminal-checkout-request.md +++ b/doc/models/create-terminal-checkout-request.md @@ -30,9 +30,7 @@ "separate_tip_screen": false, "custom_tip_field": false, "tip_percentages": [ - 196, - 195, - 194 + 48 ], "smart_tipping": false }, @@ -44,7 +42,7 @@ "order_id": "order_id6", "payment_options": { "autocomplete": false, - "delay_duration": "delay_duration0", + "delay_duration": "delay_duration2", "accept_partial_authorization": false, "delay_action": "CANCEL" } diff --git a/doc/models/create-terminal-checkout-response.md b/doc/models/create-terminal-checkout-response.md index 872e0eca..92d3ab1b 100644 --- a/doc/models/create-terminal-checkout-response.md +++ b/doc/models/create-terminal-checkout-response.md @@ -32,9 +32,7 @@ "separate_tip_screen": false, "custom_tip_field": false, "tip_percentages": [ - 196, - 195, - 194 + 48 ], "smart_tipping": false }, @@ -51,29 +49,17 @@ "order_id": "order_id6", "payment_options": { "autocomplete": false, - "delay_duration": "delay_duration0", + "delay_duration": "delay_duration2", "accept_partial_authorization": false, "delay_action": "CANCEL" } }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/create-terminal-refund-response.md b/doc/models/create-terminal-refund-response.md index c02aad7c..ec46fdd7 100644 --- a/doc/models/create-terminal-refund-response.md +++ b/doc/models/create-terminal-refund-response.md @@ -44,23 +44,11 @@ "refund_id": "refund_id2" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/create-vendor-request.md b/doc/models/create-vendor-request.md index edec5ce9..a75219ca 100644 --- a/doc/models/create-vendor-request.md +++ b/doc/models/create-vendor-request.md @@ -25,11 +25,11 @@ Represents an input to a call to [CreateVendor](../../doc/api/vendors.md#create- "updated_at": "updated_at2", "name": "name6", "address": { - "address_line_1": "address_line_12", - "address_line_2": "address_line_22", - "address_line_3": "address_line_38", - "locality": "locality2", - "sublocality": "sublocality2" + "address_line_1": "address_line_16", + "address_line_2": "address_line_26", + "address_line_3": "address_line_32", + "locality": "locality6", + "sublocality": "sublocality6" } } } diff --git a/doc/models/create-vendor-response.md b/doc/models/create-vendor-response.md index c5987cb2..679f9334 100644 --- a/doc/models/create-vendor-response.md +++ b/doc/models/create-vendor-response.md @@ -19,23 +19,17 @@ Represents an output from a call to [CreateVendor](../../doc/api/vendors.md#crea ```json { "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], "vendor": { @@ -44,11 +38,11 @@ Represents an output from a call to [CreateVendor](../../doc/api/vendors.md#crea "updated_at": "updated_at2", "name": "name6", "address": { - "address_line_1": "address_line_12", - "address_line_2": "address_line_22", - "address_line_3": "address_line_38", - "locality": "locality2", - "sublocality": "sublocality2" + "address_line_1": "address_line_16", + "address_line_2": "address_line_26", + "address_line_3": "address_line_32", + "locality": "locality6", + "sublocality": "sublocality6" } } } diff --git a/doc/models/create-webhook-subscription-response.md b/doc/models/create-webhook-subscription-response.md index 812ea0b9..1d8847de 100644 --- a/doc/models/create-webhook-subscription-response.md +++ b/doc/models/create-webhook-subscription-response.md @@ -37,23 +37,11 @@ present. "updated_at": "2022-01-10 23:29:48 +0000 UTC" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/custom-attribute-definition.md b/doc/models/custom-attribute-definition.md index 621a4727..2d3f5568 100644 --- a/doc/models/custom-attribute-definition.md +++ b/doc/models/custom-attribute-definition.md @@ -25,13 +25,13 @@ specifies the key, visibility, schema, and other properties for a custom attribu ```json { - "key": "key0", + "key": "key8", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name0", - "description": "description0", + "name": "name8", + "description": "description2", "visibility": "VISIBILITY_READ_WRITE_VALUES" } ``` diff --git a/doc/models/custom-attribute-filter.md b/doc/models/custom-attribute-filter.md index 7e20916f..a794d81c 100644 --- a/doc/models/custom-attribute-filter.md +++ b/doc/models/custom-attribute-filter.md @@ -24,16 +24,17 @@ endpoint to search for items or item variations. ```json { - "custom_attribute_definition_id": "custom_attribute_definition_id2", - "key": "key0", - "string_filter": "string_filter2", + "custom_attribute_definition_id": "custom_attribute_definition_id0", + "key": "key2", + "string_filter": "string_filter4", "number_filter": { "min": "min8", "max": "max4" }, "selection_uids_filter": [ - "selection_uids_filter4", - "selection_uids_filter5" + "selection_uids_filter0", + "selection_uids_filter9", + "selection_uids_filter8" ] } ``` diff --git a/doc/models/custom-attribute.md b/doc/models/custom-attribute.md index 0be26eed..49a428ae 100644 --- a/doc/models/custom-attribute.md +++ b/doc/models/custom-attribute.md @@ -29,8 +29,8 @@ A custom attribute value. Each custom attribute value has a corresponding "key1": "val1", "key2": "val2" }, - "version": 172, - "visibility": "VISIBILITY_READ_WRITE_VALUES", + "version": 20, + "visibility": "VISIBILITY_HIDDEN", "definition": { "key": "key0", "schema": { diff --git a/doc/models/customer-address-filter.md b/doc/models/customer-address-filter.md index 8e643185..ed696891 100644 --- a/doc/models/customer-address-filter.md +++ b/doc/models/customer-address-filter.md @@ -23,7 +23,7 @@ searching by an `Address`-type custom attribute. "exact": "exact2", "fuzzy": "fuzzy2" }, - "country": "FO" + "country": "ZM" } ``` diff --git a/doc/models/customer-creation-source-filter.md b/doc/models/customer-creation-source-filter.md index 04e5bf3d..1a5204fb 100644 --- a/doc/models/customer-creation-source-filter.md +++ b/doc/models/customer-creation-source-filter.md @@ -22,9 +22,9 @@ or excluded from, the result if they match at least one of the filter criteria. ```json { "values": [ - "INSTANT_PROFILE", - "TERMINAL", - "THIRD_PARTY" + "EGIFTING", + "EMAIL_COLLECTION", + "FEEDBACK" ], "rule": "INCLUDE" } diff --git a/doc/models/customer-custom-attribute-filter.md b/doc/models/customer-custom-attribute-filter.md index 05554ba2..b4d968df 100644 --- a/doc/models/customer-custom-attribute-filter.md +++ b/doc/models/customer-custom-attribute-filter.md @@ -20,35 +20,35 @@ based on the value or last updated date of a customer-related [custom attribute] ```json { - "key": "key0", + "key": "key6", "filter": { "email": { - "exact": "exact2", - "fuzzy": "fuzzy8" - }, - "phone": { "exact": "exact6", "fuzzy": "fuzzy2" }, + "phone": { + "exact": "exact0", + "fuzzy": "fuzzy6" + }, "text": { - "exact": "exact6", - "fuzzy": "fuzzy8" + "exact": "exact0", + "fuzzy": "fuzzy6" }, "selection": { "all": [ - "all7" + "all1" ], "any": [ - "any2", - "any3" + "any8", + "any9" ], "none": [ - "none7" + "none3" ] }, "date": { - "start_at": "start_at2", - "end_at": "end_at0" + "start_at": "start_at6", + "end_at": "end_at6" } }, "updated_at": { diff --git a/doc/models/customer-custom-attribute-filters.md b/doc/models/customer-custom-attribute-filters.md index b17b6415..0dfc9565 100644 --- a/doc/models/customer-custom-attribute-filters.md +++ b/doc/models/customer-custom-attribute-filters.md @@ -24,37 +24,37 @@ to search based on [custom attributes](../../doc/models/custom-attribute.md) tha "key": "key0", "filter": { "email": { - "exact": "exact2", - "fuzzy": "fuzzy8" - }, - "phone": { "exact": "exact6", "fuzzy": "fuzzy2" }, + "phone": { + "exact": "exact0", + "fuzzy": "fuzzy6" + }, "text": { - "exact": "exact6", - "fuzzy": "fuzzy2" + "exact": "exact0", + "fuzzy": "fuzzy6" }, "selection": { "all": [ - "all5" + "all1" ], "any": [ - "any2", - "any3" + "any8", + "any9" ], "none": [ - "none7" + "none3" ] }, "date": { - "start_at": "start_at2", - "end_at": "end_at0" + "start_at": "start_at6", + "end_at": "end_at6" } }, "updated_at": { - "start_at": "start_at8", - "end_at": "end_at4" + "start_at": "start_at6", + "end_at": "end_at6" } } ] diff --git a/doc/models/customer-group.md b/doc/models/customer-group.md index 57c4c611..af164cc1 100644 --- a/doc/models/customer-group.md +++ b/doc/models/customer-group.md @@ -25,8 +25,8 @@ the Customers API or within the Customer Directory in the Square Seller Dashboar { "id": "id0", "name": "name0", - "created_at": "created_at2", - "updated_at": "updated_at4" + "created_at": "created_at8", + "updated_at": "updated_at6" } ``` diff --git a/doc/models/customer-query.md b/doc/models/customer-query.md index 29aa4574..34ba4073 100644 --- a/doc/models/customer-query.md +++ b/doc/models/customer-query.md @@ -21,9 +21,9 @@ Represents filtering and sorting criteria for a [SearchCustomers](../../doc/api/ "filter": { "creation_source": { "values": [ - "INVOICES", - "LOYALTY", - "MARKETING" + "THIRD_PARTY_IMPORT", + "THIRD_PARTY", + "TERMINAL" ], "rule": "INCLUDE" }, @@ -32,16 +32,16 @@ Represents filtering and sorting criteria for a [SearchCustomers](../../doc/api/ "end_at": "end_at8" }, "updated_at": { - "start_at": "start_at2", - "end_at": "end_at0" + "start_at": "start_at6", + "end_at": "end_at6" }, "email_address": { "exact": "exact2", - "fuzzy": "fuzzy2" + "fuzzy": "fuzzy8" }, "phone_number": { - "exact": "exact8", - "fuzzy": "fuzzy6" + "exact": "exact2", + "fuzzy": "fuzzy8" } }, "sort": { diff --git a/doc/models/customer-segment.md b/doc/models/customer-segment.md index 92d8c8c3..ddfa7516 100644 --- a/doc/models/customer-segment.md +++ b/doc/models/customer-segment.md @@ -25,8 +25,8 @@ Square Seller Dashboard or Point of Sale. { "id": "id0", "name": "name0", - "created_at": "created_at2", - "updated_at": "updated_at4" + "created_at": "created_at8", + "updated_at": "updated_at6" } ``` diff --git a/doc/models/customer-tax-ids.md b/doc/models/customer-tax-ids.md index cb662d37..2bc2c254 100644 --- a/doc/models/customer-tax-ids.md +++ b/doc/models/customer-tax-ids.md @@ -18,7 +18,7 @@ For more information, see [Customer tax IDs](https://developer.squareup.com/docs ```json { - "eu_vat": "eu_vat2" + "eu_vat": "eu_vat6" } ``` diff --git a/doc/models/customer-text-filter.md b/doc/models/customer-text-filter.md index 5b4ade8d..007c22a4 100644 --- a/doc/models/customer-text-filter.md +++ b/doc/models/customer-text-filter.md @@ -20,8 +20,8 @@ the filter can be case-sensitive. This filter can be exact or fuzzy, but it cann ```json { - "exact": "exact0", - "fuzzy": "fuzzy4" + "exact": "exact4", + "fuzzy": "fuzzy0" } ``` diff --git a/doc/models/customer.md b/doc/models/customer.md index 1abc4502..db37e142 100644 --- a/doc/models/customer.md +++ b/doc/models/customer.md @@ -36,26 +36,19 @@ Represents a Square customer profile in the Customer Directory of a Square selle ```json { - "id": "id0", - "created_at": "created_at2", - "updated_at": "updated_at4", + "id": "id8", + "created_at": "created_at6", + "updated_at": "updated_at6", "cards": [ - { - "id": "id7", - "card_brand": "EBT", - "last_4": "last_49", - "exp_month": 79, - "exp_year": 217 - }, { "id": "id8", - "card_brand": "FELICA", + "card_brand": "DISCOVER", "last_4": "last_40", - "exp_month": 78, - "exp_year": 218 + "exp_month": 152, + "exp_year": 144 } ], - "given_name": "given_name2" + "given_name": "given_name0" } ``` diff --git a/doc/models/data-collection-options.md b/doc/models/data-collection-options.md index 4f52cdc1..dd683b10 100644 --- a/doc/models/data-collection-options.md +++ b/doc/models/data-collection-options.md @@ -19,7 +19,7 @@ ```json { "title": "title4", - "body": "body6", + "body": "body4", "input_type": "EMAIL", "collected_data": { "input_text": "input_text0" diff --git a/doc/models/date-range.md b/doc/models/date-range.md index d51d5071..23a59f4b 100644 --- a/doc/models/date-range.md +++ b/doc/models/date-range.md @@ -19,8 +19,8 @@ objects that have date properties. ```json { - "start_date": "start_date6", - "end_date": "end_date0" + "start_date": "start_date0", + "end_date": "end_date6" } ``` diff --git a/doc/models/delete-break-type-response.md b/doc/models/delete-break-type-response.md index 91f719a1..17adbe9e 100644 --- a/doc/models/delete-break-type-response.md +++ b/doc/models/delete-break-type-response.md @@ -19,23 +19,11 @@ of `Error` objects if the request resulted in errors. ```json { "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/delete-catalog-object-response.md b/doc/models/delete-catalog-object-response.md index 4d1d68ed..0d5d5862 100644 --- a/doc/models/delete-catalog-object-response.md +++ b/doc/models/delete-catalog-object-response.md @@ -23,23 +23,11 @@ "KQLFFHA6K6J3YQAQAWDQAL57" ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/delete-customer-card-response.md b/doc/models/delete-customer-card-response.md index ac468a72..68e584fa 100644 --- a/doc/models/delete-customer-card-response.md +++ b/doc/models/delete-customer-card-response.md @@ -19,23 +19,17 @@ a request to the `DeleteCustomerCard` endpoint. ```json { "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/delete-customer-custom-attribute-definition-response.md b/doc/models/delete-customer-custom-attribute-definition-response.md index 462c5699..6aa889d4 100644 --- a/doc/models/delete-customer-custom-attribute-definition-response.md +++ b/doc/models/delete-customer-custom-attribute-definition-response.md @@ -18,23 +18,17 @@ Represents a response from a delete request containing error messages if there a ```json { "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/delete-customer-custom-attribute-response.md b/doc/models/delete-customer-custom-attribute-response.md index c28600cc..7df28926 100644 --- a/doc/models/delete-customer-custom-attribute-response.md +++ b/doc/models/delete-customer-custom-attribute-response.md @@ -20,22 +20,22 @@ Either an empty object `{}` (for a successful deletion) or `errors` is present i { "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/delete-customer-group-response.md b/doc/models/delete-customer-group-response.md index ac0b41af..d420477a 100644 --- a/doc/models/delete-customer-group-response.md +++ b/doc/models/delete-customer-group-response.md @@ -20,22 +20,22 @@ a request to the [DeleteCustomerGroup](../../doc/api/customer-groups.md#delete-c { "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/delete-customer-request.md b/doc/models/delete-customer-request.md index 042b514d..4649ccd3 100644 --- a/doc/models/delete-customer-request.md +++ b/doc/models/delete-customer-request.md @@ -18,7 +18,7 @@ endpoint. ```json { - "version": 172 + "version": 222 } ``` diff --git a/doc/models/delete-customer-response.md b/doc/models/delete-customer-response.md index 4ef87564..1740ceca 100644 --- a/doc/models/delete-customer-response.md +++ b/doc/models/delete-customer-response.md @@ -19,23 +19,11 @@ a request to the `DeleteCustomer` endpoint. ```json { "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/delete-dispute-evidence-response.md b/doc/models/delete-dispute-evidence-response.md index e5bbd782..df364e29 100644 --- a/doc/models/delete-dispute-evidence-response.md +++ b/doc/models/delete-dispute-evidence-response.md @@ -19,22 +19,22 @@ Defines the fields in a `DeleteDisputeEvidence` response. { "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/delete-invoice-request.md b/doc/models/delete-invoice-request.md index 525cbcad..e3d2c22e 100644 --- a/doc/models/delete-invoice-request.md +++ b/doc/models/delete-invoice-request.md @@ -17,7 +17,7 @@ Describes a `DeleteInvoice` request. ```json { - "version": 172 + "version": 26 } ``` diff --git a/doc/models/delete-invoice-response.md b/doc/models/delete-invoice-response.md index 466cf4ac..d31558e3 100644 --- a/doc/models/delete-invoice-response.md +++ b/doc/models/delete-invoice-response.md @@ -18,23 +18,17 @@ Describes a `DeleteInvoice` response. ```json { "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/delete-location-custom-attribute-definition-response.md b/doc/models/delete-location-custom-attribute-definition-response.md index 57089121..943116ed 100644 --- a/doc/models/delete-location-custom-attribute-definition-response.md +++ b/doc/models/delete-location-custom-attribute-definition-response.md @@ -19,22 +19,22 @@ Represents a response from a delete request containing error messages if there a { "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/delete-location-custom-attribute-response.md b/doc/models/delete-location-custom-attribute-response.md index 442748ab..18ae70bb 100644 --- a/doc/models/delete-location-custom-attribute-response.md +++ b/doc/models/delete-location-custom-attribute-response.md @@ -19,23 +19,17 @@ Either an empty object `{}` (for a successful deletion) or `errors` is present i ```json { "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/delete-loyalty-reward-response.md b/doc/models/delete-loyalty-reward-response.md index 9d9e0385..888f9722 100644 --- a/doc/models/delete-loyalty-reward-response.md +++ b/doc/models/delete-loyalty-reward-response.md @@ -19,22 +19,22 @@ A response returned by the API call. { "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/delete-merchant-custom-attribute-definition-response.md b/doc/models/delete-merchant-custom-attribute-definition-response.md index 9824d8c4..e59acb62 100644 --- a/doc/models/delete-merchant-custom-attribute-definition-response.md +++ b/doc/models/delete-merchant-custom-attribute-definition-response.md @@ -18,23 +18,17 @@ Represents a response from a delete request containing error messages if there a ```json { "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/delete-merchant-custom-attribute-response.md b/doc/models/delete-merchant-custom-attribute-response.md index dc34b566..eb542363 100644 --- a/doc/models/delete-merchant-custom-attribute-response.md +++ b/doc/models/delete-merchant-custom-attribute-response.md @@ -19,23 +19,17 @@ Either an empty object `{}` (for a successful deletion) or `errors` is present i ```json { "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/delete-order-custom-attribute-definition-response.md b/doc/models/delete-order-custom-attribute-definition-response.md index a71598c5..39002c83 100644 --- a/doc/models/delete-order-custom-attribute-definition-response.md +++ b/doc/models/delete-order-custom-attribute-definition-response.md @@ -18,23 +18,11 @@ Represents a response from deleting an order custom attribute definition. ```json { "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/delete-order-custom-attribute-response.md b/doc/models/delete-order-custom-attribute-response.md index d5b0d700..86d9f50b 100644 --- a/doc/models/delete-order-custom-attribute-response.md +++ b/doc/models/delete-order-custom-attribute-response.md @@ -18,23 +18,11 @@ Represents a response from deleting an order custom attribute. ```json { "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/delete-payment-link-response.md b/doc/models/delete-payment-link-response.md index 8f2a27dc..9bb27420 100644 --- a/doc/models/delete-payment-link-response.md +++ b/doc/models/delete-payment-link-response.md @@ -20,23 +20,11 @@ "cancelled_order_id": "asx8LgZ6MRzD0fObfkJ6obBmSh4F", "id": "MQASNYL6QB6DFCJ3", "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/delete-shift-response.md b/doc/models/delete-shift-response.md index 6142a742..3e16bc0a 100644 --- a/doc/models/delete-shift-response.md +++ b/doc/models/delete-shift-response.md @@ -19,23 +19,11 @@ The response to a request to delete a `Shift`. The response might contain a set ```json { "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/delete-snippet-response.md b/doc/models/delete-snippet-response.md index d29611c5..a391bcf7 100644 --- a/doc/models/delete-snippet-response.md +++ b/doc/models/delete-snippet-response.md @@ -19,22 +19,22 @@ Represents a `DeleteSnippet` response. { "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/delete-subscription-action-response.md b/doc/models/delete-subscription-action-response.md index 903d606a..cb36cf8d 100644 --- a/doc/models/delete-subscription-action-response.md +++ b/doc/models/delete-subscription-action-response.md @@ -44,23 +44,17 @@ endpoint. "timezone": "America/Los_Angeles" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/delete-webhook-subscription-response.md b/doc/models/delete-webhook-subscription-response.md index 6ef54460..ea8ecf89 100644 --- a/doc/models/delete-webhook-subscription-response.md +++ b/doc/models/delete-webhook-subscription-response.md @@ -19,23 +19,11 @@ a request to the [DeleteWebhookSubscription](../../doc/api/webhook-subscriptions ```json { "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/deprecated-create-dispute-evidence-file-request.md b/doc/models/deprecated-create-dispute-evidence-file-request.md index 3ae17a6f..fc2dd1f5 100644 --- a/doc/models/deprecated-create-dispute-evidence-file-request.md +++ b/doc/models/deprecated-create-dispute-evidence-file-request.md @@ -19,9 +19,9 @@ Defines the parameters for a `DeprecatedCreateDisputeEvidenceFile` request. ```json { - "idempotency_key": "idempotency_key6", - "evidence_type": "RECEIPT", - "content_type": "content_type6" + "idempotency_key": "idempotency_key4", + "evidence_type": "ONLINE_OR_APP_ACCESS_LOG", + "content_type": "content_type2" } ``` diff --git a/doc/models/deprecated-create-dispute-evidence-file-response.md b/doc/models/deprecated-create-dispute-evidence-file-response.md index c948b267..44100571 100644 --- a/doc/models/deprecated-create-dispute-evidence-file-response.md +++ b/doc/models/deprecated-create-dispute-evidence-file-response.md @@ -31,23 +31,11 @@ Defines the fields in a `DeprecatedCreateDisputeEvidenceFile` response. "evidence_text": "evidence_text6" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/deprecated-create-dispute-evidence-text-response.md b/doc/models/deprecated-create-dispute-evidence-text-response.md index 560bd773..6915a85c 100644 --- a/doc/models/deprecated-create-dispute-evidence-text-response.md +++ b/doc/models/deprecated-create-dispute-evidence-text-response.md @@ -26,28 +26,16 @@ Defines the fields in a `DeprecatedCreateDisputeEvidenceText` response. "uploaded_at": "2022-05-18T16:01:10.000Z", "evidence_id": "evidence_id0", "evidence_file": { - "filename": "filename0", - "filetype": "filetype0" + "filename": "filename8", + "filetype": "filetype8" } }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/destination-details-card-refund-details.md b/doc/models/destination-details-card-refund-details.md index c776f257..ad3890da 100644 --- a/doc/models/destination-details-card-refund-details.md +++ b/doc/models/destination-details-card-refund-details.md @@ -23,7 +23,7 @@ "exp_month": 228, "exp_year": 68 }, - "entry_method": "entry_method6" + "entry_method": "entry_method4" } ``` diff --git a/doc/models/destination-details.md b/doc/models/destination-details.md index 8a8fedfc..b620a8cc 100644 --- a/doc/models/destination-details.md +++ b/doc/models/destination-details.md @@ -20,10 +20,10 @@ Details about a refund's destination. "card_details": { "card": { "id": "id6", - "card_brand": "JCB", + "card_brand": "OTHER_BRAND", "last_4": "last_48", - "exp_month": 4, - "exp_year": 36 + "exp_month": 228, + "exp_year": 68 }, "entry_method": "entry_method8" } diff --git a/doc/models/destination.md b/doc/models/destination.md index b07989c2..e4916e3e 100644 --- a/doc/models/destination.md +++ b/doc/models/destination.md @@ -19,7 +19,7 @@ Information about the destination against which the payout was made. ```json { "type": "SQUARE_BALANCE", - "id": "id0" + "id": "id6" } ``` diff --git a/doc/models/device-attributes-device-type.md b/doc/models/device-attributes-device-type.md new file mode 100644 index 00000000..19c965a2 --- /dev/null +++ b/doc/models/device-attributes-device-type.md @@ -0,0 +1,15 @@ + +# Device Attributes Device Type + +An enum identifier of the device type. + +## Enumeration + +`DeviceAttributesDeviceType` + +## Fields + +| Name | +| --- | +| `TERMINAL` | + diff --git a/doc/models/device-attributes.md b/doc/models/device-attributes.md new file mode 100644 index 00000000..bf98cd29 --- /dev/null +++ b/doc/models/device-attributes.md @@ -0,0 +1,34 @@ + +# Device Attributes + +## Structure + +`DeviceAttributes` + +## Fields + +| Name | Type | Tags | Description | +| --- | --- | --- | --- | +| `type` | `string` | Required, Constant | An enum identifier of the device type.
**Default**: `'TERMINAL'` | +| `manufacturer` | `string` | Required | The maker of the device. | +| `model` | `string \| null \| undefined` | Optional | The specific model of the device. | +| `name` | `string \| null \| undefined` | Optional | A seller-specified name for the device. | +| `manufacturersId` | `string \| null \| undefined` | Optional | The manufacturer-supplied identifier for the device (where available). In many cases,
this identifier will be a serial number. | +| `updatedAt` | `string \| undefined` | Optional | The RFC 3339-formatted value of the most recent update to the device information.
(Could represent any field update on the device.) | +| `version` | `string \| undefined` | Optional | The current version of software installed on the device. | +| `merchantToken` | `string \| null \| undefined` | Optional | The merchant_token identifying the merchant controlling the device. | + +## Example (as JSON) + +```json +{ + "type": "TERMINAL", + "manufacturer": "manufacturer0", + "model": "model4", + "name": "name6", + "manufacturers_id": "manufacturers_id2", + "updated_at": "updated_at2", + "version": "version2" +} +``` + diff --git a/doc/models/device-checkout-options.md b/doc/models/device-checkout-options.md index a5f49e3a..90db1423 100644 --- a/doc/models/device-checkout-options.md +++ b/doc/models/device-checkout-options.md @@ -19,7 +19,7 @@ ```json { - "device_id": "device_id6", + "device_id": "device_id4", "skip_receipt_screen": false, "collect_signature": false, "tip_settings": { diff --git a/doc/models/device-code.md b/doc/models/device-code.md index 05cc730e..0962891e 100644 --- a/doc/models/device-code.md +++ b/doc/models/device-code.md @@ -26,11 +26,11 @@ ```json { "product_type": "TERMINAL_API", - "id": "id0", - "name": "name0", - "code": "code8", - "device_id": "device_id6", - "location_id": "location_id4" + "id": "id4", + "name": "name4", + "code": "code2", + "device_id": "device_id0", + "location_id": "location_id8" } ``` diff --git a/doc/models/device-component-details-application-details.md b/doc/models/device-component-details-application-details.md new file mode 100644 index 00000000..c4b355e0 --- /dev/null +++ b/doc/models/device-component-details-application-details.md @@ -0,0 +1,27 @@ + +# Device Component Details Application Details + +## Structure + +`DeviceComponentDetailsApplicationDetails` + +## Fields + +| Name | Type | Tags | Description | +| --- | --- | --- | --- | +| `applicationType` | [`string \| undefined`](../../doc/models/application-type.md) | Optional | - | +| `version` | `string \| undefined` | Optional | The version of the application. | +| `sessionLocation` | `string \| null \| undefined` | Optional | The location_id of the session for the application. | +| `deviceCodeId` | `string \| null \| undefined` | Optional | The id of the device code that was used to log in to the device. | + +## Example (as JSON) + +```json +{ + "application_type": "TERMINAL_API", + "version": "version4", + "session_location": "session_location0", + "device_code_id": "device_code_id2" +} +``` + diff --git a/doc/models/device-component-details-battery-details.md b/doc/models/device-component-details-battery-details.md new file mode 100644 index 00000000..3a36412b --- /dev/null +++ b/doc/models/device-component-details-battery-details.md @@ -0,0 +1,23 @@ + +# Device Component Details Battery Details + +## Structure + +`DeviceComponentDetailsBatteryDetails` + +## Fields + +| Name | Type | Tags | Description | +| --- | --- | --- | --- | +| `visiblePercent` | `number \| null \| undefined` | Optional | The battery charge percentage as displayed on the device. | +| `externalPower` | [`string \| undefined`](../../doc/models/device-component-details-external-power.md) | Optional | An enum for ExternalPower. | + +## Example (as JSON) + +```json +{ + "visible_percent": 48, + "external_power": "AVAILABLE_CHARGING" +} +``` + diff --git a/doc/models/device-component-details-card-reader-details.md b/doc/models/device-component-details-card-reader-details.md new file mode 100644 index 00000000..73850472 --- /dev/null +++ b/doc/models/device-component-details-card-reader-details.md @@ -0,0 +1,21 @@ + +# Device Component Details Card Reader Details + +## Structure + +`DeviceComponentDetailsCardReaderDetails` + +## Fields + +| Name | Type | Tags | Description | +| --- | --- | --- | --- | +| `version` | `string \| undefined` | Optional | The version of the card reader. | + +## Example (as JSON) + +```json +{ + "version": "version8" +} +``` + diff --git a/doc/models/device-component-details-ethernet-details.md b/doc/models/device-component-details-ethernet-details.md new file mode 100644 index 00000000..145854a1 --- /dev/null +++ b/doc/models/device-component-details-ethernet-details.md @@ -0,0 +1,23 @@ + +# Device Component Details Ethernet Details + +## Structure + +`DeviceComponentDetailsEthernetDetails` + +## Fields + +| Name | Type | Tags | Description | +| --- | --- | --- | --- | +| `active` | `boolean \| null \| undefined` | Optional | A boolean to represent whether the Ethernet interface is currently active. | +| `ipAddressV4` | `string \| null \| undefined` | Optional | The string representation of the device’s IPv4 address. | + +## Example (as JSON) + +```json +{ + "active": false, + "ip_address_v4": "ip_address_v46" +} +``` + diff --git a/doc/models/device-component-details-external-power.md b/doc/models/device-component-details-external-power.md new file mode 100644 index 00000000..713c92ae --- /dev/null +++ b/doc/models/device-component-details-external-power.md @@ -0,0 +1,18 @@ + +# Device Component Details External Power + +An enum for ExternalPower. + +## Enumeration + +`DeviceComponentDetailsExternalPower` + +## Fields + +| Name | Description | +| --- | --- | +| `AVAILABLE_CHARGING` | Plugged in and charging. | +| `AVAILABLE_NOT_IN_USE` | Fully charged. | +| `UNAVAILABLE` | On battery power. | +| `AVAILABLE_INSUFFICIENT` | Not providing enough power for the device. | + diff --git a/doc/models/device-component-details-measurement.md b/doc/models/device-component-details-measurement.md new file mode 100644 index 00000000..506fc64f --- /dev/null +++ b/doc/models/device-component-details-measurement.md @@ -0,0 +1,23 @@ + +# Device Component Details Measurement + +A value qualified by unit of measure. + +## Structure + +`DeviceComponentDetailsMeasurement` + +## Fields + +| Name | Type | Tags | Description | +| --- | --- | --- | --- | +| `value` | `number \| null \| undefined` | Optional | - | + +## Example (as JSON) + +```json +{ + "value": 132 +} +``` + diff --git a/doc/models/device-component-details-network-interface-details.md b/doc/models/device-component-details-network-interface-details.md new file mode 100644 index 00000000..931ceb7b --- /dev/null +++ b/doc/models/device-component-details-network-interface-details.md @@ -0,0 +1,21 @@ + +# Device Component Details Network Interface Details + +## Structure + +`DeviceComponentDetailsNetworkInterfaceDetails` + +## Fields + +| Name | Type | Tags | Description | +| --- | --- | --- | --- | +| `ipAddressV4` | `string \| null \| undefined` | Optional | The string representation of the device’s IPv4 address. | + +## Example (as JSON) + +```json +{ + "ip_address_v4": "ip_address_v46" +} +``` + diff --git a/doc/models/device-component-details-wi-fi-details.md b/doc/models/device-component-details-wi-fi-details.md new file mode 100644 index 00000000..2dfc0e48 --- /dev/null +++ b/doc/models/device-component-details-wi-fi-details.md @@ -0,0 +1,31 @@ + +# Device Component Details Wi Fi Details + +## Structure + +`DeviceComponentDetailsWiFiDetails` + +## Fields + +| Name | Type | Tags | Description | +| --- | --- | --- | --- | +| `active` | `boolean \| null \| undefined` | Optional | A boolean to represent whether the WiFI interface is currently active. | +| `ssid` | `string \| null \| undefined` | Optional | The name of the connected WIFI network. | +| `ipAddressV4` | `string \| null \| undefined` | Optional | The string representation of the device’s IPv4 address. | +| `secureConnection` | `string \| null \| undefined` | Optional | The security protocol for a secure connection (e.g. WPA2). None provided if the connection
is unsecured. | +| `signalStrength` | [`DeviceComponentDetailsMeasurement \| undefined`](../../doc/models/device-component-details-measurement.md) | Optional | A value qualified by unit of measure. | + +## Example (as JSON) + +```json +{ + "active": false, + "ssid": "ssid6", + "ip_address_v4": "ip_address_v40", + "secure_connection": "secure_connection6", + "signal_strength": { + "value": 222 + } +} +``` + diff --git a/doc/models/device-details.md b/doc/models/device-details.md index a41561a5..214bfce3 100644 --- a/doc/models/device-details.md +++ b/doc/models/device-details.md @@ -19,8 +19,8 @@ Details about the device that took the payment. ```json { - "device_id": "device_id6", - "device_installation_id": "device_installation_id8", + "device_id": "device_id0", + "device_installation_id": "device_installation_id2", "device_name": "device_name2" } ``` diff --git a/doc/models/device-metadata.md b/doc/models/device-metadata.md index ab771b4d..16e6088a 100644 --- a/doc/models/device-metadata.md +++ b/doc/models/device-metadata.md @@ -26,11 +26,11 @@ ```json { - "battery_percentage": "battery_percentage6", - "charging_state": "charging_state2", - "location_id": "location_id4", - "merchant_id": "merchant_id0", - "network_connection_type": "network_connection_type0" + "battery_percentage": "battery_percentage4", + "charging_state": "charging_state6", + "location_id": "location_id2", + "merchant_id": "merchant_id8", + "network_connection_type": "network_connection_type8" } ``` diff --git a/doc/models/device-status-category.md b/doc/models/device-status-category.md new file mode 100644 index 00000000..038f5582 --- /dev/null +++ b/doc/models/device-status-category.md @@ -0,0 +1,14 @@ + +# Device Status Category + +## Enumeration + +`DeviceStatusCategory` + +## Fields + +| Name | +| --- | +| `AVAILABLE` | +| `NEEDS_ATTENTION` | + diff --git a/doc/models/device-status.md b/doc/models/device-status.md new file mode 100644 index 00000000..99fc2de9 --- /dev/null +++ b/doc/models/device-status.md @@ -0,0 +1,21 @@ + +# Device Status + +## Structure + +`DeviceStatus` + +## Fields + +| Name | Type | Tags | Description | +| --- | --- | --- | --- | +| `category` | [`string \| undefined`](../../doc/models/device-status-category.md) | Optional | - | + +## Example (as JSON) + +```json +{ + "category": "AVAILABLE" +} +``` + diff --git a/doc/models/device.md b/doc/models/device.md index db220117..9fd32ae7 100644 --- a/doc/models/device.md +++ b/doc/models/device.md @@ -9,15 +9,117 @@ | Name | Type | Tags | Description | | --- | --- | --- | --- | -| `id` | `string \| undefined` | Optional | The device's Square-issued ID. | -| `name` | `string \| null \| undefined` | Optional | The device's merchant-specified name. | +| `id` | `string \| undefined` | Optional | A synthetic identifier for the device. The identifier includes a standardized prefix and
is otherwise an opaque id generated from key device fields. | +| `attributes` | [`DeviceAttributes`](../../doc/models/device-attributes.md) | Required | - | +| `components` | [`Component[] \| null \| undefined`](../../doc/models/component.md) | Optional | A list of components applicable to the device. | +| `status` | [`DeviceStatus \| undefined`](../../doc/models/device-status.md) | Optional | - | ## Example (as JSON) ```json { + "attributes": { + "type": "TERMINAL", + "manufacturer": "manufacturer2", + "model": "model2", + "name": "name4", + "manufacturers_id": "manufacturers_id0", + "updated_at": "updated_at0", + "version": "version0" + }, "id": "id0", - "name": "name0" + "components": [ + { + "type": "BATTERY", + "application_details": { + "application_type": "TERMINAL_API", + "version": "version4", + "session_location": "session_location0", + "device_code_id": "device_code_id2" + }, + "card_reader_details": { + "version": "version0" + }, + "battery_details": { + "visible_percent": 108, + "external_power": "AVAILABLE_CHARGING" + }, + "wifi_details": { + "active": false, + "ssid": "ssid8", + "ip_address_v4": "ip_address_v42", + "secure_connection": "secure_connection8", + "signal_strength": { + "value": 222 + } + }, + "ethernet_details": { + "active": false, + "ip_address_v4": "ip_address_v42" + } + }, + { + "type": "BATTERY", + "application_details": { + "application_type": "TERMINAL_API", + "version": "version4", + "session_location": "session_location0", + "device_code_id": "device_code_id2" + }, + "card_reader_details": { + "version": "version0" + }, + "battery_details": { + "visible_percent": 108, + "external_power": "AVAILABLE_CHARGING" + }, + "wifi_details": { + "active": false, + "ssid": "ssid8", + "ip_address_v4": "ip_address_v42", + "secure_connection": "secure_connection8", + "signal_strength": { + "value": 222 + } + }, + "ethernet_details": { + "active": false, + "ip_address_v4": "ip_address_v42" + } + }, + { + "type": "BATTERY", + "application_details": { + "application_type": "TERMINAL_API", + "version": "version4", + "session_location": "session_location0", + "device_code_id": "device_code_id2" + }, + "card_reader_details": { + "version": "version0" + }, + "battery_details": { + "visible_percent": 108, + "external_power": "AVAILABLE_CHARGING" + }, + "wifi_details": { + "active": false, + "ssid": "ssid8", + "ip_address_v4": "ip_address_v42", + "secure_connection": "secure_connection8", + "signal_strength": { + "value": 222 + } + }, + "ethernet_details": { + "active": false, + "ip_address_v4": "ip_address_v42" + } + } + ], + "status": { + "category": "AVAILABLE" + } } ``` diff --git a/doc/models/digital-wallet-details.md b/doc/models/digital-wallet-details.md index 358e8c24..2f15eafd 100644 --- a/doc/models/digital-wallet-details.md +++ b/doc/models/digital-wallet-details.md @@ -19,8 +19,8 @@ Additional details about `WALLET` type payments. Contains only non-confidential ```json { - "status": "status8", - "brand": "brand4", + "status": "status4", + "brand": "brand8", "cash_app_details": { "buyer_full_name": "buyer_full_name2", "buyer_country_code": "buyer_country_code8", diff --git a/doc/models/disable-card-response.md b/doc/models/disable-card-response.md index 9d509b9a..99c18778 100644 --- a/doc/models/disable-card-response.md +++ b/doc/models/disable-card-response.md @@ -48,23 +48,17 @@ present. "version": 2 }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/dismiss-terminal-action-response.md b/doc/models/dismiss-terminal-action-response.md index 0797b09c..c75479a2 100644 --- a/doc/models/dismiss-terminal-action-response.md +++ b/doc/models/dismiss-terminal-action-response.md @@ -40,22 +40,22 @@ }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/dispute-evidence-file.md b/doc/models/dispute-evidence-file.md index 03066fb7..8033157f 100644 --- a/doc/models/dispute-evidence-file.md +++ b/doc/models/dispute-evidence-file.md @@ -18,8 +18,8 @@ A file to be uploaded as dispute evidence. ```json { - "filename": "filename2", - "filetype": "filetype2" + "filename": "filename0", + "filetype": "filetype0" } ``` diff --git a/doc/models/dispute-evidence.md b/doc/models/dispute-evidence.md index 81307739..09d97f22 100644 --- a/doc/models/dispute-evidence.md +++ b/doc/models/dispute-evidence.md @@ -21,9 +21,9 @@ ```json { - "evidence_id": "evidence_id2", - "id": "id0", - "dispute_id": "dispute_id2", + "evidence_id": "evidence_id0", + "id": "id2", + "dispute_id": "dispute_id4", "evidence_file": { "filename": "filename8", "filetype": "filetype8" diff --git a/doc/models/dispute.md b/doc/models/dispute.md index c47b27c1..c8009b1c 100644 --- a/doc/models/dispute.md +++ b/doc/models/dispute.md @@ -39,7 +39,7 @@ Represents a [dispute](https://developer.squareup.com/docs/disputes-api/overview "currency": "TZS" }, "reason": "NOT_AS_DESCRIBED", - "state": "PROCESSING" + "state": "LOST" } ``` diff --git a/doc/models/disputed-payment.md b/doc/models/disputed-payment.md index 1b1024ce..00f8cef5 100644 --- a/doc/models/disputed-payment.md +++ b/doc/models/disputed-payment.md @@ -17,7 +17,7 @@ The payment the cardholder disputed. ```json { - "payment_id": "payment_id0" + "payment_id": "payment_id8" } ``` diff --git a/doc/models/employee-status.md b/doc/models/employee-status.md index 8802c2bc..c56cca14 100644 --- a/doc/models/employee-status.md +++ b/doc/models/employee-status.md @@ -3,6 +3,8 @@ The status of the Employee being retrieved. +DEPRECATED at version 2020-08-26. Replaced by [TeamMemberStatus](entity:TeamMemberStatus). + ## Enumeration `EmployeeStatus` diff --git a/doc/models/employee-wage.md b/doc/models/employee-wage.md index 46ee0f98..f129882b 100644 --- a/doc/models/employee-wage.md +++ b/doc/models/employee-wage.md @@ -22,7 +22,7 @@ The hourly wage rate that an employee earns on a `Shift` for doing the job speci { "id": "id0", "employee_id": "employee_id0", - "title": "title4", + "title": "title6", "hourly_rate": { "amount": 172, "currency": "OMR" diff --git a/doc/models/employee.md b/doc/models/employee.md index 2badba89..7d1338ab 100644 --- a/doc/models/employee.md +++ b/doc/models/employee.md @@ -3,6 +3,8 @@ An employee object that is used by the external API. +DEPRECATED at version 2020-08-26. Replaced by [TeamMember](entity:TeamMember). + ## Structure `Employee` @@ -17,7 +19,7 @@ An employee object that is used by the external API. | `email` | `string \| null \| undefined` | Optional | The employee's email address | | `phoneNumber` | `string \| null \| undefined` | Optional | The employee's phone number in E.164 format, i.e. "+12125554250" | | `locationIds` | `string[] \| null \| undefined` | Optional | A list of location IDs where this employee has access to. | -| `status` | [`string \| undefined`](../../doc/models/employee-status.md) | Optional | The status of the Employee being retrieved. | +| `status` | [`string \| undefined`](../../doc/models/employee-status.md) | Optional | The status of the Employee being retrieved.

DEPRECATED at version 2020-08-26. Replaced by [TeamMemberStatus](entity:TeamMemberStatus). | | `isOwner` | `boolean \| null \| undefined` | Optional | Whether this employee is the owner of the merchant. Each merchant
has one owner employee, and that employee has full authority over
the account. | | `createdAt` | `string \| undefined` | Optional | A read-only timestamp in RFC 3339 format. | | `updatedAt` | `string \| undefined` | Optional | A read-only timestamp in RFC 3339 format. | @@ -26,11 +28,11 @@ An employee object that is used by the external API. ```json { - "id": "id0", - "first_name": "first_name0", - "last_name": "last_name8", - "email": "email6", - "phone_number": "phone_number2" + "id": "id6", + "first_name": "first_name6", + "last_name": "last_name4", + "email": "email0", + "phone_number": "phone_number6" } ``` diff --git a/doc/models/error.md b/doc/models/error.md index cd3cbf6d..c59445fd 100644 --- a/doc/models/error.md +++ b/doc/models/error.md @@ -23,9 +23,9 @@ See [Handling errors](https://developer.squareup.com/docs/build-basics/handling- ```json { "category": "API_ERROR", - "code": "VERIFY_AVS_FAILURE", - "detail": "detail6", - "field": "field6" + "code": "CARD_NOT_SUPPORTED", + "detail": "detail0", + "field": "field8" } ``` diff --git a/doc/models/event-data.md b/doc/models/event-data.md index 65ca36cc..77e413bf 100644 --- a/doc/models/event-data.md +++ b/doc/models/event-data.md @@ -18,8 +18,8 @@ ```json { - "type": "type0", - "id": "id0", + "type": "type2", + "id": "id8", "deleted": false, "object": { "key1": "val1", diff --git a/doc/models/event.md b/doc/models/event.md index b7f16466..cc309412 100644 --- a/doc/models/event.md +++ b/doc/models/event.md @@ -20,11 +20,11 @@ ```json { - "merchant_id": "merchant_id0", - "location_id": "location_id4", - "type": "type0", - "event_id": "event_id6", - "created_at": "created_at2" + "merchant_id": "merchant_id2", + "location_id": "location_id6", + "type": "type8", + "event_id": "event_id8", + "created_at": "created_at0" } ``` diff --git a/doc/models/external-payment-details.md b/doc/models/external-payment-details.md index 36e98236..4e052b84 100644 --- a/doc/models/external-payment-details.md +++ b/doc/models/external-payment-details.md @@ -22,8 +22,8 @@ For more information, see ```json { - "type": "type0", - "source": "source4", + "type": "type8", + "source": "source8", "source_id": "source_id6", "source_fee_money": { "amount": 130, diff --git a/doc/models/filter-value.md b/doc/models/filter-value.md index 1e558944..0c4088fd 100644 --- a/doc/models/filter-value.md +++ b/doc/models/filter-value.md @@ -24,16 +24,18 @@ Refer to the documentation of the field. ```json { "all": [ - "all1", - "all2" + "all9", + "all0", + "all1" ], "any": [ - "any6" + "any8", + "any9", + "any0" ], "none": [ - "none1", - "none2", - "none3" + "none3", + "none4" ] } ``` diff --git a/doc/models/float-number-range.md b/doc/models/float-number-range.md index dd0a8dec..ef7823bd 100644 --- a/doc/models/float-number-range.md +++ b/doc/models/float-number-range.md @@ -18,8 +18,8 @@ Specifies a decimal number range. ```json { - "start_at": "start_at2", - "end_at": "end_at0" + "start_at": "start_at0", + "end_at": "end_at2" } ``` diff --git a/doc/models/fulfillment-delivery-details.md b/doc/models/fulfillment-delivery-details.md index 820e7e1b..7e7a3166 100644 --- a/doc/models/fulfillment-delivery-details.md +++ b/doc/models/fulfillment-delivery-details.md @@ -45,17 +45,17 @@ Describes delivery details of an order fulfillment. "email_address": "email_address4", "phone_number": "phone_number4", "address": { - "address_line_1": "address_line_14", - "address_line_2": "address_line_24", - "address_line_3": "address_line_30", - "locality": "locality4", - "sublocality": "sublocality4" + "address_line_1": "address_line_16", + "address_line_2": "address_line_26", + "address_line_3": "address_line_32", + "locality": "locality6", + "sublocality": "sublocality6" } }, "schedule_type": "SCHEDULED", - "placed_at": "placed_at0", - "deliver_at": "deliver_at8", - "prep_time_duration": "prep_time_duration2" + "placed_at": "placed_at6", + "deliver_at": "deliver_at2", + "prep_time_duration": "prep_time_duration6" } ``` diff --git a/doc/models/fulfillment-fulfillment-entry.md b/doc/models/fulfillment-fulfillment-entry.md index 11eb6c8e..e238c865 100644 --- a/doc/models/fulfillment-fulfillment-entry.md +++ b/doc/models/fulfillment-fulfillment-entry.md @@ -27,8 +27,7 @@ fulfill. "quantity": "quantity6", "metadata": { "key0": "metadata3", - "key1": "metadata4", - "key2": "metadata5" + "key1": "metadata4" } } ``` diff --git a/doc/models/fulfillment-pickup-details-curbside-pickup-details.md b/doc/models/fulfillment-pickup-details-curbside-pickup-details.md index 0d05bf33..c30fb62a 100644 --- a/doc/models/fulfillment-pickup-details-curbside-pickup-details.md +++ b/doc/models/fulfillment-pickup-details-curbside-pickup-details.md @@ -18,8 +18,8 @@ Specific details for curbside pickup. ```json { - "curbside_details": "curbside_details6", - "buyer_arrived_at": "buyer_arrived_at2" + "curbside_details": "curbside_details0", + "buyer_arrived_at": "buyer_arrived_at6" } ``` diff --git a/doc/models/fulfillment-pickup-details.md b/doc/models/fulfillment-pickup-details.md index aed63297..bfd5c2ae 100644 --- a/doc/models/fulfillment-pickup-details.md +++ b/doc/models/fulfillment-pickup-details.md @@ -40,17 +40,17 @@ Contains details necessary to fulfill a pickup order. "email_address": "email_address4", "phone_number": "phone_number4", "address": { - "address_line_1": "address_line_14", - "address_line_2": "address_line_24", - "address_line_3": "address_line_30", - "locality": "locality4", - "sublocality": "sublocality4" + "address_line_1": "address_line_16", + "address_line_2": "address_line_26", + "address_line_3": "address_line_32", + "locality": "locality6", + "sublocality": "sublocality6" } }, - "expires_at": "expires_at6", - "auto_complete_duration": "auto_complete_duration4", + "expires_at": "expires_at0", + "auto_complete_duration": "auto_complete_duration0", "schedule_type": "SCHEDULED", - "pickup_at": "pickup_at4" + "pickup_at": "pickup_at8" } ``` diff --git a/doc/models/fulfillment-recipient.md b/doc/models/fulfillment-recipient.md index 4cbb1dc0..44a765d8 100644 --- a/doc/models/fulfillment-recipient.md +++ b/doc/models/fulfillment-recipient.md @@ -21,8 +21,8 @@ Information about the fulfillment recipient. ```json { - "customer_id": "customer_id8", - "display_name": "display_name0", + "customer_id": "customer_id2", + "display_name": "display_name4", "email_address": "email_address2", "phone_number": "phone_number2", "address": { diff --git a/doc/models/fulfillment-shipment-details.md b/doc/models/fulfillment-shipment-details.md index 7755f854..3e6dc652 100644 --- a/doc/models/fulfillment-shipment-details.md +++ b/doc/models/fulfillment-shipment-details.md @@ -37,17 +37,17 @@ Contains the details necessary to fulfill a shipment order. "email_address": "email_address4", "phone_number": "phone_number4", "address": { - "address_line_1": "address_line_14", - "address_line_2": "address_line_24", - "address_line_3": "address_line_30", - "locality": "locality4", - "sublocality": "sublocality4" + "address_line_1": "address_line_16", + "address_line_2": "address_line_26", + "address_line_3": "address_line_32", + "locality": "locality6", + "sublocality": "sublocality6" } }, - "carrier": "carrier2", - "shipping_note": "shipping_note6", - "shipping_type": "shipping_type6", - "tracking_number": "tracking_number8" + "carrier": "carrier6", + "shipping_note": "shipping_note0", + "shipping_type": "shipping_type2", + "tracking_number": "tracking_number2" } ``` diff --git a/doc/models/fulfillment.md b/doc/models/fulfillment.md index 9aeafa52..71e649cd 100644 --- a/doc/models/fulfillment.md +++ b/doc/models/fulfillment.md @@ -29,17 +29,17 @@ However, orders returned by the Orders API might contain multiple fulfillments b { "uid": "uid0", "type": "DELIVERY", - "state": "PREPARED", + "state": "CANCELED", "line_item_application": "ALL", "entries": [ { - "uid": "uid5", - "line_item_uid": "line_item_uid5", - "quantity": "quantity1", + "uid": "uid0", + "line_item_uid": "line_item_uid0", + "quantity": "quantity6", "metadata": { - "key0": "metadata8", - "key1": "metadata9", - "key2": "metadata0" + "key0": "metadata3", + "key1": "metadata4", + "key2": "metadata5" } } ] diff --git a/doc/models/get-bank-account-by-v1-id-response.md b/doc/models/get-bank-account-by-v1-id-response.md index 3e67dcc5..def0656f 100644 --- a/doc/models/get-bank-account-by-v1-id-response.md +++ b/doc/models/get-bank-account-by-v1-id-response.md @@ -39,22 +39,22 @@ Response object returned by GetBankAccountByV1Id. }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/get-bank-account-response.md b/doc/models/get-bank-account-response.md index 1dc7cab8..03eac836 100644 --- a/doc/models/get-bank-account-response.md +++ b/doc/models/get-bank-account-response.md @@ -38,23 +38,11 @@ Response object returned by `GetBankAccount`. "fingerprint": "fingerprint0" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/get-break-type-response.md b/doc/models/get-break-type-response.md index 485efd54..35528807 100644 --- a/doc/models/get-break-type-response.md +++ b/doc/models/get-break-type-response.md @@ -31,23 +31,17 @@ the request resulted in errors. "version": 1 }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/get-device-code-response.md b/doc/models/get-device-code-response.md index 207ac77a..84bf6342 100644 --- a/doc/models/get-device-code-response.md +++ b/doc/models/get-device-code-response.md @@ -29,23 +29,11 @@ "status_changed_at": "2020-02-06T18:47:28.000Z" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/get-device-response.md b/doc/models/get-device-response.md new file mode 100644 index 00000000..a15ffd50 --- /dev/null +++ b/doc/models/get-device-response.md @@ -0,0 +1,133 @@ + +# Get Device Response + +## Structure + +`GetDeviceResponse` + +## Fields + +| Name | Type | Tags | Description | +| --- | --- | --- | --- | +| `errors` | [`Error[] \| undefined`](../../doc/models/error.md) | Optional | Information about errors encountered during the request. | +| `device` | [`Device \| undefined`](../../doc/models/device.md) | Optional | - | + +## Example (as JSON) + +```json +{ + "errors": [ + { + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" + } + ], + "device": { + "id": "id6", + "attributes": { + "type": "type4", + "manufacturer": "manufacturer2", + "model": "model2", + "name": "name4", + "manufacturers_id": "manufacturers_id0", + "updated_at": "updated_at0", + "version": "version0" + }, + "components": [ + { + "type": "BATTERY", + "application_details": { + "application_type": "TERMINAL_API", + "version": "version4", + "session_location": "session_location0", + "device_code_id": "device_code_id2" + }, + "card_reader_details": { + "version": "version0" + }, + "battery_details": { + "visible_percent": 108, + "external_power": "AVAILABLE_CHARGING" + }, + "wifi_details": { + "active": false, + "ssid": "ssid8", + "ip_address_v4": "ip_address_v42", + "secure_connection": "secure_connection8", + "signal_strength": { + "value": 222 + } + }, + "ethernet_details": { + "active": false, + "ip_address_v4": "ip_address_v42" + } + }, + { + "type": "BATTERY", + "application_details": { + "application_type": "TERMINAL_API", + "version": "version4", + "session_location": "session_location0", + "device_code_id": "device_code_id2" + }, + "card_reader_details": { + "version": "version0" + }, + "battery_details": { + "visible_percent": 108, + "external_power": "AVAILABLE_CHARGING" + }, + "wifi_details": { + "active": false, + "ssid": "ssid8", + "ip_address_v4": "ip_address_v42", + "secure_connection": "secure_connection8", + "signal_strength": { + "value": 222 + } + }, + "ethernet_details": { + "active": false, + "ip_address_v4": "ip_address_v42" + } + }, + { + "type": "BATTERY", + "application_details": { + "application_type": "TERMINAL_API", + "version": "version4", + "session_location": "session_location0", + "device_code_id": "device_code_id2" + }, + "card_reader_details": { + "version": "version0" + }, + "battery_details": { + "visible_percent": 108, + "external_power": "AVAILABLE_CHARGING" + }, + "wifi_details": { + "active": false, + "ssid": "ssid8", + "ip_address_v4": "ip_address_v42", + "secure_connection": "secure_connection8", + "signal_strength": { + "value": 222 + } + }, + "ethernet_details": { + "active": false, + "ip_address_v4": "ip_address_v42" + } + } + ], + "status": { + "category": "AVAILABLE" + } + } +} +``` + diff --git a/doc/models/get-employee-wage-response.md b/doc/models/get-employee-wage-response.md index 16143611..663f4035 100644 --- a/doc/models/get-employee-wage-response.md +++ b/doc/models/get-employee-wage-response.md @@ -31,22 +31,22 @@ the request resulted in errors. }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/get-invoice-response.md b/doc/models/get-invoice-response.md index 0f4ff4d5..74cd483c 100644 --- a/doc/models/get-invoice-response.md +++ b/doc/models/get-invoice-response.md @@ -94,23 +94,11 @@ Describes a `GetInvoice` response. "version": 0 }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/get-payment-refund-response.md b/doc/models/get-payment-refund-response.md index fb1e05e8..a123631c 100644 --- a/doc/models/get-payment-refund-response.md +++ b/doc/models/get-payment-refund-response.md @@ -50,10 +50,10 @@ present or it might be present in a FAILED state. "card_details": { "card": { "id": "id6", - "card_brand": "SQUARE_GIFT_CARD", + "card_brand": "OTHER_BRAND", "last_4": "last_48", - "exp_month": 208, - "exp_year": 88 + "exp_month": 228, + "exp_year": 68 }, "entry_method": "entry_method8" } @@ -61,22 +61,22 @@ present or it might be present in a FAILED state. }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/get-payment-response.md b/doc/models/get-payment-response.md index b76e4025..13b303cd 100644 --- a/doc/models/get-payment-response.md +++ b/doc/models/get-payment-response.md @@ -84,28 +84,16 @@ Defines the response returned by [GetPayment](../../doc/api/payments.md#get-paym "updated_at": "2021-10-13T19:34:34.339Z", "version_token": "56pRkL3slrzet2iQrTp9n0bdJVYTB9YEWdTNjQfZOPV6o", "tip_money": { - "amount": 174, - "currency": "LYD" + "amount": 190, + "currency": "ZMK" } }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/get-payout-response.md b/doc/models/get-payout-response.md index 80f37537..78bff9fa 100644 --- a/doc/models/get-payout-response.md +++ b/doc/models/get-payout-response.md @@ -20,7 +20,7 @@ "amount_money": { "amount": -103, "currency_code": "USD", - "currency": "AFN" + "currency": "TZS" }, "arrival_date": "2022-03-24", "created_at": "2022-03-24T03:07:09Z", @@ -36,23 +36,17 @@ "version": 1 }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/get-shift-response.md b/doc/models/get-shift-response.md index 64ac21c9..3652f890 100644 --- a/doc/models/get-shift-response.md +++ b/doc/models/get-shift-response.md @@ -54,22 +54,22 @@ the request resulted in errors. }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/get-team-member-wage-response.md b/doc/models/get-team-member-wage-response.md index 6e4851c1..cb676459 100644 --- a/doc/models/get-team-member-wage-response.md +++ b/doc/models/get-team-member-wage-response.md @@ -31,23 +31,11 @@ the request resulted in errors. "title": "Manager" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/get-terminal-action-response.md b/doc/models/get-terminal-action-response.md index eed8ff66..90deea67 100644 --- a/doc/models/get-terminal-action-response.md +++ b/doc/models/get-terminal-action-response.md @@ -33,23 +33,17 @@ "cancel_reason": "TIMED_OUT" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/get-terminal-checkout-response.md b/doc/models/get-terminal-checkout-response.md index 14ea4750..58cd34ba 100644 --- a/doc/models/get-terminal-checkout-response.md +++ b/doc/models/get-terminal-checkout-response.md @@ -32,9 +32,7 @@ "separate_tip_screen": false, "custom_tip_field": false, "tip_percentages": [ - 196, - 195, - 194 + 48 ], "smart_tipping": false }, @@ -50,29 +48,17 @@ "order_id": "order_id6", "payment_options": { "autocomplete": false, - "delay_duration": "delay_duration0", + "delay_duration": "delay_duration2", "accept_partial_authorization": false, "delay_action": "CANCEL" } }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/get-terminal-refund-response.md b/doc/models/get-terminal-refund-response.md index fa8f4364..97549669 100644 --- a/doc/models/get-terminal-refund-response.md +++ b/doc/models/get-terminal-refund-response.md @@ -44,23 +44,11 @@ "updated_at": "2020-09-29T15:21:48.675Z" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/gift-card-activity-activate.md b/doc/models/gift-card-activity-activate.md index a853cd8a..f24547f0 100644 --- a/doc/models/gift-card-activity-activate.md +++ b/doc/models/gift-card-activity-activate.md @@ -25,11 +25,11 @@ Represents details about an `ACTIVATE` [gift card activity type](../../doc/model "amount": 186, "currency": "TZS" }, - "order_id": "order_id6", - "line_item_uid": "line_item_uid0", - "reference_id": "reference_id2", + "order_id": "order_id2", + "line_item_uid": "line_item_uid4", + "reference_id": "reference_id8", "buyer_payment_instrument_ids": [ - "buyer_payment_instrument_ids6" + "buyer_payment_instrument_ids0" ] } ``` diff --git a/doc/models/gift-card-activity-adjust-decrement.md b/doc/models/gift-card-activity-adjust-decrement.md index b097d8c9..2752cf35 100644 --- a/doc/models/gift-card-activity-adjust-decrement.md +++ b/doc/models/gift-card-activity-adjust-decrement.md @@ -22,7 +22,7 @@ Represents details about an `ADJUST_DECREMENT` [gift card activity type](../../d "amount": 186, "currency": "TZS" }, - "reason": "SUSPICIOUS_ACTIVITY" + "reason": "SUPPORT_ISSUE" } ``` diff --git a/doc/models/gift-card-activity-adjust-increment.md b/doc/models/gift-card-activity-adjust-increment.md index 162012f5..8aa746c2 100644 --- a/doc/models/gift-card-activity-adjust-increment.md +++ b/doc/models/gift-card-activity-adjust-increment.md @@ -22,7 +22,7 @@ Represents details about an `ADJUST_INCREMENT` [gift card activity type](../../d "amount": 186, "currency": "TZS" }, - "reason": "SUPPORT_ISSUE" + "reason": "COMPLIMENTARY" } ``` diff --git a/doc/models/gift-card-activity-clear-balance.md b/doc/models/gift-card-activity-clear-balance.md index 8df6f71d..236458c5 100644 --- a/doc/models/gift-card-activity-clear-balance.md +++ b/doc/models/gift-card-activity-clear-balance.md @@ -17,7 +17,7 @@ Represents details about a `CLEAR_BALANCE` [gift card activity type](../../doc/m ```json { - "reason": "REUSE_GIFTCARD" + "reason": "SUSPICIOUS_ACTIVITY" } ``` diff --git a/doc/models/gift-card-activity-deactivate.md b/doc/models/gift-card-activity-deactivate.md index cdc0d6b1..80cc2675 100644 --- a/doc/models/gift-card-activity-deactivate.md +++ b/doc/models/gift-card-activity-deactivate.md @@ -17,7 +17,7 @@ Represents details about a `DEACTIVATE` [gift card activity type](../../doc/mode ```json { - "reason": "UNKNOWN_REASON" + "reason": "CHARGEBACK_DEACTIVATE" } ``` diff --git a/doc/models/gift-card-activity-load.md b/doc/models/gift-card-activity-load.md index 03ea1347..be48aa89 100644 --- a/doc/models/gift-card-activity-load.md +++ b/doc/models/gift-card-activity-load.md @@ -25,11 +25,12 @@ Represents details about a `LOAD` [gift card activity type](../../doc/models/gif "amount": 186, "currency": "TZS" }, - "order_id": "order_id6", - "line_item_uid": "line_item_uid0", - "reference_id": "reference_id2", + "order_id": "order_id2", + "line_item_uid": "line_item_uid8", + "reference_id": "reference_id6", "buyer_payment_instrument_ids": [ - "buyer_payment_instrument_ids6" + "buyer_payment_instrument_ids4", + "buyer_payment_instrument_ids5" ] } ``` diff --git a/doc/models/gift-card-activity-redeem.md b/doc/models/gift-card-activity-redeem.md index ac18d673..8f255cf8 100644 --- a/doc/models/gift-card-activity-redeem.md +++ b/doc/models/gift-card-activity-redeem.md @@ -24,9 +24,9 @@ Represents details about a `REDEEM` [gift card activity type](../../doc/models/g "amount": 186, "currency": "TZS" }, - "payment_id": "payment_id0", + "payment_id": "payment_id4", "reference_id": "reference_id2", - "status": "CANCELED" + "status": "COMPLETED" } ``` diff --git a/doc/models/gift-card-activity-refund.md b/doc/models/gift-card-activity-refund.md index 80477de1..a9e0de64 100644 --- a/doc/models/gift-card-activity-refund.md +++ b/doc/models/gift-card-activity-refund.md @@ -20,13 +20,13 @@ Represents details about a `REFUND` [gift card activity type](../../doc/models/g ```json { - "redeem_activity_id": "redeem_activity_id0", + "redeem_activity_id": "redeem_activity_id4", "amount_money": { "amount": 186, "currency": "TZS" }, - "reference_id": "reference_id2", - "payment_id": "payment_id0" + "reference_id": "reference_id8", + "payment_id": "payment_id4" } ``` diff --git a/doc/models/gift-card-activity-transfer-balance-from.md b/doc/models/gift-card-activity-transfer-balance-from.md index 0f9bc820..f2bad8d2 100644 --- a/doc/models/gift-card-activity-transfer-balance-from.md +++ b/doc/models/gift-card-activity-transfer-balance-from.md @@ -18,7 +18,7 @@ Represents details about a `TRANSFER_BALANCE_FROM` [gift card activity type](../ ```json { - "transfer_to_gift_card_id": "transfer_to_gift_card_id6", + "transfer_to_gift_card_id": "transfer_to_gift_card_id0", "amount_money": { "amount": 186, "currency": "TZS" diff --git a/doc/models/gift-card-activity-transfer-balance-to.md b/doc/models/gift-card-activity-transfer-balance-to.md index d0ac6e09..229d00f1 100644 --- a/doc/models/gift-card-activity-transfer-balance-to.md +++ b/doc/models/gift-card-activity-transfer-balance-to.md @@ -18,7 +18,7 @@ Represents details about a `TRANSFER_BALANCE_TO` [gift card activity type](../.. ```json { - "transfer_from_gift_card_id": "transfer_from_gift_card_id0", + "transfer_from_gift_card_id": "transfer_from_gift_card_id6", "amount_money": { "amount": 186, "currency": "TZS" diff --git a/doc/models/gift-card-activity-unlinked-activity-refund.md b/doc/models/gift-card-activity-unlinked-activity-refund.md index 2909b883..07a41d8a 100644 --- a/doc/models/gift-card-activity-unlinked-activity-refund.md +++ b/doc/models/gift-card-activity-unlinked-activity-refund.md @@ -23,7 +23,7 @@ Represents details about an `UNLINKED_ACTIVITY_REFUND` [gift card activity type] "amount": 186, "currency": "TZS" }, - "reference_id": "reference_id2", + "reference_id": "reference_id8", "payment_id": "payment_id0" } ``` diff --git a/doc/models/gift-card-activity.md b/doc/models/gift-card-activity.md index f928abd4..956596f1 100644 --- a/doc/models/gift-card-activity.md +++ b/doc/models/gift-card-activity.md @@ -40,12 +40,12 @@ includes a `redeem_activity_details` field that contains information about the r ```json { - "id": "id0", - "type": "ADJUST_INCREMENT", - "location_id": "location_id4", - "created_at": "created_at2", - "gift_card_id": "gift_card_id8", - "gift_card_gan": "gift_card_gan6", + "id": "id8", + "type": "REDEEM", + "location_id": "location_id2", + "created_at": "created_at6", + "gift_card_id": "gift_card_id6", + "gift_card_gan": "gift_card_gan4", "gift_card_balance_money": { "amount": 82, "currency": "KPW" diff --git a/doc/models/inventory-adjustment-group.md b/doc/models/inventory-adjustment-group.md index cb8cd748..817ea15e 100644 --- a/doc/models/inventory-adjustment-group.md +++ b/doc/models/inventory-adjustment-group.md @@ -18,10 +18,10 @@ ```json { - "id": "id0", - "root_adjustment_id": "root_adjustment_id0", - "from_state": "RESERVED_FOR_SALE", - "to_state": "SUPPORTED_BY_NEWER_VERSION" + "id": "id4", + "root_adjustment_id": "root_adjustment_id4", + "from_state": "WASTE", + "to_state": "RESERVED_FOR_SALE" } ``` diff --git a/doc/models/inventory-adjustment.md b/doc/models/inventory-adjustment.md index 1764d7bc..1ae9b88f 100644 --- a/doc/models/inventory-adjustment.md +++ b/doc/models/inventory-adjustment.md @@ -36,11 +36,11 @@ particular time and location. ```json { - "id": "id0", - "reference_id": "reference_id2", - "from_state": "RESERVED_FOR_SALE", - "to_state": "SUPPORTED_BY_NEWER_VERSION", - "location_id": "location_id4" + "id": "id6", + "reference_id": "reference_id6", + "from_state": "WASTE", + "to_state": "RESERVED_FOR_SALE", + "location_id": "location_id0" } ``` diff --git a/doc/models/inventory-change.md b/doc/models/inventory-change.md index 589e07f8..6d0bad1e 100644 --- a/doc/models/inventory-change.md +++ b/doc/models/inventory-change.md @@ -24,7 +24,7 @@ that is part of the history of inventory changes for a particular ```json { - "type": "TRANSFER", + "type": "ADJUSTMENT", "physical_count": { "id": "id2", "reference_id": "reference_id0", @@ -52,10 +52,10 @@ that is part of the history of inventory changes for a particular "name": "name2", "abbreviation": "abbreviation4" }, - "area_unit": "IMPERIAL_SQUARE_MILE", - "length_unit": "METRIC_MILLIMETER", - "volume_unit": "GENERIC_CUP", - "weight_unit": "IMPERIAL_STONE" + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_LITER", + "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, "precision": 184 } diff --git a/doc/models/inventory-count.md b/doc/models/inventory-count.md index c440121c..95fdda72 100644 --- a/doc/models/inventory-count.md +++ b/doc/models/inventory-count.md @@ -25,11 +25,11 @@ inventory adjustments. ```json { - "catalog_object_id": "catalog_object_id6", - "catalog_object_type": "catalog_object_type6", - "state": "RESERVED_FOR_SALE", - "location_id": "location_id4", - "quantity": "quantity6" + "catalog_object_id": "catalog_object_id4", + "catalog_object_type": "catalog_object_type4", + "state": "SOLD", + "location_id": "location_id6", + "quantity": "quantity8" } ``` diff --git a/doc/models/inventory-physical-count.md b/doc/models/inventory-physical-count.md index e6badd51..65c5abba 100644 --- a/doc/models/inventory-physical-count.md +++ b/doc/models/inventory-physical-count.md @@ -32,10 +32,10 @@ hand or from syncing with an external system. ```json { "id": "id0", - "reference_id": "reference_id2", - "catalog_object_id": "catalog_object_id6", - "catalog_object_type": "catalog_object_type6", - "state": "RESERVED_FOR_SALE" + "reference_id": "reference_id8", + "catalog_object_id": "catalog_object_id4", + "catalog_object_type": "catalog_object_type4", + "state": "COMPOSED" } ``` diff --git a/doc/models/inventory-transfer.md b/doc/models/inventory-transfer.md index 7a9f41f2..5e4b3e4a 100644 --- a/doc/models/inventory-transfer.md +++ b/doc/models/inventory-transfer.md @@ -30,11 +30,11 @@ particular time from one location to another. ```json { - "id": "id0", - "reference_id": "reference_id2", - "state": "RESERVED_FOR_SALE", - "from_location_id": "from_location_id2", - "to_location_id": "to_location_id8" + "id": "id8", + "reference_id": "reference_id4", + "state": "ORDERED_FROM_VENDOR", + "from_location_id": "from_location_id0", + "to_location_id": "to_location_id0" } ``` diff --git a/doc/models/invoice-custom-field.md b/doc/models/invoice-custom-field.md index d227ecb3..254a8978 100644 --- a/doc/models/invoice-custom-field.md +++ b/doc/models/invoice-custom-field.md @@ -23,8 +23,8 @@ Adding custom fields to an invoice requires an ```json { - "label": "label0", - "value": "value2", + "label": "label6", + "value": "value8", "placement": "ABOVE_LINE_ITEMS" } ``` diff --git a/doc/models/invoice-filter.md b/doc/models/invoice-filter.md index caf91ee2..605299b0 100644 --- a/doc/models/invoice-filter.md +++ b/doc/models/invoice-filter.md @@ -19,10 +19,12 @@ Describes query filters to apply. ```json { "location_ids": [ - "location_ids0" + "location_ids0", + "location_ids1", + "location_ids2" ], "customer_ids": [ - "customer_ids1", + "customer_ids3", "customer_ids2" ] } diff --git a/doc/models/invoice-payment-reminder.md b/doc/models/invoice-payment-reminder.md index bf457423..50c2c0d3 100644 --- a/doc/models/invoice-payment-reminder.md +++ b/doc/models/invoice-payment-reminder.md @@ -23,11 +23,11 @@ to the customer. You configure a reminder relative to the payment request ```json { - "uid": "uid0", - "relative_scheduled_days": 0, - "message": "message0", + "uid": "uid6", + "relative_scheduled_days": 198, + "message": "message4", "status": "SENT", - "sent_at": "sent_at0" + "sent_at": "sent_at6" } ``` diff --git a/doc/models/invoice-payment-request.md b/doc/models/invoice-payment-request.md index 0d9efea3..9a50d937 100644 --- a/doc/models/invoice-payment-request.md +++ b/doc/models/invoice-payment-request.md @@ -35,8 +35,8 @@ Adding `INSTALLMENT` payment requests to an invoice requires an ```json { "uid": "uid0", - "request_method": "CHARGE_CARD_ON_FILE", - "request_type": "BALANCE", + "request_method": "SHARE_MANUALLY", + "request_type": "DEPOSIT", "due_date": "due_date8", "fixed_amount_requested_money": { "amount": 162, diff --git a/doc/models/invoice-recipient-tax-ids.md b/doc/models/invoice-recipient-tax-ids.md index 3e763ee2..70e7cd28 100644 --- a/doc/models/invoice-recipient-tax-ids.md +++ b/doc/models/invoice-recipient-tax-ids.md @@ -19,7 +19,7 @@ see [Invoice recipient tax IDs](https://developer.squareup.com/docs/invoices-api ```json { - "eu_vat": "eu_vat2" + "eu_vat": "eu_vat8" } ``` diff --git a/doc/models/invoice-recipient.md b/doc/models/invoice-recipient.md index dfe5637a..a9d5c2f2 100644 --- a/doc/models/invoice-recipient.md +++ b/doc/models/invoice-recipient.md @@ -31,8 +31,8 @@ Square updates the customer ID in response to a merge operation, but does not up { "customer_id": "customer_id8", "given_name": "given_name2", - "family_name": "family_name6", - "email_address": "email_address2", + "family_name": "family_name4", + "email_address": "email_address8", "address": { "address_line_1": "address_line_16", "address_line_2": "address_line_26", diff --git a/doc/models/invoice.md b/doc/models/invoice.md index 1639fca9..462df3a6 100644 --- a/doc/models/invoice.md +++ b/doc/models/invoice.md @@ -41,20 +41,20 @@ invoices. For more information, see [Invoices API Overview](https://developer.sq ```json { "id": "id0", - "version": 172, + "version": 224, "location_id": "location_id4", - "order_id": "order_id6", + "order_id": "order_id4", "primary_recipient": { "customer_id": "customer_id2", "given_name": "given_name6", "family_name": "family_name8", "email_address": "email_address2", "address": { - "address_line_1": "address_line_10", - "address_line_2": "address_line_20", - "address_line_3": "address_line_36", - "locality": "locality0", - "sublocality": "sublocality0" + "address_line_1": "address_line_16", + "address_line_2": "address_line_26", + "address_line_3": "address_line_32", + "locality": "locality6", + "sublocality": "sublocality6" } } } diff --git a/doc/models/item-variation-location-overrides.md b/doc/models/item-variation-location-overrides.md index ee633a6b..3b0a7017 100644 --- a/doc/models/item-variation-location-overrides.md +++ b/doc/models/item-variation-location-overrides.md @@ -24,7 +24,7 @@ Price and inventory alerting overrides for a `CatalogItemVariation` at a specifi ```json { - "location_id": "location_id4", + "location_id": "location_id6", "price_money": { "amount": 202, "currency": "CNY" diff --git a/doc/models/job-assignment.md b/doc/models/job-assignment.md index 87745c9b..b286e0fe 100644 --- a/doc/models/job-assignment.md +++ b/doc/models/job-assignment.md @@ -21,7 +21,7 @@ An object describing a job that a team member is assigned to. ```json { - "job_title": "job_title4", + "job_title": "job_title6", "pay_type": "NONE", "hourly_rate": { "amount": 172, @@ -31,7 +31,7 @@ An object describing a job that a team member is assigned to. "amount": 232, "currency": "SBD" }, - "weekly_hours": 156 + "weekly_hours": 120 } ``` diff --git a/doc/models/link-customer-to-gift-card-response.md b/doc/models/link-customer-to-gift-card-response.md index e6fba89c..eaff8097 100644 --- a/doc/models/link-customer-to-gift-card-response.md +++ b/doc/models/link-customer-to-gift-card-response.md @@ -35,23 +35,11 @@ the response contains a set of `Error` objects. "type": "DIGITAL" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/list-bank-accounts-request.md b/doc/models/list-bank-accounts-request.md index cd5344c0..adf510a3 100644 --- a/doc/models/list-bank-accounts-request.md +++ b/doc/models/list-bank-accounts-request.md @@ -20,9 +20,9 @@ objects linked to a account. ```json { - "cursor": "cursor6", - "limit": 172, - "location_id": "location_id4" + "cursor": "cursor8", + "limit": 182, + "location_id": "location_id2" } ``` diff --git a/doc/models/list-bank-accounts-response.md b/doc/models/list-bank-accounts-response.md index 3c06fa42..a2ec668a 100644 --- a/doc/models/list-bank-accounts-response.md +++ b/doc/models/list-bank-accounts-response.md @@ -34,10 +34,10 @@ Response object returned by ListBankAccounts. "primary_bank_identification_number": "112200303", "status": "VERIFICATION_IN_PROGRESS", "version": 5, - "secondary_bank_identification_number": "secondary_bank_identification_number5", - "debit_mandate_reference_id": "debit_mandate_reference_id9", - "reference_id": "reference_id3", - "fingerprint": "fingerprint1" + "secondary_bank_identification_number": "secondary_bank_identification_number0", + "debit_mandate_reference_id": "debit_mandate_reference_id4", + "reference_id": "reference_id8", + "fingerprint": "fingerprint6" }, { "account_number_suffix": "972", @@ -53,33 +53,21 @@ Response object returned by ListBankAccounts. "primary_bank_identification_number": "112200303", "status": "VERIFICATION_IN_PROGRESS", "version": 5, - "secondary_bank_identification_number": "secondary_bank_identification_number6", - "debit_mandate_reference_id": "debit_mandate_reference_id8", - "reference_id": "reference_id4", - "fingerprint": "fingerprint2" + "secondary_bank_identification_number": "secondary_bank_identification_number0", + "debit_mandate_reference_id": "debit_mandate_reference_id4", + "reference_id": "reference_id8", + "fingerprint": "fingerprint6" } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], - "cursor": "cursor6" + "cursor": "cursor2" } ``` diff --git a/doc/models/list-booking-custom-attribute-definitions-request.md b/doc/models/list-booking-custom-attribute-definitions-request.md index baf4ac64..c939b912 100644 --- a/doc/models/list-booking-custom-attribute-definitions-request.md +++ b/doc/models/list-booking-custom-attribute-definitions-request.md @@ -18,7 +18,7 @@ Represents a [ListBookingCustomAttributeDefinitions](../../doc/api/booking-custo ```json { - "limit": 172, + "limit": 98, "cursor": "cursor6" } ``` diff --git a/doc/models/list-booking-custom-attributes-request.md b/doc/models/list-booking-custom-attributes-request.md index 4e7598f1..787757e6 100644 --- a/doc/models/list-booking-custom-attributes-request.md +++ b/doc/models/list-booking-custom-attributes-request.md @@ -19,8 +19,8 @@ Represents a [ListBookingCustomAttributes](../../doc/api/booking-custom-attribut ```json { - "limit": 172, - "cursor": "cursor6", + "limit": 254, + "cursor": "cursor8", "with_definitions": false } ``` diff --git a/doc/models/list-booking-custom-attributes-response.md b/doc/models/list-booking-custom-attributes-response.md index 26bb0792..0226894c 100644 --- a/doc/models/list-booking-custom-attributes-response.md +++ b/doc/models/list-booking-custom-attributes-response.md @@ -23,82 +23,57 @@ results are available, the `cursor` field is also present along with `custom_att { "custom_attributes": [ { - "key": "key2", + "key": "key8", "value": { "key1": "val1", "key2": "val2" }, - "version": 228, - "visibility": "VISIBILITY_READ_WRITE_VALUES", + "version": 180, + "visibility": "VISIBILITY_HIDDEN", "definition": { - "key": "key2", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name2", - "description": "description2", + "name": "name0", + "description": "description0", "visibility": "VISIBILITY_HIDDEN" } }, { - "key": "key3", + "key": "key8", "value": { "key1": "val1", "key2": "val2" }, - "version": 229, - "visibility": "VISIBILITY_READ_ONLY", - "definition": { - "key": "key3", - "schema": { - "key1": "val1", - "key2": "val2" - }, - "name": "name3", - "description": "description3", - "visibility": "VISIBILITY_READ_ONLY" - } - }, - { - "key": "key4", - "value": { - "key1": "val1", - "key2": "val2" - }, - "version": 230, + "version": 180, "visibility": "VISIBILITY_HIDDEN", "definition": { - "key": "key4", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name4", - "description": "description4", - "visibility": "VISIBILITY_READ_WRITE_VALUES" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } } ], - "cursor": "cursor6", + "cursor": "cursor0", "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/list-bookings-request.md b/doc/models/list-bookings-request.md index 83ebd37b..a2e3b144 100644 --- a/doc/models/list-bookings-request.md +++ b/doc/models/list-bookings-request.md @@ -21,11 +21,11 @@ ```json { - "limit": 172, - "cursor": "cursor6", - "customer_id": "customer_id8", - "team_member_id": "team_member_id0", - "location_id": "location_id4" + "limit": 34, + "cursor": "cursor4", + "customer_id": "customer_id0", + "team_member_id": "team_member_id2", + "location_id": "location_id6" } ``` diff --git a/doc/models/list-bookings-response.md b/doc/models/list-bookings-response.md index 37ff91bf..bfec3d09 100644 --- a/doc/models/list-bookings-response.md +++ b/doc/models/list-bookings-response.md @@ -19,32 +19,32 @@ { "bookings": [ { - "id": "id1", - "version": 157, - "status": "CANCELLED_BY_CUSTOMER", - "created_at": "created_at9", - "updated_at": "updated_at7" + "id": "id4", + "version": 218, + "status": "ACCEPTED", + "created_at": "created_at2", + "updated_at": "updated_at0" } ], "cursor": "cursor6", "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/list-break-types-request.md b/doc/models/list-break-types-request.md index 2f7d1b42..f14e782f 100644 --- a/doc/models/list-break-types-request.md +++ b/doc/models/list-break-types-request.md @@ -19,9 +19,9 @@ A request for a filtered set of `BreakType` objects. ```json { - "location_id": "location_id4", - "limit": 172, - "cursor": "cursor6" + "location_id": "location_id6", + "limit": 244, + "cursor": "cursor4" } ``` diff --git a/doc/models/list-break-types-response.md b/doc/models/list-break-types-response.md index 39ced88a..b3a3252a 100644 --- a/doc/models/list-break-types-response.md +++ b/doc/models/list-break-types-response.md @@ -45,23 +45,17 @@ the request resulted in errors. ], "cursor": "2fofTniCgT0yIPAq26kmk0YyFQJZfbWkh73OOnlTHmTAx13NgED", "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/list-cards-request.md b/doc/models/list-cards-request.md index 69736b1d..09ca4b60 100644 --- a/doc/models/list-cards-request.md +++ b/doc/models/list-cards-request.md @@ -25,7 +25,7 @@ HTTP requests at GET https://connect.squareup.com/v2/cards "cursor": "cursor6", "customer_id": "customer_id8", "include_disabled": false, - "reference_id": "reference_id2", + "reference_id": "reference_id8", "sort_order": "DESC" } ``` diff --git a/doc/models/list-cards-response.md b/doc/models/list-cards-response.md index c494d9a7..4c02f329 100644 --- a/doc/models/list-cards-response.md +++ b/doc/models/list-cards-response.md @@ -51,23 +51,11 @@ present. } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], "cursor": "cursor6" diff --git a/doc/models/list-cash-drawer-shift-events-request.md b/doc/models/list-cash-drawer-shift-events-request.md index 72f6f87b..0e99af8c 100644 --- a/doc/models/list-cash-drawer-shift-events-request.md +++ b/doc/models/list-cash-drawer-shift-events-request.md @@ -17,9 +17,9 @@ ```json { - "location_id": "location_id4", - "limit": 172, - "cursor": "cursor6" + "location_id": "location_id8", + "limit": 24, + "cursor": "cursor2" } ``` diff --git a/doc/models/list-cash-drawer-shift-events-response.md b/doc/models/list-cash-drawer-shift-events-response.md index 45aa50bd..652f3e52 100644 --- a/doc/models/list-cash-drawer-shift-events-response.md +++ b/doc/models/list-cash-drawer-shift-events-response.md @@ -85,25 +85,13 @@ "team_member_id": "" } ], - "cursor": "cursor6", + "cursor": "cursor8", "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/list-cash-drawer-shifts-request.md b/doc/models/list-cash-drawer-shifts-request.md index 5ca986e2..003caa4a 100644 --- a/doc/models/list-cash-drawer-shifts-request.md +++ b/doc/models/list-cash-drawer-shifts-request.md @@ -20,12 +20,12 @@ ```json { - "location_id": "location_id4", + "location_id": "location_id6", "sort_order": "DESC", - "begin_time": "begin_time2", - "end_time": "end_time2", - "limit": 172, - "cursor": "cursor6" + "begin_time": "begin_time0", + "end_time": "end_time4", + "limit": 154, + "cursor": "cursor4" } ``` diff --git a/doc/models/list-cash-drawer-shifts-response.md b/doc/models/list-cash-drawer-shifts-response.md index 371dc38e..941d7862 100644 --- a/doc/models/list-cash-drawer-shifts-response.md +++ b/doc/models/list-cash-drawer-shifts-response.md @@ -41,23 +41,17 @@ ], "cursor": "cursor6", "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/list-catalog-request.md b/doc/models/list-catalog-request.md index 04f5ddd6..0689e664 100644 --- a/doc/models/list-catalog-request.md +++ b/doc/models/list-catalog-request.md @@ -17,9 +17,9 @@ ```json { - "cursor": "cursor6", - "types": "types6", - "catalog_version": 126 + "cursor": "cursor2", + "types": "types0", + "catalog_version": 254 } ``` diff --git a/doc/models/list-catalog-response.md b/doc/models/list-catalog-response.md index ebef8914..cfbcc44c 100644 --- a/doc/models/list-catalog-response.md +++ b/doc/models/list-catalog-response.md @@ -30,11 +30,11 @@ "version": 1487688626495, "custom_attribute_values": { "key0": { - "name": "name9", - "string_value": "string_value3", - "custom_attribute_definition_id": "custom_attribute_definition_id3", - "type": "SELECTION", - "number_value": "number_value9" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" }, "key1": { "name": "name8", @@ -46,8 +46,16 @@ }, "catalog_v1_ids": [ { - "catalog_v1_id": "catalog_v1_id2", - "location_id": "location_id2" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" + }, + { + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" + }, + { + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" } ] }, @@ -67,17 +75,28 @@ "version": 1487688626495, "custom_attribute_values": { "key0": { - "name": "name0", - "string_value": "string_value4", - "custom_attribute_definition_id": "custom_attribute_definition_id2", - "type": "NUMBER", - "number_value": "number_value0" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" + }, + "key1": { + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" } }, "catalog_v1_ids": [ { - "catalog_v1_id": "catalog_v1_id3", - "location_id": "location_id3" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" + }, + { + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" }, { "catalog_v1_id": "catalog_v1_id4", @@ -87,23 +106,11 @@ } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], "cursor": "cursor6" diff --git a/doc/models/list-customer-custom-attribute-definitions-request.md b/doc/models/list-customer-custom-attribute-definitions-request.md index fcc6fcb1..0ee6b61f 100644 --- a/doc/models/list-customer-custom-attribute-definitions-request.md +++ b/doc/models/list-customer-custom-attribute-definitions-request.md @@ -18,8 +18,8 @@ Represents a [ListCustomerCustomAttributeDefinitions](../../doc/api/customer-cus ```json { - "limit": 172, - "cursor": "cursor6" + "limit": 198, + "cursor": "cursor8" } ``` diff --git a/doc/models/list-customer-custom-attribute-definitions-response.md b/doc/models/list-customer-custom-attribute-definitions-response.md index e7030165..290a124d 100644 --- a/doc/models/list-customer-custom-attribute-definitions-response.md +++ b/doc/models/list-customer-custom-attribute-definitions-response.md @@ -51,23 +51,17 @@ If additional results are available, the `cursor` field is also present along wi } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/list-customer-custom-attributes-request.md b/doc/models/list-customer-custom-attributes-request.md index 2e17b3d7..3dcc1165 100644 --- a/doc/models/list-customer-custom-attributes-request.md +++ b/doc/models/list-customer-custom-attributes-request.md @@ -19,7 +19,7 @@ Represents a [ListCustomerCustomAttributes](../../doc/api/customer-custom-attrib ```json { - "limit": 172, + "limit": 224, "cursor": "cursor6", "with_definitions": false } diff --git a/doc/models/list-customer-custom-attributes-response.md b/doc/models/list-customer-custom-attributes-response.md index 59560b71..7168bd8f 100644 --- a/doc/models/list-customer-custom-attributes-response.md +++ b/doc/models/list-customer-custom-attributes-response.md @@ -23,82 +23,82 @@ results are available, the `cursor` field is also present along with `custom_att { "custom_attributes": [ { - "key": "key2", + "key": "key8", "value": { "key1": "val1", "key2": "val2" }, - "version": 228, - "visibility": "VISIBILITY_READ_WRITE_VALUES", + "version": 180, + "visibility": "VISIBILITY_HIDDEN", "definition": { - "key": "key2", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name2", - "description": "description2", + "name": "name0", + "description": "description0", "visibility": "VISIBILITY_HIDDEN" } }, { - "key": "key3", + "key": "key8", "value": { "key1": "val1", "key2": "val2" }, - "version": 229, - "visibility": "VISIBILITY_READ_ONLY", + "version": 180, + "visibility": "VISIBILITY_HIDDEN", "definition": { - "key": "key3", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name3", - "description": "description3", - "visibility": "VISIBILITY_READ_ONLY" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } }, { - "key": "key4", + "key": "key8", "value": { "key1": "val1", "key2": "val2" }, - "version": 230, + "version": 180, "visibility": "VISIBILITY_HIDDEN", "definition": { - "key": "key4", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name4", - "description": "description4", - "visibility": "VISIBILITY_READ_WRITE_VALUES" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } } ], - "cursor": "cursor6", + "cursor": "cursor4", "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/list-customer-groups-request.md b/doc/models/list-customer-groups-request.md index e5261f10..1a7fded2 100644 --- a/doc/models/list-customer-groups-request.md +++ b/doc/models/list-customer-groups-request.md @@ -19,8 +19,8 @@ Defines the query parameters that can be included in a request to the ```json { - "cursor": "cursor6", - "limit": 172 + "cursor": "cursor4", + "limit": 104 } ``` diff --git a/doc/models/list-customer-groups-response.md b/doc/models/list-customer-groups-response.md index 9ad0c53b..aadccc56 100644 --- a/doc/models/list-customer-groups-response.md +++ b/doc/models/list-customer-groups-response.md @@ -38,25 +38,25 @@ Either `errors` or `groups` is present in a given response (never both). ], "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], - "cursor": "cursor6" + "cursor": "cursor0" } ``` diff --git a/doc/models/list-customer-segments-request.md b/doc/models/list-customer-segments-request.md index 66ab7966..ff4af005 100644 --- a/doc/models/list-customer-segments-request.md +++ b/doc/models/list-customer-segments-request.md @@ -18,8 +18,8 @@ Defines the valid parameters for requests to the `ListCustomerSegments` endpoint ```json { - "cursor": "cursor6", - "limit": 172 + "cursor": "cursor4", + "limit": 4 } ``` diff --git a/doc/models/list-customer-segments-response.md b/doc/models/list-customer-segments-response.md index 4413d173..ed7b3b18 100644 --- a/doc/models/list-customer-segments-response.md +++ b/doc/models/list-customer-segments-response.md @@ -49,25 +49,25 @@ Either `errors` or `segments` is present in a given response (never both). ], "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], - "cursor": "cursor6" + "cursor": "cursor2" } ``` diff --git a/doc/models/list-customers-request.md b/doc/models/list-customers-request.md index 2093ee7a..edd96fe2 100644 --- a/doc/models/list-customers-request.md +++ b/doc/models/list-customers-request.md @@ -23,7 +23,7 @@ Defines the query parameters that can be included in a request to the ```json { "cursor": "cursor6", - "limit": 172, + "limit": 96, "sort_field": "DEFAULT", "sort_order": "DESC", "count": false diff --git a/doc/models/list-customers-response.md b/doc/models/list-customers-response.md index 19da63f2..98da890a 100644 --- a/doc/models/list-customers-response.md +++ b/doc/models/list-customers-response.md @@ -55,44 +55,44 @@ Either `errors` or `customers` is present in a given response (never both). "version": 1, "cards": [ { - "id": "id0", + "id": "id8", "card_brand": "DISCOVER", - "last_4": "last_42", - "exp_month": 146, - "exp_year": 186 + "last_4": "last_40", + "exp_month": 152, + "exp_year": 144 }, { - "id": "id1", - "card_brand": "DISCOVER_DINERS", - "last_4": "last_43", - "exp_month": 147, - "exp_year": 187 + "id": "id8", + "card_brand": "DISCOVER", + "last_4": "last_40", + "exp_month": 152, + "exp_year": 144 } ] } ], "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], "cursor": "cursor6", - "count": 60 + "count": 184 } ``` diff --git a/doc/models/list-device-codes-request.md b/doc/models/list-device-codes-request.md index 8256dbfe..4cf20d72 100644 --- a/doc/models/list-device-codes-request.md +++ b/doc/models/list-device-codes-request.md @@ -22,9 +22,9 @@ "location_id": "location_id4", "product_type": "TERMINAL_API", "status": [ - "PAIRED", - "EXPIRED", - "UNKNOWN" + "UNKNOWN", + "UNPAIRED", + "PAIRED" ] } ``` diff --git a/doc/models/list-device-codes-response.md b/doc/models/list-device-codes-response.md index ab859701..7c695b2d 100644 --- a/doc/models/list-device-codes-response.md +++ b/doc/models/list-device-codes-response.md @@ -40,27 +40,27 @@ "product_type": "TERMINAL_API", "status": "UNPAIRED", "status_changed_at": "2020-02-07T19:55:04.000Z", - "device_id": "device_id9" + "device_id": "device_id4" } ], "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], "cursor": "cursor6" diff --git a/doc/models/list-devices-request.md b/doc/models/list-devices-request.md new file mode 100644 index 00000000..52237ee5 --- /dev/null +++ b/doc/models/list-devices-request.md @@ -0,0 +1,27 @@ + +# List Devices Request + +## Structure + +`ListDevicesRequest` + +## Fields + +| Name | Type | Tags | Description | +| --- | --- | --- | --- | +| `cursor` | `string \| null \| undefined` | Optional | A pagination cursor returned by a previous call to this endpoint.
Provide this cursor to retrieve the next set of results for the original query.
See [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination) for more information. | +| `sortOrder` | [`string \| undefined`](../../doc/models/sort-order.md) | Optional | The order (e.g., chronological or alphabetical) in which results from a request are returned. | +| `limit` | `number \| null \| undefined` | Optional | The number of results to return in a single page.
**Constraints**: `>= 1`, `<= 100` | +| `locationId` | `string \| null \| undefined` | Optional | If present, only returns devices at the target location. | + +## Example (as JSON) + +```json +{ + "cursor": "cursor0", + "sort_order": "DESC", + "limit": 164, + "location_id": "location_id0" +} +``` + diff --git a/doc/models/list-devices-response.md b/doc/models/list-devices-response.md new file mode 100644 index 00000000..7fb31819 --- /dev/null +++ b/doc/models/list-devices-response.md @@ -0,0 +1,195 @@ + +# List Devices Response + +## Structure + +`ListDevicesResponse` + +## Fields + +| Name | Type | Tags | Description | +| --- | --- | --- | --- | +| `errors` | [`Error[] \| undefined`](../../doc/models/error.md) | Optional | Information about errors that occurred during the request. | +| `devices` | [`Device[] \| undefined`](../../doc/models/device.md) | Optional | The requested list of `Device` objects. | +| `cursor` | `string \| undefined` | Optional | The pagination cursor to be used in a subsequent request. If empty,
this is the final response.
See [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination) for more information. | + +## Example (as JSON) + +```json +{ + "errors": [ + { + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" + }, + { + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" + }, + { + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" + } + ], + "devices": [ + { + "id": "id4", + "attributes": { + "type": "type4", + "manufacturer": "manufacturer2", + "model": "model2", + "name": "name4", + "manufacturers_id": "manufacturers_id0", + "updated_at": "updated_at0", + "version": "version0" + }, + "components": [ + { + "type": "BATTERY", + "application_details": { + "application_type": "TERMINAL_API", + "version": "version4", + "session_location": "session_location0", + "device_code_id": "device_code_id2" + }, + "card_reader_details": { + "version": "version0" + }, + "battery_details": { + "visible_percent": 108, + "external_power": "AVAILABLE_CHARGING" + }, + "wifi_details": { + "active": false, + "ssid": "ssid8", + "ip_address_v4": "ip_address_v42", + "secure_connection": "secure_connection8", + "signal_strength": { + "value": 222 + } + }, + "ethernet_details": { + "active": false, + "ip_address_v4": "ip_address_v42" + } + }, + { + "type": "BATTERY", + "application_details": { + "application_type": "TERMINAL_API", + "version": "version4", + "session_location": "session_location0", + "device_code_id": "device_code_id2" + }, + "card_reader_details": { + "version": "version0" + }, + "battery_details": { + "visible_percent": 108, + "external_power": "AVAILABLE_CHARGING" + }, + "wifi_details": { + "active": false, + "ssid": "ssid8", + "ip_address_v4": "ip_address_v42", + "secure_connection": "secure_connection8", + "signal_strength": { + "value": 222 + } + }, + "ethernet_details": { + "active": false, + "ip_address_v4": "ip_address_v42" + } + } + ], + "status": { + "category": "AVAILABLE" + } + }, + { + "id": "id4", + "attributes": { + "type": "type4", + "manufacturer": "manufacturer2", + "model": "model2", + "name": "name4", + "manufacturers_id": "manufacturers_id0", + "updated_at": "updated_at0", + "version": "version0" + }, + "components": [ + { + "type": "BATTERY", + "application_details": { + "application_type": "TERMINAL_API", + "version": "version4", + "session_location": "session_location0", + "device_code_id": "device_code_id2" + }, + "card_reader_details": { + "version": "version0" + }, + "battery_details": { + "visible_percent": 108, + "external_power": "AVAILABLE_CHARGING" + }, + "wifi_details": { + "active": false, + "ssid": "ssid8", + "ip_address_v4": "ip_address_v42", + "secure_connection": "secure_connection8", + "signal_strength": { + "value": 222 + } + }, + "ethernet_details": { + "active": false, + "ip_address_v4": "ip_address_v42" + } + }, + { + "type": "BATTERY", + "application_details": { + "application_type": "TERMINAL_API", + "version": "version4", + "session_location": "session_location0", + "device_code_id": "device_code_id2" + }, + "card_reader_details": { + "version": "version0" + }, + "battery_details": { + "visible_percent": 108, + "external_power": "AVAILABLE_CHARGING" + }, + "wifi_details": { + "active": false, + "ssid": "ssid8", + "ip_address_v4": "ip_address_v42", + "secure_connection": "secure_connection8", + "signal_strength": { + "value": 222 + } + }, + "ethernet_details": { + "active": false, + "ip_address_v4": "ip_address_v42" + } + } + ], + "status": { + "category": "AVAILABLE" + } + } + ], + "cursor": "cursor6" +} +``` + diff --git a/doc/models/list-dispute-evidence-response.md b/doc/models/list-dispute-evidence-response.md index db84fc53..79f32c89 100644 --- a/doc/models/list-dispute-evidence-response.md +++ b/doc/models/list-dispute-evidence-response.md @@ -21,44 +21,22 @@ Defines the fields in a `ListDisputeEvidence` response. { "evidence": [ { - "evidence_id": "evidence_id6", - "id": "id6", - "dispute_id": "dispute_id8", + "evidence_id": "evidence_id0", + "id": "id2", + "dispute_id": "dispute_id4", "evidence_file": { - "filename": "filename4", - "filetype": "filetype4" + "filename": "filename8", + "filetype": "filetype8" }, - "evidence_text": "evidence_text0" - }, - { - "evidence_id": "evidence_id5", - "id": "id7", - "dispute_id": "dispute_id9", - "evidence_file": { - "filename": "filename5", - "filetype": "filetype5" - }, - "evidence_text": "evidence_text1" + "evidence_text": "evidence_text6" } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], "cursor": "cursor6" diff --git a/doc/models/list-disputes-request.md b/doc/models/list-disputes-request.md index 44b022a5..e0918112 100644 --- a/doc/models/list-disputes-request.md +++ b/doc/models/list-disputes-request.md @@ -19,12 +19,13 @@ Defines the request parameters for the `ListDisputes` endpoint. ```json { - "cursor": "cursor6", + "cursor": "cursor2", "states": [ - "PROCESSING", - "WON" + "INQUIRY_EVIDENCE_REQUIRED", + "INQUIRY_PROCESSING", + "INQUIRY_CLOSED" ], - "location_id": "location_id4" + "location_id": "location_id8" } ``` diff --git a/doc/models/list-disputes-response.md b/doc/models/list-disputes-response.md index 3f93f872..abbcc007 100644 --- a/doc/models/list-disputes-response.md +++ b/doc/models/list-disputes-response.md @@ -40,7 +40,7 @@ Defines fields in a `ListDisputes` response. "state": "ACCEPTED", "updated_at": "2022-07-07T19:14:42.650Z", "version": 2, - "dispute_id": "dispute_id5" + "dispute_id": "dispute_id4" }, { "amount_money": { @@ -61,27 +61,15 @@ Defines fields in a `ListDisputes` response. "state": "EVIDENCE_REQUIRED", "updated_at": "2022-04-29T18:45:22.265Z", "version": 1, - "dispute_id": "dispute_id6" + "dispute_id": "dispute_id4" } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/list-employee-wages-request.md b/doc/models/list-employee-wages-request.md index 4e509e01..ca7642f3 100644 --- a/doc/models/list-employee-wages-request.md +++ b/doc/models/list-employee-wages-request.md @@ -19,9 +19,9 @@ A request for a set of `EmployeeWage` objects. ```json { - "employee_id": "employee_id0", - "limit": 172, - "cursor": "cursor6" + "employee_id": "employee_id2", + "limit": 58, + "cursor": "cursor4" } ``` diff --git a/doc/models/list-employee-wages-response.md b/doc/models/list-employee-wages-response.md index 0085e651..c4a2103e 100644 --- a/doc/models/list-employee-wages-response.md +++ b/doc/models/list-employee-wages-response.md @@ -60,23 +60,11 @@ a set of `EmployeeWage` objects. } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/list-employees-request.md b/doc/models/list-employees-request.md index 98050163..6439901e 100644 --- a/doc/models/list-employees-request.md +++ b/doc/models/list-employees-request.md @@ -10,7 +10,7 @@ | Name | Type | Tags | Description | | --- | --- | --- | --- | | `locationId` | `string \| null \| undefined` | Optional | - | -| `status` | [`string \| undefined`](../../doc/models/employee-status.md) | Optional | The status of the Employee being retrieved. | +| `status` | [`string \| undefined`](../../doc/models/employee-status.md) | Optional | The status of the Employee being retrieved.

DEPRECATED at version 2020-08-26. Replaced by [TeamMemberStatus](entity:TeamMemberStatus). | | `limit` | `number \| null \| undefined` | Optional | The number of employees to be returned on each page. | | `cursor` | `string \| null \| undefined` | Optional | The token required to retrieve the specified page of results. | @@ -20,7 +20,7 @@ { "location_id": "location_id4", "status": "ACTIVE", - "limit": 172, + "limit": 18, "cursor": "cursor6" } ``` diff --git a/doc/models/list-employees-response.md b/doc/models/list-employees-response.md index 26502c98..1d948002 100644 --- a/doc/models/list-employees-response.md +++ b/doc/models/list-employees-response.md @@ -19,32 +19,32 @@ { "employees": [ { - "id": "id6", - "first_name": "first_name6", - "last_name": "last_name4", - "email": "email0", - "phone_number": "phone_number4" + "id": "id4", + "first_name": "first_name4", + "last_name": "last_name2", + "email": "email2", + "phone_number": "phone_number8" } ], - "cursor": "cursor6", + "cursor": "cursor8", "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/list-gift-card-activities-request.md b/doc/models/list-gift-card-activities-request.md index db47eec5..f9d24ab7 100644 --- a/doc/models/list-gift-card-activities-request.md +++ b/doc/models/list-gift-card-activities-request.md @@ -25,11 +25,11 @@ subset of activites. ```json { - "gift_card_id": "gift_card_id8", - "type": "type0", - "location_id": "location_id4", - "begin_time": "begin_time2", - "end_time": "end_time2" + "gift_card_id": "gift_card_id6", + "type": "type8", + "location_id": "location_id2", + "begin_time": "begin_time6", + "end_time": "end_time0" } ``` diff --git a/doc/models/list-gift-card-activities-response.md b/doc/models/list-gift-card-activities-response.md index ff3c6c84..bd253f07 100644 --- a/doc/models/list-gift-card-activities-response.md +++ b/doc/models/list-gift-card-activities-response.md @@ -63,26 +63,14 @@ the response contains a set of `Error` objects. } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], - "cursor": "cursor6" + "cursor": "cursor2" } ``` diff --git a/doc/models/list-gift-cards-request.md b/doc/models/list-gift-cards-request.md index 3ff743e4..9537e409 100644 --- a/doc/models/list-gift-cards-request.md +++ b/doc/models/list-gift-cards-request.md @@ -23,9 +23,9 @@ gift cards. ```json { "type": "type0", - "state": "state4", - "limit": 172, - "cursor": "cursor6", + "state": "state6", + "limit": 162, + "cursor": "cursor4", "customer_id": "customer_id8" } ``` diff --git a/doc/models/list-gift-cards-response.md b/doc/models/list-gift-cards-response.md index 06ea8f08..737dca03 100644 --- a/doc/models/list-gift-cards-response.md +++ b/doc/models/list-gift-cards-response.md @@ -49,22 +49,22 @@ the response contains a set of `Error` objects. ], "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/list-invoices-request.md b/doc/models/list-invoices-request.md index 627f8aa7..d1578eeb 100644 --- a/doc/models/list-invoices-request.md +++ b/doc/models/list-invoices-request.md @@ -19,9 +19,9 @@ Describes a `ListInvoice` request. ```json { - "location_id": "location_id4", - "cursor": "cursor6", - "limit": 172 + "location_id": "location_id2", + "cursor": "cursor8", + "limit": 152 } ``` diff --git a/doc/models/list-invoices-response.md b/doc/models/list-invoices-response.md index dee3f5eb..ecd8ae34 100644 --- a/doc/models/list-invoices-response.md +++ b/doc/models/list-invoices-response.md @@ -80,11 +80,11 @@ Describes a `ListInvoice` response. "given_name": "Amelia", "phone_number": "1-212-555-4240", "address": { - "address_line_1": "address_line_18", - "address_line_2": "address_line_28", - "address_line_3": "address_line_34", - "locality": "locality8", - "sublocality": "sublocality8" + "address_line_1": "address_line_16", + "address_line_2": "address_line_26", + "address_line_3": "address_line_32", + "locality": "locality6", + "sublocality": "sublocality6" } }, "sale_or_service_date": "2030-01-24", @@ -156,11 +156,11 @@ Describes a `ListInvoice` response. "given_name": "Amelia", "phone_number": "1-212-555-4240", "address": { - "address_line_1": "address_line_19", - "address_line_2": "address_line_29", - "address_line_3": "address_line_35", - "locality": "locality9", - "sublocality": "sublocality9" + "address_line_1": "address_line_16", + "address_line_2": "address_line_26", + "address_line_3": "address_line_32", + "locality": "locality6", + "sublocality": "sublocality6" } }, "public_url": "https://squareup.com/pay-invoice/h9sfsfTGTSnYEhISUDBhEQ", @@ -173,23 +173,11 @@ Describes a `ListInvoice` response. } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/list-location-custom-attribute-definitions-request.md b/doc/models/list-location-custom-attribute-definitions-request.md index 60a10f36..cb6e2f9f 100644 --- a/doc/models/list-location-custom-attribute-definitions-request.md +++ b/doc/models/list-location-custom-attribute-definitions-request.md @@ -20,8 +20,8 @@ Represents a [ListLocationCustomAttributeDefinitions](../../doc/api/location-cus ```json { "visibility_filter": "ALL", - "limit": 172, - "cursor": "cursor6" + "limit": 242, + "cursor": "cursor8" } ``` diff --git a/doc/models/list-location-custom-attribute-definitions-response.md b/doc/models/list-location-custom-attribute-definitions-response.md index d5b16ef4..bb87aa86 100644 --- a/doc/models/list-location-custom-attribute-definitions-response.md +++ b/doc/models/list-location-custom-attribute-definitions-response.md @@ -51,23 +51,11 @@ If additional results are available, the `cursor` field is also present along wi } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/list-location-custom-attributes-response.md b/doc/models/list-location-custom-attributes-response.md index d0550295..37858fc8 100644 --- a/doc/models/list-location-custom-attributes-response.md +++ b/doc/models/list-location-custom-attributes-response.md @@ -23,82 +23,57 @@ results are available, the `cursor` field is also present along with `custom_att { "custom_attributes": [ { - "key": "key2", + "key": "key8", "value": { "key1": "val1", "key2": "val2" }, - "version": 228, - "visibility": "VISIBILITY_READ_WRITE_VALUES", + "version": 180, + "visibility": "VISIBILITY_HIDDEN", "definition": { - "key": "key2", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name2", - "description": "description2", + "name": "name0", + "description": "description0", "visibility": "VISIBILITY_HIDDEN" } }, { - "key": "key3", + "key": "key8", "value": { "key1": "val1", "key2": "val2" }, - "version": 229, - "visibility": "VISIBILITY_READ_ONLY", - "definition": { - "key": "key3", - "schema": { - "key1": "val1", - "key2": "val2" - }, - "name": "name3", - "description": "description3", - "visibility": "VISIBILITY_READ_ONLY" - } - }, - { - "key": "key4", - "value": { - "key1": "val1", - "key2": "val2" - }, - "version": 230, + "version": 180, "visibility": "VISIBILITY_HIDDEN", "definition": { - "key": "key4", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name4", - "description": "description4", - "visibility": "VISIBILITY_READ_WRITE_VALUES" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } } ], - "cursor": "cursor6", + "cursor": "cursor0", "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/list-locations-response.md b/doc/models/list-locations-response.md index 0eb4e80f..1605416e 100644 --- a/doc/models/list-locations-response.md +++ b/doc/models/list-locations-response.md @@ -29,9 +29,9 @@ Either `errors` or `locations` is present in a given response (never both). "country": "US", "locality": "San Francisco", "postal_code": "94114", - "address_line_2": "address_line_20", - "address_line_3": "address_line_36", - "sublocality": "sublocality0" + "address_line_2": "address_line_26", + "address_line_3": "address_line_32", + "sublocality": "sublocality6" }, "business_name": "Jet Fuel Coffee", "capabilities": [ @@ -54,9 +54,9 @@ Either `errors` or `locations` is present in a given response (never both). "administrative_district_level_1": "GA", "locality": "Atlanta", "postal_code": "30309", - "address_line_2": "address_line_21", - "address_line_3": "address_line_37", - "sublocality": "sublocality1" + "address_line_2": "address_line_26", + "address_line_3": "address_line_32", + "sublocality": "sublocality6" }, "business_name": "Jet Fuel Coffee", "capabilities": [ @@ -81,23 +81,17 @@ Either `errors` or `locations` is present in a given response (never both). } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/list-loyalty-programs-response.md b/doc/models/list-loyalty-programs-response.md index 2a27f2e2..f2d18fc2 100644 --- a/doc/models/list-loyalty-programs-response.md +++ b/doc/models/list-loyalty-programs-response.md @@ -54,15 +54,15 @@ A response that contains all loyalty programs. "percentage_discount": "10", "scope": "ORDER", "catalog_object_ids": [ - "catalog_object_ids0" + "catalog_object_ids6" ], "fixed_discount_money": { - "amount": 100, - "currency": "LTL" + "amount": 36, + "currency": "TTD" }, "max_discount_money": { - "amount": 144, - "currency": "LTL" + "amount": 84, + "currency": "STD" } }, "id": "e1b39225-9da5-43d1-a5db-782cdd8ad94f", @@ -81,28 +81,28 @@ A response that contains all loyalty programs. }, "updated_at": "2020-05-01T02:00:02Z", "expiration_policy": { - "expiration_duration": "expiration_duration1" + "expiration_duration": "expiration_duration0" } } ], "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/list-loyalty-promotions-request.md b/doc/models/list-loyalty-promotions-request.md index 85cc41a5..bdaa37bf 100644 --- a/doc/models/list-loyalty-promotions-request.md +++ b/doc/models/list-loyalty-promotions-request.md @@ -19,9 +19,9 @@ Represents a [ListLoyaltyPromotions](../../doc/api/loyalty.md#list-loyalty-promo ```json { - "status": "ACTIVE", - "cursor": "cursor6", - "limit": 172 + "status": "CANCELED", + "cursor": "cursor2", + "limit": 58 } ``` diff --git a/doc/models/list-loyalty-promotions-response.md b/doc/models/list-loyalty-promotions-response.md index cac0a708..02a2a6cd 100644 --- a/doc/models/list-loyalty-promotions-response.md +++ b/doc/models/list-loyalty-promotions-response.md @@ -28,7 +28,7 @@ If additional results are available, the `cursor` field is also present along wi "time_periods": [ "BEGIN:VEVENT\nDTSTART:20220816T160000\nDURATION:PT2H\nRRULE:FREQ=WEEKLY;BYDAY=TU\nEND:VEVENT" ], - "end_date": "end_date4" + "end_date": "end_date8" }, "created_at": "2022-08-16T08:38:54Z", "id": "loypromo_f0f9b849-725e-378d-b810-511237e07b67", @@ -39,7 +39,7 @@ If additional results are available, the `cursor` field is also present along wi }, "type": "POINTS_MULTIPLIER", "points_addition_data": { - "points_addition": 104 + "points_addition": 218 } }, "loyalty_program_id": "d619f755-2d17-41f3-990d-c04ecedd64dd", @@ -54,7 +54,7 @@ If additional results are available, the `cursor` field is also present along wi "times": 1 }, "updated_at": "2022-08-16T08:38:54Z", - "canceled_at": "canceled_at2" + "canceled_at": "canceled_at0" }, { "available_time": { @@ -77,7 +77,7 @@ If additional results are available, the `cursor` field is also present along wi }, "type": "POINTS_MULTIPLIER", "points_addition_data": { - "points_addition": 105 + "points_addition": 218 } }, "loyalty_program_id": "d619f755-2d17-41f3-990d-c04ecedd64dd", @@ -95,30 +95,30 @@ If additional results are available, the `cursor` field is also present along wi "times": 5 }, "updated_at": "2022-06-27T15:37:38Z", - "canceled_at": "canceled_at3" + "canceled_at": "canceled_at0" } ], "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], - "cursor": "cursor6" + "cursor": "cursor8" } ``` diff --git a/doc/models/list-merchant-custom-attribute-definitions-request.md b/doc/models/list-merchant-custom-attribute-definitions-request.md index cfc24364..5e694fcd 100644 --- a/doc/models/list-merchant-custom-attribute-definitions-request.md +++ b/doc/models/list-merchant-custom-attribute-definitions-request.md @@ -20,7 +20,7 @@ Represents a [ListMerchantCustomAttributeDefinitions](../../doc/api/merchant-cus ```json { "visibility_filter": "ALL", - "limit": 172, + "limit": 48, "cursor": "cursor6" } ``` diff --git a/doc/models/list-merchant-custom-attribute-definitions-response.md b/doc/models/list-merchant-custom-attribute-definitions-response.md index f5063b72..56d11a47 100644 --- a/doc/models/list-merchant-custom-attribute-definitions-response.md +++ b/doc/models/list-merchant-custom-attribute-definitions-response.md @@ -51,23 +51,17 @@ If additional results are available, the `cursor` field is also present along wi } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/list-merchant-custom-attributes-request.md b/doc/models/list-merchant-custom-attributes-request.md index 7f3a0a18..f7f0580a 100644 --- a/doc/models/list-merchant-custom-attributes-request.md +++ b/doc/models/list-merchant-custom-attributes-request.md @@ -20,8 +20,8 @@ Represents a [ListMerchantCustomAttributes](../../doc/api/merchant-custom-attrib ```json { - "visibility_filter": "ALL", - "limit": 172, + "visibility_filter": "READ_WRITE", + "limit": 132, "cursor": "cursor6", "with_definitions": false } diff --git a/doc/models/list-merchant-custom-attributes-response.md b/doc/models/list-merchant-custom-attributes-response.md index 4787dc5c..164be93e 100644 --- a/doc/models/list-merchant-custom-attributes-response.md +++ b/doc/models/list-merchant-custom-attributes-response.md @@ -23,82 +23,32 @@ results are available, the `cursor` field is also present along with `custom_att { "custom_attributes": [ { - "key": "key2", + "key": "key8", "value": { "key1": "val1", "key2": "val2" }, - "version": 228, - "visibility": "VISIBILITY_READ_WRITE_VALUES", - "definition": { - "key": "key2", - "schema": { - "key1": "val1", - "key2": "val2" - }, - "name": "name2", - "description": "description2", - "visibility": "VISIBILITY_HIDDEN" - } - }, - { - "key": "key3", - "value": { - "key1": "val1", - "key2": "val2" - }, - "version": 229, - "visibility": "VISIBILITY_READ_ONLY", - "definition": { - "key": "key3", - "schema": { - "key1": "val1", - "key2": "val2" - }, - "name": "name3", - "description": "description3", - "visibility": "VISIBILITY_READ_ONLY" - } - }, - { - "key": "key4", - "value": { - "key1": "val1", - "key2": "val2" - }, - "version": 230, + "version": 180, "visibility": "VISIBILITY_HIDDEN", "definition": { - "key": "key4", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name4", - "description": "description4", - "visibility": "VISIBILITY_READ_WRITE_VALUES" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } } ], "cursor": "cursor6", "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/list-merchants-request.md b/doc/models/list-merchants-request.md index e1715340..ef2ea6df 100644 --- a/doc/models/list-merchants-request.md +++ b/doc/models/list-merchants-request.md @@ -17,7 +17,7 @@ Request object for the [ListMerchant](../../doc/api/merchants.md#list-merchants) ```json { - "cursor": 210 + "cursor": 106 } ``` diff --git a/doc/models/list-merchants-response.md b/doc/models/list-merchants-response.md index 7d607bac..c02c09bf 100644 --- a/doc/models/list-merchants-response.md +++ b/doc/models/list-merchants-response.md @@ -32,26 +32,14 @@ The response object returned by the [ListMerchant](../../doc/api/merchants.md#li } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], - "cursor": 210 + "cursor": 124 } ``` diff --git a/doc/models/list-order-custom-attribute-definitions-request.md b/doc/models/list-order-custom-attribute-definitions-request.md index d16ee936..c4bdfa1b 100644 --- a/doc/models/list-order-custom-attribute-definitions-request.md +++ b/doc/models/list-order-custom-attribute-definitions-request.md @@ -19,9 +19,9 @@ Represents a list request for order custom attribute definitions. ```json { - "visibility_filter": "ALL", - "cursor": "cursor6", - "limit": 172 + "visibility_filter": "READ_WRITE", + "cursor": "cursor2", + "limit": 6 } ``` diff --git a/doc/models/list-order-custom-attribute-definitions-response.md b/doc/models/list-order-custom-attribute-definitions-response.md index f1fdf230..3c9cf7e6 100644 --- a/doc/models/list-order-custom-attribute-definitions-response.md +++ b/doc/models/list-order-custom-attribute-definitions-response.md @@ -60,25 +60,19 @@ Represents a response from listing order custom attribute definitions. "visibility": "VISIBILITY_READ_WRITE_VALUES" } ], - "cursor": "cursor6", + "cursor": "cursor4", "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/list-order-custom-attributes-request.md b/doc/models/list-order-custom-attributes-request.md index 602b06cf..307d8ac4 100644 --- a/doc/models/list-order-custom-attributes-request.md +++ b/doc/models/list-order-custom-attributes-request.md @@ -20,9 +20,9 @@ Represents a list request for order custom attributes. ```json { - "visibility_filter": "ALL", - "cursor": "cursor6", - "limit": 172, + "visibility_filter": "READ", + "cursor": "cursor2", + "limit": 158, "with_definitions": false } ``` diff --git a/doc/models/list-order-custom-attributes-response.md b/doc/models/list-order-custom-attributes-response.md index 59e312b2..aa16a2b3 100644 --- a/doc/models/list-order-custom-attributes-response.md +++ b/doc/models/list-order-custom-attributes-response.md @@ -21,82 +21,57 @@ Represents a response from listing order custom attributes. { "custom_attributes": [ { - "key": "key2", + "key": "key8", "value": { "key1": "val1", "key2": "val2" }, - "version": 228, - "visibility": "VISIBILITY_READ_WRITE_VALUES", + "version": 180, + "visibility": "VISIBILITY_HIDDEN", "definition": { - "key": "key2", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name2", - "description": "description2", + "name": "name0", + "description": "description0", "visibility": "VISIBILITY_HIDDEN" } }, { - "key": "key3", + "key": "key8", "value": { "key1": "val1", "key2": "val2" }, - "version": 229, - "visibility": "VISIBILITY_READ_ONLY", - "definition": { - "key": "key3", - "schema": { - "key1": "val1", - "key2": "val2" - }, - "name": "name3", - "description": "description3", - "visibility": "VISIBILITY_READ_ONLY" - } - }, - { - "key": "key4", - "value": { - "key1": "val1", - "key2": "val2" - }, - "version": 230, + "version": 180, "visibility": "VISIBILITY_HIDDEN", "definition": { - "key": "key4", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name4", - "description": "description4", - "visibility": "VISIBILITY_READ_WRITE_VALUES" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } } ], - "cursor": "cursor6", + "cursor": "cursor4", "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/list-payment-links-request.md b/doc/models/list-payment-links-request.md index 1ac89fd2..edb6e017 100644 --- a/doc/models/list-payment-links-request.md +++ b/doc/models/list-payment-links-request.md @@ -17,7 +17,7 @@ ```json { "cursor": "cursor6", - "limit": 172 + "limit": 182 } ``` diff --git a/doc/models/list-payment-links-response.md b/doc/models/list-payment-links-response.md index b1e6bfc8..03cc9a06 100644 --- a/doc/models/list-payment-links-response.md +++ b/doc/models/list-payment-links-response.md @@ -22,18 +22,18 @@ { "checkout_options": { "ask_for_shipping_address": true, - "allow_tipping": true, + "allow_tipping": false, "custom_fields": [ { - "title": "title2" + "title": "title8" }, { - "title": "title3" + "title": "title8" } ], - "subscription_plan_id": "subscription_plan_id1", - "redirect_url": "redirect_url5", - "merchant_support_email": "merchant_support_email1" + "subscription_plan_id": "subscription_plan_id8", + "redirect_url": "redirect_url2", + "merchant_support_email": "merchant_support_email8" }, "created_at": "2022-04-26T00:15:15Z", "id": "TN4BWEDJ9AI5MBIV", @@ -42,16 +42,16 @@ "updated_at": "2022-04-26T00:18:24Z", "url": "https://square.link/u/EXAMPLE", "version": 2, - "description": "description3", + "description": "description2", "pre_populated_data": { - "buyer_email": "buyer_email5", - "buyer_phone_number": "buyer_phone_number3", + "buyer_email": "buyer_email8", + "buyer_phone_number": "buyer_phone_number0", "buyer_address": { - "address_line_1": "address_line_15", - "address_line_2": "address_line_25", - "address_line_3": "address_line_31", - "locality": "locality5", - "sublocality": "sublocality5" + "address_line_1": "address_line_12", + "address_line_2": "address_line_22", + "address_line_3": "address_line_38", + "locality": "locality2", + "sublocality": "sublocality2" } } }, @@ -66,50 +66,35 @@ "allow_tipping": false, "custom_fields": [ { - "title": "title3" - }, - { - "title": "title4" + "title": "title8" }, { - "title": "title5" + "title": "title8" } ], - "subscription_plan_id": "subscription_plan_id2", - "redirect_url": "redirect_url6", - "merchant_support_email": "merchant_support_email2" + "subscription_plan_id": "subscription_plan_id8", + "redirect_url": "redirect_url2", + "merchant_support_email": "merchant_support_email8" }, "pre_populated_data": { - "buyer_email": "buyer_email6", - "buyer_phone_number": "buyer_phone_number4", + "buyer_email": "buyer_email8", + "buyer_phone_number": "buyer_phone_number0", "buyer_address": { - "address_line_1": "address_line_16", - "address_line_2": "address_line_26", - "address_line_3": "address_line_32", - "locality": "locality6", - "sublocality": "sublocality6" + "address_line_1": "address_line_12", + "address_line_2": "address_line_22", + "address_line_3": "address_line_38", + "locality": "locality2", + "sublocality": "sublocality2" } } } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/list-payment-refunds-request.md b/doc/models/list-payment-refunds-request.md index 6a527cf0..975ffce1 100644 --- a/doc/models/list-payment-refunds-request.md +++ b/doc/models/list-payment-refunds-request.md @@ -27,10 +27,10 @@ The maximum results per page is 100. ```json { - "begin_time": "begin_time2", + "begin_time": "begin_time8", "end_time": "end_time2", "sort_order": "sort_order0", - "cursor": "cursor6", + "cursor": "cursor4", "location_id": "location_id4" } ``` diff --git a/doc/models/list-payment-refunds-response.md b/doc/models/list-payment-refunds-response.md index 9ba410a6..ce2cf78b 100644 --- a/doc/models/list-payment-refunds-response.md +++ b/doc/models/list-payment-refunds-response.md @@ -47,39 +47,33 @@ Either `errors` or `refunds` is present in a given response (never both). "status": "COMPLETED", "updated_at": "2021-10-13T20:00:03.497Z", "unlinked": false, - "destination_type": "destination_type8", + "destination_type": "destination_type2", "destination_details": { "card_details": { "card": { - "id": "id2", - "card_brand": "JCB", - "last_4": "last_44", - "exp_month": 142, - "exp_year": 154 + "id": "id6", + "card_brand": "OTHER_BRAND", + "last_4": "last_48", + "exp_month": 228, + "exp_year": 68 }, - "entry_method": "entry_method4" + "entry_method": "entry_method8" } } } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/list-payments-request.md b/doc/models/list-payments-request.md index 7c38cde8..4c9fc1be 100644 --- a/doc/models/list-payments-request.md +++ b/doc/models/list-payments-request.md @@ -28,11 +28,11 @@ The maximum results per page is 100. ```json { - "begin_time": "begin_time2", - "end_time": "end_time2", - "sort_order": "sort_order0", - "cursor": "cursor6", - "location_id": "location_id4" + "begin_time": "begin_time0", + "end_time": "end_time4", + "sort_order": "sort_order2", + "cursor": "cursor4", + "location_id": "location_id6" } ``` diff --git a/doc/models/list-payments-response.md b/doc/models/list-payments-response.md index e8567c14..ad1c16b7 100644 --- a/doc/models/list-payments-response.md +++ b/doc/models/list-payments-response.md @@ -86,32 +86,20 @@ Defines the response returned by [ListPayments](../../doc/api/payments.md#list-p "updated_at": "2021-10-13T19:34:37.261Z", "version_token": "vguW2km0KpVCdAXZcNTZ438qg5LlVPTP4HO5OpiHNfa6o", "tip_money": { - "amount": 58, - "currency": "SRD" + "amount": 190, + "currency": "ZMK" } } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], - "cursor": "cursor6" + "cursor": "cursor0" } ``` diff --git a/doc/models/list-payout-entries-request.md b/doc/models/list-payout-entries-request.md index c183bcae..87441789 100644 --- a/doc/models/list-payout-entries-request.md +++ b/doc/models/list-payout-entries-request.md @@ -18,8 +18,8 @@ ```json { "sort_order": "DESC", - "cursor": "cursor6", - "limit": 172 + "cursor": "cursor2", + "limit": 194 } ``` diff --git a/doc/models/list-payout-entries-response.md b/doc/models/list-payout-entries-response.md index 393241c4..ad211bf6 100644 --- a/doc/models/list-payout-entries-response.md +++ b/doc/models/list-payout-entries-response.md @@ -26,18 +26,18 @@ The response to retrieve payout records entries. "fee_amount_money": { "amount": -2, "currency_code": "USD", - "currency": "AZN" + "currency": "NIO" }, "gross_amount_money": { "amount": -50, "currency_code": "USD", - "currency": "NIO" + "currency": "BWP" }, "id": "poe_ZQWcw41d0SGJS6IWd4cSi8mKHk", "net_amount_money": { "amount": -48, "currency_code": "USD", - "currency": "XPF" + "currency": "LTL" }, "payout_id": "po_4d28e6c4-7dd5-4de4-8ec9-a059277646a6", "type": "REFUND", @@ -51,18 +51,18 @@ The response to retrieve payout records entries. "fee_amount_money": { "amount": 19, "currency_code": "USD", - "currency": "BAM" + "currency": "NIO" }, "gross_amount_money": { "amount": 100, "currency_code": "USD", - "currency": "NOK" + "currency": "BWP" }, "id": "poe_EibbY9Ob1d0SGJS6IWd4cSiSi6wkaPk", "net_amount_money": { "amount": 81, "currency_code": "USD", - "currency": "XPT" + "currency": "LTL" }, "payout_id": "po_4d28e6c4-7dd5-4de4-8ec9-a059277646a6", "type": "CHARGE", @@ -72,23 +72,11 @@ The response to retrieve payout records entries. } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/list-payouts-request.md b/doc/models/list-payouts-request.md index 3f5e4bb9..24a4e1c2 100644 --- a/doc/models/list-payouts-request.md +++ b/doc/models/list-payouts-request.md @@ -24,7 +24,7 @@ A request to retrieve payout records. ```json { "location_id": "location_id4", - "status": "PAID", + "status": "SENT", "begin_time": "begin_time2", "end_time": "end_time2", "sort_order": "DESC" diff --git a/doc/models/list-payouts-response.md b/doc/models/list-payouts-response.md index 8d13f0d9..808e7c74 100644 --- a/doc/models/list-payouts-response.md +++ b/doc/models/list-payouts-response.md @@ -25,7 +25,7 @@ The response to retrieve payout records entries. "amount_money": { "amount": 6259, "currency_code": "USD", - "currency": "HUF" + "currency": "TZS" }, "arrival_date": "2022-03-29", "created_at": "2022-03-29T16:12:31Z", @@ -55,7 +55,7 @@ The response to retrieve payout records entries. "amount_money": { "amount": -103, "currency_code": "USD", - "currency": "IDR" + "currency": "TZS" }, "arrival_date": "2022-03-24", "created_at": "2022-03-24T03:07:09Z", @@ -74,22 +74,22 @@ The response to retrieve payout records entries. ], "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/list-refunds-request.md b/doc/models/list-refunds-request.md index f7f58b14..06d726db 100644 --- a/doc/models/list-refunds-request.md +++ b/doc/models/list-refunds-request.md @@ -23,10 +23,10 @@ Deprecated - recommend using [SearchOrders](api-endpoint:Orders-SearchOrders) ```json { - "begin_time": "begin_time2", - "end_time": "end_time2", + "begin_time": "begin_time6", + "end_time": "end_time0", "sort_order": "DESC", - "cursor": "cursor6" + "cursor": "cursor8" } ``` diff --git a/doc/models/list-refunds-response.md b/doc/models/list-refunds-response.md index af381fb2..618a1023 100644 --- a/doc/models/list-refunds-response.md +++ b/doc/models/list-refunds-response.md @@ -32,7 +32,7 @@ One of `errors` or `refunds` is present in a given response (never both). }, "description": "Application fees", "location_id": "057P5VYJ4A5X1", - "receivable_id": "receivable_id3" + "receivable_id": "receivable_id6" } ], "amount_money": { @@ -48,31 +48,19 @@ One of `errors` or `refunds` is present in a given response (never both). "transaction_id": "KnL67ZIwXCPtzOrqj0HrkxMF", "processing_fee_money": { "amount": 112, - "currency": "LTL" + "currency": "BBD" } } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], - "cursor": "cursor6" + "cursor": "cursor8" } ``` diff --git a/doc/models/list-sites-response.md b/doc/models/list-sites-response.md index cae42259..afb3baeb 100644 --- a/doc/models/list-sites-response.md +++ b/doc/models/list-sites-response.md @@ -37,23 +37,11 @@ Represents a `ListSites` response. The response can include either `sites` or `e } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/list-subscription-events-request.md b/doc/models/list-subscription-events-request.md index 7ab68305..34e7f4d8 100644 --- a/doc/models/list-subscription-events-request.md +++ b/doc/models/list-subscription-events-request.md @@ -20,8 +20,8 @@ endpoint. ```json { - "cursor": "cursor6", - "limit": 172 + "cursor": "cursor8", + "limit": 182 } ``` diff --git a/doc/models/list-subscription-events-response.md b/doc/models/list-subscription-events-response.md index 8143b4b4..19451d33 100644 --- a/doc/models/list-subscription-events-response.md +++ b/doc/models/list-subscription-events-response.md @@ -27,27 +27,15 @@ Defines output parameters in a response from the "plan_variation_id": "6JHXF3B2CW3YKHDV4XEM674H", "subscription_event_type": "START_SUBSCRIPTION", "info": { - "detail": "detail2", - "code": "CUSTOMER_NO_NAME" + "detail": "detail6", + "code": "CUSTOMER_DELETED" }, "phases": [ - { - "uid": "uid1", - "ordinal": 17, - "order_template_id": "order_template_id3", - "plan_phase_uid": "plan_phase_uid7" - }, { "uid": "uid0", - "ordinal": 16, + "ordinal": 78, "order_template_id": "order_template_id2", "plan_phase_uid": "plan_phase_uid6" - }, - { - "uid": "uid9", - "ordinal": 15, - "order_template_id": "order_template_id1", - "plan_phase_uid": "plan_phase_uid5" } ] }, @@ -62,16 +50,10 @@ Defines output parameters in a response from the "subscription_event_type": "DEACTIVATE_SUBSCRIPTION", "phases": [ { - "uid": "uid2", - "ordinal": 18, - "order_template_id": "order_template_id4", - "plan_phase_uid": "plan_phase_uid8" - }, - { - "uid": "uid1", - "ordinal": 17, - "order_template_id": "order_template_id3", - "plan_phase_uid": "plan_phase_uid7" + "uid": "uid0", + "ordinal": 78, + "order_template_id": "order_template_id2", + "plan_phase_uid": "plan_phase_uid6" } ] }, @@ -81,15 +63,15 @@ Defines output parameters in a response from the "plan_variation_id": "6JHXF3B2CW3YKHDV4XEM674H", "subscription_event_type": "RESUME_SUBSCRIPTION", "info": { - "detail": "detail4", - "code": "LOCATION_NOT_ACTIVE" + "detail": "detail6", + "code": "CUSTOMER_DELETED" }, "phases": [ { - "uid": "uid3", - "ordinal": 19, - "order_template_id": "order_template_id5", - "plan_phase_uid": "plan_phase_uid9" + "uid": "uid0", + "ordinal": 78, + "order_template_id": "order_template_id2", + "plan_phase_uid": "plan_phase_uid6" } ] }, @@ -99,27 +81,15 @@ Defines output parameters in a response from the "plan_variation_id": "6JHXF3B2CW3YKHDV4XEM674H", "subscription_event_type": "PAUSE_SUBSCRIPTION", "info": { - "detail": "detail5", - "code": "LOCATION_CANNOT_ACCEPT_PAYMENT" + "detail": "detail6", + "code": "CUSTOMER_DELETED" }, "phases": [ { - "uid": "uid4", - "ordinal": 20, - "order_template_id": "order_template_id6", - "plan_phase_uid": "plan_phase_uid0" - }, - { - "uid": "uid3", - "ordinal": 19, - "order_template_id": "order_template_id5", - "plan_phase_uid": "plan_phase_uid9" - }, - { - "uid": "uid2", - "ordinal": 18, - "order_template_id": "order_template_id4", - "plan_phase_uid": "plan_phase_uid8" + "uid": "uid0", + "ordinal": 78, + "order_template_id": "order_template_id2", + "plan_phase_uid": "plan_phase_uid6" } ] }, @@ -134,16 +104,10 @@ Defines output parameters in a response from the }, "phases": [ { - "uid": "uid5", - "ordinal": 21, - "order_template_id": "order_template_id7", - "plan_phase_uid": "plan_phase_uid1" - }, - { - "uid": "uid4", - "ordinal": 20, - "order_template_id": "order_template_id6", - "plan_phase_uid": "plan_phase_uid0" + "uid": "uid0", + "ordinal": 78, + "order_template_id": "order_template_id2", + "plan_phase_uid": "plan_phase_uid6" } ] }, @@ -153,15 +117,15 @@ Defines output parameters in a response from the "plan_variation_id": "02CD53CFA4d1498AFAD42", "subscription_event_type": "PLAN_CHANGE", "info": { - "detail": "detail7", - "code": "CUSTOMER_NO_EMAIL" + "detail": "detail6", + "code": "CUSTOMER_DELETED" }, "phases": [ { - "uid": "uid6", - "ordinal": 22, - "order_template_id": "order_template_id8", - "plan_phase_uid": "plan_phase_uid2" + "uid": "uid0", + "ordinal": 78, + "order_template_id": "order_template_id2", + "plan_phase_uid": "plan_phase_uid6" } ] }, @@ -171,52 +135,28 @@ Defines output parameters in a response from the "plan_variation_id": "6JHXF3B2CW3YKHDV4XEM674H", "subscription_event_type": "STOP_SUBSCRIPTION", "info": { - "detail": "detail8", - "code": "CUSTOMER_NO_NAME" + "detail": "detail6", + "code": "CUSTOMER_DELETED" }, "phases": [ { - "uid": "uid7", - "ordinal": 23, - "order_template_id": "order_template_id9", - "plan_phase_uid": "plan_phase_uid3" - }, - { - "uid": "uid6", - "ordinal": 22, - "order_template_id": "order_template_id8", - "plan_phase_uid": "plan_phase_uid2" - }, - { - "uid": "uid5", - "ordinal": 21, - "order_template_id": "order_template_id7", - "plan_phase_uid": "plan_phase_uid1" + "uid": "uid0", + "ordinal": 78, + "order_template_id": "order_template_id2", + "plan_phase_uid": "plan_phase_uid6" } ] } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], - "cursor": "cursor6" + "cursor": "cursor4" } ``` diff --git a/doc/models/list-team-member-booking-profiles-request.md b/doc/models/list-team-member-booking-profiles-request.md index 9a719563..92dc2009 100644 --- a/doc/models/list-team-member-booking-profiles-request.md +++ b/doc/models/list-team-member-booking-profiles-request.md @@ -19,9 +19,9 @@ ```json { "bookable_only": false, - "limit": 172, - "cursor": "cursor6", - "location_id": "location_id4" + "limit": 112, + "cursor": "cursor2", + "location_id": "location_id8" } ``` diff --git a/doc/models/list-team-member-booking-profiles-response.md b/doc/models/list-team-member-booking-profiles-response.md index aa99b32a..365ac231 100644 --- a/doc/models/list-team-member-booking-profiles-response.md +++ b/doc/models/list-team-member-booking-profiles-response.md @@ -23,18 +23,18 @@ "display_name": "Sandbox Seller", "is_bookable": true, "team_member_id": "TMXUrsBWWcHTt79t", - "description": "description7", - "profile_image_url": "profile_image_url9" + "description": "description4", + "profile_image_url": "profile_image_url2" }, { "display_name": "Sandbox Staff", "is_bookable": true, "team_member_id": "TMaJcbiRqPIGZuS9", - "description": "description6", - "profile_image_url": "profile_image_url0" + "description": "description4", + "profile_image_url": "profile_image_url2" } ], - "cursor": "cursor6" + "cursor": "cursor0" } ``` diff --git a/doc/models/list-team-member-wages-request.md b/doc/models/list-team-member-wages-request.md index f38716cc..6791f9bb 100644 --- a/doc/models/list-team-member-wages-request.md +++ b/doc/models/list-team-member-wages-request.md @@ -19,9 +19,9 @@ A request for a set of `TeamMemberWage` objects. ```json { - "team_member_id": "team_member_id0", - "limit": 172, - "cursor": "cursor6" + "team_member_id": "team_member_id2", + "limit": 210, + "cursor": "cursor8" } ``` diff --git a/doc/models/list-team-member-wages-response.md b/doc/models/list-team-member-wages-response.md index e9ccc72d..1772bf1f 100644 --- a/doc/models/list-team-member-wages-response.md +++ b/doc/models/list-team-member-wages-response.md @@ -64,23 +64,17 @@ a set of `TeamMemberWage` objects. } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/list-transactions-request.md b/doc/models/list-transactions-request.md index 83c115e3..1fcd7598 100644 --- a/doc/models/list-transactions-request.md +++ b/doc/models/list-transactions-request.md @@ -23,10 +23,10 @@ Deprecated - recommend using [SearchOrders](api-endpoint:Orders-SearchOrders) ```json { - "begin_time": "begin_time2", - "end_time": "end_time2", + "begin_time": "begin_time6", + "end_time": "end_time0", "sort_order": "DESC", - "cursor": "cursor6" + "cursor": "cursor8" } ``` diff --git a/doc/models/list-transactions-response.md b/doc/models/list-transactions-response.md index c13d5c28..a3fe12a5 100644 --- a/doc/models/list-transactions-response.md +++ b/doc/models/list-transactions-response.md @@ -39,7 +39,7 @@ One of `errors` or `transactions` is present in a given response (never both). }, "description": "Application fees", "location_id": "057P5VYJ4A5X1", - "receivable_id": "receivable_id4" + "receivable_id": "receivable_id6" } ], "amount_money": { @@ -98,26 +98,14 @@ One of `errors` or `transactions` is present in a given response (never both). } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], - "cursor": "cursor6" + "cursor": "cursor8" } ``` diff --git a/doc/models/list-webhook-event-types-request.md b/doc/models/list-webhook-event-types-request.md index 33a534b3..f72e868c 100644 --- a/doc/models/list-webhook-event-types-request.md +++ b/doc/models/list-webhook-event-types-request.md @@ -17,7 +17,7 @@ Lists all webhook event types that can be subscribed to. ```json { - "api_version": "api_version8" + "api_version": "api_version0" } ``` diff --git a/doc/models/list-webhook-event-types-response.md b/doc/models/list-webhook-event-types-response.md index ed0375cf..2cd8bb41 100644 --- a/doc/models/list-webhook-event-types-response.md +++ b/doc/models/list-webhook-event-types-response.md @@ -34,23 +34,11 @@ present. } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/list-webhook-subscriptions-request.md b/doc/models/list-webhook-subscriptions-request.md index eb8015d0..9b9fa225 100644 --- a/doc/models/list-webhook-subscriptions-request.md +++ b/doc/models/list-webhook-subscriptions-request.md @@ -20,10 +20,10 @@ Lists all [Subscription](../../doc/models/webhook-subscription.md)s owned by you ```json { - "cursor": "cursor6", + "cursor": "cursor2", "include_disabled": false, "sort_order": "DESC", - "limit": 172 + "limit": 190 } ``` diff --git a/doc/models/list-webhook-subscriptions-response.md b/doc/models/list-webhook-subscriptions-response.md index 0a9ee656..eb622e98 100644 --- a/doc/models/list-webhook-subscriptions-response.md +++ b/doc/models/list-webhook-subscriptions-response.md @@ -39,23 +39,11 @@ present. } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], "cursor": "cursor6" diff --git a/doc/models/list-workweek-configs-request.md b/doc/models/list-workweek-configs-request.md index e9ecb660..cccf0293 100644 --- a/doc/models/list-workweek-configs-request.md +++ b/doc/models/list-workweek-configs-request.md @@ -18,8 +18,8 @@ A request for a set of `WorkweekConfig` objects. ```json { - "limit": 172, - "cursor": "cursor6" + "limit": 98, + "cursor": "cursor0" } ``` diff --git a/doc/models/list-workweek-configs-response.md b/doc/models/list-workweek-configs-response.md index 1dfc1691..53b4fdcb 100644 --- a/doc/models/list-workweek-configs-response.md +++ b/doc/models/list-workweek-configs-response.md @@ -33,23 +33,11 @@ the request resulted in errors. } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/location.md b/doc/models/location.md index 67c7dc09..6475f6eb 100644 --- a/doc/models/location.md +++ b/doc/models/location.md @@ -43,8 +43,8 @@ Represents one of a business' [locations](https://developer.squareup.com/docs/lo ```json { - "id": "id0", - "name": "name0", + "id": "id4", + "name": "name4", "address": { "address_line_1": "address_line_16", "address_line_2": "address_line_26", @@ -52,7 +52,7 @@ Represents one of a business' [locations](https://developer.squareup.com/docs/lo "locality": "locality6", "sublocality": "sublocality6" }, - "timezone": "timezone0", + "timezone": "timezone4", "capabilities": [ "CREDIT_CARD_PROCESSING" ] diff --git a/doc/models/loyalty-account-expiring-point-deadline.md b/doc/models/loyalty-account-expiring-point-deadline.md index bac9bb98..d5da193c 100644 --- a/doc/models/loyalty-account-expiring-point-deadline.md +++ b/doc/models/loyalty-account-expiring-point-deadline.md @@ -18,7 +18,7 @@ Represents a set of points for a loyalty account that are scheduled to expire on ```json { - "points": 236, + "points": 104, "expires_at": "expires_at6" } ``` diff --git a/doc/models/loyalty-account-mapping.md b/doc/models/loyalty-account-mapping.md index b03e7459..97a9f531 100644 --- a/doc/models/loyalty-account-mapping.md +++ b/doc/models/loyalty-account-mapping.md @@ -22,9 +22,9 @@ Currently, a loyalty account can only be mapped to a buyer by phone number. For ```json { - "id": "id0", - "created_at": "created_at2", - "phone_number": "phone_number2" + "id": "id2", + "created_at": "created_at0", + "phone_number": "phone_number0" } ``` diff --git a/doc/models/loyalty-account.md b/doc/models/loyalty-account.md index f4a2c858..04a34760 100644 --- a/doc/models/loyalty-account.md +++ b/doc/models/loyalty-account.md @@ -27,12 +27,12 @@ Describes a loyalty account in a [loyalty program](../../doc/models/loyalty-prog ```json { - "id": "id0", - "program_id": "program_id0", - "balance": 64, - "lifetime_points": 88, - "customer_id": "customer_id8", - "enrolled_at": "enrolled_at0" + "id": "id4", + "program_id": "program_id6", + "balance": 52, + "lifetime_points": 76, + "customer_id": "customer_id2", + "enrolled_at": "enrolled_at4" } ``` diff --git a/doc/models/loyalty-event-accumulate-points.md b/doc/models/loyalty-event-accumulate-points.md index f6be9e68..aac0b1ac 100644 --- a/doc/models/loyalty-event-accumulate-points.md +++ b/doc/models/loyalty-event-accumulate-points.md @@ -20,8 +20,8 @@ Provides metadata when the event `type` is `ACCUMULATE_POINTS`. ```json { "loyalty_program_id": "loyalty_program_id0", - "points": 236, - "order_id": "order_id6" + "points": 104, + "order_id": "order_id4" } ``` diff --git a/doc/models/loyalty-event-accumulate-promotion-points.md b/doc/models/loyalty-event-accumulate-promotion-points.md index 1af710f1..6db43e35 100644 --- a/doc/models/loyalty-event-accumulate-promotion-points.md +++ b/doc/models/loyalty-event-accumulate-promotion-points.md @@ -22,8 +22,8 @@ Provides metadata when the event `type` is `ACCUMULATE_PROMOTION_POINTS`. { "loyalty_program_id": "loyalty_program_id0", "loyalty_promotion_id": "loyalty_promotion_id8", - "points": 236, - "order_id": "order_id6" + "points": 98, + "order_id": "order_id4" } ``` diff --git a/doc/models/loyalty-event-adjust-points.md b/doc/models/loyalty-event-adjust-points.md index 5414be50..db809f4a 100644 --- a/doc/models/loyalty-event-adjust-points.md +++ b/doc/models/loyalty-event-adjust-points.md @@ -19,9 +19,9 @@ Provides metadata when the event `type` is `ADJUST_POINTS`. ```json { - "loyalty_program_id": "loyalty_program_id0", - "points": 236, - "reason": "reason4" + "loyalty_program_id": "loyalty_program_id4", + "points": 98, + "reason": "reason0" } ``` diff --git a/doc/models/loyalty-event-create-reward.md b/doc/models/loyalty-event-create-reward.md index 7c9fe14d..286bf216 100644 --- a/doc/models/loyalty-event-create-reward.md +++ b/doc/models/loyalty-event-create-reward.md @@ -19,9 +19,9 @@ Provides metadata when the event `type` is `CREATE_REWARD`. ```json { - "loyalty_program_id": "loyalty_program_id0", - "reward_id": "reward_id4", - "points": 236 + "loyalty_program_id": "loyalty_program_id4", + "reward_id": "reward_id8", + "points": 198 } ``` diff --git a/doc/models/loyalty-event-delete-reward.md b/doc/models/loyalty-event-delete-reward.md index 9c4c5767..d8d42b4a 100644 --- a/doc/models/loyalty-event-delete-reward.md +++ b/doc/models/loyalty-event-delete-reward.md @@ -19,9 +19,9 @@ Provides metadata when the event `type` is `DELETE_REWARD`. ```json { - "loyalty_program_id": "loyalty_program_id0", - "reward_id": "reward_id4", - "points": 236 + "loyalty_program_id": "loyalty_program_id2", + "reward_id": "reward_id6", + "points": 84 } ``` diff --git a/doc/models/loyalty-event-expire-points.md b/doc/models/loyalty-event-expire-points.md index 9206c137..0f4ee4ac 100644 --- a/doc/models/loyalty-event-expire-points.md +++ b/doc/models/loyalty-event-expire-points.md @@ -18,8 +18,8 @@ Provides metadata when the event `type` is `EXPIRE_POINTS`. ```json { - "loyalty_program_id": "loyalty_program_id0", - "points": 236 + "loyalty_program_id": "loyalty_program_id8", + "points": 84 } ``` diff --git a/doc/models/loyalty-event-filter.md b/doc/models/loyalty-event-filter.md index a1987a95..47874b7c 100644 --- a/doc/models/loyalty-event-filter.md +++ b/doc/models/loyalty-event-filter.md @@ -34,8 +34,8 @@ the endpoint uses a logical AND to evaluate them. }, "date_time_filter": { "created_at": { - "start_at": "start_at0", - "end_at": "end_at2" + "start_at": "start_at4", + "end_at": "end_at8" } }, "location_filter": { diff --git a/doc/models/loyalty-event-location-filter.md b/doc/models/loyalty-event-location-filter.md index 7f461744..5d1c449b 100644 --- a/doc/models/loyalty-event-location-filter.md +++ b/doc/models/loyalty-event-location-filter.md @@ -18,7 +18,9 @@ Filter events by location. ```json { "location_ids": [ - "location_ids0" + "location_ids6", + "location_ids7", + "location_ids8" ] } ``` diff --git a/doc/models/loyalty-event-loyalty-account-filter.md b/doc/models/loyalty-event-loyalty-account-filter.md index 27292dcf..5a607409 100644 --- a/doc/models/loyalty-event-loyalty-account-filter.md +++ b/doc/models/loyalty-event-loyalty-account-filter.md @@ -17,7 +17,7 @@ Filter events by loyalty account. ```json { - "loyalty_account_id": "loyalty_account_id0" + "loyalty_account_id": "loyalty_account_id2" } ``` diff --git a/doc/models/loyalty-event-order-filter.md b/doc/models/loyalty-event-order-filter.md index 224db89b..beec8071 100644 --- a/doc/models/loyalty-event-order-filter.md +++ b/doc/models/loyalty-event-order-filter.md @@ -17,7 +17,7 @@ Filter events by the order associated with the event. ```json { - "order_id": "order_id6" + "order_id": "order_id4" } ``` diff --git a/doc/models/loyalty-event-other.md b/doc/models/loyalty-event-other.md index 4a52b95a..ab553d0e 100644 --- a/doc/models/loyalty-event-other.md +++ b/doc/models/loyalty-event-other.md @@ -18,8 +18,8 @@ Provides metadata when the event `type` is `OTHER`. ```json { - "loyalty_program_id": "loyalty_program_id0", - "points": 236 + "loyalty_program_id": "loyalty_program_id4", + "points": 94 } ``` diff --git a/doc/models/loyalty-event-query.md b/doc/models/loyalty-event-query.md index 54fc1084..b6acffb4 100644 --- a/doc/models/loyalty-event-query.md +++ b/doc/models/loyalty-event-query.md @@ -19,30 +19,30 @@ Represents a query used to search for loyalty events. { "filter": { "loyalty_account_filter": { - "loyalty_account_id": "loyalty_account_id4" + "loyalty_account_id": "loyalty_account_id8" }, "type_filter": { "types": [ - "DELETE_REWARD", - "ADJUST_POINTS", - "EXPIRE_POINTS" + "ACCUMULATE_PROMOTION_POINTS", + "ACCUMULATE_POINTS", + "CREATE_REWARD" ] }, "date_time_filter": { "created_at": { - "start_at": "start_at6", - "end_at": "end_at6" + "start_at": "start_at4", + "end_at": "end_at8" } }, "location_filter": { "location_ids": [ - "location_ids4", - "location_ids5", - "location_ids6" + "location_ids0", + "location_ids1", + "location_ids2" ] }, "order_filter": { - "order_id": "order_id6" + "order_id": "order_id2" } } } diff --git a/doc/models/loyalty-event-redeem-reward.md b/doc/models/loyalty-event-redeem-reward.md index f359cd45..214fcdaa 100644 --- a/doc/models/loyalty-event-redeem-reward.md +++ b/doc/models/loyalty-event-redeem-reward.md @@ -19,9 +19,9 @@ Provides metadata when the event `type` is `REDEEM_REWARD`. ```json { - "loyalty_program_id": "loyalty_program_id0", - "reward_id": "reward_id4", - "order_id": "order_id6" + "loyalty_program_id": "loyalty_program_id4", + "reward_id": "reward_id8", + "order_id": "order_id8" } ``` diff --git a/doc/models/loyalty-event-type-filter.md b/doc/models/loyalty-event-type-filter.md index 2d47f822..dbd9ceca 100644 --- a/doc/models/loyalty-event-type-filter.md +++ b/doc/models/loyalty-event-type-filter.md @@ -18,9 +18,9 @@ Filter events by event type. ```json { "types": [ - "DELETE_REWARD", - "ADJUST_POINTS", - "EXPIRE_POINTS" + "EXPIRE_POINTS", + "OTHER", + "ACCUMULATE_PROMOTION_POINTS" ] } ``` diff --git a/doc/models/loyalty-event.md b/doc/models/loyalty-event.md index bc15853a..2674799b 100644 --- a/doc/models/loyalty-event.md +++ b/doc/models/loyalty-event.md @@ -32,7 +32,7 @@ For more information, see [Search for Balance-Changing Loyalty Events](https://d ```json { "id": "id0", - "type": "OTHER", + "type": "ACCUMULATE_POINTS", "created_at": "created_at2", "accumulate_points": { "loyalty_program_id": "loyalty_program_id8", diff --git a/doc/models/loyalty-program-accrual-rule-category-data.md b/doc/models/loyalty-program-accrual-rule-category-data.md index 78c5e067..887def4c 100644 --- a/doc/models/loyalty-program-accrual-rule-category-data.md +++ b/doc/models/loyalty-program-accrual-rule-category-data.md @@ -17,7 +17,7 @@ Represents additional data for rules with the `CATEGORY` accrual type. ```json { - "category_id": "category_id8" + "category_id": "category_id6" } ``` diff --git a/doc/models/loyalty-program-accrual-rule-item-variation-data.md b/doc/models/loyalty-program-accrual-rule-item-variation-data.md index a8ffc35e..c4010a2e 100644 --- a/doc/models/loyalty-program-accrual-rule-item-variation-data.md +++ b/doc/models/loyalty-program-accrual-rule-item-variation-data.md @@ -17,7 +17,7 @@ Represents additional data for rules with the `ITEM_VARIATION` accrual type. ```json { - "item_variation_id": "item_variation_id4" + "item_variation_id": "item_variation_id6" } ``` diff --git a/doc/models/loyalty-program-accrual-rule-spend-data.md b/doc/models/loyalty-program-accrual-rule-spend-data.md index cf8d0273..2d71bae4 100644 --- a/doc/models/loyalty-program-accrual-rule-spend-data.md +++ b/doc/models/loyalty-program-accrual-rule-spend-data.md @@ -25,13 +25,11 @@ Represents additional data for rules with the `SPEND` accrual type. "currency": "TZS" }, "excluded_category_ids": [ - "excluded_category_ids8", - "excluded_category_ids9" + "excluded_category_ids4" ], "excluded_item_variation_ids": [ - "excluded_item_variation_ids1", - "excluded_item_variation_ids2", - "excluded_item_variation_ids3" + "excluded_item_variation_ids7", + "excluded_item_variation_ids6" ], "tax_mode": "BEFORE_TAX" } diff --git a/doc/models/loyalty-program-accrual-rule.md b/doc/models/loyalty-program-accrual-rule.md index bd02e6ad..af00f9ff 100644 --- a/doc/models/loyalty-program-accrual-rule.md +++ b/doc/models/loyalty-program-accrual-rule.md @@ -22,19 +22,19 @@ Represents an accrual rule, which defines how buyers can earn points from the ba ```json { - "accrual_type": "ITEM_VARIATION", - "points": 236, + "accrual_type": "VISIT", + "points": 86, "visit_data": { "minimum_amount_money": { - "amount": 24, - "currency": "UYI" + "amount": 146, + "currency": "MYR" }, "tax_mode": "BEFORE_TAX" }, "spend_data": { "amount_money": { - "amount": 248, - "currency": "BSD" + "amount": 186, + "currency": "TZS" }, "excluded_category_ids": [ "excluded_category_ids4" diff --git a/doc/models/loyalty-program-expiration-policy.md b/doc/models/loyalty-program-expiration-policy.md index d9025e6a..24f222cf 100644 --- a/doc/models/loyalty-program-expiration-policy.md +++ b/doc/models/loyalty-program-expiration-policy.md @@ -17,7 +17,7 @@ Describes when the loyalty program expires. ```json { - "expiration_duration": "expiration_duration8" + "expiration_duration": "expiration_duration2" } ``` diff --git a/doc/models/loyalty-program-reward-definition.md b/doc/models/loyalty-program-reward-definition.md index e1db7b96..fb8df822 100644 --- a/doc/models/loyalty-program-reward-definition.md +++ b/doc/models/loyalty-program-reward-definition.md @@ -24,13 +24,11 @@ are now defined using a catalog pricing rule and other catalog objects. For more ```json { - "scope": "CATEGORY", + "scope": "ORDER", "discount_type": "FIXED_AMOUNT", - "percentage_discount": "percentage_discount8", + "percentage_discount": "percentage_discount0", "catalog_object_ids": [ - "catalog_object_ids2", - "catalog_object_ids3", - "catalog_object_ids4" + "catalog_object_ids8" ], "fixed_discount_money": { "amount": 36, diff --git a/doc/models/loyalty-program-reward-tier.md b/doc/models/loyalty-program-reward-tier.md index f4c59b22..9ed1d436 100644 --- a/doc/models/loyalty-program-reward-tier.md +++ b/doc/models/loyalty-program-reward-tier.md @@ -22,9 +22,9 @@ Represents a reward tier in a loyalty program. A reward tier defines how buyers ```json { - "id": "id0", - "points": 236, - "name": "name0", + "id": "id2", + "points": 94, + "name": "name2", "definition": { "scope": "ORDER", "discount_type": "FIXED_AMOUNT", @@ -33,15 +33,15 @@ Represents a reward tier in a loyalty program. A reward tier defines how buyers "catalog_object_ids6" ], "fixed_discount_money": { - "amount": 132, - "currency": "CUC" + "amount": 36, + "currency": "TTD" }, "max_discount_money": { - "amount": 176, - "currency": "CUC" + "amount": 84, + "currency": "STD" } }, - "created_at": "created_at2", + "created_at": "created_at0", "pricing_rule_reference": { "object_id": "object_id0", "catalog_version": 218 diff --git a/doc/models/loyalty-program-terminology.md b/doc/models/loyalty-program-terminology.md index 4b947518..7c7d8d0f 100644 --- a/doc/models/loyalty-program-terminology.md +++ b/doc/models/loyalty-program-terminology.md @@ -18,8 +18,8 @@ Represents the naming used for loyalty points. ```json { - "one": "one6", - "other": "other2" + "one": "one4", + "other": "other0" } ``` diff --git a/doc/models/loyalty-program.md b/doc/models/loyalty-program.md index aa3fa9ab..2b108420 100644 --- a/doc/models/loyalty-program.md +++ b/doc/models/loyalty-program.md @@ -27,61 +27,59 @@ For more information, see [Loyalty Program Overview](https://developer.squareup. ```json { - "id": "id0", + "id": "id2", "status": "INACTIVE", "reward_tiers": [ { - "id": "id9", - "points": 249, - "name": "name9", + "id": "id8", + "points": 250, + "name": "name8", "definition": { - "scope": "CATEGORY", - "discount_type": "FIXED_PERCENTAGE", - "percentage_discount": "percentage_discount1", + "scope": "ORDER", + "discount_type": "FIXED_AMOUNT", + "percentage_discount": "percentage_discount2", "catalog_object_ids": [ - "catalog_object_ids3", - "catalog_object_ids4", - "catalog_object_ids5" + "catalog_object_ids6" ], "fixed_discount_money": { - "amount": 119, - "currency": "SEK" + "amount": 36, + "currency": "TTD" }, "max_discount_money": { - "amount": 163, - "currency": "SEK" + "amount": 84, + "currency": "STD" } }, - "created_at": "created_at7", + "created_at": "created_at6", "pricing_rule_reference": { - "object_id": "object_id9", - "catalog_version": 205 + "object_id": "object_id0", + "catalog_version": 218 } }, { - "id": "id0", - "points": 248, - "name": "name0", + "id": "id8", + "points": 250, + "name": "name8", "definition": { "scope": "ORDER", "discount_type": "FIXED_AMOUNT", "percentage_discount": "percentage_discount2", "catalog_object_ids": [ - "catalog_object_ids4" + "catalog_object_ids6" ], "fixed_discount_money": { - "amount": 120, - "currency": "SGD" + "amount": 36, + "currency": "TTD" }, "max_discount_money": { - "amount": 164, - "currency": "SGD" + "amount": 84, + "currency": "STD" } }, - "created_at": "created_at8", + "created_at": "created_at6", "pricing_rule_reference": { "object_id": "object_id0", - "catalog_version": 206 + "catalog_version": 218 } } ], diff --git a/doc/models/loyalty-promotion-available-time-data.md b/doc/models/loyalty-promotion-available-time-data.md index bac5b476..69d690ed 100644 --- a/doc/models/loyalty-promotion-available-time-data.md +++ b/doc/models/loyalty-promotion-available-time-data.md @@ -20,11 +20,12 @@ from a [loyalty promotion](../../doc/models/loyalty-promotion.md). ```json { - "start_date": "start_date6", + "start_date": "start_date4", "end_date": "end_date0", "time_periods": [ - "time_periods1", - "time_periods2" + "time_periods7", + "time_periods8", + "time_periods9" ] } ``` diff --git a/doc/models/loyalty-promotion-incentive-points-addition-data.md b/doc/models/loyalty-promotion-incentive-points-addition-data.md index 71ddaada..18e5d488 100644 --- a/doc/models/loyalty-promotion-incentive-points-addition-data.md +++ b/doc/models/loyalty-promotion-incentive-points-addition-data.md @@ -17,7 +17,7 @@ Represents the metadata for a `POINTS_ADDITION` type of [loyalty promotion incen ```json { - "points_addition": 176 + "points_addition": 88 } ``` diff --git a/doc/models/loyalty-promotion-incentive-points-multiplier-data.md b/doc/models/loyalty-promotion-incentive-points-multiplier-data.md index 1a94dafd..ce27146d 100644 --- a/doc/models/loyalty-promotion-incentive-points-multiplier-data.md +++ b/doc/models/loyalty-promotion-incentive-points-multiplier-data.md @@ -18,8 +18,8 @@ Represents the metadata for a `POINTS_MULTIPLIER` type of [loyalty promotion inc ```json { - "points_multiplier": 8, - "multiplier": "multiplier4" + "points_multiplier": 116, + "multiplier": "multiplier2" } ``` diff --git a/doc/models/loyalty-promotion-trigger-limit.md b/doc/models/loyalty-promotion-trigger-limit.md index 89decf97..44902e02 100644 --- a/doc/models/loyalty-promotion-trigger-limit.md +++ b/doc/models/loyalty-promotion-trigger-limit.md @@ -22,7 +22,7 @@ A purchase that is disqualified from earning points because of this limit might ```json { - "times": 28, + "times": 32, "interval": "ALL_TIME" } ``` diff --git a/doc/models/loyalty-promotion.md b/doc/models/loyalty-promotion.md index f2d28711..bbd408f5 100644 --- a/doc/models/loyalty-promotion.md +++ b/doc/models/loyalty-promotion.md @@ -32,16 +32,16 @@ A loyalty program can have a maximum of 10 loyalty promotions with an `ACTIVE` o ```json { - "id": "id0", - "name": "name0", + "id": "id4", + "name": "name4", "incentive": { "type": "POINTS_MULTIPLIER", "points_multiplier_data": { - "points_multiplier": 16, - "multiplier": "multiplier8" + "points_multiplier": 134, + "multiplier": "multiplier4" }, "points_addition_data": { - "points_addition": 16 + "points_addition": 218 } }, "available_time": { @@ -56,8 +56,8 @@ A loyalty program can have a maximum of 10 loyalty promotions with an `ACTIVE` o "interval": "ALL_TIME" }, "status": "ACTIVE", - "created_at": "created_at2", - "canceled_at": "canceled_at4" + "created_at": "created_at8", + "canceled_at": "canceled_at0" } ``` diff --git a/doc/models/loyalty-reward.md b/doc/models/loyalty-reward.md index 032b4f7f..f5aa89c3 100644 --- a/doc/models/loyalty-reward.md +++ b/doc/models/loyalty-reward.md @@ -26,13 +26,13 @@ For more information, see [Manage loyalty rewards](https://developer.squareup.co ```json { - "id": "id0", + "id": "id6", "status": "DELETED", - "loyalty_account_id": "loyalty_account_id0", - "reward_tier_id": "reward_tier_id6", - "points": 236, - "order_id": "order_id6", - "created_at": "created_at2" + "loyalty_account_id": "loyalty_account_id4", + "reward_tier_id": "reward_tier_id2", + "points": 114, + "order_id": "order_id0", + "created_at": "created_at4" } ``` diff --git a/doc/models/measurement-unit-custom.md b/doc/models/measurement-unit-custom.md index 0edc2151..736170e5 100644 --- a/doc/models/measurement-unit-custom.md +++ b/doc/models/measurement-unit-custom.md @@ -18,8 +18,8 @@ The information needed to define a custom unit, provided by the seller. ```json { - "name": "name0", - "abbreviation": "abbreviation2" + "name": "name8", + "abbreviation": "abbreviation0" } ``` diff --git a/doc/models/measurement-unit.md b/doc/models/measurement-unit.md index 7b8877ff..e529d41c 100644 --- a/doc/models/measurement-unit.md +++ b/doc/models/measurement-unit.md @@ -32,8 +32,8 @@ or inches. Exactly one of the following fields are required: `custom_unit`, }, "area_unit": "IMPERIAL_SQUARE_MILE", "length_unit": "METRIC_MILLIMETER", - "volume_unit": "GENERIC_CUP", - "weight_unit": "IMPERIAL_STONE" + "volume_unit": "IMPERIAL_CUBIC_INCH", + "weight_unit": "IMPERIAL_WEIGHT_OUNCE" } ``` diff --git a/doc/models/merchant.md b/doc/models/merchant.md index ac5a5b8d..6bd69e35 100644 --- a/doc/models/merchant.md +++ b/doc/models/merchant.md @@ -24,11 +24,11 @@ Represents a business that sells with Square. ```json { - "id": "id0", - "business_name": "business_name4", - "country": "FO", - "language_code": "language_code8", - "currency": "SLL", + "id": "id2", + "business_name": "business_name6", + "country": "HM", + "language_code": "language_code0", + "currency": "HUF", "status": "ACTIVE" } ``` diff --git a/doc/models/modifier-location-overrides.md b/doc/models/modifier-location-overrides.md index 6414e29c..9585bbbd 100644 --- a/doc/models/modifier-location-overrides.md +++ b/doc/models/modifier-location-overrides.md @@ -13,16 +13,18 @@ Location-specific overrides for specified properties of a `CatalogModifier` obje | --- | --- | --- | --- | | `locationId` | `string \| null \| undefined` | Optional | The ID of the `Location` object representing the location. This can include a deactivated location. | | `priceMoney` | [`Money \| undefined`](../../doc/models/money.md) | Optional | Represents an amount of money. `Money` fields can be signed or unsigned.
Fields that do not explicitly define whether they are signed or unsigned are
considered unsigned and can only hold positive amounts. For signed fields, the
sign of the value indicates the purpose of the money transfer. See
[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)
for more information. | +| `soldOut` | `boolean \| undefined` | Optional | Indicates whether the modifier is sold out at the specified location or not. As an example, for cheese (modifier) burger (item), when the modifier is sold out, it is the cheese, but not the burger, that is sold out.
The seller can manually set this sold out status. Attempts by an application to set this attribute are ignored. | ## Example (as JSON) ```json { - "location_id": "location_id4", + "location_id": "location_id2", "price_money": { "amount": 202, "currency": "CNY" - } + }, + "sold_out": false } ``` diff --git a/doc/models/money.md b/doc/models/money.md index 0114b113..80d24ec3 100644 --- a/doc/models/money.md +++ b/doc/models/money.md @@ -23,8 +23,8 @@ for more information. ```json { - "amount": 46, - "currency": "SLL" + "amount": 36, + "currency": "NPR" } ``` diff --git a/doc/models/obtain-token-request.md b/doc/models/obtain-token-request.md index 6620f718..3e16ab9d 100644 --- a/doc/models/obtain-token-request.md +++ b/doc/models/obtain-token-request.md @@ -28,9 +28,9 @@ "client_secret": "APPLICATION_SECRET", "code": "CODE_FROM_AUTHORIZE", "grant_type": "authorization_code", - "redirect_uri": "redirect_uri8", - "refresh_token": "refresh_token0", - "migration_token": "migration_token8" + "redirect_uri": "redirect_uri6", + "refresh_token": "refresh_token8", + "migration_token": "migration_token6" } ``` diff --git a/doc/models/obtain-token-response.md b/doc/models/obtain-token-response.md index b06e5bb5..47c8def3 100644 --- a/doc/models/obtain-token-response.md +++ b/doc/models/obtain-token-response.md @@ -30,7 +30,7 @@ "merchant_id": "MERCHANT_ID", "refresh_token": "REFRESH_TOKEN", "token_type": "bearer", - "subscription_id": "subscription_id0" + "subscription_id": "subscription_id8" } ``` diff --git a/doc/models/order-created.md b/doc/models/order-created.md index 5378169b..93c2388d 100644 --- a/doc/models/order-created.md +++ b/doc/models/order-created.md @@ -19,10 +19,10 @@ ```json { - "order_id": "order_id6", - "version": 172, - "location_id": "location_id4", - "state": "OPEN", + "order_id": "order_id8", + "version": 86, + "location_id": "location_id8", + "state": "CANCELED", "created_at": "created_at2" } ``` diff --git a/doc/models/order-entry.md b/doc/models/order-entry.md index b49bc88a..985cf2e3 100644 --- a/doc/models/order-entry.md +++ b/doc/models/order-entry.md @@ -20,9 +20,9 @@ A lightweight description of an [order](../../doc/models/order.md) that is retur ```json { - "order_id": "order_id6", - "version": 172, - "location_id": "location_id4" + "order_id": "order_id0", + "version": 72, + "location_id": "location_id0" } ``` diff --git a/doc/models/order-fulfillment-delivery-details.md b/doc/models/order-fulfillment-delivery-details.md index ee5c0be0..70f30561 100644 --- a/doc/models/order-fulfillment-delivery-details.md +++ b/doc/models/order-fulfillment-delivery-details.md @@ -45,17 +45,17 @@ Describes delivery details of an order fulfillment. "email_address": "email_address4", "phone_number": "phone_number4", "address": { - "address_line_1": "address_line_14", - "address_line_2": "address_line_24", - "address_line_3": "address_line_30", - "locality": "locality4", - "sublocality": "sublocality4" + "address_line_1": "address_line_16", + "address_line_2": "address_line_26", + "address_line_3": "address_line_32", + "locality": "locality6", + "sublocality": "sublocality6" } }, "schedule_type": "SCHEDULED", - "placed_at": "placed_at0", - "deliver_at": "deliver_at8", - "prep_time_duration": "prep_time_duration2" + "placed_at": "placed_at6", + "deliver_at": "deliver_at2", + "prep_time_duration": "prep_time_duration6" } ``` diff --git a/doc/models/order-fulfillment-fulfillment-entry.md b/doc/models/order-fulfillment-fulfillment-entry.md index dec217a1..0a967282 100644 --- a/doc/models/order-fulfillment-fulfillment-entry.md +++ b/doc/models/order-fulfillment-fulfillment-entry.md @@ -22,13 +22,13 @@ fulfill. ```json { - "uid": "uid0", - "line_item_uid": "line_item_uid0", - "quantity": "quantity6", + "uid": "uid6", + "line_item_uid": "line_item_uid6", + "quantity": "quantity2", "metadata": { - "key0": "metadata3", - "key1": "metadata4", - "key2": "metadata5" + "key0": "metadata7", + "key1": "metadata8", + "key2": "metadata9" } } ``` diff --git a/doc/models/order-fulfillment-pickup-details-curbside-pickup-details.md b/doc/models/order-fulfillment-pickup-details-curbside-pickup-details.md index 80cdca6c..c85e09d7 100644 --- a/doc/models/order-fulfillment-pickup-details-curbside-pickup-details.md +++ b/doc/models/order-fulfillment-pickup-details-curbside-pickup-details.md @@ -18,8 +18,8 @@ Specific details for curbside pickup. ```json { - "curbside_details": "curbside_details6", - "buyer_arrived_at": "buyer_arrived_at2" + "curbside_details": "curbside_details8", + "buyer_arrived_at": "buyer_arrived_at4" } ``` diff --git a/doc/models/order-fulfillment-pickup-details.md b/doc/models/order-fulfillment-pickup-details.md index 130659eb..016517bf 100644 --- a/doc/models/order-fulfillment-pickup-details.md +++ b/doc/models/order-fulfillment-pickup-details.md @@ -40,17 +40,17 @@ Contains details necessary to fulfill a pickup order. "email_address": "email_address4", "phone_number": "phone_number4", "address": { - "address_line_1": "address_line_14", - "address_line_2": "address_line_24", - "address_line_3": "address_line_30", - "locality": "locality4", - "sublocality": "sublocality4" + "address_line_1": "address_line_16", + "address_line_2": "address_line_26", + "address_line_3": "address_line_32", + "locality": "locality6", + "sublocality": "sublocality6" } }, - "expires_at": "expires_at6", - "auto_complete_duration": "auto_complete_duration4", + "expires_at": "expires_at0", + "auto_complete_duration": "auto_complete_duration0", "schedule_type": "SCHEDULED", - "pickup_at": "pickup_at4" + "pickup_at": "pickup_at8" } ``` diff --git a/doc/models/order-fulfillment-recipient.md b/doc/models/order-fulfillment-recipient.md index 200c5632..217e1184 100644 --- a/doc/models/order-fulfillment-recipient.md +++ b/doc/models/order-fulfillment-recipient.md @@ -21,10 +21,10 @@ Information about the fulfillment recipient. ```json { - "customer_id": "customer_id8", - "display_name": "display_name0", - "email_address": "email_address2", - "phone_number": "phone_number2", + "customer_id": "customer_id0", + "display_name": "display_name2", + "email_address": "email_address0", + "phone_number": "phone_number0", "address": { "address_line_1": "address_line_16", "address_line_2": "address_line_26", diff --git a/doc/models/order-fulfillment-shipment-details.md b/doc/models/order-fulfillment-shipment-details.md index 0ac38999..7dd36e45 100644 --- a/doc/models/order-fulfillment-shipment-details.md +++ b/doc/models/order-fulfillment-shipment-details.md @@ -37,17 +37,17 @@ Contains the details necessary to fulfill a shipment order. "email_address": "email_address4", "phone_number": "phone_number4", "address": { - "address_line_1": "address_line_14", - "address_line_2": "address_line_24", - "address_line_3": "address_line_30", - "locality": "locality4", - "sublocality": "sublocality4" + "address_line_1": "address_line_16", + "address_line_2": "address_line_26", + "address_line_3": "address_line_32", + "locality": "locality6", + "sublocality": "sublocality6" } }, - "carrier": "carrier2", - "shipping_note": "shipping_note6", - "shipping_type": "shipping_type6", - "tracking_number": "tracking_number8" + "carrier": "carrier4", + "shipping_note": "shipping_note8", + "shipping_type": "shipping_type4", + "tracking_number": "tracking_number0" } ``` diff --git a/doc/models/order-fulfillment-updated-update.md b/doc/models/order-fulfillment-updated-update.md index fe4e1686..badaeeef 100644 --- a/doc/models/order-fulfillment-updated-update.md +++ b/doc/models/order-fulfillment-updated-update.md @@ -19,8 +19,8 @@ Information about fulfillment updates. ```json { - "fulfillment_uid": "fulfillment_uid4", - "old_state": "PREPARED", + "fulfillment_uid": "fulfillment_uid6", + "old_state": "CANCELED", "new_state": "PREPARED" } ``` diff --git a/doc/models/order-fulfillment-updated.md b/doc/models/order-fulfillment-updated.md index ab9132d5..136c4b2a 100644 --- a/doc/models/order-fulfillment-updated.md +++ b/doc/models/order-fulfillment-updated.md @@ -21,11 +21,11 @@ ```json { - "order_id": "order_id6", - "version": 172, - "location_id": "location_id4", + "order_id": "order_id0", + "version": 8, + "location_id": "location_id0", "state": "OPEN", - "created_at": "created_at2" + "created_at": "created_at4" } ``` diff --git a/doc/models/order-fulfillment.md b/doc/models/order-fulfillment.md index 1e055bba..83333954 100644 --- a/doc/models/order-fulfillment.md +++ b/doc/models/order-fulfillment.md @@ -27,19 +27,39 @@ However, orders returned by the Orders API might contain multiple fulfillments b ```json { - "uid": "uid0", - "type": "DELIVERY", - "state": "PREPARED", + "uid": "uid8", + "type": "PICKUP", + "state": "PROPOSED", "line_item_application": "ALL", "entries": [ { - "uid": "uid5", - "line_item_uid": "line_item_uid5", - "quantity": "quantity1", + "uid": "uid0", + "line_item_uid": "line_item_uid0", + "quantity": "quantity6", "metadata": { - "key0": "metadata8", - "key1": "metadata9", - "key2": "metadata0" + "key0": "metadata3", + "key1": "metadata4", + "key2": "metadata5" + } + }, + { + "uid": "uid0", + "line_item_uid": "line_item_uid0", + "quantity": "quantity6", + "metadata": { + "key0": "metadata3", + "key1": "metadata4", + "key2": "metadata5" + } + }, + { + "uid": "uid0", + "line_item_uid": "line_item_uid0", + "quantity": "quantity6", + "metadata": { + "key0": "metadata3", + "key1": "metadata4", + "key2": "metadata5" } } ] diff --git a/doc/models/order-line-item-applied-discount.md b/doc/models/order-line-item-applied-discount.md index 04ec0735..e877b2a4 100644 --- a/doc/models/order-line-item-applied-discount.md +++ b/doc/models/order-line-item-applied-discount.md @@ -24,8 +24,8 @@ line items. ```json { - "uid": "uid0", - "discount_uid": "discount_uid4", + "uid": "uid2", + "discount_uid": "discount_uid2", "applied_money": { "amount": 196, "currency": "HKD" diff --git a/doc/models/order-line-item-applied-service-charge.md b/doc/models/order-line-item-applied-service-charge.md index 13fa3998..9d858197 100644 --- a/doc/models/order-line-item-applied-service-charge.md +++ b/doc/models/order-line-item-applied-service-charge.md @@ -17,8 +17,8 @@ ```json { - "uid": "uid0", - "service_charge_uid": "service_charge_uid0", + "uid": "uid8", + "service_charge_uid": "service_charge_uid8", "applied_money": { "amount": 196, "currency": "HKD" diff --git a/doc/models/order-line-item-applied-tax.md b/doc/models/order-line-item-applied-tax.md index 1b0c9006..bb29b37d 100644 --- a/doc/models/order-line-item-applied-tax.md +++ b/doc/models/order-line-item-applied-tax.md @@ -24,8 +24,8 @@ set of participating line items. ```json { - "uid": "uid0", - "tax_uid": "tax_uid4", + "uid": "uid8", + "tax_uid": "tax_uid6", "applied_money": { "amount": 196, "currency": "HKD" diff --git a/doc/models/order-line-item-discount.md b/doc/models/order-line-item-discount.md index 9d2a393d..bc9bff61 100644 --- a/doc/models/order-line-item-discount.md +++ b/doc/models/order-line-item-discount.md @@ -33,11 +33,11 @@ amount contributed by the item to the order subtotal. ```json { - "uid": "uid0", - "catalog_object_id": "catalog_object_id6", - "catalog_version": 126, - "name": "name0", - "type": "UNKNOWN_DISCOUNT" + "uid": "uid4", + "catalog_object_id": "catalog_object_id8", + "catalog_version": 54, + "name": "name4", + "type": "FIXED_PERCENTAGE" } ``` diff --git a/doc/models/order-line-item-modifier.md b/doc/models/order-line-item-modifier.md index f9287a76..6e99a4e1 100644 --- a/doc/models/order-line-item-modifier.md +++ b/doc/models/order-line-item-modifier.md @@ -24,11 +24,11 @@ A [CatalogModifier](../../doc/models/catalog-modifier.md). ```json { - "uid": "uid0", + "uid": "uid2", "catalog_object_id": "catalog_object_id6", - "catalog_version": 126, - "name": "name0", - "quantity": "quantity6" + "catalog_version": 134, + "name": "name2", + "quantity": "quantity8" } ``` diff --git a/doc/models/order-line-item-pricing-blocklists-blocked-discount.md b/doc/models/order-line-item-pricing-blocklists-blocked-discount.md index 936f9a68..32c08d84 100644 --- a/doc/models/order-line-item-pricing-blocklists-blocked-discount.md +++ b/doc/models/order-line-item-pricing-blocklists-blocked-discount.md @@ -20,9 +20,9 @@ identified by either `discount_uid` or `discount_catalog_object_id`, but not bot ```json { - "uid": "uid0", - "discount_uid": "discount_uid4", - "discount_catalog_object_id": "discount_catalog_object_id2" + "uid": "uid6", + "discount_uid": "discount_uid8", + "discount_catalog_object_id": "discount_catalog_object_id8" } ``` diff --git a/doc/models/order-line-item-pricing-blocklists-blocked-tax.md b/doc/models/order-line-item-pricing-blocklists-blocked-tax.md index 32baa487..191c6cd7 100644 --- a/doc/models/order-line-item-pricing-blocklists-blocked-tax.md +++ b/doc/models/order-line-item-pricing-blocklists-blocked-tax.md @@ -20,9 +20,9 @@ identified by either `tax_uid` or `tax_catalog_object_id`, but not both. ```json { - "uid": "uid0", + "uid": "uid8", "tax_uid": "tax_uid4", - "tax_catalog_object_id": "tax_catalog_object_id4" + "tax_catalog_object_id": "tax_catalog_object_id2" } ``` diff --git a/doc/models/order-line-item-pricing-blocklists.md b/doc/models/order-line-item-pricing-blocklists.md index d2115b3e..2a5dae4e 100644 --- a/doc/models/order-line-item-pricing-blocklists.md +++ b/doc/models/order-line-item-pricing-blocklists.md @@ -22,16 +22,31 @@ application to a line item. For more information, see { "blocked_discounts": [ { - "uid": "uid5", - "discount_uid": "discount_uid1", - "discount_catalog_object_id": "discount_catalog_object_id7" + "uid": "uid0", + "discount_uid": "discount_uid6", + "discount_catalog_object_id": "discount_catalog_object_id2" + }, + { + "uid": "uid0", + "discount_uid": "discount_uid6", + "discount_catalog_object_id": "discount_catalog_object_id2" + }, + { + "uid": "uid0", + "discount_uid": "discount_uid6", + "discount_catalog_object_id": "discount_catalog_object_id2" } ], "blocked_taxes": [ { - "uid": "uid7", - "tax_uid": "tax_uid3", - "tax_catalog_object_id": "tax_catalog_object_id1" + "uid": "uid4", + "tax_uid": "tax_uid0", + "tax_catalog_object_id": "tax_catalog_object_id8" + }, + { + "uid": "uid4", + "tax_uid": "tax_uid0", + "tax_catalog_object_id": "tax_catalog_object_id8" } ] } diff --git a/doc/models/order-line-item-tax.md b/doc/models/order-line-item-tax.md index ec166623..cabd6afa 100644 --- a/doc/models/order-line-item-tax.md +++ b/doc/models/order-line-item-tax.md @@ -30,11 +30,11 @@ contributes to the order subtotal. ```json { - "uid": "uid0", - "catalog_object_id": "catalog_object_id6", - "catalog_version": 126, - "name": "name0", - "type": "INCLUSIVE" + "uid": "uid4", + "catalog_object_id": "catalog_object_id2", + "catalog_version": 190, + "name": "name4", + "type": "ADDITIVE" } ``` diff --git a/doc/models/order-line-item.md b/doc/models/order-line-item.md index e6544bab..96b2a935 100644 --- a/doc/models/order-line-item.md +++ b/doc/models/order-line-item.md @@ -39,26 +39,26 @@ product to purchase, with its own quantity and price details. ```json { - "uid": "uid0", - "name": "name0", - "quantity": "quantity6", + "uid": "uid4", + "name": "name4", + "quantity": "quantity0", "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name8", - "abbreviation": "abbreviation0" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "IMPERIAL_SQUARE_FOOT", - "length_unit": "METRIC_METER", - "volume_unit": "GENERIC_CUP", + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_LITER", "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, "precision": 54, "catalog_object_id": "catalog_object_id0", "catalog_version": 12 }, - "note": "note4", - "catalog_object_id": "catalog_object_id6" + "note": "note0", + "catalog_object_id": "catalog_object_id8" } ``` diff --git a/doc/models/order-quantity-unit.md b/doc/models/order-quantity-unit.md index 5983435e..13d68158 100644 --- a/doc/models/order-quantity-unit.md +++ b/doc/models/order-quantity-unit.md @@ -31,9 +31,9 @@ specifies the number of digits after the decimal point for decimal quantities. "volume_unit": "METRIC_LITER", "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 196, - "catalog_object_id": "catalog_object_id6", - "catalog_version": 126 + "precision": 144, + "catalog_object_id": "catalog_object_id0", + "catalog_version": 78 } ``` diff --git a/doc/models/order-return-discount.md b/doc/models/order-return-discount.md index e24cb5b3..202f52bb 100644 --- a/doc/models/order-return-discount.md +++ b/doc/models/order-return-discount.md @@ -31,11 +31,11 @@ order subtotal. ```json { - "uid": "uid0", - "source_discount_uid": "source_discount_uid0", - "catalog_object_id": "catalog_object_id6", - "catalog_version": 126, - "name": "name0" + "uid": "uid2", + "source_discount_uid": "source_discount_uid2", + "catalog_object_id": "catalog_object_id4", + "catalog_version": 188, + "name": "name2" } ``` diff --git a/doc/models/order-return-line-item-modifier.md b/doc/models/order-return-line-item-modifier.md index db52def3..e7450e8d 100644 --- a/doc/models/order-return-line-item-modifier.md +++ b/doc/models/order-return-line-item-modifier.md @@ -24,11 +24,11 @@ A line item modifier being returned. ```json { - "uid": "uid0", - "source_modifier_uid": "source_modifier_uid6", - "catalog_object_id": "catalog_object_id6", - "catalog_version": 126, - "name": "name0" + "uid": "uid4", + "source_modifier_uid": "source_modifier_uid8", + "catalog_object_id": "catalog_object_id8", + "catalog_version": 46, + "name": "name4" } ``` diff --git a/doc/models/order-return-line-item.md b/doc/models/order-return-line-item.md index 73e0db19..42df14ae 100644 --- a/doc/models/order-return-line-item.md +++ b/doc/models/order-return-line-item.md @@ -37,26 +37,26 @@ The line item being returned in an order. ```json { - "uid": "uid0", - "source_line_item_uid": "source_line_item_uid2", - "name": "name0", - "quantity": "quantity6", + "uid": "uid2", + "source_line_item_uid": "source_line_item_uid0", + "name": "name2", + "quantity": "quantity8", "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name8", - "abbreviation": "abbreviation0" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "IMPERIAL_SQUARE_FOOT", - "length_unit": "METRIC_METER", - "volume_unit": "GENERIC_CUP", + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_LITER", "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, "precision": 54, "catalog_object_id": "catalog_object_id0", "catalog_version": 12 }, - "note": "note4" + "note": "note8" } ``` diff --git a/doc/models/order-return-service-charge.md b/doc/models/order-return-service-charge.md index 21b014d6..6b48a206 100644 --- a/doc/models/order-return-service-charge.md +++ b/doc/models/order-return-service-charge.md @@ -34,8 +34,8 @@ Represents the service charge applied to the original order. "uid": "uid0", "source_service_charge_uid": "source_service_charge_uid6", "name": "name0", - "catalog_object_id": "catalog_object_id6", - "catalog_version": 126 + "catalog_object_id": "catalog_object_id4", + "catalog_version": 18 } ``` diff --git a/doc/models/order-return-tax.md b/doc/models/order-return-tax.md index b6535d22..0d88ccc2 100644 --- a/doc/models/order-return-tax.md +++ b/doc/models/order-return-tax.md @@ -29,11 +29,11 @@ order subtotal. ```json { - "uid": "uid0", + "uid": "uid4", "source_tax_uid": "source_tax_uid2", - "catalog_object_id": "catalog_object_id6", - "catalog_version": 126, - "name": "name0" + "catalog_object_id": "catalog_object_id8", + "catalog_version": 124, + "name": "name4" } ``` diff --git a/doc/models/order-return.md b/doc/models/order-return.md index e590a1b3..0dd95af9 100644 --- a/doc/models/order-return.md +++ b/doc/models/order-return.md @@ -24,99 +24,69 @@ The set of line items, service charges, taxes, discounts, tips, and other items ```json { - "uid": "uid0", - "source_order_id": "source_order_id2", + "uid": "uid2", + "source_order_id": "source_order_id0", "return_line_items": [ { - "uid": "uid5", - "source_line_item_uid": "source_line_item_uid7", - "name": "name5", - "quantity": "quantity1", + "uid": "uid0", + "source_line_item_uid": "source_line_item_uid2", + "name": "name0", + "quantity": "quantity6", "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name3", - "abbreviation": "abbreviation5" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "METRIC_SQUARE_CENTIMETER", - "length_unit": "IMPERIAL_MILE", - "volume_unit": "IMPERIAL_CUBIC_FOOT", - "weight_unit": "METRIC_KILOGRAM" + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_LITER", + "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 73, - "catalog_object_id": "catalog_object_id5", - "catalog_version": 249 + "precision": 54, + "catalog_object_id": "catalog_object_id0", + "catalog_version": 12 }, - "note": "note9" - }, + "note": "note4" + } + ], + "return_service_charges": [ { "uid": "uid6", - "source_line_item_uid": "source_line_item_uid6", + "source_service_charge_uid": "source_service_charge_uid0", "name": "name6", - "quantity": "quantity2", - "quantity_unit": { - "measurement_unit": { - "custom_unit": { - "name": "name4", - "abbreviation": "abbreviation6" - }, - "area_unit": "METRIC_SQUARE_METER", - "length_unit": "IMPERIAL_YARD", - "volume_unit": "IMPERIAL_CUBIC_YARD", - "weight_unit": "METRIC_GRAM" - }, - "precision": 74, - "catalog_object_id": "catalog_object_id4", - "catalog_version": 248 - }, - "note": "note8" + "catalog_object_id": "catalog_object_id0", + "catalog_version": 12 }, { - "uid": "uid7", - "source_line_item_uid": "source_line_item_uid5", - "name": "name7", - "quantity": "quantity3", - "quantity_unit": { - "measurement_unit": { - "custom_unit": { - "name": "name5", - "abbreviation": "abbreviation7" - }, - "area_unit": "METRIC_SQUARE_KILOMETER", - "length_unit": "IMPERIAL_FOOT", - "volume_unit": "METRIC_MILLILITER", - "weight_unit": "METRIC_MILLIGRAM" - }, - "precision": 75, - "catalog_object_id": "catalog_object_id3", - "catalog_version": 247 - }, - "note": "note7" + "uid": "uid6", + "source_service_charge_uid": "source_service_charge_uid0", + "name": "name6", + "catalog_object_id": "catalog_object_id0", + "catalog_version": 12 } ], - "return_service_charges": [ + "return_taxes": [ { - "uid": "uid3", - "source_service_charge_uid": "source_service_charge_uid3", - "name": "name3", - "catalog_object_id": "catalog_object_id3", - "catalog_version": 197 + "uid": "uid2", + "source_tax_uid": "source_tax_uid0", + "catalog_object_id": "catalog_object_id4", + "catalog_version": 106, + "name": "name2" }, { - "uid": "uid4", - "source_service_charge_uid": "source_service_charge_uid2", - "name": "name4", - "catalog_object_id": "catalog_object_id2", - "catalog_version": 196 - } - ], - "return_taxes": [ + "uid": "uid2", + "source_tax_uid": "source_tax_uid0", + "catalog_object_id": "catalog_object_id4", + "catalog_version": 106, + "name": "name2" + }, { - "uid": "uid6", - "source_tax_uid": "source_tax_uid4", - "catalog_object_id": "catalog_object_id0", - "catalog_version": 116, - "name": "name6" + "uid": "uid2", + "source_tax_uid": "source_tax_uid0", + "catalog_object_id": "catalog_object_id4", + "catalog_version": 106, + "name": "name2" } ] } diff --git a/doc/models/order-service-charge.md b/doc/models/order-service-charge.md index 6c74d5ef..ff791ce4 100644 --- a/doc/models/order-service-charge.md +++ b/doc/models/order-service-charge.md @@ -32,11 +32,11 @@ Represents a service charge applied to an order. ```json { - "uid": "uid0", - "name": "name0", + "uid": "uid2", + "name": "name2", "catalog_object_id": "catalog_object_id6", - "catalog_version": 126, - "percentage": "percentage8" + "catalog_version": 104, + "percentage": "percentage0" } ``` diff --git a/doc/models/order-source.md b/doc/models/order-source.md index 75ec97a9..1327450d 100644 --- a/doc/models/order-source.md +++ b/doc/models/order-source.md @@ -17,7 +17,7 @@ Represents the origination details of an order. ```json { - "name": "name0" + "name": "name2" } ``` diff --git a/doc/models/order-updated.md b/doc/models/order-updated.md index c986ffad..57faf748 100644 --- a/doc/models/order-updated.md +++ b/doc/models/order-updated.md @@ -20,11 +20,11 @@ ```json { - "order_id": "order_id6", - "version": 172, - "location_id": "location_id4", - "state": "OPEN", - "created_at": "created_at2" + "order_id": "order_id2", + "version": 162, + "location_id": "location_id2", + "state": "CANCELED", + "created_at": "created_at6" } ``` diff --git a/doc/models/order.md b/doc/models/order.md index b1a29eff..f875cc18 100644 --- a/doc/models/order.md +++ b/doc/models/order.md @@ -52,79 +52,35 @@ itemization data. ```json { - "id": "id0", - "location_id": "location_id4", - "reference_id": "reference_id2", + "id": "id2", + "location_id": "location_id6", + "reference_id": "reference_id0", "source": { "name": "name4" }, - "customer_id": "customer_id8", + "customer_id": "customer_id0", "line_items": [ { - "uid": "uid9", - "name": "name9", - "quantity": "quantity5", + "uid": "uid8", + "name": "name8", + "quantity": "quantity4", "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name7", - "abbreviation": "abbreviation9" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "IMPERIAL_SQUARE_YARD", - "length_unit": "METRIC_CENTIMETER", - "volume_unit": "GENERIC_PINT", - "weight_unit": "METRIC_KILOGRAM" + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_LITER", + "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 199, - "catalog_object_id": "catalog_object_id9", - "catalog_version": 133 - }, - "note": "note5", - "catalog_object_id": "catalog_object_id7" - }, - { - "uid": "uid0", - "name": "name0", - "quantity": "quantity6", - "quantity_unit": { - "measurement_unit": { - "custom_unit": { - "name": "name8", - "abbreviation": "abbreviation0" - }, - "area_unit": "IMPERIAL_SQUARE_MILE", - "length_unit": "METRIC_MILLIMETER", - "volume_unit": "GENERIC_QUART", - "weight_unit": "METRIC_GRAM" - }, - "precision": 200, + "precision": 54, "catalog_object_id": "catalog_object_id0", - "catalog_version": 134 - }, - "note": "note6", - "catalog_object_id": "catalog_object_id6" - }, - { - "uid": "uid1", - "name": "name1", - "quantity": "quantity7", - "quantity_unit": { - "measurement_unit": { - "custom_unit": { - "name": "name9", - "abbreviation": "abbreviation1" - }, - "area_unit": "METRIC_SQUARE_CENTIMETER", - "length_unit": "IMPERIAL_MILE", - "volume_unit": "GENERIC_GALLON", - "weight_unit": "METRIC_MILLIGRAM" - }, - "precision": 201, - "catalog_object_id": "catalog_object_id1", - "catalog_version": 135 + "catalog_version": 12 }, - "note": "note7", - "catalog_object_id": "catalog_object_id5" + "note": "note4", + "catalog_object_id": "catalog_object_id2" } ] } diff --git a/doc/models/pagination-cursor.md b/doc/models/pagination-cursor.md new file mode 100644 index 00000000..21df0134 --- /dev/null +++ b/doc/models/pagination-cursor.md @@ -0,0 +1,24 @@ + +# Pagination Cursor + +Used *internally* to encapsulate pagination details. The resulting proto will be base62 encoded +in order to produce a cursor that can be used externally. + +## Structure + +`PaginationCursor` + +## Fields + +| Name | Type | Tags | Description | +| --- | --- | --- | --- | +| `orderValue` | `string \| null \| undefined` | Optional | The ID of the last resource in the current page. The page can be in an ascending or
descending order | + +## Example (as JSON) + +```json +{ + "order_value": "order_value4" +} +``` + diff --git a/doc/models/pause-subscription-request.md b/doc/models/pause-subscription-request.md index 01a5941e..42eaf4d2 100644 --- a/doc/models/pause-subscription-request.md +++ b/doc/models/pause-subscription-request.md @@ -22,11 +22,11 @@ Defines input parameters in a request to the ```json { - "pause_effective_date": "pause_effective_date0", - "pause_cycle_duration": 86, - "resume_effective_date": "resume_effective_date2", + "pause_effective_date": "pause_effective_date2", + "pause_cycle_duration": 98, + "resume_effective_date": "resume_effective_date0", "resume_change_timing": "IMMEDIATE", - "pause_reason": "pause_reason8" + "pause_reason": "pause_reason6" } ``` diff --git a/doc/models/pause-subscription-response.md b/doc/models/pause-subscription-response.md index 1e4d5706..08cf22e9 100644 --- a/doc/models/pause-subscription-response.md +++ b/doc/models/pause-subscription-response.md @@ -27,13 +27,25 @@ Defines output parameters in a response from the "type": "PAUSE", "phases": [ { - "uid": "uid6", - "ordinal": 186, - "order_template_id": "order_template_id8", - "plan_phase_uid": "plan_phase_uid2" + "uid": "uid0", + "ordinal": 78, + "order_template_id": "order_template_id2", + "plan_phase_uid": "plan_phase_uid6" + }, + { + "uid": "uid0", + "ordinal": 78, + "order_template_id": "order_template_id2", + "plan_phase_uid": "plan_phase_uid6" + }, + { + "uid": "uid0", + "ordinal": 78, + "order_template_id": "order_template_id2", + "plan_phase_uid": "plan_phase_uid6" } ], - "new_plan_variation_id": "new_plan_variation_id9" + "new_plan_variation_id": "new_plan_variation_id8" } ], "subscription": { @@ -60,23 +72,11 @@ Defines output parameters in a response from the "version": 1 }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/pay-order-request.md b/doc/models/pay-order-request.md index 72f7fce7..491e5ed7 100644 --- a/doc/models/pay-order-request.md +++ b/doc/models/pay-order-request.md @@ -25,7 +25,7 @@ Defines the fields that are included in requests to the "EnZdNAlWCmfh6Mt5FMNST1o7taB", "0LRiVlbXVwe8ozu4KbZxd12mvaB" ], - "order_version": 90 + "order_version": 102 } ``` diff --git a/doc/models/pay-order-response.md b/doc/models/pay-order-response.md index 60b9ba1f..3b5bc70a 100644 --- a/doc/models/pay-order-response.md +++ b/doc/models/pay-order-response.md @@ -55,20 +55,20 @@ Defines the fields that are included in the response body of a request to the "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name9", - "abbreviation": "abbreviation1" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "METRIC_SQUARE_CENTIMETER", - "length_unit": "IMPERIAL_MILE", - "volume_unit": "GENERIC_FLUID_OUNCE", - "weight_unit": "METRIC_KILOGRAM" + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_LITER", + "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 201, - "catalog_object_id": "catalog_object_id1", - "catalog_version": 135 + "precision": 54, + "catalog_object_id": "catalog_object_id0", + "catalog_version": 12 }, - "note": "note3", - "catalog_object_id": "catalog_object_id5" + "note": "note4", + "catalog_object_id": "catalog_object_id2" }, { "base_price_money": { @@ -101,20 +101,20 @@ Defines the fields that are included in the response body of a request to the "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name8", - "abbreviation": "abbreviation0" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "IMPERIAL_SQUARE_MILE", - "length_unit": "METRIC_MILLIMETER", + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", "volume_unit": "METRIC_LITER", "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 200, + "precision": 54, "catalog_object_id": "catalog_object_id0", - "catalog_version": 134 + "catalog_version": 12 }, "note": "note4", - "catalog_object_id": "catalog_object_id6" + "catalog_object_id": "catalog_object_id2" } ], "location_id": "P3CCK6HSNDAS7", @@ -214,23 +214,11 @@ Defines the fields that are included in the response body of a request to the "customer_id": "customer_id4" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/payment-balance-activity-app-fee-refund-detail.md b/doc/models/payment-balance-activity-app-fee-refund-detail.md index c76f3619..945613e7 100644 --- a/doc/models/payment-balance-activity-app-fee-refund-detail.md +++ b/doc/models/payment-balance-activity-app-fee-refund-detail.md @@ -17,9 +17,9 @@ ```json { - "payment_id": "payment_id0", - "refund_id": "refund_id4", - "location_id": "location_id4" + "payment_id": "payment_id4", + "refund_id": "refund_id8", + "location_id": "location_id8" } ``` diff --git a/doc/models/payment-balance-activity-automatic-savings-detail.md b/doc/models/payment-balance-activity-automatic-savings-detail.md index 04437a8a..8aeb8d57 100644 --- a/doc/models/payment-balance-activity-automatic-savings-detail.md +++ b/doc/models/payment-balance-activity-automatic-savings-detail.md @@ -16,8 +16,8 @@ ```json { - "payment_id": "payment_id0", - "payout_id": "payout_id6" + "payment_id": "payment_id4", + "payout_id": "payout_id0" } ``` diff --git a/doc/models/payment-balance-activity-automatic-savings-reversed-detail.md b/doc/models/payment-balance-activity-automatic-savings-reversed-detail.md index 94558bfd..82a0a947 100644 --- a/doc/models/payment-balance-activity-automatic-savings-reversed-detail.md +++ b/doc/models/payment-balance-activity-automatic-savings-reversed-detail.md @@ -16,8 +16,8 @@ ```json { - "payment_id": "payment_id0", - "payout_id": "payout_id6" + "payment_id": "payment_id6", + "payout_id": "payout_id2" } ``` diff --git a/doc/models/payment-balance-activity-charge-detail.md b/doc/models/payment-balance-activity-charge-detail.md index a97312ad..95c2fceb 100644 --- a/doc/models/payment-balance-activity-charge-detail.md +++ b/doc/models/payment-balance-activity-charge-detail.md @@ -15,7 +15,7 @@ ```json { - "payment_id": "payment_id0" + "payment_id": "payment_id2" } ``` diff --git a/doc/models/payment-balance-activity-deposit-fee-detail.md b/doc/models/payment-balance-activity-deposit-fee-detail.md index 7ffe6321..6012f8b1 100644 --- a/doc/models/payment-balance-activity-deposit-fee-detail.md +++ b/doc/models/payment-balance-activity-deposit-fee-detail.md @@ -15,7 +15,7 @@ ```json { - "payout_id": "payout_id6" + "payout_id": "payout_id2" } ``` diff --git a/doc/models/payment-balance-activity-dispute-detail.md b/doc/models/payment-balance-activity-dispute-detail.md index 45f0de79..3ecbac92 100644 --- a/doc/models/payment-balance-activity-dispute-detail.md +++ b/doc/models/payment-balance-activity-dispute-detail.md @@ -16,8 +16,8 @@ ```json { - "payment_id": "payment_id0", - "dispute_id": "dispute_id2" + "payment_id": "payment_id2", + "dispute_id": "dispute_id4" } ``` diff --git a/doc/models/payment-balance-activity-fee-detail.md b/doc/models/payment-balance-activity-fee-detail.md index 4fb8370d..a198d949 100644 --- a/doc/models/payment-balance-activity-fee-detail.md +++ b/doc/models/payment-balance-activity-fee-detail.md @@ -15,7 +15,7 @@ ```json { - "payment_id": "payment_id0" + "payment_id": "payment_id2" } ``` diff --git a/doc/models/payment-balance-activity-free-processing-detail.md b/doc/models/payment-balance-activity-free-processing-detail.md index 876041fb..25c6e276 100644 --- a/doc/models/payment-balance-activity-free-processing-detail.md +++ b/doc/models/payment-balance-activity-free-processing-detail.md @@ -15,7 +15,7 @@ ```json { - "payment_id": "payment_id0" + "payment_id": "payment_id8" } ``` diff --git a/doc/models/payment-balance-activity-hold-adjustment-detail.md b/doc/models/payment-balance-activity-hold-adjustment-detail.md index 1881c415..4f34a344 100644 --- a/doc/models/payment-balance-activity-hold-adjustment-detail.md +++ b/doc/models/payment-balance-activity-hold-adjustment-detail.md @@ -15,7 +15,7 @@ ```json { - "payment_id": "payment_id0" + "payment_id": "payment_id6" } ``` diff --git a/doc/models/payment-balance-activity-open-dispute-detail.md b/doc/models/payment-balance-activity-open-dispute-detail.md index ee228253..365fb6da 100644 --- a/doc/models/payment-balance-activity-open-dispute-detail.md +++ b/doc/models/payment-balance-activity-open-dispute-detail.md @@ -16,8 +16,8 @@ ```json { - "payment_id": "payment_id0", - "dispute_id": "dispute_id2" + "payment_id": "payment_id6", + "dispute_id": "dispute_id8" } ``` diff --git a/doc/models/payment-balance-activity-other-adjustment-detail.md b/doc/models/payment-balance-activity-other-adjustment-detail.md index 707c3c05..bab5cd90 100644 --- a/doc/models/payment-balance-activity-other-adjustment-detail.md +++ b/doc/models/payment-balance-activity-other-adjustment-detail.md @@ -15,7 +15,7 @@ ```json { - "payment_id": "payment_id0" + "payment_id": "payment_id4" } ``` diff --git a/doc/models/payment-balance-activity-other-detail.md b/doc/models/payment-balance-activity-other-detail.md index 0a0b77fb..780ccde4 100644 --- a/doc/models/payment-balance-activity-other-detail.md +++ b/doc/models/payment-balance-activity-other-detail.md @@ -15,7 +15,7 @@ ```json { - "payment_id": "payment_id0" + "payment_id": "payment_id4" } ``` diff --git a/doc/models/payment-balance-activity-refund-detail.md b/doc/models/payment-balance-activity-refund-detail.md index e63f454b..31375147 100644 --- a/doc/models/payment-balance-activity-refund-detail.md +++ b/doc/models/payment-balance-activity-refund-detail.md @@ -16,8 +16,8 @@ ```json { - "payment_id": "payment_id0", - "refund_id": "refund_id4" + "payment_id": "payment_id6", + "refund_id": "refund_id0" } ``` diff --git a/doc/models/payment-balance-activity-reserve-hold-detail.md b/doc/models/payment-balance-activity-reserve-hold-detail.md index e0e4b9ce..63bb8263 100644 --- a/doc/models/payment-balance-activity-reserve-hold-detail.md +++ b/doc/models/payment-balance-activity-reserve-hold-detail.md @@ -15,7 +15,7 @@ ```json { - "payment_id": "payment_id0" + "payment_id": "payment_id8" } ``` diff --git a/doc/models/payment-balance-activity-reserve-release-detail.md b/doc/models/payment-balance-activity-reserve-release-detail.md index 5059836d..2efd9056 100644 --- a/doc/models/payment-balance-activity-reserve-release-detail.md +++ b/doc/models/payment-balance-activity-reserve-release-detail.md @@ -15,7 +15,7 @@ ```json { - "payment_id": "payment_id0" + "payment_id": "payment_id6" } ``` diff --git a/doc/models/payment-balance-activity-square-capital-payment-detail.md b/doc/models/payment-balance-activity-square-capital-payment-detail.md index 9d2750c3..b7fb83b8 100644 --- a/doc/models/payment-balance-activity-square-capital-payment-detail.md +++ b/doc/models/payment-balance-activity-square-capital-payment-detail.md @@ -15,7 +15,7 @@ ```json { - "payment_id": "payment_id0" + "payment_id": "payment_id6" } ``` diff --git a/doc/models/payment-balance-activity-square-capital-reversed-payment-detail.md b/doc/models/payment-balance-activity-square-capital-reversed-payment-detail.md index 0f9ce00b..d873bed5 100644 --- a/doc/models/payment-balance-activity-square-capital-reversed-payment-detail.md +++ b/doc/models/payment-balance-activity-square-capital-reversed-payment-detail.md @@ -15,7 +15,7 @@ ```json { - "payment_id": "payment_id0" + "payment_id": "payment_id8" } ``` diff --git a/doc/models/payment-balance-activity-tax-on-fee-detail.md b/doc/models/payment-balance-activity-tax-on-fee-detail.md index 730f0885..f081b232 100644 --- a/doc/models/payment-balance-activity-tax-on-fee-detail.md +++ b/doc/models/payment-balance-activity-tax-on-fee-detail.md @@ -17,7 +17,7 @@ ```json { "payment_id": "payment_id0", - "tax_rate_description": "tax_rate_description2" + "tax_rate_description": "tax_rate_description8" } ``` diff --git a/doc/models/payment-balance-activity-third-party-fee-detail.md b/doc/models/payment-balance-activity-third-party-fee-detail.md index 2c3c3f6d..e148d00d 100644 --- a/doc/models/payment-balance-activity-third-party-fee-detail.md +++ b/doc/models/payment-balance-activity-third-party-fee-detail.md @@ -15,7 +15,7 @@ ```json { - "payment_id": "payment_id0" + "payment_id": "payment_id8" } ``` diff --git a/doc/models/payment-balance-activity-third-party-fee-refund-detail.md b/doc/models/payment-balance-activity-third-party-fee-refund-detail.md index d3f6a5d8..21e137e8 100644 --- a/doc/models/payment-balance-activity-third-party-fee-refund-detail.md +++ b/doc/models/payment-balance-activity-third-party-fee-refund-detail.md @@ -16,8 +16,8 @@ ```json { - "payment_id": "payment_id0", - "refund_id": "refund_id4" + "payment_id": "payment_id6", + "refund_id": "refund_id0" } ``` diff --git a/doc/models/payment-link-related-resources.md b/doc/models/payment-link-related-resources.md index efa2923d..b1393a8a 100644 --- a/doc/models/payment-link-related-resources.md +++ b/doc/models/payment-link-related-resources.md @@ -18,111 +18,111 @@ { "orders": [ { - "id": "id6", - "location_id": "location_id0", - "reference_id": "reference_id6", + "id": "id2", + "location_id": "location_id6", + "reference_id": "reference_id0", "source": { - "name": "name8" + "name": "name4" }, - "customer_id": "customer_id4", + "customer_id": "customer_id0", "line_items": [ { - "uid": "uid3", - "name": "name3", - "quantity": "quantity9", + "uid": "uid8", + "name": "name8", + "quantity": "quantity4", "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name1", - "abbreviation": "abbreviation3" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "METRIC_SQUARE_CENTIMETER", - "length_unit": "IMPERIAL_MILE", - "volume_unit": "METRIC_MILLILITER", - "weight_unit": "IMPERIAL_POUND" + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_LITER", + "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 217, - "catalog_object_id": "catalog_object_id7", - "catalog_version": 105 + "precision": 54, + "catalog_object_id": "catalog_object_id0", + "catalog_version": 12 }, - "note": "note1", - "catalog_object_id": "catalog_object_id3" - } - ] - }, - { - "id": "id7", - "location_id": "location_id1", - "reference_id": "reference_id5", - "source": { - "name": "name7" - }, - "customer_id": "customer_id5", - "line_items": [ + "note": "note4", + "catalog_object_id": "catalog_object_id2" + }, { - "uid": "uid2", - "name": "name2", - "quantity": "quantity8", + "uid": "uid8", + "name": "name8", + "quantity": "quantity4", "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name0", - "abbreviation": "abbreviation2" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "IMPERIAL_SQUARE_MILE", - "length_unit": "METRIC_MILLIMETER", - "volume_unit": "IMPERIAL_CUBIC_YARD", - "weight_unit": "IMPERIAL_STONE" + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_LITER", + "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 216, - "catalog_object_id": "catalog_object_id8", - "catalog_version": 106 + "precision": 54, + "catalog_object_id": "catalog_object_id0", + "catalog_version": 12 }, - "note": "note2", - "catalog_object_id": "catalog_object_id4" - }, + "note": "note4", + "catalog_object_id": "catalog_object_id2" + } + ] + }, + { + "id": "id2", + "location_id": "location_id6", + "reference_id": "reference_id0", + "source": { + "name": "name4" + }, + "customer_id": "customer_id0", + "line_items": [ { - "uid": "uid3", - "name": "name3", - "quantity": "quantity9", + "uid": "uid8", + "name": "name8", + "quantity": "quantity4", "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name1", - "abbreviation": "abbreviation3" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "METRIC_SQUARE_CENTIMETER", - "length_unit": "IMPERIAL_MILE", - "volume_unit": "METRIC_MILLILITER", - "weight_unit": "IMPERIAL_POUND" + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_LITER", + "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 217, - "catalog_object_id": "catalog_object_id7", - "catalog_version": 105 + "precision": 54, + "catalog_object_id": "catalog_object_id0", + "catalog_version": 12 }, - "note": "note1", - "catalog_object_id": "catalog_object_id3" + "note": "note4", + "catalog_object_id": "catalog_object_id2" }, { - "uid": "uid4", - "name": "name4", - "quantity": "quantity0", + "uid": "uid8", + "name": "name8", + "quantity": "quantity4", "quantity_unit": { "measurement_unit": { "custom_unit": { "name": "name2", "abbreviation": "abbreviation4" }, - "area_unit": "METRIC_SQUARE_METER", - "length_unit": "IMPERIAL_YARD", + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", "volume_unit": "METRIC_LITER", "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 218, - "catalog_object_id": "catalog_object_id6", - "catalog_version": 104 + "precision": 54, + "catalog_object_id": "catalog_object_id0", + "catalog_version": 12 }, - "note": "note0", + "note": "note4", "catalog_object_id": "catalog_object_id2" } ] @@ -130,37 +130,55 @@ ], "subscription_plans": [ { - "type": "ITEM_OPTION_VAL", - "id": "id6", - "updated_at": "updated_at2", - "version": 126, + "type": "QUICK_AMOUNTS_SETTINGS", + "id": "id4", + "updated_at": "updated_at0", + "version": 112, "is_deleted": false, "custom_attribute_values": { "key0": { - "name": "name7", - "string_value": "string_value1", - "custom_attribute_definition_id": "custom_attribute_definition_id5", - "type": "BOOLEAN", - "number_value": "number_value7" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" + }, + "key1": { + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" + }, + "key2": { + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" } }, "catalog_v1_ids": [ { - "catalog_v1_id": "catalog_v1_id0", - "location_id": "location_id0" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" + }, + { + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" }, { - "catalog_v1_id": "catalog_v1_id1", - "location_id": "location_id1" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" } ] }, { - "type": "ITEM_OPTION", - "id": "id7", - "updated_at": "updated_at3", - "version": 127, - "is_deleted": true, + "type": "QUICK_AMOUNTS_SETTINGS", + "id": "id4", + "updated_at": "updated_at0", + "version": 112, + "is_deleted": false, "custom_attribute_values": { "key0": { "name": "name8", @@ -170,32 +188,32 @@ "number_value": "number_value8" }, "key1": { - "name": "name7", - "string_value": "string_value1", - "custom_attribute_definition_id": "custom_attribute_definition_id5", - "type": "BOOLEAN", - "number_value": "number_value7" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" }, "key2": { - "name": "name6", - "string_value": "string_value0", - "custom_attribute_definition_id": "custom_attribute_definition_id6", - "type": "NUMBER", - "number_value": "number_value6" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" } }, "catalog_v1_ids": [ { - "catalog_v1_id": "catalog_v1_id1", - "location_id": "location_id1" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" }, { - "catalog_v1_id": "catalog_v1_id2", - "location_id": "location_id2" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" }, { - "catalog_v1_id": "catalog_v1_id3", - "location_id": "location_id3" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" } ] } diff --git a/doc/models/payment-link.md b/doc/models/payment-link.md index defac400..84dcfe16 100644 --- a/doc/models/payment-link.md +++ b/doc/models/payment-link.md @@ -25,18 +25,18 @@ ```json { - "id": "id0", - "version": 172, - "description": "description0", - "order_id": "order_id6", + "id": "id2", + "version": 64, + "description": "description8", + "order_id": "order_id4", "checkout_options": { "allow_tipping": false, "custom_fields": [ { - "title": "title9" + "title": "title8" }, { - "title": "title0" + "title": "title8" } ], "subscription_plan_id": "subscription_plan_id8", diff --git a/doc/models/payment-options.md b/doc/models/payment-options.md index 7ebe97b3..816f2f82 100644 --- a/doc/models/payment-options.md +++ b/doc/models/payment-options.md @@ -19,7 +19,7 @@ ```json { "autocomplete": false, - "delay_duration": "delay_duration2", + "delay_duration": "delay_duration8", "accept_partial_authorization": false, "delay_action": "CANCEL" } diff --git a/doc/models/payment-refund.md b/doc/models/payment-refund.md index 8c4dbd90..b320b83e 100644 --- a/doc/models/payment-refund.md +++ b/doc/models/payment-refund.md @@ -32,21 +32,21 @@ the original payment and the amount of money refunded. ```json { - "id": "id0", - "status": "status8", - "location_id": "location_id4", + "id": "id4", + "status": "status6", + "location_id": "location_id8", "unlinked": false, - "destination_type": "destination_type4", + "destination_type": "destination_type8", "destination_details": { "card_details": { "card": { - "id": "id0", - "card_brand": "FELICA", - "last_4": "last_42", - "exp_month": 2, - "exp_year": 38 + "id": "id6", + "card_brand": "OTHER_BRAND", + "last_4": "last_48", + "exp_month": 228, + "exp_year": 68 }, - "entry_method": "entry_method2" + "entry_method": "entry_method8" } }, "amount_money": { diff --git a/doc/models/payment.md b/doc/models/payment.md index b7339741..3e5ed473 100644 --- a/doc/models/payment.md +++ b/doc/models/payment.md @@ -57,8 +57,8 @@ Represents a payment processed by the Square API. ```json { - "id": "id0", - "created_at": "created_at2", + "id": "id8", + "created_at": "created_at6", "updated_at": "updated_at4", "amount_money": { "amount": 186, diff --git a/doc/models/payout-entry.md b/doc/models/payout-entry.md index c3f96ff6..7ece1659 100644 --- a/doc/models/payout-entry.md +++ b/doc/models/payout-entry.md @@ -46,10 +46,10 @@ The total amount of the payout will equal the sum of the payout entries for a ba ```json { - "id": "id0", - "payout_id": "payout_id6", - "effective_at": "effective_at6", - "type": "CHARGE", + "id": "id8", + "payout_id": "payout_id4", + "effective_at": "effective_at8", + "type": "DEPOSIT_FEE", "gross_amount_money": { "amount": 186, "currency": "BWP" diff --git a/doc/models/payout-fee.md b/doc/models/payout-fee.md index d218baae..25bb165e 100644 --- a/doc/models/payout-fee.md +++ b/doc/models/payout-fee.md @@ -23,7 +23,7 @@ Represents a payout fee that can incur as part of a payout. "amount": 186, "currency": "TZS" }, - "effective_at": "effective_at6", + "effective_at": "effective_at0", "type": "TRANSFER_FEE" } ``` diff --git a/doc/models/payout.md b/doc/models/payout.md index 7f7f370e..93e85545 100644 --- a/doc/models/payout.md +++ b/doc/models/payout.md @@ -29,11 +29,11 @@ external bank account or to the Square balance. ```json { - "id": "id0", - "status": "PAID", - "location_id": "location_id4", + "id": "id4", + "status": "SENT", + "location_id": "location_id8", "created_at": "created_at2", - "updated_at": "updated_at4", + "updated_at": "updated_at0", "amount_money": { "amount": 186, "currency": "TZS" diff --git a/doc/models/phase-input.md b/doc/models/phase-input.md index bc29dc13..016fb9e5 100644 --- a/doc/models/phase-input.md +++ b/doc/models/phase-input.md @@ -18,8 +18,8 @@ Represents the arguments used to construct a new phase. ```json { - "ordinal": 80, - "order_template_id": "order_template_id2" + "ordinal": 234, + "order_template_id": "order_template_id4" } ``` diff --git a/doc/models/phase.md b/doc/models/phase.md index a80c74d8..e743504b 100644 --- a/doc/models/phase.md +++ b/doc/models/phase.md @@ -20,10 +20,10 @@ Represents a phase, which can override subscription phases as defined by plan_id ```json { - "uid": "uid0", - "ordinal": 80, - "order_template_id": "order_template_id2", - "plan_phase_uid": "plan_phase_uid6" + "uid": "uid4", + "ordinal": 12, + "order_template_id": "order_template_id6", + "plan_phase_uid": "plan_phase_uid0" } ``` diff --git a/doc/models/processing-fee.md b/doc/models/processing-fee.md index 46f877ba..174c75f6 100644 --- a/doc/models/processing-fee.md +++ b/doc/models/processing-fee.md @@ -19,8 +19,8 @@ Represents the Square processing fee. ```json { - "effective_at": "effective_at6", - "type": "type0", + "effective_at": "effective_at2", + "type": "type8", "amount_money": { "amount": 186, "currency": "TZS" diff --git a/doc/models/publish-invoice-response.md b/doc/models/publish-invoice-response.md index 75c9035f..e8d3a6e9 100644 --- a/doc/models/publish-invoice-response.md +++ b/doc/models/publish-invoice-response.md @@ -95,23 +95,11 @@ Describes a `PublishInvoice` response. "version": 1 }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/qr-code-options.md b/doc/models/qr-code-options.md index d463b74f..7e1743a2 100644 --- a/doc/models/qr-code-options.md +++ b/doc/models/qr-code-options.md @@ -19,9 +19,9 @@ Fields to describe the action that displays QR-Codes. ```json { - "title": "title4", - "body": "body6", - "barcode_contents": "barcode_contents8" + "title": "title8", + "body": "body8", + "barcode_contents": "barcode_contents4" } ``` diff --git a/doc/models/quantity-ratio.md b/doc/models/quantity-ratio.md index 29c0f30e..4b856a05 100644 --- a/doc/models/quantity-ratio.md +++ b/doc/models/quantity-ratio.md @@ -18,8 +18,8 @@ A whole number or unreduced fractional ratio. ```json { - "quantity": 68, - "quantity_denominator": 0 + "quantity": 86, + "quantity_denominator": 18 } ``` diff --git a/doc/models/quick-pay.md b/doc/models/quick-pay.md index 6dd05d47..ffefd5c0 100644 --- a/doc/models/quick-pay.md +++ b/doc/models/quick-pay.md @@ -21,12 +21,12 @@ see [Quick Pay Checkout](https://developer.squareup.com/docs/checkout-api/quick- ```json { - "name": "name0", + "name": "name8", "price_money": { "amount": 202, "currency": "CNY" }, - "location_id": "location_id4" + "location_id": "location_id2" } ``` diff --git a/doc/models/range.md b/doc/models/range.md index 88bf3b19..60c0b91c 100644 --- a/doc/models/range.md +++ b/doc/models/range.md @@ -18,7 +18,7 @@ The range of a number value between the specified lower and upper bounds. ```json { - "min": "min2", + "min": "min8", "max": "max0" } ``` diff --git a/doc/models/receipt-options.md b/doc/models/receipt-options.md index 81e78e00..a722d9e2 100644 --- a/doc/models/receipt-options.md +++ b/doc/models/receipt-options.md @@ -19,7 +19,7 @@ Describes receipt action fields. ```json { - "payment_id": "payment_id0", + "payment_id": "payment_id6", "print_only": false, "is_duplicate": false } diff --git a/doc/models/redeem-loyalty-reward-response.md b/doc/models/redeem-loyalty-reward-response.md index 8845ac99..39a51353 100644 --- a/doc/models/redeem-loyalty-reward-response.md +++ b/doc/models/redeem-loyalty-reward-response.md @@ -31,44 +31,38 @@ A response that includes the `LoyaltyEvent` published for redeeming the reward. "source": "LOYALTY_API", "type": "REDEEM_REWARD", "accumulate_points": { - "loyalty_program_id": "loyalty_program_id2", - "points": 224, - "order_id": "order_id4" + "loyalty_program_id": "loyalty_program_id8", + "points": 118, + "order_id": "order_id8" }, "create_reward": { "loyalty_program_id": "loyalty_program_id2", "reward_id": "reward_id6", - "points": 220 + "points": 90 }, "delete_reward": { "loyalty_program_id": "loyalty_program_id4", "reward_id": "reward_id8", - "points": 26 + "points": 104 }, "adjust_points": { - "loyalty_program_id": "loyalty_program_id8", - "points": 246, - "reason": "reason6" + "loyalty_program_id": "loyalty_program_id2", + "points": 96, + "reason": "reason2" } }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/refund-payment-request.md b/doc/models/refund-payment-request.md index 6110be82..c19cd574 100644 --- a/doc/models/refund-payment-request.md +++ b/doc/models/refund-payment-request.md @@ -38,9 +38,9 @@ Describes a request to refund a payment using [RefundPayment](../../doc/api/refu "idempotency_key": "9b7f2dcf-49da-4411-b23e-a2d6af21333a", "payment_id": "R2B3Z8WMVt3EAmzYWLZvz7Y69EbZY", "reason": "Example", - "destination_id": "destination_id0", + "destination_id": "destination_id6", "unlinked": false, - "location_id": "location_id4" + "location_id": "location_id8" } ``` diff --git a/doc/models/refund-payment-response.md b/doc/models/refund-payment-response.md index d0ff547f..2e66db2a 100644 --- a/doc/models/refund-payment-response.md +++ b/doc/models/refund-payment-response.md @@ -45,33 +45,27 @@ present, or it might be present with a status of `FAILED`. "card_details": { "card": { "id": "id6", - "card_brand": "SQUARE_GIFT_CARD", + "card_brand": "OTHER_BRAND", "last_4": "last_48", - "exp_month": 208, - "exp_year": 88 + "exp_month": 228, + "exp_year": 68 }, "entry_method": "entry_method8" } } }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/refund.md b/doc/models/refund.md index 787189e8..f24fd3e4 100644 --- a/doc/models/refund.md +++ b/doc/models/refund.md @@ -26,12 +26,12 @@ Represents a refund processed for a Square transaction. ```json { - "id": "id0", - "location_id": "location_id4", - "transaction_id": "transaction_id8", - "tender_id": "tender_id8", - "created_at": "created_at2", - "reason": "reason4", + "id": "id6", + "location_id": "location_id0", + "transaction_id": "transaction_id4", + "tender_id": "tender_id4", + "created_at": "created_at6", + "reason": "reason8", "amount_money": { "amount": 186, "currency": "TZS" @@ -43,31 +43,31 @@ Represents a refund processed for a Square transaction. }, "additional_recipients": [ { - "location_id": "location_id3", - "description": "description9", + "location_id": "location_id0", + "description": "description6", "amount_money": { - "amount": 83, - "currency": "ZAR" + "amount": 186, + "currency": "TZS" }, - "receivable_id": "receivable_id9" + "receivable_id": "receivable_id6" }, { - "location_id": "location_id4", - "description": "description0", + "location_id": "location_id0", + "description": "description6", "amount_money": { - "amount": 84, - "currency": "ZMK" + "amount": 186, + "currency": "TZS" }, - "receivable_id": "receivable_id0" + "receivable_id": "receivable_id6" }, { - "location_id": "location_id5", - "description": "description1", + "location_id": "location_id0", + "description": "description6", "amount_money": { - "amount": 85, - "currency": "ZMW" + "amount": 186, + "currency": "TZS" }, - "receivable_id": "receivable_id1" + "receivable_id": "receivable_id6" } ] } diff --git a/doc/models/register-domain-response.md b/doc/models/register-domain-response.md index 24404cc9..ccb68b19 100644 --- a/doc/models/register-domain-response.md +++ b/doc/models/register-domain-response.md @@ -24,22 +24,22 @@ Either `errors` or `status` are present in a given response (never both). "status": "VERIFIED", "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/remove-group-from-customer-response.md b/doc/models/remove-group-from-customer-response.md index 6a3b4384..1dd322f4 100644 --- a/doc/models/remove-group-from-customer-response.md +++ b/doc/models/remove-group-from-customer-response.md @@ -20,23 +20,17 @@ endpoint. ```json { "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/renew-token-response.md b/doc/models/renew-token-response.md index a12cdb71..52187785 100644 --- a/doc/models/renew-token-response.md +++ b/doc/models/renew-token-response.md @@ -25,7 +25,7 @@ "expires_at": "2006-01-02T15:04:05Z", "merchant_id": "MERCHANT_ID", "token_type": "bearer", - "subscription_id": "subscription_id0" + "subscription_id": "subscription_id8" } ``` diff --git a/doc/models/resume-subscription-request.md b/doc/models/resume-subscription-request.md index f105895a..dd902b04 100644 --- a/doc/models/resume-subscription-request.md +++ b/doc/models/resume-subscription-request.md @@ -19,7 +19,7 @@ Defines input parameters in a request to the ```json { - "resume_effective_date": "resume_effective_date2", + "resume_effective_date": "resume_effective_date8", "resume_change_timing": "IMMEDIATE" } ``` diff --git a/doc/models/resume-subscription-response.md b/doc/models/resume-subscription-response.md index 4df6df71..817ffd2e 100644 --- a/doc/models/resume-subscription-response.md +++ b/doc/models/resume-subscription-response.md @@ -27,13 +27,25 @@ Defines output parameters in a response from the "type": "RESUME", "phases": [ { - "uid": "uid6", - "ordinal": 186, - "order_template_id": "order_template_id8", - "plan_phase_uid": "plan_phase_uid2" + "uid": "uid0", + "ordinal": 78, + "order_template_id": "order_template_id2", + "plan_phase_uid": "plan_phase_uid6" + }, + { + "uid": "uid0", + "ordinal": 78, + "order_template_id": "order_template_id2", + "plan_phase_uid": "plan_phase_uid6" + }, + { + "uid": "uid0", + "ordinal": 78, + "order_template_id": "order_template_id2", + "plan_phase_uid": "plan_phase_uid6" } ], - "new_plan_variation_id": "new_plan_variation_id9" + "new_plan_variation_id": "new_plan_variation_id8" } ], "subscription": { @@ -60,23 +72,11 @@ Defines output parameters in a response from the "version": 1 }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-booking-custom-attribute-definition-request.md b/doc/models/retrieve-booking-custom-attribute-definition-request.md index 934ae8ad..a3742eeb 100644 --- a/doc/models/retrieve-booking-custom-attribute-definition-request.md +++ b/doc/models/retrieve-booking-custom-attribute-definition-request.md @@ -17,7 +17,7 @@ Represents a [RetrieveBookingCustomAttributeDefinition](../../doc/api/booking-cu ```json { - "version": 172 + "version": 70 } ``` diff --git a/doc/models/retrieve-booking-custom-attribute-request.md b/doc/models/retrieve-booking-custom-attribute-request.md index 4dcd5718..39492d88 100644 --- a/doc/models/retrieve-booking-custom-attribute-request.md +++ b/doc/models/retrieve-booking-custom-attribute-request.md @@ -19,7 +19,7 @@ Represents a [RetrieveBookingCustomAttribute](../../doc/api/booking-custom-attri ```json { "with_definition": false, - "version": 172 + "version": 186 } ``` diff --git a/doc/models/retrieve-booking-custom-attribute-response.md b/doc/models/retrieve-booking-custom-attribute-response.md index 77982179..b8fa13e3 100644 --- a/doc/models/retrieve-booking-custom-attribute-response.md +++ b/doc/models/retrieve-booking-custom-attribute-response.md @@ -28,34 +28,34 @@ Either `custom_attribute_definition` or `errors` is present in the response. "version": 102, "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key2", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name2", - "description": "description2", - "visibility": "VISIBILITY_READ_ONLY" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-card-response.md b/doc/models/retrieve-card-response.md index 8ddac338..20fa2a85 100644 --- a/doc/models/retrieve-card-response.md +++ b/doc/models/retrieve-card-response.md @@ -48,23 +48,17 @@ present. "version": 1 }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-cash-drawer-shift-request.md b/doc/models/retrieve-cash-drawer-shift-request.md index 61da4dcf..5f2bf7ac 100644 --- a/doc/models/retrieve-cash-drawer-shift-request.md +++ b/doc/models/retrieve-cash-drawer-shift-request.md @@ -15,7 +15,7 @@ ```json { - "location_id": "location_id4" + "location_id": "location_id6" } ``` diff --git a/doc/models/retrieve-cash-drawer-shift-response.md b/doc/models/retrieve-cash-drawer-shift-response.md index aeb71fcf..8215e683 100644 --- a/doc/models/retrieve-cash-drawer-shift-response.md +++ b/doc/models/retrieve-cash-drawer-shift-response.md @@ -59,23 +59,17 @@ "state": "CLOSED" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-catalog-object-request.md b/doc/models/retrieve-catalog-object-request.md index 837b9c46..380d7f0e 100644 --- a/doc/models/retrieve-catalog-object-request.md +++ b/doc/models/retrieve-catalog-object-request.md @@ -17,7 +17,7 @@ ```json { "include_related_objects": false, - "catalog_version": 126 + "catalog_version": 224 } ``` diff --git a/doc/models/retrieve-catalog-object-response.md b/doc/models/retrieve-catalog-object-response.md index a3a5281a..c385c3c7 100644 --- a/doc/models/retrieve-catalog-object-response.md +++ b/doc/models/retrieve-catalog-object-response.md @@ -54,24 +54,24 @@ "version": 1479335124878, "custom_attribute_values": { "key0": { - "name": "name3", - "string_value": "string_value7", - "custom_attribute_definition_id": "custom_attribute_definition_id9", - "type": "SELECTION", - "number_value": "number_value3" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" }, "key1": { - "name": "name2", - "string_value": "string_value6", - "custom_attribute_definition_id": "custom_attribute_definition_id0", + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", "type": "STRING", - "number_value": "number_value2" + "number_value": "number_value8" } }, "catalog_v1_ids": [ { - "catalog_v1_id": "catalog_v1_id6", - "location_id": "location_id6" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" } ] }, @@ -88,21 +88,24 @@ "version": 1479335124878, "custom_attribute_values": { "key0": { - "name": "name1", - "string_value": "string_value5", - "custom_attribute_definition_id": "custom_attribute_definition_id1", - "type": "SELECTION", - "number_value": "number_value1" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" + }, + "key1": { + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" } }, "catalog_v1_ids": [ { - "catalog_v1_id": "catalog_v1_id2", - "location_id": "location_id2" - }, - { - "catalog_v1_id": "catalog_v1_id3", - "location_id": "location_id3" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" } ] }, @@ -122,61 +125,40 @@ "version": 1479335124878, "custom_attribute_values": { "key0": { - "name": "name0", - "string_value": "string_value4", - "custom_attribute_definition_id": "custom_attribute_definition_id2", + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", "type": "STRING", - "number_value": "number_value0" + "number_value": "number_value8" }, "key1": { - "name": "name1", - "string_value": "string_value5", - "custom_attribute_definition_id": "custom_attribute_definition_id1", - "type": "SELECTION", - "number_value": "number_value1" - }, - "key2": { - "name": "name2", - "string_value": "string_value6", - "custom_attribute_definition_id": "custom_attribute_definition_id0", - "type": "NUMBER", - "number_value": "number_value2" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" } }, "catalog_v1_ids": [ - { - "catalog_v1_id": "catalog_v1_id3", - "location_id": "location_id3" - }, { "catalog_v1_id": "catalog_v1_id4", "location_id": "location_id4" - }, - { - "catalog_v1_id": "catalog_v1_id5", - "location_id": "location_id5" } ] } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-customer-custom-attribute-definition-request.md b/doc/models/retrieve-customer-custom-attribute-definition-request.md index 28187e0d..c7f9f275 100644 --- a/doc/models/retrieve-customer-custom-attribute-definition-request.md +++ b/doc/models/retrieve-customer-custom-attribute-definition-request.md @@ -17,7 +17,7 @@ Represents a [RetrieveCustomerCustomAttributeDefinition](../../doc/api/customer- ```json { - "version": 172 + "version": 38 } ``` diff --git a/doc/models/retrieve-customer-custom-attribute-definition-response.md b/doc/models/retrieve-customer-custom-attribute-definition-response.md index 527247d2..bbd5110a 100644 --- a/doc/models/retrieve-customer-custom-attribute-definition-response.md +++ b/doc/models/retrieve-customer-custom-attribute-definition-response.md @@ -33,23 +33,17 @@ Either `custom_attribute_definition` or `errors` is present in the response. "visibility": "VISIBILITY_READ_WRITE_VALUES" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-customer-custom-attribute-request.md b/doc/models/retrieve-customer-custom-attribute-request.md index f7b7e9e0..07e2e6fa 100644 --- a/doc/models/retrieve-customer-custom-attribute-request.md +++ b/doc/models/retrieve-customer-custom-attribute-request.md @@ -19,7 +19,7 @@ Represents a [RetrieveCustomerCustomAttribute](../../doc/api/customer-custom-att ```json { "with_definition": false, - "version": 172 + "version": 232 } ``` diff --git a/doc/models/retrieve-customer-custom-attribute-response.md b/doc/models/retrieve-customer-custom-attribute-response.md index d871693e..bc9faa29 100644 --- a/doc/models/retrieve-customer-custom-attribute-response.md +++ b/doc/models/retrieve-customer-custom-attribute-response.md @@ -28,34 +28,22 @@ Either `custom_attribute_definition` or `errors` is present in the response. "version": 102, "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key2", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name2", - "description": "description2", - "visibility": "VISIBILITY_READ_ONLY" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-customer-group-response.md b/doc/models/retrieve-customer-group-response.md index ca356cc3..785c92dc 100644 --- a/doc/models/retrieve-customer-group-response.md +++ b/doc/models/retrieve-customer-group-response.md @@ -28,23 +28,11 @@ Either `errors` or `group` is present in a given response (never both). "updated_at": "2020-04-13T21:54:58Z" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-customer-response.md b/doc/models/retrieve-customer-response.md index 06390ac7..b2932b64 100644 --- a/doc/models/retrieve-customer-response.md +++ b/doc/models/retrieve-customer-response.md @@ -52,32 +52,32 @@ Either `errors` or `customer` is present in a given response (never both). "version": 1, "cards": [ { - "id": "id7", - "card_brand": "AMERICAN_EXPRESS", - "last_4": "last_49", - "exp_month": 113, - "exp_year": 183 + "id": "id8", + "card_brand": "DISCOVER", + "last_4": "last_40", + "exp_month": 152, + "exp_year": 144 } ] }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-customer-segment-response.md b/doc/models/retrieve-customer-segment-response.md index 5d0f4284..127b7d66 100644 --- a/doc/models/retrieve-customer-segment-response.md +++ b/doc/models/retrieve-customer-segment-response.md @@ -27,23 +27,17 @@ Either `errors` or `segment` is present in a given response (never both). "updated_at": "2020-04-13T23:01:13Z" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-dispute-evidence-response.md b/doc/models/retrieve-dispute-evidence-response.md index 9cb1422c..34eb80da 100644 --- a/doc/models/retrieve-dispute-evidence-response.md +++ b/doc/models/retrieve-dispute-evidence-response.md @@ -31,23 +31,11 @@ Defines the fields in a `RetrieveDisputeEvidence` response. "evidence_text": "evidence_text6" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-dispute-response.md b/doc/models/retrieve-dispute-response.md index 4f087bc3..507972ea 100644 --- a/doc/models/retrieve-dispute-response.md +++ b/doc/models/retrieve-dispute-response.md @@ -40,23 +40,11 @@ Defines fields in a `RetrieveDispute` response. "dispute_id": "dispute_id8" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-employee-response.md b/doc/models/retrieve-employee-response.md index a7f47fe7..a71c949c 100644 --- a/doc/models/retrieve-employee-response.md +++ b/doc/models/retrieve-employee-response.md @@ -9,7 +9,7 @@ | Name | Type | Tags | Description | | --- | --- | --- | --- | -| `employee` | [`Employee \| undefined`](../../doc/models/employee.md) | Optional | An employee object that is used by the external API. | +| `employee` | [`Employee \| undefined`](../../doc/models/employee.md) | Optional | An employee object that is used by the external API.

DEPRECATED at version 2020-08-26. Replaced by [TeamMember](entity:TeamMember). | | `errors` | [`Error[] \| undefined`](../../doc/models/error.md) | Optional | Any errors that occurred during the request. | ## Example (as JSON) @@ -24,23 +24,17 @@ "phone_number": "phone_number6" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-gift-card-from-gan-response.md b/doc/models/retrieve-gift-card-from-gan-response.md index 077bc183..3bc7e886 100644 --- a/doc/models/retrieve-gift-card-from-gan-response.md +++ b/doc/models/retrieve-gift-card-from-gan-response.md @@ -32,23 +32,11 @@ if the request resulted in errors. "type": "DIGITAL" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-gift-card-from-nonce-response.md b/doc/models/retrieve-gift-card-from-nonce-response.md index 80b695ee..7b3f027c 100644 --- a/doc/models/retrieve-gift-card-from-nonce-response.md +++ b/doc/models/retrieve-gift-card-from-nonce-response.md @@ -32,23 +32,17 @@ the response contains a set of `Error` objects. "type": "DIGITAL" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-gift-card-response.md b/doc/models/retrieve-gift-card-response.md index e3ae299e..f6210083 100644 --- a/doc/models/retrieve-gift-card-response.md +++ b/doc/models/retrieve-gift-card-response.md @@ -32,23 +32,17 @@ if the request resulted in errors. "type": "DIGITAL" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-inventory-changes-request.md b/doc/models/retrieve-inventory-changes-request.md index f49a632c..729d4211 100644 --- a/doc/models/retrieve-inventory-changes-request.md +++ b/doc/models/retrieve-inventory-changes-request.md @@ -16,8 +16,8 @@ ```json { - "location_ids": "location_ids0", - "cursor": "cursor6" + "location_ids": "location_ids2", + "cursor": "cursor4" } ``` diff --git a/doc/models/retrieve-inventory-changes-response.md b/doc/models/retrieve-inventory-changes-response.md index 6741aef8..366373d1 100644 --- a/doc/models/retrieve-inventory-changes-response.md +++ b/doc/models/retrieve-inventory-changes-response.md @@ -44,36 +44,36 @@ }, "type": "ADJUSTMENT", "physical_count": { - "id": "id6", - "reference_id": "reference_id4", - "catalog_object_id": "catalog_object_id0", - "catalog_object_type": "catalog_object_type0", - "state": "RESERVED_FOR_SALE" + "id": "id2", + "reference_id": "reference_id0", + "catalog_object_id": "catalog_object_id6", + "catalog_object_type": "catalog_object_type6", + "state": "SUPPORTED_BY_NEWER_VERSION" }, "transfer": { - "id": "id4", - "reference_id": "reference_id8", - "state": "SUPPORTED_BY_NEWER_VERSION", - "from_location_id": "from_location_id6", - "to_location_id": "to_location_id4" + "id": "id8", + "reference_id": "reference_id6", + "state": "RESERVED_FOR_SALE", + "from_location_id": "from_location_id0", + "to_location_id": "to_location_id0" }, "measurement_unit": { "measurement_unit": { "custom_unit": { - "name": "name6", - "abbreviation": "abbreviation8" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "IMPERIAL_SQUARE_FOOT", - "length_unit": "METRIC_METER", - "volume_unit": "IMPERIAL_CUBIC_INCH", + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_LITER", "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 118 + "precision": 184 } } ], "errors": [], - "cursor": "cursor6" + "cursor": "cursor0" } ``` diff --git a/doc/models/retrieve-inventory-count-request.md b/doc/models/retrieve-inventory-count-request.md index 1d1a59d4..fd264431 100644 --- a/doc/models/retrieve-inventory-count-request.md +++ b/doc/models/retrieve-inventory-count-request.md @@ -16,8 +16,8 @@ ```json { - "location_ids": "location_ids0", - "cursor": "cursor6" + "location_ids": "location_ids4", + "cursor": "cursor8" } ``` diff --git a/doc/models/retrieve-inventory-count-response.md b/doc/models/retrieve-inventory-count-response.md index d15913f8..4baa8238 100644 --- a/doc/models/retrieve-inventory-count-response.md +++ b/doc/models/retrieve-inventory-count-response.md @@ -28,7 +28,7 @@ } ], "errors": [], - "cursor": "cursor6" + "cursor": "cursor2" } ``` diff --git a/doc/models/retrieve-location-custom-attribute-definition-request.md b/doc/models/retrieve-location-custom-attribute-definition-request.md index 0102a21b..db1d7aa0 100644 --- a/doc/models/retrieve-location-custom-attribute-definition-request.md +++ b/doc/models/retrieve-location-custom-attribute-definition-request.md @@ -17,7 +17,7 @@ Represents a [RetrieveLocationCustomAttributeDefinition](../../doc/api/location- ```json { - "version": 172 + "version": 50 } ``` diff --git a/doc/models/retrieve-location-custom-attribute-definition-response.md b/doc/models/retrieve-location-custom-attribute-definition-response.md index cf86572e..59b7facd 100644 --- a/doc/models/retrieve-location-custom-attribute-definition-response.md +++ b/doc/models/retrieve-location-custom-attribute-definition-response.md @@ -34,22 +34,22 @@ Either `custom_attribute_definition` or `errors` is present in the response. }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-location-custom-attribute-request.md b/doc/models/retrieve-location-custom-attribute-request.md index 6e33b5e6..f88c97f0 100644 --- a/doc/models/retrieve-location-custom-attribute-request.md +++ b/doc/models/retrieve-location-custom-attribute-request.md @@ -19,7 +19,7 @@ Represents a [RetrieveLocationCustomAttribute](../../doc/api/location-custom-att ```json { "with_definition": false, - "version": 172 + "version": 84 } ``` diff --git a/doc/models/retrieve-location-custom-attribute-response.md b/doc/models/retrieve-location-custom-attribute-response.md index 8a5b1519..1298eb6e 100644 --- a/doc/models/retrieve-location-custom-attribute-response.md +++ b/doc/models/retrieve-location-custom-attribute-response.md @@ -28,34 +28,22 @@ Either `custom_attribute_definition` or `errors` is present in the response. "version": 102, "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key2", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name2", - "description": "description2", - "visibility": "VISIBILITY_READ_ONLY" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-location-response.md b/doc/models/retrieve-location-response.md index 4d2f0540..7fb71a21 100644 --- a/doc/models/retrieve-location-response.md +++ b/doc/models/retrieve-location-response.md @@ -26,9 +26,9 @@ endpoint returns in a response. "country": "US", "locality": "San Francisco", "postal_code": "94114", - "address_line_2": "address_line_20", - "address_line_3": "address_line_36", - "sublocality": "sublocality0" + "address_line_2": "address_line_26", + "address_line_3": "address_line_32", + "sublocality": "sublocality6" }, "business_name": "Jet Fuel Coffee", "capabilities": [ @@ -46,23 +46,11 @@ endpoint returns in a response. "timezone": "America/Los_Angeles" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-loyalty-account-response.md b/doc/models/retrieve-loyalty-account-response.md index 33796157..e4d44582 100644 --- a/doc/models/retrieve-loyalty-account-response.md +++ b/doc/models/retrieve-loyalty-account-response.md @@ -34,23 +34,17 @@ A response that includes the loyalty account. "enrolled_at": "enrolled_at6" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-loyalty-program-response.md b/doc/models/retrieve-loyalty-program-response.md index 4244a005..b039bc7f 100644 --- a/doc/models/retrieve-loyalty-program-response.md +++ b/doc/models/retrieve-loyalty-program-response.md @@ -53,17 +53,15 @@ A response that contains the loyalty program. "percentage_discount": "10", "scope": "ORDER", "catalog_object_ids": [ - "catalog_object_ids3", - "catalog_object_ids2", - "catalog_object_ids1" + "catalog_object_ids6" ], "fixed_discount_money": { - "amount": 63, - "currency": "PKR" + "amount": 36, + "currency": "TTD" }, "max_discount_money": { - "amount": 107, - "currency": "PKR" + "amount": 84, + "currency": "STD" } }, "id": "e1b39225-9da5-43d1-a5db-782cdd8ad94f", @@ -82,27 +80,15 @@ A response that contains the loyalty program. }, "updated_at": "2020-05-01T02:00:02Z", "expiration_policy": { - "expiration_duration": "expiration_duration8" + "expiration_duration": "expiration_duration0" } }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-loyalty-promotion-response.md b/doc/models/retrieve-loyalty-promotion-response.md index 11b374fe..eee74367 100644 --- a/doc/models/retrieve-loyalty-promotion-response.md +++ b/doc/models/retrieve-loyalty-promotion-response.md @@ -24,7 +24,7 @@ Represents a [RetrieveLoyaltyPromotionPromotions](../../doc/api/loyalty.md#retri "time_periods": [ "BEGIN:VEVENT\nDTSTART:20220816T160000\nDURATION:PT2H\nRRULE:FREQ=WEEKLY;BYDAY=TU\nEND:VEVENT" ], - "end_date": "end_date2" + "end_date": "end_date8" }, "created_at": "2022-08-16T08:38:54Z", "id": "loypromo_f0f9b849-725e-378d-b810-511237e07b67", @@ -35,7 +35,7 @@ Represents a [RetrieveLoyaltyPromotionPromotions](../../doc/api/loyalty.md#retri }, "type": "POINTS_MULTIPLIER", "points_addition_data": { - "points_addition": 192 + "points_addition": 218 } }, "loyalty_program_id": "d619f755-2d17-41f3-990d-c04ecedd64dd", @@ -57,23 +57,17 @@ Represents a [RetrieveLoyaltyPromotionPromotions](../../doc/api/loyalty.md#retri "canceled_at": "canceled_at0" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-loyalty-reward-response.md b/doc/models/retrieve-loyalty-reward-response.md index 2c30cda0..39a75edd 100644 --- a/doc/models/retrieve-loyalty-reward-response.md +++ b/doc/models/retrieve-loyalty-reward-response.md @@ -30,23 +30,17 @@ A response that includes the loyalty reward. "order_id": "order_id4" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-merchant-custom-attribute-definition-request.md b/doc/models/retrieve-merchant-custom-attribute-definition-request.md index c3718979..36360139 100644 --- a/doc/models/retrieve-merchant-custom-attribute-definition-request.md +++ b/doc/models/retrieve-merchant-custom-attribute-definition-request.md @@ -17,7 +17,7 @@ Represents a [RetrieveMerchantCustomAttributeDefinition](../../doc/api/merchant- ```json { - "version": 172 + "version": 162 } ``` diff --git a/doc/models/retrieve-merchant-custom-attribute-definition-response.md b/doc/models/retrieve-merchant-custom-attribute-definition-response.md index fb1b8aa1..d26a9035 100644 --- a/doc/models/retrieve-merchant-custom-attribute-definition-response.md +++ b/doc/models/retrieve-merchant-custom-attribute-definition-response.md @@ -33,23 +33,11 @@ Either `custom_attribute_definition` or `errors` is present in the response. "visibility": "VISIBILITY_READ_ONLY" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-merchant-custom-attribute-request.md b/doc/models/retrieve-merchant-custom-attribute-request.md index edf5f310..b141a75a 100644 --- a/doc/models/retrieve-merchant-custom-attribute-request.md +++ b/doc/models/retrieve-merchant-custom-attribute-request.md @@ -19,7 +19,7 @@ Represents a [RetrieveMerchantCustomAttribute](../../doc/api/merchant-custom-att ```json { "with_definition": false, - "version": 172 + "version": 52 } ``` diff --git a/doc/models/retrieve-merchant-custom-attribute-response.md b/doc/models/retrieve-merchant-custom-attribute-response.md index b30398cf..974e03fc 100644 --- a/doc/models/retrieve-merchant-custom-attribute-response.md +++ b/doc/models/retrieve-merchant-custom-attribute-response.md @@ -28,34 +28,28 @@ Either `custom_attribute_definition` or `errors` is present in the response. "version": 102, "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key2", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name2", - "description": "description2", - "visibility": "VISIBILITY_READ_ONLY" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-merchant-response.md b/doc/models/retrieve-merchant-response.md index 25653f50..9b38251d 100644 --- a/doc/models/retrieve-merchant-response.md +++ b/doc/models/retrieve-merchant-response.md @@ -29,23 +29,17 @@ The response object returned by the [RetrieveMerchant](../../doc/api/merchants.m "status": "ACTIVE" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-order-custom-attribute-definition-request.md b/doc/models/retrieve-order-custom-attribute-definition-request.md index d86efbb6..e07af476 100644 --- a/doc/models/retrieve-order-custom-attribute-definition-request.md +++ b/doc/models/retrieve-order-custom-attribute-definition-request.md @@ -17,7 +17,7 @@ Represents a get request for an order custom attribute definition. ```json { - "version": 172 + "version": 142 } ``` diff --git a/doc/models/retrieve-order-custom-attribute-definition-response.md b/doc/models/retrieve-order-custom-attribute-definition-response.md index 30f97faa..eda879a8 100644 --- a/doc/models/retrieve-order-custom-attribute-definition-response.md +++ b/doc/models/retrieve-order-custom-attribute-definition-response.md @@ -32,23 +32,11 @@ Represents a response from getting an order custom attribute definition. "visibility": "VISIBILITY_READ_WRITE_VALUES" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-order-custom-attribute-request.md b/doc/models/retrieve-order-custom-attribute-request.md index db1402e2..48362607 100644 --- a/doc/models/retrieve-order-custom-attribute-request.md +++ b/doc/models/retrieve-order-custom-attribute-request.md @@ -18,7 +18,7 @@ Represents a get request for an order custom attribute. ```json { - "version": 172, + "version": 110, "with_definition": false } ``` diff --git a/doc/models/retrieve-order-custom-attribute-response.md b/doc/models/retrieve-order-custom-attribute-response.md index 80788fdc..e54882b2 100644 --- a/doc/models/retrieve-order-custom-attribute-response.md +++ b/doc/models/retrieve-order-custom-attribute-response.md @@ -27,34 +27,28 @@ Represents a response from getting an order custom attribute. "version": 102, "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key2", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name2", - "description": "description2", - "visibility": "VISIBILITY_READ_ONLY" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-order-response.md b/doc/models/retrieve-order-response.md index fc76e1a1..68c89d82 100644 --- a/doc/models/retrieve-order-response.md +++ b/doc/models/retrieve-order-response.md @@ -78,20 +78,20 @@ "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name9", - "abbreviation": "abbreviation1" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "METRIC_SQUARE_CENTIMETER", - "length_unit": "IMPERIAL_MILE", - "volume_unit": "GENERIC_FLUID_OUNCE", - "weight_unit": "METRIC_KILOGRAM" + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_LITER", + "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 201, - "catalog_object_id": "catalog_object_id1", - "catalog_version": 135 + "precision": 54, + "catalog_object_id": "catalog_object_id0", + "catalog_version": 12 }, - "note": "note3", - "catalog_object_id": "catalog_object_id5" + "note": "note4", + "catalog_object_id": "catalog_object_id2" }, { "applied_discounts": [ @@ -138,20 +138,20 @@ "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name8", - "abbreviation": "abbreviation0" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "IMPERIAL_SQUARE_MILE", - "length_unit": "METRIC_MILLIMETER", + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", "volume_unit": "METRIC_LITER", "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 200, + "precision": 54, "catalog_object_id": "catalog_object_id0", - "catalog_version": 134 + "catalog_version": 12 }, "note": "note4", - "catalog_object_id": "catalog_object_id6" + "catalog_object_id": "catalog_object_id2" } ], "location_id": "D7AVYMEAPJ3A3", @@ -202,28 +202,28 @@ "version": 1, "reference_id": "reference_id4", "source": { - "name": "name2" + "name": "name4" }, "customer_id": "customer_id4" }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-payment-link-response.md b/doc/models/retrieve-payment-link-response.md index d8764949..bdd546d1 100644 --- a/doc/models/retrieve-payment-link-response.md +++ b/doc/models/retrieve-payment-link-response.md @@ -28,46 +28,40 @@ "allow_tipping": false, "custom_fields": [ { - "title": "title1" + "title": "title8" }, { - "title": "title2" + "title": "title8" } ], - "subscription_plan_id": "subscription_plan_id0", - "redirect_url": "redirect_url4", - "merchant_support_email": "merchant_support_email0" + "subscription_plan_id": "subscription_plan_id8", + "redirect_url": "redirect_url2", + "merchant_support_email": "merchant_support_email8" }, "pre_populated_data": { - "buyer_email": "buyer_email6", - "buyer_phone_number": "buyer_phone_number8", + "buyer_email": "buyer_email8", + "buyer_phone_number": "buyer_phone_number0", "buyer_address": { - "address_line_1": "address_line_14", - "address_line_2": "address_line_24", - "address_line_3": "address_line_30", - "locality": "locality4", - "sublocality": "sublocality4" + "address_line_1": "address_line_12", + "address_line_2": "address_line_22", + "address_line_3": "address_line_38", + "locality": "locality2", + "sublocality": "sublocality2" } } }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-snippet-response.md b/doc/models/retrieve-snippet-response.md index 3f77ab96..4c78c549 100644 --- a/doc/models/retrieve-snippet-response.md +++ b/doc/models/retrieve-snippet-response.md @@ -26,23 +26,11 @@ Represents a `RetrieveSnippet` response. The response can include either `snippe "updated_at": "2021-03-11T25:40:09.000000Z" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-subscription-response.md b/doc/models/retrieve-subscription-response.md index da8fc89d..6455639f 100644 --- a/doc/models/retrieve-subscription-response.md +++ b/doc/models/retrieve-subscription-response.md @@ -44,23 +44,17 @@ Defines output parameters in a response from the "timezone": "America/Los_Angeles" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-team-member-response.md b/doc/models/retrieve-team-member-response.md index bff14e61..f3483eff 100644 --- a/doc/models/retrieve-team-member-response.md +++ b/doc/models/retrieve-team-member-response.md @@ -38,23 +38,11 @@ Represents a response from a retrieve request containing a `TeamMember` object o "updated_at": "2021-06-15T17:38:05Z" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-token-status-response.md b/doc/models/retrieve-token-status-response.md index 025325b2..93494e71 100644 --- a/doc/models/retrieve-token-status-response.md +++ b/doc/models/retrieve-token-status-response.md @@ -30,23 +30,17 @@ a request to the `RetrieveTokenStatus` endpoint. "PAYMENTS_WRITE" ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-transaction-response.md b/doc/models/retrieve-transaction-response.md index 16029a35..888f74b3 100644 --- a/doc/models/retrieve-transaction-response.md +++ b/doc/models/retrieve-transaction-response.md @@ -65,67 +65,76 @@ One of `errors` or `transaction` is present in a given response (never both). ], "refunds": [ { - "id": "id6", - "location_id": "location_id0", - "transaction_id": "transaction_id4", - "tender_id": "tender_id4", + "id": "id8", + "location_id": "location_id2", + "transaction_id": "transaction_id6", + "tender_id": "tender_id6", "created_at": "created_at6", - "reason": "reason8", + "reason": "reason4", "amount_money": { - "amount": 162, - "currency": "XPF" + "amount": 186, + "currency": "TZS" }, "status": "PENDING", "processing_fee_money": { - "amount": 88, - "currency": "COU" + "amount": 112, + "currency": "BBD" }, "additional_recipients": [ { - "location_id": "location_id9", - "description": "description5", + "location_id": "location_id0", + "description": "description6", "amount_money": { - "amount": 59, - "currency": "BOB" + "amount": 186, + "currency": "TZS" }, - "receivable_id": "receivable_id5" + "receivable_id": "receivable_id6" + }, + { + "location_id": "location_id0", + "description": "description6", + "amount_money": { + "amount": 186, + "currency": "TZS" + }, + "receivable_id": "receivable_id6" } ] }, { - "id": "id7", - "location_id": "location_id1", - "transaction_id": "transaction_id5", - "tender_id": "tender_id5", - "created_at": "created_at5", - "reason": "reason7", + "id": "id8", + "location_id": "location_id2", + "transaction_id": "transaction_id6", + "tender_id": "tender_id6", + "created_at": "created_at6", + "reason": "reason4", "amount_money": { - "amount": 163, - "currency": "XPT" + "amount": 186, + "currency": "TZS" }, - "status": "FAILED", + "status": "PENDING", "processing_fee_money": { - "amount": 89, - "currency": "CRC" + "amount": 112, + "currency": "BBD" }, "additional_recipients": [ { "location_id": "location_id0", "description": "description6", "amount_money": { - "amount": 60, - "currency": "BOV" + "amount": 186, + "currency": "TZS" }, "receivable_id": "receivable_id6" }, { - "location_id": "location_id1", - "description": "description7", + "location_id": "location_id0", + "description": "description6", "amount_money": { - "amount": 61, - "currency": "BRL" + "amount": 186, + "currency": "TZS" }, - "receivable_id": "receivable_id7" + "receivable_id": "receivable_id6" } ] }, @@ -134,67 +143,46 @@ One of `errors` or `transaction` is present in a given response (never both). "location_id": "location_id2", "transaction_id": "transaction_id6", "tender_id": "tender_id6", - "created_at": "created_at4", - "reason": "reason6", + "created_at": "created_at6", + "reason": "reason4", "amount_money": { - "amount": 164, - "currency": "XTS" + "amount": 186, + "currency": "TZS" }, - "status": "REJECTED", + "status": "PENDING", "processing_fee_money": { - "amount": 90, - "currency": "CUC" + "amount": 112, + "currency": "BBD" }, "additional_recipients": [ { - "location_id": "location_id1", - "description": "description7", - "amount_money": { - "amount": 61, - "currency": "BRL" - }, - "receivable_id": "receivable_id7" - }, - { - "location_id": "location_id2", - "description": "description8", + "location_id": "location_id0", + "description": "description6", "amount_money": { - "amount": 62, - "currency": "BSD" + "amount": 186, + "currency": "TZS" }, - "receivable_id": "receivable_id8" + "receivable_id": "receivable_id6" }, { - "location_id": "location_id3", - "description": "description9", + "location_id": "location_id0", + "description": "description6", "amount_money": { - "amount": 63, - "currency": "BTN" + "amount": 186, + "currency": "TZS" }, - "receivable_id": "receivable_id9" + "receivable_id": "receivable_id6" } ] } ] }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-vendor-response.md b/doc/models/retrieve-vendor-response.md index 9e0e51af..b0bce1c5 100644 --- a/doc/models/retrieve-vendor-response.md +++ b/doc/models/retrieve-vendor-response.md @@ -19,23 +19,11 @@ Represents an output from a call to [RetrieveVendor](../../doc/api/vendors.md#re ```json { "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], "vendor": { @@ -44,11 +32,11 @@ Represents an output from a call to [RetrieveVendor](../../doc/api/vendors.md#re "updated_at": "updated_at2", "name": "name6", "address": { - "address_line_1": "address_line_12", - "address_line_2": "address_line_22", - "address_line_3": "address_line_38", - "locality": "locality2", - "sublocality": "sublocality2" + "address_line_1": "address_line_16", + "address_line_2": "address_line_26", + "address_line_3": "address_line_32", + "locality": "locality6", + "sublocality": "sublocality6" } } } diff --git a/doc/models/retrieve-wage-setting-response.md b/doc/models/retrieve-wage-setting-response.md index e2b22b3e..976d2054 100644 --- a/doc/models/retrieve-wage-setting-response.md +++ b/doc/models/retrieve-wage-setting-response.md @@ -42,22 +42,22 @@ Represents a response from a retrieve request containing the specified `WageSett }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/retrieve-webhook-subscription-response.md b/doc/models/retrieve-webhook-subscription-response.md index 7a37daef..db01c77c 100644 --- a/doc/models/retrieve-webhook-subscription-response.md +++ b/doc/models/retrieve-webhook-subscription-response.md @@ -37,23 +37,11 @@ present. "updated_at": "2022-01-10 23:29:48 +0000 UTC" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/revoke-token-request.md b/doc/models/revoke-token-request.md index 6e961785..4992bca1 100644 --- a/doc/models/revoke-token-request.md +++ b/doc/models/revoke-token-request.md @@ -20,7 +20,7 @@ { "access_token": "ACCESS_TOKEN", "client_id": "CLIENT_ID", - "merchant_id": "merchant_id0", + "merchant_id": "merchant_id8", "revoke_only_access_token": false } ``` diff --git a/doc/models/revoke-token-response.md b/doc/models/revoke-token-response.md index c39e0aa1..ee8a52cb 100644 --- a/doc/models/revoke-token-response.md +++ b/doc/models/revoke-token-response.md @@ -18,23 +18,11 @@ { "success": true, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/risk-evaluation.md b/doc/models/risk-evaluation.md index 6ebb7564..3298c99d 100644 --- a/doc/models/risk-evaluation.md +++ b/doc/models/risk-evaluation.md @@ -23,7 +23,7 @@ provide the goods/services or refund the payment). ```json { - "created_at": "created_at2", + "created_at": "created_at0", "risk_level": "MODERATE" } ``` diff --git a/doc/models/save-card-options.md b/doc/models/save-card-options.md index 5c79eaeb..ae6f19be 100644 --- a/doc/models/save-card-options.md +++ b/doc/models/save-card-options.md @@ -19,9 +19,9 @@ Describes save-card action fields. ```json { - "customer_id": "customer_id8", - "card_id": "card_id4", - "reference_id": "reference_id2" + "customer_id": "customer_id4", + "card_id": "card_id8", + "reference_id": "reference_id6" } ``` diff --git a/doc/models/search-availability-filter.md b/doc/models/search-availability-filter.md index e5be38fb..12fcdd58 100644 --- a/doc/models/search-availability-filter.md +++ b/doc/models/search-availability-filter.md @@ -24,44 +24,48 @@ A query filter to search for buyer-accessible availabilities by. "start_at": "start_at6", "end_at": "end_at6" }, - "location_id": "location_id4", + "location_id": "location_id8", "segment_filters": [ { - "service_variation_id": "service_variation_id6", + "service_variation_id": "service_variation_id4", "team_member_id_filter": { "all": [ - "all5" + "all5", + "all6", + "all7" ], "any": [ "any2", - "any3" + "any3", + "any4" ], "none": [ - "none7" + "none7", + "none8" ] } }, { - "service_variation_id": "service_variation_id5", + "service_variation_id": "service_variation_id4", "team_member_id_filter": { "all": [ - "all4", "all5", - "all6" + "all6", + "all7" ], "any": [ + "any2", "any3", - "any4", - "any5" + "any4" ], "none": [ - "none8", - "none9" + "none7", + "none8" ] } } ], - "booking_id": "booking_id4" + "booking_id": "booking_id8" } ``` diff --git a/doc/models/search-availability-query.md b/doc/models/search-availability-query.md index e6003c07..290bfd12 100644 --- a/doc/models/search-availability-query.md +++ b/doc/models/search-availability-query.md @@ -19,59 +19,65 @@ The query used to search for buyer-accessible availabilities of bookings. { "filter": { "start_at_range": { - "start_at": "start_at0", - "end_at": "end_at2" + "start_at": "start_at6", + "end_at": "end_at6" }, "location_id": "location_id8", "segment_filters": [ { - "service_variation_id": "service_variation_id8", + "service_variation_id": "service_variation_id4", "team_member_id_filter": { "all": [ - "all9", - "all8", + "all5", + "all6", "all7" ], "any": [ - "any6", - "any7", - "any8" + "any2", + "any3", + "any4" ], "none": [ - "none1", - "none2" + "none7", + "none8" ] } }, { - "service_variation_id": "service_variation_id9", + "service_variation_id": "service_variation_id4", "team_member_id_filter": { "all": [ - "all0", - "all9" + "all5", + "all6", + "all7" ], "any": [ - "any7" + "any2", + "any3", + "any4" ], "none": [ - "none2", - "none3", - "none4" + "none7", + "none8" ] } }, { - "service_variation_id": "service_variation_id0", + "service_variation_id": "service_variation_id4", "team_member_id_filter": { "all": [ - "all1" + "all5", + "all6", + "all7" ], "any": [ - "any8", - "any9" + "any2", + "any3", + "any4" ], "none": [ - "none3" + "none7", + "none8" ] } } diff --git a/doc/models/search-availability-request.md b/doc/models/search-availability-request.md index 16e0d839..f158e968 100644 --- a/doc/models/search-availability-request.md +++ b/doc/models/search-availability-request.md @@ -18,23 +18,65 @@ "query": { "filter": { "start_at_range": { - "start_at": "start_at0", - "end_at": "end_at2" + "start_at": "start_at6", + "end_at": "end_at6" }, "location_id": "location_id8", "segment_filters": [ { - "service_variation_id": "service_variation_id0", + "service_variation_id": "service_variation_id4", "team_member_id_filter": { "all": [ - "all9" + "all5", + "all6", + "all7" ], "any": [ - "any8", - "any9" + "any2", + "any3", + "any4" ], "none": [ - "none3" + "none7", + "none8" + ] + } + }, + { + "service_variation_id": "service_variation_id4", + "team_member_id_filter": { + "all": [ + "all5", + "all6", + "all7" + ], + "any": [ + "any2", + "any3", + "any4" + ], + "none": [ + "none7", + "none8" + ] + } + }, + { + "service_variation_id": "service_variation_id4", + "team_member_id_filter": { + "all": [ + "all5", + "all6", + "all7" + ], + "any": [ + "any2", + "any3", + "any4" + ], + "none": [ + "none7", + "none8" ] } } diff --git a/doc/models/search-availability-response.md b/doc/models/search-availability-response.md index 32401656..520ab8ea 100644 --- a/doc/models/search-availability-response.md +++ b/doc/models/search-availability-response.md @@ -24,7 +24,7 @@ "service_variation_id": "RU3PBTZTK7DXZDQFCJHOK2MC", "service_variation_version": 1599775456731, "team_member_id": "TMXUrsBWWcHTt79t", - "intermission_minutes": 46, + "intermission_minutes": 54, "any_team_member": false } ], @@ -38,8 +38,8 @@ "service_variation_id": "RU3PBTZTK7DXZDQFCJHOK2MC", "service_variation_version": 1599775456731, "team_member_id": "TMXUrsBWWcHTt79t", - "intermission_minutes": 47, - "any_team_member": true + "intermission_minutes": 54, + "any_team_member": false } ], "location_id": "LEQHH0YY8B42M", @@ -52,7 +52,7 @@ "service_variation_id": "RU3PBTZTK7DXZDQFCJHOK2MC", "service_variation_version": 1599775456731, "team_member_id": "TMaJcbiRqPIGZuS9", - "intermission_minutes": 48, + "intermission_minutes": 54, "any_team_member": false } ], @@ -66,8 +66,8 @@ "service_variation_id": "RU3PBTZTK7DXZDQFCJHOK2MC", "service_variation_version": 1599775456731, "team_member_id": "TMaJcbiRqPIGZuS9", - "intermission_minutes": 49, - "any_team_member": true + "intermission_minutes": 54, + "any_team_member": false } ], "location_id": "LEQHH0YY8B42M", @@ -80,7 +80,7 @@ "service_variation_id": "RU3PBTZTK7DXZDQFCJHOK2MC", "service_variation_version": 1599775456731, "team_member_id": "TMaJcbiRqPIGZuS9", - "intermission_minutes": 50, + "intermission_minutes": 54, "any_team_member": false } ], @@ -94,8 +94,8 @@ "service_variation_id": "RU3PBTZTK7DXZDQFCJHOK2MC", "service_variation_version": 1599775456731, "team_member_id": "TMaJcbiRqPIGZuS9", - "intermission_minutes": 51, - "any_team_member": true + "intermission_minutes": 54, + "any_team_member": false } ], "location_id": "LEQHH0YY8B42M", @@ -108,7 +108,7 @@ "service_variation_id": "RU3PBTZTK7DXZDQFCJHOK2MC", "service_variation_version": 1599775456731, "team_member_id": "TMaJcbiRqPIGZuS9", - "intermission_minutes": 52, + "intermission_minutes": 54, "any_team_member": false } ], @@ -122,8 +122,8 @@ "service_variation_id": "RU3PBTZTK7DXZDQFCJHOK2MC", "service_variation_version": 1599775456731, "team_member_id": "TMXUrsBWWcHTt79t", - "intermission_minutes": 53, - "any_team_member": true + "intermission_minutes": 54, + "any_team_member": false } ], "location_id": "LEQHH0YY8B42M", @@ -150,8 +150,8 @@ "service_variation_id": "RU3PBTZTK7DXZDQFCJHOK2MC", "service_variation_version": 1599775456731, "team_member_id": "TMXUrsBWWcHTt79t", - "intermission_minutes": 55, - "any_team_member": true + "intermission_minutes": 54, + "any_team_member": false } ], "location_id": "LEQHH0YY8B42M", @@ -164,7 +164,7 @@ "service_variation_id": "RU3PBTZTK7DXZDQFCJHOK2MC", "service_variation_version": 1599775456731, "team_member_id": "TMXUrsBWWcHTt79t", - "intermission_minutes": 56, + "intermission_minutes": 54, "any_team_member": false } ], @@ -178,8 +178,8 @@ "service_variation_id": "RU3PBTZTK7DXZDQFCJHOK2MC", "service_variation_version": 1599775456731, "team_member_id": "TMXUrsBWWcHTt79t", - "intermission_minutes": 57, - "any_team_member": true + "intermission_minutes": 54, + "any_team_member": false } ], "location_id": "LEQHH0YY8B42M", @@ -192,7 +192,7 @@ "service_variation_id": "RU3PBTZTK7DXZDQFCJHOK2MC", "service_variation_version": 1599775456731, "team_member_id": "TMaJcbiRqPIGZuS9", - "intermission_minutes": 58, + "intermission_minutes": 54, "any_team_member": false } ], @@ -206,8 +206,8 @@ "service_variation_id": "RU3PBTZTK7DXZDQFCJHOK2MC", "service_variation_version": 1599775456731, "team_member_id": "TMaJcbiRqPIGZuS9", - "intermission_minutes": 59, - "any_team_member": true + "intermission_minutes": 54, + "any_team_member": false } ], "location_id": "LEQHH0YY8B42M", @@ -220,7 +220,7 @@ "service_variation_id": "RU3PBTZTK7DXZDQFCJHOK2MC", "service_variation_version": 1599775456731, "team_member_id": "TMaJcbiRqPIGZuS9", - "intermission_minutes": 60, + "intermission_minutes": 54, "any_team_member": false } ], @@ -234,8 +234,8 @@ "service_variation_id": "RU3PBTZTK7DXZDQFCJHOK2MC", "service_variation_version": 1599775456731, "team_member_id": "TMXUrsBWWcHTt79t", - "intermission_minutes": 61, - "any_team_member": true + "intermission_minutes": 54, + "any_team_member": false } ], "location_id": "LEQHH0YY8B42M", @@ -248,7 +248,7 @@ "service_variation_id": "RU3PBTZTK7DXZDQFCJHOK2MC", "service_variation_version": 1599775456731, "team_member_id": "TMXUrsBWWcHTt79t", - "intermission_minutes": 62, + "intermission_minutes": 54, "any_team_member": false } ], @@ -262,8 +262,8 @@ "service_variation_id": "RU3PBTZTK7DXZDQFCJHOK2MC", "service_variation_version": 1599775456731, "team_member_id": "TMaJcbiRqPIGZuS9", - "intermission_minutes": 63, - "any_team_member": true + "intermission_minutes": 54, + "any_team_member": false } ], "location_id": "LEQHH0YY8B42M", diff --git a/doc/models/search-catalog-items-request.md b/doc/models/search-catalog-items-request.md index 674a7c8c..9d2e30aa 100644 --- a/doc/models/search-catalog-items-request.md +++ b/doc/models/search-catalog-items-request.md @@ -63,7 +63,7 @@ Defines the request body for the [SearchCatalogItems](../../doc/api/catalog.md#s "LOW" ], "text_filter": "red", - "cursor": "cursor6" + "cursor": "cursor4" } ``` diff --git a/doc/models/search-catalog-items-response.md b/doc/models/search-catalog-items-response.md index 333cd31b..19814058 100644 --- a/doc/models/search-catalog-items-response.md +++ b/doc/models/search-catalog-items-response.md @@ -21,32 +21,26 @@ Defines the response body returned from the [SearchCatalogItems](../../doc/api/c ```json { "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], "items": [ { - "type": "DISCOUNT", - "id": "id7", - "updated_at": "updated_at7", - "version": 143, - "is_deleted": true, + "type": "TIME_PERIOD", + "id": "id8", + "updated_at": "updated_at6", + "version": 38, + "is_deleted": false, "custom_attribute_values": { "key0": { "name": "name8", @@ -54,32 +48,6 @@ Defines the response body returned from the [SearchCatalogItems](../../doc/api/c "custom_attribute_definition_id": "custom_attribute_definition_id4", "type": "STRING", "number_value": "number_value8" - } - }, - "catalog_v1_ids": [ - { - "catalog_v1_id": "catalog_v1_id1", - "location_id": "location_id1" - }, - { - "catalog_v1_id": "catalog_v1_id2", - "location_id": "location_id2" - } - ] - }, - { - "type": "TAX", - "id": "id8", - "updated_at": "updated_at6", - "version": 144, - "is_deleted": false, - "custom_attribute_values": { - "key0": { - "name": "name9", - "string_value": "string_value3", - "custom_attribute_definition_id": "custom_attribute_definition_id3", - "type": "SELECTION", - "number_value": "number_value9" }, "key1": { "name": "name8", @@ -89,21 +57,21 @@ Defines the response body returned from the [SearchCatalogItems](../../doc/api/c "number_value": "number_value8" }, "key2": { - "name": "name7", - "string_value": "string_value1", - "custom_attribute_definition_id": "custom_attribute_definition_id5", - "type": "BOOLEAN", - "number_value": "number_value7" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" } }, "catalog_v1_ids": [ { - "catalog_v1_id": "catalog_v1_id2", - "location_id": "location_id2" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" }, { - "catalog_v1_id": "catalog_v1_id3", - "location_id": "location_id3" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" }, { "catalog_v1_id": "catalog_v1_id4", @@ -112,10 +80,9 @@ Defines the response body returned from the [SearchCatalogItems](../../doc/api/c ] } ], - "cursor": "cursor6", + "cursor": "cursor2", "matched_variation_ids": [ - "matched_variation_ids9", - "matched_variation_ids0" + "matched_variation_ids3" ] } ``` diff --git a/doc/models/search-catalog-objects-request.md b/doc/models/search-catalog-objects-request.md index 2705d974..4e7ad993 100644 --- a/doc/models/search-catalog-objects-request.md +++ b/doc/models/search-catalog-objects-request.md @@ -31,7 +31,7 @@ "attribute_prefix": "tea" } }, - "cursor": "cursor6", + "cursor": "cursor2", "include_deleted_objects": false, "include_related_objects": false, "begin_time": "begin_time2" diff --git a/doc/models/search-catalog-objects-response.md b/doc/models/search-catalog-objects-response.md index 64a71774..513f536b 100644 --- a/doc/models/search-catalog-objects-response.md +++ b/doc/models/search-catalog-objects-response.md @@ -77,11 +77,11 @@ "version": 1509032492337, "custom_attribute_values": { "key0": { - "name": "name9", - "string_value": "string_value3", - "custom_attribute_definition_id": "custom_attribute_definition_id3", - "type": "SELECTION", - "number_value": "number_value9" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" }, "key1": { "name": "name8", @@ -93,8 +93,16 @@ }, "catalog_v1_ids": [ { - "catalog_v1_id": "catalog_v1_id2", - "location_id": "location_id2" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" + }, + { + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" + }, + { + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" } ] }, @@ -137,17 +145,28 @@ "version": 1509032483232, "custom_attribute_values": { "key0": { - "name": "name0", - "string_value": "string_value4", - "custom_attribute_definition_id": "custom_attribute_definition_id2", - "type": "NUMBER", - "number_value": "number_value0" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" + }, + "key1": { + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" } }, "catalog_v1_ids": [ { - "catalog_v1_id": "catalog_v1_id3", - "location_id": "location_id3" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" + }, + { + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" }, { "catalog_v1_id": "catalog_v1_id4", @@ -157,117 +176,35 @@ } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], "cursor": "cursor6", "related_objects": [ - { - "type": "PRICING_RULE", - "id": "id8", - "updated_at": "updated_at6", - "version": 170, - "is_deleted": false, - "custom_attribute_values": { - "key0": { - "name": "name1", - "string_value": "string_value5", - "custom_attribute_definition_id": "custom_attribute_definition_id1", - "type": "SELECTION", - "number_value": "number_value1" - } - }, - "catalog_v1_ids": [ - { - "catalog_v1_id": "catalog_v1_id2", - "location_id": "location_id2" - }, - { - "catalog_v1_id": "catalog_v1_id3", - "location_id": "location_id3" - } - ] - }, - { - "type": "MODIFIER", - "id": "id9", - "updated_at": "updated_at5", - "version": 169, - "is_deleted": true, - "custom_attribute_values": { - "key0": { - "name": "name0", - "string_value": "string_value4", - "custom_attribute_definition_id": "custom_attribute_definition_id2", - "type": "STRING", - "number_value": "number_value0" - }, - "key1": { - "name": "name1", - "string_value": "string_value5", - "custom_attribute_definition_id": "custom_attribute_definition_id1", - "type": "SELECTION", - "number_value": "number_value1" - }, - "key2": { - "name": "name2", - "string_value": "string_value6", - "custom_attribute_definition_id": "custom_attribute_definition_id0", - "type": "NUMBER", - "number_value": "number_value2" - } - }, - "catalog_v1_ids": [ - { - "catalog_v1_id": "catalog_v1_id3", - "location_id": "location_id3" - }, - { - "catalog_v1_id": "catalog_v1_id4", - "location_id": "location_id4" - }, - { - "catalog_v1_id": "catalog_v1_id5", - "location_id": "location_id5" - } - ] - }, { "type": "MODIFIER_LIST", - "id": "id0", - "updated_at": "updated_at4", - "version": 168, + "id": "id2", + "updated_at": "updated_at2", + "version": 0, "is_deleted": false, "custom_attribute_values": { "key0": { - "name": "name9", - "string_value": "string_value3", - "custom_attribute_definition_id": "custom_attribute_definition_id3", - "type": "BOOLEAN", - "number_value": "number_value9" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" }, "key1": { - "name": "name0", - "string_value": "string_value4", - "custom_attribute_definition_id": "custom_attribute_definition_id2", + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", "type": "STRING", - "number_value": "number_value0" + "number_value": "number_value8" } }, "catalog_v1_ids": [ @@ -278,7 +215,7 @@ ] } ], - "latest_time": "latest_time8" + "latest_time": "latest_time2" } ``` diff --git a/doc/models/search-customers-request.md b/doc/models/search-customers-request.md index 586ab780..d632eea4 100644 --- a/doc/models/search-customers-request.md +++ b/doc/models/search-customers-request.md @@ -36,7 +36,7 @@ Defines the fields that are included in the request body of a request to the }, "email_address": { "fuzzy": "example.com", - "exact": "exact8" + "exact": "exact2" }, "group_ids": { "all": [ @@ -44,12 +44,12 @@ Defines the fields that are included in the request body of a request to the ] }, "updated_at": { - "start_at": "start_at2", - "end_at": "end_at0" + "start_at": "start_at6", + "end_at": "end_at6" }, "phone_number": { - "exact": "exact8", - "fuzzy": "fuzzy4" + "exact": "exact2", + "fuzzy": "fuzzy8" } }, "sort": { @@ -57,7 +57,7 @@ Defines the fields that are included in the request body of a request to the "order": "ASC" } }, - "cursor": "cursor6", + "cursor": "cursor0", "count": false } ``` diff --git a/doc/models/search-customers-response.md b/doc/models/search-customers-response.md index 1f137b80..45766945 100644 --- a/doc/models/search-customers-response.md +++ b/doc/models/search-customers-response.md @@ -55,18 +55,18 @@ Either `errors` or `customers` is present in a given response (never both). "version": 7, "cards": [ { - "id": "id0", + "id": "id8", "card_brand": "DISCOVER", - "last_4": "last_42", - "exp_month": 146, - "exp_year": 186 + "last_4": "last_40", + "exp_month": 152, + "exp_year": 144 }, { - "id": "id1", - "card_brand": "DISCOVER_DINERS", - "last_4": "last_43", - "exp_month": 147, - "exp_year": 187 + "id": "id8", + "card_brand": "DISCOVER", + "last_4": "last_40", + "exp_month": 152, + "exp_year": 144 } ] }, @@ -101,50 +101,31 @@ Either `errors` or `customers` is present in a given response (never both). "version": 1, "cards": [ { - "id": "id1", - "card_brand": "DISCOVER_DINERS", - "last_4": "last_43", - "exp_month": 147, - "exp_year": 187 - }, - { - "id": "id2", - "card_brand": "JCB", - "last_4": "last_44", - "exp_month": 148, - "exp_year": 188 + "id": "id8", + "card_brand": "DISCOVER", + "last_4": "last_40", + "exp_month": 152, + "exp_year": 144 }, { - "id": "id3", - "card_brand": "CHINA_UNIONPAY", - "last_4": "last_45", - "exp_month": 149, - "exp_year": 189 + "id": "id8", + "card_brand": "DISCOVER", + "last_4": "last_40", + "exp_month": 152, + "exp_year": 144 } ] } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], - "count": 60 + "count": 90 } ``` diff --git a/doc/models/search-invoices-request.md b/doc/models/search-invoices-request.md index 3ac91f41..9d1c0559 100644 --- a/doc/models/search-invoices-request.md +++ b/doc/models/search-invoices-request.md @@ -34,8 +34,8 @@ Describes a `SearchInvoices` request. "order": "DESC" } }, - "limit": 172, - "cursor": "cursor6" + "limit": 26, + "cursor": "cursor4" } ``` diff --git a/doc/models/search-invoices-response.md b/doc/models/search-invoices-response.md index 43c813c9..03922fbe 100644 --- a/doc/models/search-invoices-response.md +++ b/doc/models/search-invoices-response.md @@ -80,11 +80,11 @@ Describes a `SearchInvoices` response. "given_name": "Amelia", "phone_number": "1-212-555-4240", "address": { - "address_line_1": "address_line_18", - "address_line_2": "address_line_28", - "address_line_3": "address_line_34", - "locality": "locality8", - "sublocality": "sublocality8" + "address_line_1": "address_line_16", + "address_line_2": "address_line_26", + "address_line_3": "address_line_32", + "locality": "locality6", + "sublocality": "sublocality6" } }, "sale_or_service_date": "2030-01-24", @@ -156,11 +156,11 @@ Describes a `SearchInvoices` response. "given_name": "Amelia", "phone_number": "1-212-555-4240", "address": { - "address_line_1": "address_line_19", - "address_line_2": "address_line_29", - "address_line_3": "address_line_35", - "locality": "locality9", - "sublocality": "sublocality9" + "address_line_1": "address_line_16", + "address_line_2": "address_line_26", + "address_line_3": "address_line_32", + "locality": "locality6", + "sublocality": "sublocality6" } }, "public_url": "https://squareup.com/pay-invoice/h9sfsfTGTSnYEhISUDBhEQ", @@ -173,23 +173,17 @@ Describes a `SearchInvoices` response. } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/search-loyalty-accounts-request-loyalty-account-query.md b/doc/models/search-loyalty-accounts-request-loyalty-account-query.md index 94769531..7be7861b 100644 --- a/doc/models/search-loyalty-accounts-request-loyalty-account-query.md +++ b/doc/models/search-loyalty-accounts-request-loyalty-account-query.md @@ -20,14 +20,25 @@ The search criteria for the loyalty accounts. { "mappings": [ { - "id": "id4", - "created_at": "created_at8", - "phone_number": "phone_number8" + "id": "id8", + "created_at": "created_at6", + "phone_number": "phone_number4" + }, + { + "id": "id8", + "created_at": "created_at6", + "phone_number": "phone_number4" + }, + { + "id": "id8", + "created_at": "created_at6", + "phone_number": "phone_number4" } ], "customer_ids": [ - "customer_ids1", - "customer_ids2" + "customer_ids5", + "customer_ids4", + "customer_ids3" ] } ``` diff --git a/doc/models/search-loyalty-accounts-request.md b/doc/models/search-loyalty-accounts-request.md index 5c38122d..302f2f19 100644 --- a/doc/models/search-loyalty-accounts-request.md +++ b/doc/models/search-loyalty-accounts-request.md @@ -24,7 +24,7 @@ A request to search for loyalty accounts. "mappings": [ { "phone_number": "+14155551234", - "id": "id6", + "id": "id8", "created_at": "created_at6" } ], @@ -34,7 +34,7 @@ A request to search for loyalty accounts. "customer_ids3" ] }, - "cursor": "cursor6" + "cursor": "cursor0" } ``` diff --git a/doc/models/search-loyalty-accounts-response.md b/doc/models/search-loyalty-accounts-response.md index 3d2e104d..186240c9 100644 --- a/doc/models/search-loyalty-accounts-response.md +++ b/doc/models/search-loyalty-accounts-response.md @@ -33,30 +33,24 @@ A response that includes loyalty accounts that satisfy the search criteria. }, "program_id": "d619f755-2d17-41f3-990d-c04ecedd64dd", "updated_at": "2020-05-08T21:44:32Z", - "enrolled_at": "enrolled_at1" + "enrolled_at": "enrolled_at4" } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], - "cursor": "cursor6" + "cursor": "cursor8" } ``` diff --git a/doc/models/search-loyalty-events-request.md b/doc/models/search-loyalty-events-request.md index 00e85982..591c3065 100644 --- a/doc/models/search-loyalty-events-request.md +++ b/doc/models/search-loyalty-events-request.md @@ -26,27 +26,31 @@ A request to search for loyalty events. "order_id": "PyATxhYLfsMqpVkcKJITPydgEYfZY" }, "loyalty_account_filter": { - "loyalty_account_id": "loyalty_account_id4" + "loyalty_account_id": "loyalty_account_id8" }, "type_filter": { "types": [ - "EXPIRE_POINTS" + "ACCUMULATE_PROMOTION_POINTS", + "ACCUMULATE_POINTS", + "CREATE_REWARD" ] }, "date_time_filter": { "created_at": { - "start_at": "start_at6", - "end_at": "end_at6" + "start_at": "start_at4", + "end_at": "end_at8" } }, "location_filter": { "location_ids": [ - "location_ids4" + "location_ids0", + "location_ids1", + "location_ids2" ] } } }, - "cursor": "cursor6" + "cursor": "cursor8" } ``` diff --git a/doc/models/search-loyalty-events-response.md b/doc/models/search-loyalty-events-response.md index 5989aac4..1e2832ec 100644 --- a/doc/models/search-loyalty-events-response.md +++ b/doc/models/search-loyalty-events-response.md @@ -34,24 +34,24 @@ criteria, in order by the `created_at` date. "source": "LOYALTY_API", "type": "ACCUMULATE_POINTS", "create_reward": { - "loyalty_program_id": "loyalty_program_id8", - "reward_id": "reward_id2", - "points": 148 + "loyalty_program_id": "loyalty_program_id2", + "reward_id": "reward_id6", + "points": 90 }, "redeem_reward": { "loyalty_program_id": "loyalty_program_id8", "reward_id": "reward_id2", - "order_id": "order_id2" + "order_id": "order_id8" }, "delete_reward": { "loyalty_program_id": "loyalty_program_id4", "reward_id": "reward_id8", - "points": 130 + "points": 104 }, "adjust_points": { - "loyalty_program_id": "loyalty_program_id8", - "points": 142, - "reason": "reason6" + "loyalty_program_id": "loyalty_program_id2", + "points": 96, + "reason": "reason2" } }, { @@ -67,24 +67,24 @@ criteria, in order by the `created_at` date. "source": "LOYALTY_API", "type": "REDEEM_REWARD", "accumulate_points": { - "loyalty_program_id": "loyalty_program_id3", - "points": 119, - "order_id": "order_id7" + "loyalty_program_id": "loyalty_program_id8", + "points": 118, + "order_id": "order_id8" }, "create_reward": { - "loyalty_program_id": "loyalty_program_id9", - "reward_id": "reward_id3", - "points": 147 + "loyalty_program_id": "loyalty_program_id2", + "reward_id": "reward_id6", + "points": 90 }, "delete_reward": { - "loyalty_program_id": "loyalty_program_id3", - "reward_id": "reward_id7", - "points": 131 + "loyalty_program_id": "loyalty_program_id4", + "reward_id": "reward_id8", + "points": 104 }, "adjust_points": { - "loyalty_program_id": "loyalty_program_id9", - "points": 141, - "reason": "reason5" + "loyalty_program_id": "loyalty_program_id2", + "points": 96, + "reason": "reason2" } }, { @@ -99,48 +99,48 @@ criteria, in order by the `created_at` date. "source": "LOYALTY_API", "type": "CREATE_REWARD", "accumulate_points": { - "loyalty_program_id": "loyalty_program_id4", + "loyalty_program_id": "loyalty_program_id8", "points": 118, "order_id": "order_id8" }, "redeem_reward": { - "loyalty_program_id": "loyalty_program_id0", - "reward_id": "reward_id4", - "order_id": "order_id4" + "loyalty_program_id": "loyalty_program_id8", + "reward_id": "reward_id2", + "order_id": "order_id8" }, "delete_reward": { - "loyalty_program_id": "loyalty_program_id2", - "reward_id": "reward_id6", - "points": 132 + "loyalty_program_id": "loyalty_program_id4", + "reward_id": "reward_id8", + "points": 104 }, "adjust_points": { - "loyalty_program_id": "loyalty_program_id0", - "points": 140, - "reason": "reason4" + "loyalty_program_id": "loyalty_program_id2", + "points": 96, + "reason": "reason2" } } ], "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], - "cursor": "cursor6" + "cursor": "cursor4" } ``` diff --git a/doc/models/search-loyalty-rewards-request-loyalty-reward-query.md b/doc/models/search-loyalty-rewards-request-loyalty-reward-query.md index 83d56a55..b30960bb 100644 --- a/doc/models/search-loyalty-rewards-request-loyalty-reward-query.md +++ b/doc/models/search-loyalty-rewards-request-loyalty-reward-query.md @@ -18,7 +18,7 @@ The set of search requirements. ```json { - "loyalty_account_id": "loyalty_account_id0", + "loyalty_account_id": "loyalty_account_id2", "status": "DELETED" } ``` diff --git a/doc/models/search-loyalty-rewards-request.md b/doc/models/search-loyalty-rewards-request.md index 3b34d859..08e50c0c 100644 --- a/doc/models/search-loyalty-rewards-request.md +++ b/doc/models/search-loyalty-rewards-request.md @@ -24,7 +24,7 @@ A request to search for loyalty rewards. "loyalty_account_id": "5adcb100-07f1-4ee7-b8c6-6bb9ebc474bd", "status": "ISSUED" }, - "cursor": "cursor6" + "cursor": "cursor4" } ``` diff --git a/doc/models/search-loyalty-rewards-response.md b/doc/models/search-loyalty-rewards-response.md index f24cca26..036a432a 100644 --- a/doc/models/search-loyalty-rewards-response.md +++ b/doc/models/search-loyalty-rewards-response.md @@ -40,7 +40,7 @@ A response that includes the loyalty rewards satisfying the search criteria. "reward_tier_id": "e1b39225-9da5-43d1-a5db-782cdd8ad94f", "status": "REDEEMED", "updated_at": "2020-05-08T21:56:00Z", - "order_id": "order_id0" + "order_id": "order_id4" }, { "created_at": "2020-05-01T21:49:54Z", @@ -65,25 +65,25 @@ A response that includes the loyalty rewards satisfying the search criteria. ], "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], - "cursor": "cursor6" + "cursor": "cursor4" } ``` diff --git a/doc/models/search-orders-customer-filter.md b/doc/models/search-orders-customer-filter.md index f9a63cf5..991118e1 100644 --- a/doc/models/search-orders-customer-filter.md +++ b/doc/models/search-orders-customer-filter.md @@ -20,8 +20,9 @@ associated with the order. It does not filter based on the ```json { "customer_ids": [ - "customer_ids1", - "customer_ids2" + "customer_ids9", + "customer_ids0", + "customer_ids1" ] } ``` diff --git a/doc/models/search-orders-filter.md b/doc/models/search-orders-filter.md index 21e9b516..58a8462a 100644 --- a/doc/models/search-orders-filter.md +++ b/doc/models/search-orders-filter.md @@ -30,16 +30,16 @@ are ANDed together. }, "date_time_filter": { "created_at": { - "start_at": "start_at0", - "end_at": "end_at2" + "start_at": "start_at4", + "end_at": "end_at8" }, "updated_at": { - "start_at": "start_at8", - "end_at": "end_at4" + "start_at": "start_at6", + "end_at": "end_at6" }, "closed_at": { "start_at": "start_at4", - "end_at": "end_at2" + "end_at": "end_at8" } }, "fulfillment_filter": { diff --git a/doc/models/search-orders-query.md b/doc/models/search-orders-query.md index c1e99c4b..84e5ede7 100644 --- a/doc/models/search-orders-query.md +++ b/doc/models/search-orders-query.md @@ -22,44 +22,41 @@ Contains query criteria for the search. "state_filter": { "states": [ "CANCELED", - "COMPLETED" + "DRAFT" ] }, "date_time_filter": { "created_at": { - "start_at": "start_at6", - "end_at": "end_at6" + "start_at": "start_at4", + "end_at": "end_at8" }, "updated_at": { - "start_at": "start_at0", - "end_at": "end_at2" + "start_at": "start_at6", + "end_at": "end_at6" }, "closed_at": { - "start_at": "start_at0", - "end_at": "end_at2" + "start_at": "start_at4", + "end_at": "end_at8" } }, "fulfillment_filter": { "fulfillment_types": [ - "SHIPMENT", - "DELIVERY", - "PICKUP" + "DELIVERY" ], "fulfillment_states": [ - "PREPARED", - "COMPLETED", - "CANCELED" + "CANCELED", + "FAILED" ] }, "source_filter": { "source_names": [ - "source_names0" + "source_names6" ] }, "customer_filter": { "customer_ids": [ - "customer_ids7", - "customer_ids8" + "customer_ids3", + "customer_ids4" ] } }, diff --git a/doc/models/search-orders-request.md b/doc/models/search-orders-request.md index 79fb6ab7..950e76fc 100644 --- a/doc/models/search-orders-request.md +++ b/doc/models/search-orders-request.md @@ -37,12 +37,12 @@ results. "start_at": "2018-03-03T20:00:00+00:00" }, "created_at": { - "start_at": "start_at6", - "end_at": "end_at6" - }, - "updated_at": { "start_at": "start_at4", "end_at": "end_at8" + }, + "updated_at": { + "start_at": "start_at6", + "end_at": "end_at6" } }, "state_filter": { @@ -52,27 +52,22 @@ results. }, "fulfillment_filter": { "fulfillment_types": [ - "SHIPMENT", - "DELIVERY", - "PICKUP" + "DELIVERY" ], "fulfillment_states": [ - "PREPARED", - "COMPLETED", - "CANCELED" + "CANCELED", + "FAILED" ] }, "source_filter": { "source_names": [ - "source_names0", - "source_names1" + "source_names6" ] }, "customer_filter": { "customer_ids": [ - "customer_ids7", - "customer_ids8", - "customer_ids9" + "customer_ids3", + "customer_ids4" ] } }, @@ -82,7 +77,7 @@ results. } }, "return_entries": true, - "cursor": "cursor6" + "cursor": "cursor4" } ``` diff --git a/doc/models/search-orders-response.md b/doc/models/search-orders-response.md index 6f0f92f0..d636a297 100644 --- a/doc/models/search-orders-response.md +++ b/doc/models/search-orders-response.md @@ -31,144 +31,193 @@ Either the `order_entries` or `orders` field is set, depending on whether { "location_id": "18YC4JDH91E1H", "order_id": "CAISENgvlJ6jLWAzERDzjyHVybY", - "version": 134 + "version": 182 }, { "location_id": "057P5VYJ4A5X1", "order_id": "CAISEM52YcpmcWAzERDOyiWS3ty", - "version": 135 + "version": 182 } ], "orders": [ { - "id": "id6", - "location_id": "location_id0", - "reference_id": "reference_id6", + "id": "id2", + "location_id": "location_id6", + "reference_id": "reference_id0", "source": { - "name": "name8" + "name": "name4" }, - "customer_id": "customer_id4", + "customer_id": "customer_id0", "line_items": [ { - "uid": "uid3", - "name": "name3", - "quantity": "quantity9", + "uid": "uid8", + "name": "name8", + "quantity": "quantity4", "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name1", - "abbreviation": "abbreviation3" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "METRIC_SQUARE_CENTIMETER", - "length_unit": "IMPERIAL_MILE", - "volume_unit": "METRIC_MILLILITER", - "weight_unit": "IMPERIAL_POUND" + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_LITER", + "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 217, - "catalog_object_id": "catalog_object_id7", - "catalog_version": 105 + "precision": 54, + "catalog_object_id": "catalog_object_id0", + "catalog_version": 12 }, - "note": "note1", - "catalog_object_id": "catalog_object_id3" + "note": "note4", + "catalog_object_id": "catalog_object_id2" + }, + { + "uid": "uid8", + "name": "name8", + "quantity": "quantity4", + "quantity_unit": { + "measurement_unit": { + "custom_unit": { + "name": "name2", + "abbreviation": "abbreviation4" + }, + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_LITER", + "weight_unit": "IMPERIAL_WEIGHT_OUNCE" + }, + "precision": 54, + "catalog_object_id": "catalog_object_id0", + "catalog_version": 12 + }, + "note": "note4", + "catalog_object_id": "catalog_object_id2" } ] }, { - "id": "id7", - "location_id": "location_id1", - "reference_id": "reference_id5", + "id": "id2", + "location_id": "location_id6", + "reference_id": "reference_id0", "source": { - "name": "name7" + "name": "name4" }, - "customer_id": "customer_id5", + "customer_id": "customer_id0", "line_items": [ { - "uid": "uid2", - "name": "name2", - "quantity": "quantity8", + "uid": "uid8", + "name": "name8", + "quantity": "quantity4", "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name0", - "abbreviation": "abbreviation2" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "IMPERIAL_SQUARE_MILE", - "length_unit": "METRIC_MILLIMETER", - "volume_unit": "IMPERIAL_CUBIC_YARD", - "weight_unit": "IMPERIAL_STONE" + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_LITER", + "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 216, - "catalog_object_id": "catalog_object_id8", - "catalog_version": 106 + "precision": 54, + "catalog_object_id": "catalog_object_id0", + "catalog_version": 12 }, - "note": "note2", - "catalog_object_id": "catalog_object_id4" + "note": "note4", + "catalog_object_id": "catalog_object_id2" }, { - "uid": "uid3", - "name": "name3", - "quantity": "quantity9", + "uid": "uid8", + "name": "name8", + "quantity": "quantity4", + "quantity_unit": { + "measurement_unit": { + "custom_unit": { + "name": "name2", + "abbreviation": "abbreviation4" + }, + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_LITER", + "weight_unit": "IMPERIAL_WEIGHT_OUNCE" + }, + "precision": 54, + "catalog_object_id": "catalog_object_id0", + "catalog_version": 12 + }, + "note": "note4", + "catalog_object_id": "catalog_object_id2" + } + ] + }, + { + "id": "id2", + "location_id": "location_id6", + "reference_id": "reference_id0", + "source": { + "name": "name4" + }, + "customer_id": "customer_id0", + "line_items": [ + { + "uid": "uid8", + "name": "name8", + "quantity": "quantity4", "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name1", - "abbreviation": "abbreviation3" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "METRIC_SQUARE_CENTIMETER", - "length_unit": "IMPERIAL_MILE", - "volume_unit": "METRIC_MILLILITER", - "weight_unit": "IMPERIAL_POUND" + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_LITER", + "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 217, - "catalog_object_id": "catalog_object_id7", - "catalog_version": 105 + "precision": 54, + "catalog_object_id": "catalog_object_id0", + "catalog_version": 12 }, - "note": "note1", - "catalog_object_id": "catalog_object_id3" + "note": "note4", + "catalog_object_id": "catalog_object_id2" }, { - "uid": "uid4", - "name": "name4", - "quantity": "quantity0", + "uid": "uid8", + "name": "name8", + "quantity": "quantity4", "quantity_unit": { "measurement_unit": { "custom_unit": { "name": "name2", "abbreviation": "abbreviation4" }, - "area_unit": "METRIC_SQUARE_METER", - "length_unit": "IMPERIAL_YARD", + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", "volume_unit": "METRIC_LITER", "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 218, - "catalog_object_id": "catalog_object_id6", - "catalog_version": 104 + "precision": 54, + "catalog_object_id": "catalog_object_id0", + "catalog_version": 12 }, - "note": "note0", + "note": "note4", "catalog_object_id": "catalog_object_id2" } ] } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/search-orders-sort.md b/doc/models/search-orders-sort.md index 8b349801..77120ea2 100644 --- a/doc/models/search-orders-sort.md +++ b/doc/models/search-orders-sort.md @@ -19,7 +19,7 @@ by a timestamp field. ```json { - "sort_field": "CLOSED_AT", + "sort_field": "CREATED_AT", "sort_order": "DESC" } ``` diff --git a/doc/models/search-orders-source-filter.md b/doc/models/search-orders-source-filter.md index 93e3309b..afcebddc 100644 --- a/doc/models/search-orders-source-filter.md +++ b/doc/models/search-orders-source-filter.md @@ -18,7 +18,9 @@ A filter based on order `source` information. ```json { "source_names": [ - "source_names8" + "source_names4", + "source_names5", + "source_names6" ] } ``` diff --git a/doc/models/search-orders-state-filter.md b/doc/models/search-orders-state-filter.md index ca3d43f6..f09e9b1b 100644 --- a/doc/models/search-orders-state-filter.md +++ b/doc/models/search-orders-state-filter.md @@ -18,8 +18,9 @@ Filter by the current order `state`. ```json { "states": [ - "OPEN", - "COMPLETED" + "CANCELED", + "DRAFT", + "OPEN" ] } ``` diff --git a/doc/models/search-shifts-request.md b/doc/models/search-shifts-request.md index d3fd17db..ced63016 100644 --- a/doc/models/search-shifts-request.md +++ b/doc/models/search-shifts-request.md @@ -31,29 +31,27 @@ A request for a filtered and sorted set of `Shift` objects. "match_shifts_by": "START_AT" }, "location_ids": [ - "location_ids4", - "location_ids5" + "location_ids4" ], "employee_ids": [ - "employee_ids9", - "employee_ids0" + "employee_ids9" ], "status": "OPEN", "start": { - "start_at": "start_at0", - "end_at": "end_at2" + "start_at": "start_at6", + "end_at": "end_at6" }, "end": { - "start_at": "start_at4", - "end_at": "end_at8" + "start_at": "start_at0", + "end_at": "end_at2" } }, "sort": { - "field": "CREATED_AT", + "field": "START_AT", "order": "DESC" } }, - "cursor": "cursor6" + "cursor": "cursor2" } ``` diff --git a/doc/models/search-shifts-response.md b/doc/models/search-shifts-response.md index b77cc1f2..401093fe 100644 --- a/doc/models/search-shifts-response.md +++ b/doc/models/search-shifts-response.md @@ -96,25 +96,13 @@ the request resulted in errors. } } ], - "cursor": "cursor6", + "cursor": "cursor8", "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/search-subscriptions-filter.md b/doc/models/search-subscriptions-filter.md index 0361775f..b3524609 100644 --- a/doc/models/search-subscriptions-filter.md +++ b/doc/models/search-subscriptions-filter.md @@ -25,10 +25,14 @@ the [SearchSubscriptions](../../doc/api/subscriptions.md#search-subscriptions) e "customer_ids2" ], "location_ids": [ - "location_ids0" + "location_ids4", + "location_ids5", + "location_ids6" ], "source_names": [ - "source_names8" + "source_names2", + "source_names3", + "source_names4" ] } ``` diff --git a/doc/models/search-subscriptions-request.md b/doc/models/search-subscriptions-request.md index 64400f43..15a8cb24 100644 --- a/doc/models/search-subscriptions-request.md +++ b/doc/models/search-subscriptions-request.md @@ -35,10 +35,9 @@ Defines input parameters in a request to the } }, "cursor": "cursor6", - "limit": 172, + "limit": 230, "include": [ - "include8", - "include9" + "include8" ] } ``` diff --git a/doc/models/search-subscriptions-response.md b/doc/models/search-subscriptions-response.md index 3a919027..3e2e5fb9 100644 --- a/doc/models/search-subscriptions-response.md +++ b/doc/models/search-subscriptions-response.md @@ -87,26 +87,14 @@ Defines output parameters in a response from the } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], - "cursor": "cursor6" + "cursor": "cursor2" } ``` diff --git a/doc/models/search-team-members-filter.md b/doc/models/search-team-members-filter.md index 7fcf590e..4f504fe2 100644 --- a/doc/models/search-team-members-filter.md +++ b/doc/models/search-team-members-filter.md @@ -28,7 +28,7 @@ returns only active team members assigned to either location "A" or "B". ```json { "location_ids": [ - "location_ids0" + "location_ids6" ], "status": "ACTIVE", "is_owner": false diff --git a/doc/models/search-team-members-request.md b/doc/models/search-team-members-request.md index 6d26967e..8fda961f 100644 --- a/doc/models/search-team-members-request.md +++ b/doc/models/search-team-members-request.md @@ -29,7 +29,7 @@ Represents a search request for a filtered list of `TeamMember` objects. "is_owner": false } }, - "cursor": "cursor6" + "cursor": "cursor8" } ``` diff --git a/doc/models/search-team-members-response.md b/doc/models/search-team-members-response.md index 009ac9a2..baba2b0d 100644 --- a/doc/models/search-team-members-response.md +++ b/doc/models/search-team-members-response.md @@ -60,7 +60,7 @@ Represents a response from a search request containing a filtered list of `TeamM "is_owner": false, "status": "ACTIVE", "updated_at": "2020-03-24T01:11:25Z", - "reference_id": "reference_id3" + "reference_id": "reference_id4" }, { "assigned_locations": { @@ -73,7 +73,7 @@ Represents a response from a search request containing a filtered list of `TeamM "is_owner": false, "status": "ACTIVE", "updated_at": "2020-03-24T01:15:23Z", - "reference_id": "reference_id2" + "reference_id": "reference_id4" }, { "assigned_locations": { @@ -86,7 +86,7 @@ Represents a response from a search request containing a filtered list of `TeamM "is_owner": false, "status": "ACTIVE", "updated_at": "2020-03-24T01:19:23Z", - "reference_id": "reference_id1" + "reference_id": "reference_id4" }, { "assigned_locations": { @@ -100,7 +100,7 @@ Represents a response from a search request containing a filtered list of `TeamM "phone_number": "+14155552671", "status": "ACTIVE", "updated_at": "2020-03-24T18:18:03Z", - "reference_id": "reference_id0" + "reference_id": "reference_id4" }, { "assigned_locations": { @@ -113,7 +113,7 @@ Represents a response from a search request containing a filtered list of `TeamM "is_owner": false, "status": "ACTIVE", "updated_at": "2020-03-24T01:09:25Z", - "reference_id": "reference_id9" + "reference_id": "reference_id4" }, { "assigned_locations": { @@ -128,7 +128,7 @@ Represents a response from a search request containing a filtered list of `TeamM "phone_number": "+14155552671", "status": "ACTIVE", "updated_at": "2020-03-24T18:14:02Z", - "reference_id": "reference_id8" + "reference_id": "reference_id4" }, { "assigned_locations": { @@ -143,7 +143,7 @@ Represents a response from a search request containing a filtered list of `TeamM "phone_number": "+14155552671", "status": "ACTIVE", "updated_at": "2020-03-24T18:14:00Z", - "reference_id": "reference_id7" + "reference_id": "reference_id4" }, { "assigned_locations": { @@ -158,27 +158,21 @@ Represents a response from a search request containing a filtered list of `TeamM "phone_number": "+14155552671", "status": "ACTIVE", "updated_at": "2020-03-24T18:18:00Z", - "reference_id": "reference_id6" + "reference_id": "reference_id4" } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/search-terminal-actions-request.md b/doc/models/search-terminal-actions-request.md index 7602a4e5..a955205c 100644 --- a/doc/models/search-terminal-actions-request.md +++ b/doc/models/search-terminal-actions-request.md @@ -25,14 +25,14 @@ "end_at": "end_at8" }, "device_id": "device_id0", - "status": "status4", - "type": "QR_CODE" + "status": "status6", + "type": "SAVE_CARD" }, "sort": { "sort_order": "DESC" } }, - "cursor": "cursor6" + "cursor": "cursor4" } ``` diff --git a/doc/models/search-terminal-actions-response.md b/doc/models/search-terminal-actions-response.md index 5f8d414b..c339f180 100644 --- a/doc/models/search-terminal-actions-response.md +++ b/doc/models/search-terminal-actions-response.md @@ -49,28 +49,16 @@ "status": "COMPLETED", "type": "SAVE_CARD", "updated_at": "2022-04-08T15:14:09.861Z", - "cancel_reason": "BUYER_CANCELED" + "cancel_reason": "TIMED_OUT" } ], "cursor": "CURSOR", "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/search-terminal-checkouts-request.md b/doc/models/search-terminal-checkouts-request.md index 16a26c33..38b33f80 100644 --- a/doc/models/search-terminal-checkouts-request.md +++ b/doc/models/search-terminal-checkouts-request.md @@ -31,7 +31,7 @@ "sort_order": "DESC" } }, - "cursor": "cursor6" + "cursor": "cursor4" } ``` diff --git a/doc/models/search-terminal-checkouts-response.md b/doc/models/search-terminal-checkouts-response.md index 3a6abebf..613f9acd 100644 --- a/doc/models/search-terminal-checkouts-response.md +++ b/doc/models/search-terminal-checkouts-response.md @@ -31,17 +31,15 @@ "skip_receipt_screen": false, "tip_settings": { "allow_tipping": false, - "separate_tip_screen": true, - "custom_tip_field": true, + "separate_tip_screen": false, + "custom_tip_field": false, "tip_percentages": [ - 97, - 98, - 99 + 48 ], - "smart_tipping": true + "smart_tipping": false }, - "collect_signature": true, - "show_itemized_cart": true + "collect_signature": false, + "show_itemized_cart": false }, "id": "tsQPvzwBpMqqO", "note": "A brief note", @@ -51,12 +49,12 @@ "reference_id": "id14467", "status": "COMPLETED", "updated_at": "2020-03-31T18:13:52.725Z", - "order_id": "order_id1", + "order_id": "order_id2", "payment_options": { - "autocomplete": true, - "delay_duration": "delay_duration9", - "accept_partial_authorization": true, - "delay_action": "COMPLETE" + "autocomplete": false, + "delay_duration": "delay_duration2", + "accept_partial_authorization": false, + "delay_action": "CANCEL" } }, { @@ -75,8 +73,7 @@ "separate_tip_screen": false, "custom_tip_field": false, "tip_percentages": [ - 96, - 97 + 48 ], "smart_tipping": false }, @@ -94,7 +91,7 @@ "order_id": "order_id2", "payment_options": { "autocomplete": false, - "delay_duration": "delay_duration0", + "delay_duration": "delay_duration2", "accept_partial_authorization": false, "delay_action": "CANCEL" } @@ -103,22 +100,22 @@ "cursor": "RiTJqBoTuXlbLmmrPvEkX9iG7XnQ4W4RjGnH", "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/search-terminal-refunds-request.md b/doc/models/search-terminal-refunds-request.md index d71f2e97..82c272bd 100644 --- a/doc/models/search-terminal-refunds-request.md +++ b/doc/models/search-terminal-refunds-request.md @@ -31,7 +31,7 @@ "sort_order": "sort_order8" } }, - "cursor": "cursor6" + "cursor": "cursor4" } ``` diff --git a/doc/models/search-terminal-refunds-response.md b/doc/models/search-terminal-refunds-response.md index b6301922..478108a6 100644 --- a/doc/models/search-terminal-refunds-response.md +++ b/doc/models/search-terminal-refunds-response.md @@ -48,25 +48,25 @@ ], "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], - "cursor": "cursor6" + "cursor": "cursor8" } ``` diff --git a/doc/models/search-vendors-request-filter.md b/doc/models/search-vendors-request-filter.md index 167cd71f..219005f7 100644 --- a/doc/models/search-vendors-request-filter.md +++ b/doc/models/search-vendors-request-filter.md @@ -19,9 +19,9 @@ Defines supported query expressions to search for vendors by. ```json { "name": [ - "name0", - "name1", - "name2" + "name4", + "name5", + "name6" ], "status": [ "ACTIVE", diff --git a/doc/models/search-vendors-request.md b/doc/models/search-vendors-request.md index 0af560be..e7e1ae91 100644 --- a/doc/models/search-vendors-request.md +++ b/doc/models/search-vendors-request.md @@ -49,7 +49,7 @@ Represents an input into a call to [SearchVendors](../../doc/api/vendors.md#sear "field": "NAME", "order": "DESC" }, - "cursor": "cursor6" + "cursor": "cursor0" } ``` diff --git a/doc/models/search-vendors-response.md b/doc/models/search-vendors-response.md index aef070d8..71d7bb1c 100644 --- a/doc/models/search-vendors-response.md +++ b/doc/models/search-vendors-response.md @@ -20,44 +20,19 @@ Represents an output from a call to [SearchVendors](../../doc/api/vendors.md#sea ```json { "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], "vendors": [ { - "id": "id9", - "created_at": "created_at7", - "updated_at": "updated_at5", - "name": "name9", - "address": { - "address_line_1": "address_line_15", - "address_line_2": "address_line_25", - "address_line_3": "address_line_31", - "locality": "locality5", - "sublocality": "sublocality5" - } - }, - { - "id": "id0", - "created_at": "created_at8", + "id": "id8", + "created_at": "created_at6", "updated_at": "updated_at4", - "name": "name0", + "name": "name8", "address": { "address_line_1": "address_line_16", "address_line_2": "address_line_26", @@ -67,20 +42,20 @@ Represents an output from a call to [SearchVendors](../../doc/api/vendors.md#sea } }, { - "id": "id1", - "created_at": "created_at9", - "updated_at": "updated_at3", - "name": "name1", + "id": "id8", + "created_at": "created_at6", + "updated_at": "updated_at4", + "name": "name8", "address": { - "address_line_1": "address_line_17", - "address_line_2": "address_line_27", - "address_line_3": "address_line_33", - "locality": "locality7", - "sublocality": "sublocality7" + "address_line_1": "address_line_16", + "address_line_2": "address_line_26", + "address_line_3": "address_line_32", + "locality": "locality6", + "sublocality": "sublocality6" } } ], - "cursor": "cursor6" + "cursor": "cursor8" } ``` diff --git a/doc/models/segment-filter.md b/doc/models/segment-filter.md index ccbf39b0..0961ff1b 100644 --- a/doc/models/segment-filter.md +++ b/doc/models/segment-filter.md @@ -18,7 +18,7 @@ A query filter to search for buyer-accessible appointment segments by. ```json { - "service_variation_id": "service_variation_id6", + "service_variation_id": "service_variation_id0", "team_member_id_filter": { "all": [ "all5", diff --git a/doc/models/select-option.md b/doc/models/select-option.md index fd4b6164..7eb0a1a1 100644 --- a/doc/models/select-option.md +++ b/doc/models/select-option.md @@ -16,8 +16,8 @@ ```json { - "reference_id": "reference_id2", - "title": "title4" + "reference_id": "reference_id6", + "title": "title8" } ``` diff --git a/doc/models/select-options.md b/doc/models/select-options.md index 9c6a378f..e7a6d8c3 100644 --- a/doc/models/select-options.md +++ b/doc/models/select-options.md @@ -18,12 +18,12 @@ ```json { - "title": "title4", - "body": "body6", + "title": "title0", + "body": "body0", "options": [ { - "reference_id": "reference_id1", - "title": "title3" + "reference_id": "reference_id0", + "title": "title2" } ], "selected_option": { diff --git a/doc/models/shift-filter.md b/doc/models/shift-filter.md index f2b67c13..a96fe0c6 100644 --- a/doc/models/shift-filter.md +++ b/doc/models/shift-filter.md @@ -25,9 +25,13 @@ used by Square's servers to apply each filter property specified. ```json { "location_ids": [ + "location_ids8", + "location_ids9", "location_ids0" ], "employee_ids": [ + "employee_ids3", + "employee_ids4", "employee_ids5" ], "status": "OPEN", diff --git a/doc/models/shift-query.md b/doc/models/shift-query.md index 2dde2b7b..6a6ebdce 100644 --- a/doc/models/shift-query.md +++ b/doc/models/shift-query.md @@ -27,12 +27,12 @@ The parameters of a `Shift` search query, which includes filter and sort options ], "status": "OPEN", "start": { - "start_at": "start_at0", - "end_at": "end_at2" + "start_at": "start_at6", + "end_at": "end_at6" }, "end": { - "start_at": "start_at4", - "end_at": "end_at8" + "start_at": "start_at0", + "end_at": "end_at2" } }, "sort": { diff --git a/doc/models/shift-wage.md b/doc/models/shift-wage.md index d0ef4d8b..698d13a8 100644 --- a/doc/models/shift-wage.md +++ b/doc/models/shift-wage.md @@ -19,7 +19,7 @@ The hourly wage rate used to compensate an employee for this shift. ```json { - "title": "title4", + "title": "title6", "hourly_rate": { "amount": 172, "currency": "OMR" diff --git a/doc/models/shift-workday.md b/doc/models/shift-workday.md index 2b3c1cd3..a2a464fb 100644 --- a/doc/models/shift-workday.md +++ b/doc/models/shift-workday.md @@ -24,8 +24,8 @@ a `Shift` must start or end in before passing the filter condition. "start_date": "start_date6", "end_date": "end_date2" }, - "match_shifts_by": "INTERSECTION", - "default_timezone": "default_timezone6" + "match_shifts_by": "END_AT", + "default_timezone": "default_timezone2" } ``` diff --git a/doc/models/shipping-fee.md b/doc/models/shipping-fee.md index c6de2dea..842efc25 100644 --- a/doc/models/shipping-fee.md +++ b/doc/models/shipping-fee.md @@ -16,7 +16,7 @@ ```json { - "name": "name0", + "name": "name6", "charge": { "amount": 80, "currency": "UNKNOWN_CURRENCY" diff --git a/doc/models/signature-image.md b/doc/models/signature-image.md index 8f69c019..08e33fe7 100644 --- a/doc/models/signature-image.md +++ b/doc/models/signature-image.md @@ -16,8 +16,8 @@ ```json { - "image_type": "image_type6", - "data": "data0" + "image_type": "image_type4", + "data": "data8" } ``` diff --git a/doc/models/signature-options.md b/doc/models/signature-options.md index b387123b..e452c535 100644 --- a/doc/models/signature-options.md +++ b/doc/models/signature-options.md @@ -17,12 +17,20 @@ ```json { - "title": "title4", - "body": "body6", + "title": "title2", + "body": "body8", "signature": [ { - "image_type": "image_type8", - "data": "data2" + "image_type": "image_type4", + "data": "data8" + }, + { + "image_type": "image_type4", + "data": "data8" + }, + { + "image_type": "image_type4", + "data": "data8" } ] } diff --git a/doc/models/site.md b/doc/models/site.md index 1b053bda..78b79548 100644 --- a/doc/models/site.md +++ b/doc/models/site.md @@ -26,7 +26,7 @@ Represents a Square Online site, which is an online store for a Square seller. "site_title": "site_title6", "domain": "domain6", "is_published": false, - "created_at": "created_at2" + "created_at": "created_at8" } ``` diff --git a/doc/models/snippet-response.md b/doc/models/snippet-response.md index c055378a..bc298ae2 100644 --- a/doc/models/snippet-response.md +++ b/doc/models/snippet-response.md @@ -17,23 +17,17 @@ ```json { "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], "snippet": { diff --git a/doc/models/snippet.md b/doc/models/snippet.md index d1cbcc4e..c987ee6c 100644 --- a/doc/models/snippet.md +++ b/doc/models/snippet.md @@ -21,11 +21,11 @@ Represents the snippet that is added to a Square Online site. The snippet code i ```json { - "id": "id0", - "site_id": "site_id6", - "content": "content4", - "created_at": "created_at2", - "updated_at": "updated_at4" + "id": "id2", + "site_id": "site_id8", + "content": "content6", + "created_at": "created_at0", + "updated_at": "updated_at8" } ``` diff --git a/doc/models/source-application.md b/doc/models/source-application.md index 41e9efe1..3acadfd2 100644 --- a/doc/models/source-application.md +++ b/doc/models/source-application.md @@ -19,9 +19,9 @@ Represents information about the application used to generate a change. ```json { - "product": "SQUARE_POS", - "application_id": "application_id4", - "name": "name0" + "product": "INVOICES", + "application_id": "application_id0", + "name": "name4" } ``` diff --git a/doc/models/square-account-details.md b/doc/models/square-account-details.md index 2e5e88ea..7a2efac8 100644 --- a/doc/models/square-account-details.md +++ b/doc/models/square-account-details.md @@ -18,25 +18,19 @@ Additional details about Square Account payments. ```json { - "payment_source_token": "payment_source_token4", + "payment_source_token": "payment_source_token8", "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/standard-unit-description-group.md b/doc/models/standard-unit-description-group.md index 4527c68e..3980ccee 100644 --- a/doc/models/standard-unit-description-group.md +++ b/doc/models/standard-unit-description-group.md @@ -22,16 +22,16 @@ Group of standard measurement units. { "unit": { "custom_unit": { - "name": "name1", - "abbreviation": "abbreviation3" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "IMPERIAL_SQUARE_INCH", - "length_unit": "IMPERIAL_FOOT", - "volume_unit": "GENERIC_QUART", - "weight_unit": "IMPERIAL_POUND" + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_MILLILITER", + "weight_unit": "IMPERIAL_STONE" }, - "name": "name1", - "abbreviation": "abbreviation3" + "name": "name4", + "abbreviation": "abbreviation6" }, { "unit": { @@ -39,30 +39,30 @@ Group of standard measurement units. "name": "name2", "abbreviation": "abbreviation4" }, - "area_unit": "IMPERIAL_SQUARE_FOOT", - "length_unit": "IMPERIAL_YARD", - "volume_unit": "GENERIC_GALLON", + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_MILLILITER", "weight_unit": "IMPERIAL_STONE" }, - "name": "name2", - "abbreviation": "abbreviation4" + "name": "name4", + "abbreviation": "abbreviation6" }, { "unit": { "custom_unit": { - "name": "name3", - "abbreviation": "abbreviation5" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "IMPERIAL_SQUARE_YARD", - "length_unit": "IMPERIAL_MILE", - "volume_unit": "IMPERIAL_CUBIC_INCH", - "weight_unit": "METRIC_MILLIGRAM" + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_MILLILITER", + "weight_unit": "IMPERIAL_STONE" }, - "name": "name3", - "abbreviation": "abbreviation5" + "name": "name4", + "abbreviation": "abbreviation6" } ], - "language_code": "language_code8" + "language_code": "language_code4" } ``` diff --git a/doc/models/standard-unit-description.md b/doc/models/standard-unit-description.md index 62a91c42..1fe0ec0b 100644 --- a/doc/models/standard-unit-description.md +++ b/doc/models/standard-unit-description.md @@ -21,16 +21,16 @@ Contains the name and abbreviation for standard measurement unit. { "unit": { "custom_unit": { - "name": "name0", - "abbreviation": "abbreviation2" + "name": "name2", + "abbreviation": "abbreviation4" }, "area_unit": "IMPERIAL_ACRE", "length_unit": "IMPERIAL_INCH", "volume_unit": "METRIC_MILLILITER", "weight_unit": "IMPERIAL_STONE" }, - "name": "name0", - "abbreviation": "abbreviation2" + "name": "name4", + "abbreviation": "abbreviation6" } ``` diff --git a/doc/models/submit-evidence-response.md b/doc/models/submit-evidence-response.md index c2c584c3..f7c5ce2c 100644 --- a/doc/models/submit-evidence-response.md +++ b/doc/models/submit-evidence-response.md @@ -41,22 +41,22 @@ Defines the fields in a `SubmitEvidence` response. }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/subscription-action.md b/doc/models/subscription-action.md index 5b3cb195..f2f1f1fb 100644 --- a/doc/models/subscription-action.md +++ b/doc/models/subscription-action.md @@ -21,24 +21,24 @@ Represents an action as a pending change to a subscription. ```json { - "id": "id0", - "type": "RESUME", - "effective_date": "effective_date0", + "id": "id2", + "type": "CANCEL", + "effective_date": "effective_date2", "phases": [ { - "uid": "uid5", - "ordinal": 207, - "order_template_id": "order_template_id7", - "plan_phase_uid": "plan_phase_uid1" + "uid": "uid0", + "ordinal": 78, + "order_template_id": "order_template_id2", + "plan_phase_uid": "plan_phase_uid6" }, { - "uid": "uid6", - "ordinal": 208, - "order_template_id": "order_template_id8", - "plan_phase_uid": "plan_phase_uid2" + "uid": "uid0", + "ordinal": 78, + "order_template_id": "order_template_id2", + "plan_phase_uid": "plan_phase_uid6" } ], - "new_plan_variation_id": "new_plan_variation_id0" + "new_plan_variation_id": "new_plan_variation_id2" } ``` diff --git a/doc/models/subscription-event-info.md b/doc/models/subscription-event-info.md index 343ccb25..91c74a94 100644 --- a/doc/models/subscription-event-info.md +++ b/doc/models/subscription-event-info.md @@ -18,8 +18,8 @@ Provides information about the subscription event. ```json { - "detail": "detail6", - "code": "CUSTOMER_DELETED" + "detail": "detail8", + "code": "CUSTOMER_NO_NAME" } ``` diff --git a/doc/models/subscription-event.md b/doc/models/subscription-event.md index 49d28380..6234640c 100644 --- a/doc/models/subscription-event.md +++ b/doc/models/subscription-event.md @@ -22,28 +22,28 @@ Describes changes to a subscription and the subscription status. ```json { - "id": "id0", + "id": "id6", "subscription_event_type": "RESUME_SUBSCRIPTION", - "effective_date": "effective_date0", + "effective_date": "effective_date4", "info": { "detail": "detail6", "code": "CUSTOMER_DELETED" }, "phases": [ { - "uid": "uid5", - "ordinal": 207, - "order_template_id": "order_template_id7", - "plan_phase_uid": "plan_phase_uid1" + "uid": "uid0", + "ordinal": 78, + "order_template_id": "order_template_id2", + "plan_phase_uid": "plan_phase_uid6" }, { - "uid": "uid6", - "ordinal": 208, - "order_template_id": "order_template_id8", - "plan_phase_uid": "plan_phase_uid2" + "uid": "uid0", + "ordinal": 78, + "order_template_id": "order_template_id2", + "plan_phase_uid": "plan_phase_uid6" } ], - "plan_variation_id": "plan_variation_id4" + "plan_variation_id": "plan_variation_id0" } ``` diff --git a/doc/models/subscription-phase.md b/doc/models/subscription-phase.md index a714a4ef..fcf5b5f2 100644 --- a/doc/models/subscription-phase.md +++ b/doc/models/subscription-phase.md @@ -22,14 +22,14 @@ Describes a phase in a subscription plan variation. For more information, see [S ```json { - "uid": "uid0", - "cadence": "DAILY", - "periods": 142, + "uid": "uid2", + "cadence": "EVERY_SIX_MONTHS", + "periods": 36, "recurring_price_money": { "amount": 66, "currency": "TMT" }, - "ordinal": 80, + "ordinal": 2, "pricing": { "type": "STATIC", "discount_ids": [ @@ -37,8 +37,8 @@ Describes a phase in a subscription plan variation. For more information, see [S "discount_ids6" ], "price_money": { - "amount": 40, - "currency": "RWF" + "amount": 202, + "currency": "CNY" } } } diff --git a/doc/models/subscription-pricing.md b/doc/models/subscription-pricing.md index 50f8c998..c72117b7 100644 --- a/doc/models/subscription-pricing.md +++ b/doc/models/subscription-pricing.md @@ -21,8 +21,8 @@ Describes the pricing for the subscription. { "type": "STATIC", "discount_ids": [ - "discount_ids1", - "discount_ids2" + "discount_ids9", + "discount_ids0" ], "price_money": { "amount": 202, diff --git a/doc/models/subscription-test-result.md b/doc/models/subscription-test-result.md index 668b222a..92252d56 100644 --- a/doc/models/subscription-test-result.md +++ b/doc/models/subscription-test-result.md @@ -23,9 +23,9 @@ event types, and signature key. ```json { "id": "id0", - "status_code": 122, + "status_code": 208, "payload": "payload6", - "created_at": "created_at2", + "created_at": "created_at8", "updated_at": "updated_at4" } ``` diff --git a/doc/models/subscription.md b/doc/models/subscription.md index 5e868881..0f71432b 100644 --- a/doc/models/subscription.md +++ b/doc/models/subscription.md @@ -37,11 +37,11 @@ For more information, see ```json { - "id": "id0", - "location_id": "location_id4", - "plan_variation_id": "plan_variation_id4", - "customer_id": "customer_id8", - "start_date": "start_date6" + "id": "id4", + "location_id": "location_id8", + "plan_variation_id": "plan_variation_id8", + "customer_id": "customer_id2", + "start_date": "start_date8" } ``` diff --git a/doc/models/swap-plan-response.md b/doc/models/swap-plan-response.md index 8e3b53f1..b7edace3 100644 --- a/doc/models/swap-plan-response.md +++ b/doc/models/swap-plan-response.md @@ -29,8 +29,8 @@ Defines output parameters in a response of the { "order_template_id": "uhhnjH9osVv3shUADwaC0b3hNxQZY", "ordinal": 0, - "uid": "uid6", - "plan_phase_uid": "plan_phase_uid2" + "uid": "uid0", + "plan_phase_uid": "plan_phase_uid6" } ], "type": "SWAP_PLAN" @@ -64,22 +64,22 @@ Defines output parameters in a response of the }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/tax-ids.md b/doc/models/tax-ids.md index f60b164c..dba7bceb 100644 --- a/doc/models/tax-ids.md +++ b/doc/models/tax-ids.md @@ -11,17 +11,17 @@ Identifiers for the location used by various governments for tax purposes. | Name | Type | Tags | Description | | --- | --- | --- | --- | -| `euVat` | `string \| null \| undefined` | Optional | The EU VAT number for this location. For example, `IE3426675K`.
If the EU VAT number is present, it is well-formed and has been
validated with VIES, the VAT Information Exchange System. | -| `frSiret` | `string \| null \| undefined` | Optional | The SIRET (Système d'Identification du Répertoire des Entreprises et de leurs Etablissements)
number is a 14-digit code issued by the French INSEE. For example, `39922799000021`. | -| `frNaf` | `string \| null \| undefined` | Optional | The French government uses the NAF (Nomenclature des Activités Françaises) to display and
track economic statistical data. This is also called the APE (Activite Principale de l’Entreprise) code.
For example, `6910Z`. | -| `esNif` | `string \| null \| undefined` | Optional | The NIF (Numero de Identificacion Fiscal) number is a nine-character tax identifier used in Spain.
If it is present, it has been validated. For example, `73628495A`. | -| `jpQii` | `string \| undefined` | Optional | The QII (Qualified Invoice Issuer) number is a 14-character tax identifier used in Japan.
If it is present, it has been validated. For example, `T1234567890123`. | +| `euVat` | `string \| undefined` | Optional | The EU VAT number for this location. For example, `IE3426675K`.
If the EU VAT number is present, it is well-formed and has been
validated with VIES, the VAT Information Exchange System. | +| `frSiret` | `string \| undefined` | Optional | The SIRET (Système d'Identification du Répertoire des Entreprises et de leurs Etablissements)
number is a 14-digit code issued by the French INSEE. For example, `39922799000021`. | +| `frNaf` | `string \| undefined` | Optional | The French government uses the NAF (Nomenclature des Activités Françaises) to display and
track economic statistical data. This is also called the APE (Activite Principale de l’Entreprise) code.
For example, `6910Z`. | +| `esNif` | `string \| undefined` | Optional | The NIF (Numero de Identificacion Fiscal) number is a nine-character tax identifier used in Spain.
If it is present, it has been validated. For example, `73628495A`. | +| `jpQii` | `string \| undefined` | Optional | The QII (Qualified Invoice Issuer) number is a 14-character tax identifier used in Japan.
For example, `T1234567890123`. | ## Example (as JSON) ```json { - "eu_vat": "eu_vat2", + "eu_vat": "eu_vat8", "fr_siret": "fr_siret0", "fr_naf": "fr_naf0", "es_nif": "es_nif4", diff --git a/doc/models/team-member-assigned-locations.md b/doc/models/team-member-assigned-locations.md index fca71b45..39a8b54d 100644 --- a/doc/models/team-member-assigned-locations.md +++ b/doc/models/team-member-assigned-locations.md @@ -20,7 +20,8 @@ An object that represents a team member's assignment to locations. { "assignment_type": "ALL_CURRENT_AND_FUTURE_LOCATIONS", "location_ids": [ - "location_ids0" + "location_ids4", + "location_ids5" ] } ``` diff --git a/doc/models/team-member-booking-profile.md b/doc/models/team-member-booking-profile.md index 52032442..fb381031 100644 --- a/doc/models/team-member-booking-profile.md +++ b/doc/models/team-member-booking-profile.md @@ -14,7 +14,7 @@ The booking profile of a seller's team member, including the team member's ID, d | `teamMemberId` | `string \| undefined` | Optional | The ID of the [TeamMember](entity:TeamMember) object for the team member associated with the booking profile.
**Constraints**: *Maximum Length*: `32` | | `description` | `string \| undefined` | Optional | The description of the team member.
**Constraints**: *Maximum Length*: `65536` | | `displayName` | `string \| undefined` | Optional | The display name of the team member.
**Constraints**: *Maximum Length*: `512` | -| `isBookable` | `boolean \| null \| undefined` | Optional | Indicates whether the team member can be booked through the Bookings API or the seller's online booking channel or site (`true) or not (`false`). | +| `isBookable` | `boolean \| null \| undefined` | Optional | Indicates whether the team member can be booked through the Bookings API or the seller's online booking channel or site (`true`) or not (`false`). | | `profileImageUrl` | `string \| undefined` | Optional | The URL of the team member's image for the bookings profile.
**Constraints**: *Maximum Length*: `2048` | ## Example (as JSON) diff --git a/doc/models/team-member-wage.md b/doc/models/team-member-wage.md index 6d193dab..e5c27b3b 100644 --- a/doc/models/team-member-wage.md +++ b/doc/models/team-member-wage.md @@ -22,14 +22,14 @@ specified by the `title` property of this object. ```json { - "id": "id0", - "team_member_id": "team_member_id0", - "title": "title4", + "id": "id2", + "team_member_id": "team_member_id2", + "title": "title8", "hourly_rate": { "amount": 172, "currency": "OMR" }, - "job_id": "job_id2" + "job_id": "job_id0" } ``` diff --git a/doc/models/team-member.md b/doc/models/team-member.md index f8c699b2..69692c8f 100644 --- a/doc/models/team-member.md +++ b/doc/models/team-member.md @@ -27,11 +27,11 @@ A record representing an individual team member for a business. ```json { - "id": "id0", - "reference_id": "reference_id2", + "id": "id4", + "reference_id": "reference_id8", "is_owner": false, "status": "ACTIVE", - "given_name": "given_name2" + "given_name": "given_name6" } ``` diff --git a/doc/models/tender-card-details.md b/doc/models/tender-card-details.md index b4ff92ec..93db9673 100644 --- a/doc/models/tender-card-details.md +++ b/doc/models/tender-card-details.md @@ -19,7 +19,7 @@ Represents additional details of a tender with `type` `CARD` or `SQUARE_GIFT_CAR ```json { - "status": "AUTHORIZED", + "status": "VOIDED", "card": { "id": "id6", "card_brand": "OTHER_BRAND", @@ -27,7 +27,7 @@ Represents additional details of a tender with `type` `CARD` or `SQUARE_GIFT_CAR "exp_month": 228, "exp_year": 68 }, - "entry_method": "KEYED" + "entry_method": "CONTACTLESS" } ``` diff --git a/doc/models/tender.md b/doc/models/tender.md index 3530bd5f..5f5b03d4 100644 --- a/doc/models/tender.md +++ b/doc/models/tender.md @@ -33,12 +33,12 @@ Represents a tender (i.e., a method of payment) used in a Square transaction. ```json { - "id": "id0", - "location_id": "location_id4", - "transaction_id": "transaction_id8", - "created_at": "created_at2", + "id": "id8", + "location_id": "location_id2", + "transaction_id": "transaction_id6", + "created_at": "created_at6", "note": "note4", - "type": "CARD" + "type": "SQUARE_ACCOUNT" } ``` diff --git a/doc/models/terminal-action-query-filter.md b/doc/models/terminal-action-query-filter.md index 7fa547f7..f6108f26 100644 --- a/doc/models/terminal-action-query-filter.md +++ b/doc/models/terminal-action-query-filter.md @@ -18,12 +18,12 @@ ```json { - "device_id": "device_id6", + "device_id": "device_id4", "created_at": { "start_at": "start_at4", "end_at": "end_at8" }, - "status": "status8", + "status": "status0", "type": "DATA_COLLECTION" } ``` diff --git a/doc/models/terminal-action.md b/doc/models/terminal-action.md index 7b325d29..7a6e2811 100644 --- a/doc/models/terminal-action.md +++ b/doc/models/terminal-action.md @@ -36,11 +36,11 @@ Represents an action processed by the Square Terminal. ```json { - "id": "id0", - "device_id": "device_id6", - "deadline_duration": "deadline_duration8", - "status": "status8", - "cancel_reason": "SELLER_CANCELED" + "id": "id8", + "device_id": "device_id4", + "deadline_duration": "deadline_duration0", + "status": "status0", + "cancel_reason": "TIMED_OUT" } ``` diff --git a/doc/models/terminal-checkout-query-filter.md b/doc/models/terminal-checkout-query-filter.md index 3177b5f9..7fbdabca 100644 --- a/doc/models/terminal-checkout-query-filter.md +++ b/doc/models/terminal-checkout-query-filter.md @@ -17,12 +17,12 @@ ```json { - "device_id": "device_id6", + "device_id": "device_id4", "created_at": { "start_at": "start_at4", "end_at": "end_at8" }, - "status": "status8" + "status": "status0" } ``` diff --git a/doc/models/terminal-checkout.md b/doc/models/terminal-checkout.md index b9634b22..3b5f6a60 100644 --- a/doc/models/terminal-checkout.md +++ b/doc/models/terminal-checkout.md @@ -37,14 +37,14 @@ Represents a checkout processed by the Square Terminal. ```json { - "id": "id0", + "id": "id6", "amount_money": { "amount": 186, "currency": "TZS" }, - "reference_id": "reference_id2", - "note": "note4", - "order_id": "order_id6", + "reference_id": "reference_id6", + "note": "note8", + "order_id": "order_id0", "payment_options": { "autocomplete": false, "delay_duration": "delay_duration2", @@ -60,7 +60,7 @@ Represents a checkout processed by the Square Terminal. "separate_tip_screen": false, "custom_tip_field": false, "tip_percentages": [ - 154 + 48 ], "smart_tipping": false }, diff --git a/doc/models/terminal-refund-query-filter.md b/doc/models/terminal-refund-query-filter.md index 22987180..990a01c2 100644 --- a/doc/models/terminal-refund-query-filter.md +++ b/doc/models/terminal-refund-query-filter.md @@ -17,12 +17,12 @@ ```json { - "device_id": "device_id6", + "device_id": "device_id4", "created_at": { "start_at": "start_at4", "end_at": "end_at8" }, - "status": "status8" + "status": "status0" } ``` diff --git a/doc/models/terminal-refund.md b/doc/models/terminal-refund.md index 0b90ec7e..c87af3eb 100644 --- a/doc/models/terminal-refund.md +++ b/doc/models/terminal-refund.md @@ -30,18 +30,18 @@ Represents a payment refund processed by the Square Terminal. Only supports Inte ```json { - "id": "id0", - "refund_id": "refund_id4", - "payment_id": "payment_id0", - "order_id": "order_id6", + "id": "id8", + "refund_id": "refund_id2", + "payment_id": "payment_id8", + "order_id": "order_id2", "amount_money": { "amount": 186, "currency": "TZS" }, - "reason": "reason4", - "device_id": "device_id6", - "deadline_duration": "deadline_duration8", - "status": "status8" + "reason": "reason6", + "device_id": "device_id4", + "deadline_duration": "deadline_duration0", + "status": "status0" } ``` diff --git a/doc/models/test-webhook-subscription-response.md b/doc/models/test-webhook-subscription-response.md index 29b63913..626f8a8f 100644 --- a/doc/models/test-webhook-subscription-response.md +++ b/doc/models/test-webhook-subscription-response.md @@ -30,23 +30,17 @@ present. "updated_at": "2022-01-11 00:06:48.322945116 +0000 UTC m=+3863.054453746" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/tip-settings.md b/doc/models/tip-settings.md index a6fb5d3e..627446bc 100644 --- a/doc/models/tip-settings.md +++ b/doc/models/tip-settings.md @@ -23,8 +23,9 @@ "separate_tip_screen": false, "custom_tip_field": false, "tip_percentages": [ - 156, - 157 + 66, + 67, + 68 ], "smart_tipping": false } diff --git a/doc/models/transaction.md b/doc/models/transaction.md index 6217b8ca..d9a1b8bf 100644 --- a/doc/models/transaction.md +++ b/doc/models/transaction.md @@ -30,144 +30,144 @@ the transaction. ```json { - "id": "id0", - "location_id": "location_id4", - "created_at": "created_at2", + "id": "id4", + "location_id": "location_id8", + "created_at": "created_at8", "tenders": [ { - "id": "id2", - "location_id": "location_id6", - "transaction_id": "transaction_id0", - "created_at": "created_at0", - "note": "note8", + "id": "id8", + "location_id": "location_id2", + "transaction_id": "transaction_id6", + "created_at": "created_at6", + "note": "note4", "type": "THIRD_PARTY_CARD" }, { - "id": "id3", - "location_id": "location_id7", - "transaction_id": "transaction_id1", - "created_at": "created_at1", - "note": "note9", - "type": "SQUARE_GIFT_CARD" + "id": "id8", + "location_id": "location_id2", + "transaction_id": "transaction_id6", + "created_at": "created_at6", + "note": "note4", + "type": "THIRD_PARTY_CARD" }, { - "id": "id4", - "location_id": "location_id8", - "transaction_id": "transaction_id2", - "created_at": "created_at2", - "note": "note0", - "type": "NO_SALE" + "id": "id8", + "location_id": "location_id2", + "transaction_id": "transaction_id6", + "created_at": "created_at6", + "note": "note4", + "type": "THIRD_PARTY_CARD" } ], "refunds": [ { - "id": "id4", - "location_id": "location_id8", - "transaction_id": "transaction_id2", - "tender_id": "tender_id2", - "created_at": "created_at2", - "reason": "reason0", + "id": "id8", + "location_id": "location_id2", + "transaction_id": "transaction_id6", + "tender_id": "tender_id6", + "created_at": "created_at6", + "reason": "reason4", "amount_money": { "amount": 186, - "currency": "DJF" + "currency": "TZS" }, "status": "PENDING", "processing_fee_money": { "amount": 112, - "currency": "LTL" + "currency": "BBD" }, "additional_recipients": [ { - "location_id": "location_id7", - "description": "description3", + "location_id": "location_id0", + "description": "description6", + "amount_money": { + "amount": 186, + "currency": "TZS" + }, + "receivable_id": "receivable_id6" + }, + { + "location_id": "location_id0", + "description": "description6", "amount_money": { - "amount": 83, - "currency": "JMD" + "amount": 186, + "currency": "TZS" }, - "receivable_id": "receivable_id3" + "receivable_id": "receivable_id6" } ] }, { - "id": "id5", - "location_id": "location_id9", - "transaction_id": "transaction_id3", - "tender_id": "tender_id3", - "created_at": "created_at3", - "reason": "reason9", + "id": "id8", + "location_id": "location_id2", + "transaction_id": "transaction_id6", + "tender_id": "tender_id6", + "created_at": "created_at6", + "reason": "reason4", "amount_money": { - "amount": 187, - "currency": "DKK" + "amount": 186, + "currency": "TZS" }, - "status": "APPROVED", + "status": "PENDING", "processing_fee_money": { - "amount": 113, - "currency": "LVL" + "amount": 112, + "currency": "BBD" }, "additional_recipients": [ { - "location_id": "location_id8", - "description": "description4", + "location_id": "location_id0", + "description": "description6", "amount_money": { - "amount": 84, - "currency": "JOD" + "amount": 186, + "currency": "TZS" }, - "receivable_id": "receivable_id4" + "receivable_id": "receivable_id6" }, { - "location_id": "location_id9", - "description": "description5", + "location_id": "location_id0", + "description": "description6", "amount_money": { - "amount": 85, - "currency": "JPY" + "amount": 186, + "currency": "TZS" }, - "receivable_id": "receivable_id5" + "receivable_id": "receivable_id6" } ] }, { - "id": "id6", - "location_id": "location_id0", - "transaction_id": "transaction_id4", - "tender_id": "tender_id4", - "created_at": "created_at4", - "reason": "reason8", + "id": "id8", + "location_id": "location_id2", + "transaction_id": "transaction_id6", + "tender_id": "tender_id6", + "created_at": "created_at6", + "reason": "reason4", "amount_money": { - "amount": 188, - "currency": "DOP" + "amount": 186, + "currency": "TZS" }, - "status": "REJECTED", + "status": "PENDING", "processing_fee_money": { - "amount": 114, - "currency": "LYD" + "amount": 112, + "currency": "BBD" }, "additional_recipients": [ - { - "location_id": "location_id9", - "description": "description5", - "amount_money": { - "amount": 85, - "currency": "JPY" - }, - "receivable_id": "receivable_id5" - }, { "location_id": "location_id0", "description": "description6", "amount_money": { - "amount": 86, - "currency": "KES" + "amount": 186, + "currency": "TZS" }, "receivable_id": "receivable_id6" }, { - "location_id": "location_id1", - "description": "description7", + "location_id": "location_id0", + "description": "description6", "amount_money": { - "amount": 87, - "currency": "KGS" + "amount": 186, + "currency": "TZS" }, - "receivable_id": "receivable_id7" + "receivable_id": "receivable_id6" } ] } diff --git a/doc/models/unlink-customer-from-gift-card-response.md b/doc/models/unlink-customer-from-gift-card-response.md index 6d7ed025..fb4d9f02 100644 --- a/doc/models/unlink-customer-from-gift-card-response.md +++ b/doc/models/unlink-customer-from-gift-card-response.md @@ -33,22 +33,22 @@ the response contains a set of `Error` objects. }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/update-booking-custom-attribute-definition-request.md b/doc/models/update-booking-custom-attribute-definition-request.md index 4039e99f..4a779aa1 100644 --- a/doc/models/update-booking-custom-attribute-definition-request.md +++ b/doc/models/update-booking-custom-attribute-definition-request.md @@ -28,7 +28,7 @@ Represents an [UpdateBookingCustomAttributeDefinition](../../doc/api/booking-cus "description": "description8", "visibility": "VISIBILITY_HIDDEN" }, - "idempotency_key": "idempotency_key6" + "idempotency_key": "idempotency_key2" } ``` diff --git a/doc/models/update-booking-request.md b/doc/models/update-booking-request.md index f5eacbcd..6f75bbb8 100644 --- a/doc/models/update-booking-request.md +++ b/doc/models/update-booking-request.md @@ -16,7 +16,7 @@ ```json { - "idempotency_key": "idempotency_key6", + "idempotency_key": "idempotency_key4", "booking": { "id": "id4", "version": 156, diff --git a/doc/models/update-break-type-response.md b/doc/models/update-break-type-response.md index 1fe66f2c..2ae41ecc 100644 --- a/doc/models/update-break-type-response.md +++ b/doc/models/update-break-type-response.md @@ -31,23 +31,11 @@ the request resulted in errors. "version": 2 }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/update-catalog-image-response.md b/doc/models/update-catalog-image-response.md index 6559fca4..d53d22c7 100644 --- a/doc/models/update-catalog-image-response.md +++ b/doc/models/update-catalog-image-response.md @@ -29,53 +29,47 @@ "is_deleted": false, "custom_attribute_values": { "key0": { - "name": "name9", - "string_value": "string_value3", - "custom_attribute_definition_id": "custom_attribute_definition_id3", - "type": "BOOLEAN", - "number_value": "number_value9" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" }, "key1": { - "name": "name0", - "string_value": "string_value4", - "custom_attribute_definition_id": "custom_attribute_definition_id2", + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", "type": "STRING", - "number_value": "number_value0" + "number_value": "number_value8" } }, "catalog_v1_ids": [ { - "catalog_v1_id": "catalog_v1_id0", - "location_id": "location_id0" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" }, { - "catalog_v1_id": "catalog_v1_id1", - "location_id": "location_id1" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" }, { - "catalog_v1_id": "catalog_v1_id2", - "location_id": "location_id2" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" } ] }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/update-customer-custom-attribute-definition-request.md b/doc/models/update-customer-custom-attribute-definition-request.md index f7410a87..082b412e 100644 --- a/doc/models/update-customer-custom-attribute-definition-request.md +++ b/doc/models/update-customer-custom-attribute-definition-request.md @@ -28,7 +28,7 @@ Represents an [UpdateCustomerCustomAttributeDefinition](../../doc/api/customer-c }, "name": "name2" }, - "idempotency_key": "idempotency_key6" + "idempotency_key": "idempotency_key2" } ``` diff --git a/doc/models/update-customer-custom-attribute-definition-response.md b/doc/models/update-customer-custom-attribute-definition-response.md index 67ddc78f..9760c2bb 100644 --- a/doc/models/update-customer-custom-attribute-definition-response.md +++ b/doc/models/update-customer-custom-attribute-definition-response.md @@ -34,22 +34,22 @@ Either `custom_attribute_definition` or `errors` is present in the response. }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/update-customer-group-response.md b/doc/models/update-customer-group-response.md index ec5e5d00..230114b1 100644 --- a/doc/models/update-customer-group-response.md +++ b/doc/models/update-customer-group-response.md @@ -29,22 +29,22 @@ Either `errors` or `group` is present in a given response (never both). }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/update-customer-request.md b/doc/models/update-customer-request.md index 1019f731..329cebd3 100644 --- a/doc/models/update-customer-request.md +++ b/doc/models/update-customer-request.md @@ -33,10 +33,10 @@ Defines the body parameters that can be included in a request to the "note": "updated customer note", "phone_number": "", "version": 2, - "given_name": "given_name2", - "family_name": "family_name6", - "company_name": "company_name6", - "nickname": "nickname6" + "given_name": "given_name0", + "family_name": "family_name8", + "company_name": "company_name4", + "nickname": "nickname4" } ``` diff --git a/doc/models/update-customer-response.md b/doc/models/update-customer-response.md index e92b9b29..2e35484f 100644 --- a/doc/models/update-customer-response.md +++ b/doc/models/update-customer-response.md @@ -45,32 +45,26 @@ Either `errors` or `customer` is present in a given response (never both). "version": 3, "cards": [ { - "id": "id7", - "card_brand": "AMERICAN_EXPRESS", - "last_4": "last_49", - "exp_month": 113, - "exp_year": 183 + "id": "id8", + "card_brand": "DISCOVER", + "last_4": "last_40", + "exp_month": 152, + "exp_year": 144 } ] }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/update-invoice-request.md b/doc/models/update-invoice-request.md index bf6691ce..0826f132 100644 --- a/doc/models/update-invoice-request.md +++ b/doc/models/update-invoice-request.md @@ -35,10 +35,10 @@ Describes a `UpdateInvoice` request. "location_id": "location_id0", "order_id": "order_id0", "primary_recipient": { - "customer_id": "customer_id8", - "given_name": "given_name2", - "family_name": "family_name4", - "email_address": "email_address8", + "customer_id": "customer_id2", + "given_name": "given_name6", + "family_name": "family_name8", + "email_address": "email_address2", "address": { "address_line_1": "address_line_16", "address_line_2": "address_line_26", diff --git a/doc/models/update-invoice-response.md b/doc/models/update-invoice-response.md index d6a7f040..0105b10f 100644 --- a/doc/models/update-invoice-response.md +++ b/doc/models/update-invoice-response.md @@ -90,23 +90,17 @@ Describes a `UpdateInvoice` response. "version": 2 }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/update-item-modifier-lists-response.md b/doc/models/update-item-modifier-lists-response.md index 7fa1c6a5..d96b7913 100644 --- a/doc/models/update-item-modifier-lists-response.md +++ b/doc/models/update-item-modifier-lists-response.md @@ -19,22 +19,22 @@ "updated_at": "2016-11-16T22:25:24.878Z", "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/update-item-taxes-response.md b/doc/models/update-item-taxes-response.md index 7a448beb..2921d3d7 100644 --- a/doc/models/update-item-taxes-response.md +++ b/doc/models/update-item-taxes-response.md @@ -19,22 +19,22 @@ "updated_at": "2016-11-16T22:25:24.878Z", "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/update-location-custom-attribute-definition-request.md b/doc/models/update-location-custom-attribute-definition-request.md index 707cfc96..fc60f372 100644 --- a/doc/models/update-location-custom-attribute-definition-request.md +++ b/doc/models/update-location-custom-attribute-definition-request.md @@ -28,7 +28,7 @@ Represents an [UpdateLocationCustomAttributeDefinition](../../doc/api/location-c }, "name": "name2" }, - "idempotency_key": "idempotency_key6" + "idempotency_key": "idempotency_key2" } ``` diff --git a/doc/models/update-location-custom-attribute-definition-response.md b/doc/models/update-location-custom-attribute-definition-response.md index cb928254..4e602d8b 100644 --- a/doc/models/update-location-custom-attribute-definition-response.md +++ b/doc/models/update-location-custom-attribute-definition-response.md @@ -34,22 +34,22 @@ Either `custom_attribute_definition` or `errors` is present in the response. }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/update-location-request.md b/doc/models/update-location-request.md index 00fdd09e..0114fccf 100644 --- a/doc/models/update-location-request.md +++ b/doc/models/update-location-request.md @@ -41,11 +41,11 @@ The request object for the [UpdateLocation](../../doc/api/locations.md#update-lo "id": "id4", "name": "name4", "address": { - "address_line_1": "address_line_10", - "address_line_2": "address_line_20", - "address_line_3": "address_line_36", - "locality": "locality0", - "sublocality": "sublocality0" + "address_line_1": "address_line_16", + "address_line_2": "address_line_26", + "address_line_3": "address_line_32", + "locality": "locality6", + "sublocality": "sublocality6" }, "timezone": "timezone6", "capabilities": [ diff --git a/doc/models/update-location-response.md b/doc/models/update-location-response.md index 0786acaf..37531734 100644 --- a/doc/models/update-location-response.md +++ b/doc/models/update-location-response.md @@ -24,9 +24,9 @@ The response object returned by the [UpdateLocation](../../doc/api/locations.md# "administrative_district_level_1": "GA", "locality": "Atlanta", "postal_code": "30309", - "address_line_2": "address_line_20", - "address_line_3": "address_line_36", - "sublocality": "sublocality0" + "address_line_2": "address_line_26", + "address_line_3": "address_line_32", + "sublocality": "sublocality6" }, "business_hours": { "periods": [ @@ -69,23 +69,17 @@ The response object returned by the [UpdateLocation](../../doc/api/locations.md# "type": "PHYSICAL" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/update-merchant-custom-attribute-definition-request.md b/doc/models/update-merchant-custom-attribute-definition-request.md index 629fade5..de53405f 100644 --- a/doc/models/update-merchant-custom-attribute-definition-request.md +++ b/doc/models/update-merchant-custom-attribute-definition-request.md @@ -28,7 +28,7 @@ Represents an [UpdateMerchantCustomAttributeDefinition](../../doc/api/merchant-c }, "name": "name2" }, - "idempotency_key": "idempotency_key6" + "idempotency_key": "idempotency_key4" } ``` diff --git a/doc/models/update-merchant-custom-attribute-definition-response.md b/doc/models/update-merchant-custom-attribute-definition-response.md index 0e9b477e..7f9b4ad0 100644 --- a/doc/models/update-merchant-custom-attribute-definition-response.md +++ b/doc/models/update-merchant-custom-attribute-definition-response.md @@ -33,23 +33,11 @@ Either `custom_attribute_definition` or `errors` is present in the response. "visibility": "VISIBILITY_READ_ONLY" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/update-order-custom-attribute-definition-response.md b/doc/models/update-order-custom-attribute-definition-response.md index d203926e..6c71142e 100644 --- a/doc/models/update-order-custom-attribute-definition-response.md +++ b/doc/models/update-order-custom-attribute-definition-response.md @@ -33,22 +33,22 @@ Represents a response from updating an order custom attribute definition. }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/update-order-request.md b/doc/models/update-order-request.md index 28e09654..0d9c4182 100644 --- a/doc/models/update-order-request.md +++ b/doc/models/update-order-request.md @@ -25,38 +25,40 @@ Defines the fields that are included in requests to the "location_id": "location_id0", "reference_id": "reference_id4", "source": { - "name": "name2" + "name": "name4" }, "customer_id": "customer_id4", "line_items": [ { - "uid": "uid1", - "name": "name1", - "quantity": "quantity7", + "uid": "uid8", + "name": "name8", + "quantity": "quantity4", "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name9", - "abbreviation": "abbreviation1" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "METRIC_SQUARE_CENTIMETER", - "length_unit": "IMPERIAL_MILE", - "volume_unit": "GENERIC_FLUID_OUNCE", - "weight_unit": "METRIC_KILOGRAM" + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_LITER", + "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 201, - "catalog_object_id": "catalog_object_id1", - "catalog_version": 135 + "precision": 54, + "catalog_object_id": "catalog_object_id0", + "catalog_version": 12 }, - "note": "note3", - "catalog_object_id": "catalog_object_id5" + "note": "note4", + "catalog_object_id": "catalog_object_id2" } ] }, "fields_to_clear": [ - "fields_to_clear1" + "fields_to_clear7", + "fields_to_clear8", + "fields_to_clear9" ], - "idempotency_key": "idempotency_key6" + "idempotency_key": "idempotency_key2" } ``` diff --git a/doc/models/update-order-response.md b/doc/models/update-order-response.md index 5949d15a..07cb558d 100644 --- a/doc/models/update-order-response.md +++ b/doc/models/update-order-response.md @@ -58,20 +58,20 @@ a request to the [UpdateOrder](../../doc/api/orders.md#update-order) endpoint. "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name9", - "abbreviation": "abbreviation1" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "METRIC_SQUARE_CENTIMETER", - "length_unit": "IMPERIAL_MILE", - "volume_unit": "GENERIC_FLUID_OUNCE", - "weight_unit": "METRIC_KILOGRAM" + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", + "volume_unit": "METRIC_LITER", + "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 201, - "catalog_object_id": "catalog_object_id1", - "catalog_version": 135 + "precision": 54, + "catalog_object_id": "catalog_object_id0", + "catalog_version": 12 }, - "note": "note3", - "catalog_object_id": "catalog_object_id5" + "note": "note4", + "catalog_object_id": "catalog_object_id2" }, { "base_price_money": { @@ -108,20 +108,20 @@ a request to the [UpdateOrder](../../doc/api/orders.md#update-order) endpoint. "quantity_unit": { "measurement_unit": { "custom_unit": { - "name": "name8", - "abbreviation": "abbreviation0" + "name": "name2", + "abbreviation": "abbreviation4" }, - "area_unit": "IMPERIAL_SQUARE_MILE", - "length_unit": "METRIC_MILLIMETER", + "area_unit": "IMPERIAL_ACRE", + "length_unit": "IMPERIAL_INCH", "volume_unit": "METRIC_LITER", "weight_unit": "IMPERIAL_WEIGHT_OUNCE" }, - "precision": 200, + "precision": 54, "catalog_object_id": "catalog_object_id0", - "catalog_version": 134 + "catalog_version": 12 }, "note": "note4", - "catalog_object_id": "catalog_object_id6" + "catalog_object_id": "catalog_object_id2" } ], "location_id": "MXVQSVNDGN3C8", @@ -169,23 +169,17 @@ a request to the [UpdateOrder](../../doc/api/orders.md#update-order) endpoint. "customer_id": "customer_id4" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/update-payment-link-request.md b/doc/models/update-payment-link-request.md index 5c31b18c..4032846b 100644 --- a/doc/models/update-payment-link-request.md +++ b/doc/models/update-payment-link-request.md @@ -21,29 +21,29 @@ "allow_tipping": false, "custom_fields": [ { - "title": "title1" + "title": "title8" }, { - "title": "title2" + "title": "title8" } ], - "subscription_plan_id": "subscription_plan_id0", - "redirect_url": "redirect_url4", - "merchant_support_email": "merchant_support_email0" + "subscription_plan_id": "subscription_plan_id8", + "redirect_url": "redirect_url2", + "merchant_support_email": "merchant_support_email8" }, "version": 1, "id": "id2", "description": "description2", "order_id": "order_id6", "pre_populated_data": { - "buyer_email": "buyer_email6", - "buyer_phone_number": "buyer_phone_number8", + "buyer_email": "buyer_email8", + "buyer_phone_number": "buyer_phone_number0", "buyer_address": { - "address_line_1": "address_line_14", - "address_line_2": "address_line_24", - "address_line_3": "address_line_30", - "locality": "locality4", - "sublocality": "sublocality4" + "address_line_1": "address_line_12", + "address_line_2": "address_line_22", + "address_line_3": "address_line_38", + "locality": "locality2", + "sublocality": "sublocality2" } } } diff --git a/doc/models/update-payment-link-response.md b/doc/models/update-payment-link-response.md index f1394825..53a4d0f3 100644 --- a/doc/models/update-payment-link-response.md +++ b/doc/models/update-payment-link-response.md @@ -22,15 +22,15 @@ "allow_tipping": false, "custom_fields": [ { - "title": "title1" + "title": "title8" }, { - "title": "title2" + "title": "title8" } ], - "subscription_plan_id": "subscription_plan_id0", - "redirect_url": "redirect_url4", - "merchant_support_email": "merchant_support_email0" + "subscription_plan_id": "subscription_plan_id8", + "redirect_url": "redirect_url2", + "merchant_support_email": "merchant_support_email8" }, "created_at": "2022-04-26T00:15:15Z", "id": "TY4BWEDJ6AI5MBIV", @@ -42,35 +42,35 @@ "version": 2, "description": "description2", "pre_populated_data": { - "buyer_email": "buyer_email6", - "buyer_phone_number": "buyer_phone_number8", + "buyer_email": "buyer_email8", + "buyer_phone_number": "buyer_phone_number0", "buyer_address": { - "address_line_1": "address_line_14", - "address_line_2": "address_line_24", - "address_line_3": "address_line_30", - "locality": "locality4", - "sublocality": "sublocality4" + "address_line_1": "address_line_12", + "address_line_2": "address_line_22", + "address_line_3": "address_line_38", + "locality": "locality2", + "sublocality": "sublocality2" } } }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/update-payment-response.md b/doc/models/update-payment-response.md index 8f00232a..41617f23 100644 --- a/doc/models/update-payment-response.md +++ b/doc/models/update-payment-response.md @@ -88,22 +88,22 @@ Defines the response returned by }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/update-shift-response.md b/doc/models/update-shift-response.md index 0f12536e..2110a601 100644 --- a/doc/models/update-shift-response.md +++ b/doc/models/update-shift-response.md @@ -54,22 +54,22 @@ the request resulted in errors. }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/update-subscription-response.md b/doc/models/update-subscription-response.md index 0363fef5..9cd9912c 100644 --- a/doc/models/update-subscription-response.md +++ b/doc/models/update-subscription-response.md @@ -40,23 +40,17 @@ Defines output parameters in a response from the "version": 3 }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/update-team-member-response.md b/doc/models/update-team-member-response.md index 03110d3e..aca54ac4 100644 --- a/doc/models/update-team-member-response.md +++ b/doc/models/update-team-member-response.md @@ -38,23 +38,11 @@ Represents a response from an update request containing the updated `TeamMember` "updated_at": "2021-06-15T17:38:05Z" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/update-vendor-request.md b/doc/models/update-vendor-request.md index 86aa922b..51e811e3 100644 --- a/doc/models/update-vendor-request.md +++ b/doc/models/update-vendor-request.md @@ -27,11 +27,11 @@ Represents an input to a call to [UpdateVendor](../../doc/api/vendors.md#update- "created_at": "created_at4", "updated_at": "updated_at2", "address": { - "address_line_1": "address_line_12", - "address_line_2": "address_line_22", - "address_line_3": "address_line_38", - "locality": "locality2", - "sublocality": "sublocality2" + "address_line_1": "address_line_16", + "address_line_2": "address_line_26", + "address_line_3": "address_line_32", + "locality": "locality6", + "sublocality": "sublocality6" } } } diff --git a/doc/models/update-vendor-response.md b/doc/models/update-vendor-response.md index a0cef3d8..6424e0e5 100644 --- a/doc/models/update-vendor-response.md +++ b/doc/models/update-vendor-response.md @@ -28,8 +28,8 @@ Represents an output from a call to [UpdateVendor](../../doc/api/vendors.md#upda "country": "US", "locality": "New York", "postal_code": "10003", - "address_line_3": "address_line_38", - "sublocality": "sublocality2" + "address_line_3": "address_line_32", + "sublocality": "sublocality6" }, "contacts": [ { diff --git a/doc/models/update-wage-setting-request.md b/doc/models/update-wage-setting-request.md index cfee0a57..b2c54bbb 100644 --- a/doc/models/update-wage-setting-request.md +++ b/doc/models/update-wage-setting-request.md @@ -29,8 +29,8 @@ Represents an update request for the `WageSetting` object describing a `TeamMemb "pay_type": "SALARY", "weekly_hours": 40, "hourly_rate": { - "amount": 125, - "currency": "XUS" + "amount": 172, + "currency": "OMR" } }, { @@ -41,10 +41,10 @@ Represents an update request for the `WageSetting` object describing a `TeamMemb "job_title": "Cashier", "pay_type": "HOURLY", "annual_rate": { - "amount": 66, - "currency": "XCD" + "amount": 232, + "currency": "SBD" }, - "weekly_hours": 234 + "weekly_hours": 98 } ], "team_member_id": "team_member_id8", diff --git a/doc/models/update-wage-setting-response.md b/doc/models/update-wage-setting-response.md index e3cacce5..6f2e798e 100644 --- a/doc/models/update-wage-setting-response.md +++ b/doc/models/update-wage-setting-response.md @@ -44,10 +44,10 @@ or error messages. "job_title": "Cashier", "pay_type": "HOURLY", "annual_rate": { - "amount": 66, - "currency": "XCD" + "amount": 232, + "currency": "SBD" }, - "weekly_hours": 234 + "weekly_hours": 98 } ], "team_member_id": "-3oZQKPKVk6gUXU_V5Qa", @@ -55,23 +55,17 @@ or error messages. "version": 1 }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/update-webhook-subscription-response.md b/doc/models/update-webhook-subscription-response.md index b5b99f23..fdb75915 100644 --- a/doc/models/update-webhook-subscription-response.md +++ b/doc/models/update-webhook-subscription-response.md @@ -36,23 +36,11 @@ present. "updated_at": "2022-01-10 23:45:51 +0000 UTC" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/update-webhook-subscription-signature-key-response.md b/doc/models/update-webhook-subscription-signature-key-response.md index ef8f6256..891ebd52 100644 --- a/doc/models/update-webhook-subscription-signature-key-response.md +++ b/doc/models/update-webhook-subscription-signature-key-response.md @@ -25,22 +25,22 @@ present. "signature_key": "1k9bIJKCeTmSQwyagtNRLg", "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/update-workweek-config-response.md b/doc/models/update-workweek-config-response.md index 58ee1f25..cbfa77b8 100644 --- a/doc/models/update-workweek-config-response.md +++ b/doc/models/update-workweek-config-response.md @@ -30,22 +30,22 @@ the request resulted in errors. }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/upsert-booking-custom-attribute-request.md b/doc/models/upsert-booking-custom-attribute-request.md index 93681d64..8d91a27c 100644 --- a/doc/models/upsert-booking-custom-attribute-request.md +++ b/doc/models/upsert-booking-custom-attribute-request.md @@ -27,17 +27,17 @@ Represents an [UpsertBookingCustomAttribute](../../doc/api/booking-custom-attrib "version": 102, "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key2", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name2", - "description": "description2", - "visibility": "VISIBILITY_READ_ONLY" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } }, - "idempotency_key": "idempotency_key6" + "idempotency_key": "idempotency_key4" } ``` diff --git a/doc/models/upsert-booking-custom-attribute-response.md b/doc/models/upsert-booking-custom-attribute-response.md index b3c844a8..d23b0ca8 100644 --- a/doc/models/upsert-booking-custom-attribute-response.md +++ b/doc/models/upsert-booking-custom-attribute-response.md @@ -28,34 +28,34 @@ Either `custom_attribute_definition` or `errors` is present in the response. "version": 102, "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key2", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name2", - "description": "description2", - "visibility": "VISIBILITY_READ_ONLY" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/upsert-catalog-object-request.md b/doc/models/upsert-catalog-object-request.md index 7d4915e4..1b2bf539 100644 --- a/doc/models/upsert-catalog-object-request.md +++ b/doc/models/upsert-catalog-object-request.md @@ -54,24 +54,24 @@ "is_deleted": false, "custom_attribute_values": { "key0": { - "name": "name3", - "string_value": "string_value7", - "custom_attribute_definition_id": "custom_attribute_definition_id9", - "type": "SELECTION", - "number_value": "number_value3" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" }, "key1": { - "name": "name2", - "string_value": "string_value6", - "custom_attribute_definition_id": "custom_attribute_definition_id0", + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", "type": "STRING", - "number_value": "number_value2" + "number_value": "number_value8" } }, "catalog_v1_ids": [ { - "catalog_v1_id": "catalog_v1_id6", - "location_id": "location_id6" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" } ] } diff --git a/doc/models/upsert-catalog-object-response.md b/doc/models/upsert-catalog-object-response.md index 0024bbb8..9d1ff0e7 100644 --- a/doc/models/upsert-catalog-object-response.md +++ b/doc/models/upsert-catalog-object-response.md @@ -70,25 +70,25 @@ "version": 1623685899021, "custom_attribute_values": { "key0": { - "name": "name9", - "string_value": "string_value3", - "custom_attribute_definition_id": "custom_attribute_definition_id3", - "type": "BOOLEAN", - "number_value": "number_value9" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" }, "key1": { - "name": "name0", - "string_value": "string_value4", - "custom_attribute_definition_id": "custom_attribute_definition_id2", + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", "type": "STRING", - "number_value": "number_value0" + "number_value": "number_value8" }, "key2": { - "name": "name1", - "string_value": "string_value5", - "custom_attribute_definition_id": "custom_attribute_definition_id1", - "type": "SELECTION", - "number_value": "number_value1" + "name": "name8", + "string_value": "string_value2", + "custom_attribute_definition_id": "custom_attribute_definition_id4", + "type": "STRING", + "number_value": "number_value8" } }, "catalog_v1_ids": [ @@ -97,12 +97,12 @@ "location_id": "location_id4" }, { - "catalog_v1_id": "catalog_v1_id5", - "location_id": "location_id5" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" }, { - "catalog_v1_id": "catalog_v1_id6", - "location_id": "location_id6" + "catalog_v1_id": "catalog_v1_id4", + "location_id": "location_id4" } ] }, @@ -121,23 +121,17 @@ } ], "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/upsert-customer-custom-attribute-request.md b/doc/models/upsert-customer-custom-attribute-request.md index 10682726..0caa85f2 100644 --- a/doc/models/upsert-customer-custom-attribute-request.md +++ b/doc/models/upsert-customer-custom-attribute-request.md @@ -27,14 +27,14 @@ Represents an [UpsertCustomerCustomAttribute](../../doc/api/customer-custom-attr "version": 102, "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key2", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name2", - "description": "description2", - "visibility": "VISIBILITY_READ_ONLY" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } }, "idempotency_key": "idempotency_key6" diff --git a/doc/models/upsert-customer-custom-attribute-response.md b/doc/models/upsert-customer-custom-attribute-response.md index 83aedcf1..d9b0ef88 100644 --- a/doc/models/upsert-customer-custom-attribute-response.md +++ b/doc/models/upsert-customer-custom-attribute-response.md @@ -28,34 +28,22 @@ Either `custom_attribute_definition` or `errors` is present in the response. "version": 102, "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key2", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name2", - "description": "description2", - "visibility": "VISIBILITY_READ_ONLY" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/upsert-location-custom-attribute-request.md b/doc/models/upsert-location-custom-attribute-request.md index 423ab54d..754bfc02 100644 --- a/doc/models/upsert-location-custom-attribute-request.md +++ b/doc/models/upsert-location-custom-attribute-request.md @@ -27,17 +27,17 @@ Represents an [UpsertLocationCustomAttribute](../../doc/api/location-custom-attr "version": 102, "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key2", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name2", - "description": "description2", - "visibility": "VISIBILITY_READ_ONLY" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } }, - "idempotency_key": "idempotency_key6" + "idempotency_key": "idempotency_key8" } ``` diff --git a/doc/models/upsert-location-custom-attribute-response.md b/doc/models/upsert-location-custom-attribute-response.md index d2a7301c..2a8a3824 100644 --- a/doc/models/upsert-location-custom-attribute-response.md +++ b/doc/models/upsert-location-custom-attribute-response.md @@ -28,34 +28,28 @@ Either `custom_attribute_definition` or `errors` is present in the response. "version": 102, "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key2", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name2", - "description": "description2", - "visibility": "VISIBILITY_READ_ONLY" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/upsert-merchant-custom-attribute-request.md b/doc/models/upsert-merchant-custom-attribute-request.md index eb3877d8..fdfc1df5 100644 --- a/doc/models/upsert-merchant-custom-attribute-request.md +++ b/doc/models/upsert-merchant-custom-attribute-request.md @@ -27,14 +27,14 @@ Represents an [UpsertMerchantCustomAttribute](../../doc/api/merchant-custom-attr "version": 102, "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key2", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name2", - "description": "description2", - "visibility": "VISIBILITY_READ_ONLY" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } }, "idempotency_key": "idempotency_key6" diff --git a/doc/models/upsert-merchant-custom-attribute-response.md b/doc/models/upsert-merchant-custom-attribute-response.md index 4570b842..37771fe2 100644 --- a/doc/models/upsert-merchant-custom-attribute-response.md +++ b/doc/models/upsert-merchant-custom-attribute-response.md @@ -28,34 +28,22 @@ Either `custom_attribute_definition` or `errors` is present in the response. "version": 102, "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key2", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name2", - "description": "description2", - "visibility": "VISIBILITY_READ_ONLY" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/upsert-order-custom-attribute-request.md b/doc/models/upsert-order-custom-attribute-request.md index 86cf566a..8e88e5db 100644 --- a/doc/models/upsert-order-custom-attribute-request.md +++ b/doc/models/upsert-order-custom-attribute-request.md @@ -27,17 +27,17 @@ Represents an upsert request for an order custom attribute. "version": 102, "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key2", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name2", - "description": "description2", - "visibility": "VISIBILITY_READ_ONLY" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } }, - "idempotency_key": "idempotency_key6" + "idempotency_key": "idempotency_key4" } ``` diff --git a/doc/models/upsert-order-custom-attribute-response.md b/doc/models/upsert-order-custom-attribute-response.md index 641b5611..a22df47f 100644 --- a/doc/models/upsert-order-custom-attribute-response.md +++ b/doc/models/upsert-order-custom-attribute-response.md @@ -27,34 +27,34 @@ Represents a response from upserting order custom attribute definitions. "version": 102, "visibility": "VISIBILITY_READ_ONLY", "definition": { - "key": "key2", + "key": "key0", "schema": { "key1": "val1", "key2": "val2" }, - "name": "name2", - "description": "description2", - "visibility": "VISIBILITY_READ_ONLY" + "name": "name0", + "description": "description0", + "visibility": "VISIBILITY_HIDDEN" } }, "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/upsert-snippet-response.md b/doc/models/upsert-snippet-response.md index 3ab6a593..24a17b89 100644 --- a/doc/models/upsert-snippet-response.md +++ b/doc/models/upsert-snippet-response.md @@ -26,23 +26,17 @@ Represents an `UpsertSnippet` response. The response can include either `snippet "updated_at": "2021-03-11T25:40:09.000000Z" }, "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/v1-create-refund-request.md b/doc/models/v1-create-refund-request.md index 8f4a7b6c..d392472b 100644 --- a/doc/models/v1-create-refund-request.md +++ b/doc/models/v1-create-refund-request.md @@ -21,14 +21,14 @@ V1CreateRefundRequest ```json { - "payment_id": "payment_id0", + "payment_id": "payment_id2", "type": "FULL", - "reason": "reason4", + "reason": "reason2", "refunded_money": { "amount": 214, "currency_code": "SRD" }, - "request_idempotence_key": "request_idempotence_key8" + "request_idempotence_key": "request_idempotence_key6" } ``` diff --git a/doc/models/v1-device.md b/doc/models/v1-device.md new file mode 100644 index 00000000..76412bd3 --- /dev/null +++ b/doc/models/v1-device.md @@ -0,0 +1,23 @@ + +# V1 Device + +## Structure + +`V1Device` + +## Fields + +| Name | Type | Tags | Description | +| --- | --- | --- | --- | +| `id` | `string \| undefined` | Optional | The device's Square-issued ID. | +| `name` | `string \| null \| undefined` | Optional | The device's merchant-specified name. | + +## Example (as JSON) + +```json +{ + "id": "id6", + "name": "name6" +} +``` + diff --git a/doc/models/v1-list-orders-request.md b/doc/models/v1-list-orders-request.md index 3939a103..914f8386 100644 --- a/doc/models/v1-list-orders-request.md +++ b/doc/models/v1-list-orders-request.md @@ -18,8 +18,8 @@ ```json { "order": "DESC", - "limit": 172, - "batch_token": "batch_token2" + "limit": 24, + "batch_token": "batch_token4" } ``` diff --git a/doc/models/v1-list-orders-response.md b/doc/models/v1-list-orders-response.md index 4a70b13a..d6de2c7f 100644 --- a/doc/models/v1-list-orders-response.md +++ b/doc/models/v1-list-orders-response.md @@ -19,36 +19,24 @@ { "errors": [ { - "category": "API_ERROR", - "code": "REFUND_ALREADY_PENDING", - "detail": "detail8", - "field": "field6" - }, - { - "category": "AUTHENTICATION_ERROR", - "code": "PAYMENT_NOT_REFUNDABLE", - "detail": "detail9", - "field": "field7" - }, - { - "category": "INVALID_REQUEST_ERROR", - "code": "REFUND_DECLINED", - "detail": "detail0", - "field": "field8" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], - "id": "id7", - "buyer_email": "buyer_email1", - "recipient_name": "recipient_name5", - "recipient_phone_number": "recipient_phone_number7" + "id": "id8", + "buyer_email": "buyer_email0", + "recipient_name": "recipient_name6", + "recipient_phone_number": "recipient_phone_number6" }, { "errors": [ { - "category": "AUTHENTICATION_ERROR", - "code": "PAYMENT_NOT_REFUNDABLE", - "detail": "detail9", - "field": "field7" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], "id": "id8", diff --git a/doc/models/v1-list-payments-request.md b/doc/models/v1-list-payments-request.md index f4d477b5..0fd26cf1 100644 --- a/doc/models/v1-list-payments-request.md +++ b/doc/models/v1-list-payments-request.md @@ -21,10 +21,10 @@ ```json { "order": "DESC", - "begin_time": "begin_time2", + "begin_time": "begin_time8", "end_time": "end_time2", - "limit": 172, - "batch_token": "batch_token2" + "limit": 104, + "batch_token": "batch_token8" } ``` diff --git a/doc/models/v1-list-payments-response.md b/doc/models/v1-list-payments-response.md index e30a9bd3..703b819b 100644 --- a/doc/models/v1-list-payments-response.md +++ b/doc/models/v1-list-payments-response.md @@ -17,13 +17,13 @@ { "items": [ { - "id": "id7", - "merchant_id": "merchant_id7", - "created_at": "created_at5", - "creator_id": "creator_id7", + "id": "id8", + "merchant_id": "merchant_id8", + "created_at": "created_at6", + "creator_id": "creator_id8", "device": { - "id": "id3", - "name": "name3" + "id": "id6", + "name": "name6" } }, { @@ -32,8 +32,8 @@ "created_at": "created_at6", "creator_id": "creator_id8", "device": { - "id": "id4", - "name": "name4" + "id": "id6", + "name": "name6" } } ] diff --git a/doc/models/v1-list-refunds-request.md b/doc/models/v1-list-refunds-request.md index c8d21399..5b07894b 100644 --- a/doc/models/v1-list-refunds-request.md +++ b/doc/models/v1-list-refunds-request.md @@ -20,10 +20,10 @@ ```json { "order": "DESC", - "begin_time": "begin_time2", - "end_time": "end_time2", - "limit": 172, - "batch_token": "batch_token2" + "begin_time": "begin_time0", + "end_time": "end_time4", + "limit": 66, + "batch_token": "batch_token0" } ``` diff --git a/doc/models/v1-list-refunds-response.md b/doc/models/v1-list-refunds-response.md index 709303ee..3c1e390d 100644 --- a/doc/models/v1-list-refunds-response.md +++ b/doc/models/v1-list-refunds-response.md @@ -17,35 +17,51 @@ { "items": [ { - "type": "PARTIAL", - "reason": "reason7", + "type": "FULL", + "reason": "reason6", + "refunded_money": { + "amount": 214, + "currency_code": "SRD" + }, + "refunded_processing_fee_money": { + "amount": 0, + "currency_code": "BGN" + }, + "refunded_tax_money": { + "amount": 148, + "currency_code": "SRD" + } + }, + { + "type": "FULL", + "reason": "reason6", "refunded_money": { - "amount": 17, - "currency_code": "USS" + "amount": 214, + "currency_code": "SRD" }, "refunded_processing_fee_money": { - "amount": 59, - "currency_code": "ANG" + "amount": 0, + "currency_code": "BGN" }, "refunded_tax_money": { - "amount": 115, - "currency_code": "LSL" + "amount": 148, + "currency_code": "SRD" } }, { "type": "FULL", "reason": "reason6", "refunded_money": { - "amount": 18, - "currency_code": "UYI" + "amount": 214, + "currency_code": "SRD" }, "refunded_processing_fee_money": { - "amount": 60, - "currency_code": "AOA" + "amount": 0, + "currency_code": "BGN" }, "refunded_tax_money": { - "amount": 116, - "currency_code": "LTL" + "amount": 148, + "currency_code": "SRD" } } ] diff --git a/doc/models/v1-list-settlements-request.md b/doc/models/v1-list-settlements-request.md index c4bf0bbb..45005c27 100644 --- a/doc/models/v1-list-settlements-request.md +++ b/doc/models/v1-list-settlements-request.md @@ -21,9 +21,9 @@ ```json { "order": "DESC", - "begin_time": "begin_time2", + "begin_time": "begin_time8", "end_time": "end_time2", - "limit": 172, + "limit": 226, "status": "SENT" } ``` diff --git a/doc/models/v1-list-settlements-response.md b/doc/models/v1-list-settlements-response.md index 8a28c258..4b2d43e8 100644 --- a/doc/models/v1-list-settlements-response.md +++ b/doc/models/v1-list-settlements-response.md @@ -17,21 +17,31 @@ { "items": [ { - "id": "id7", - "status": "SENT", + "id": "id8", + "status": "FAILED", + "total_money": { + "amount": 250, + "currency_code": "KZT" + }, + "initiated_at": "initiated_at0", + "bank_account_id": "bank_account_id8" + }, + { + "id": "id8", + "status": "FAILED", "total_money": { - "amount": 53, - "currency_code": "MWK" + "amount": 250, + "currency_code": "KZT" }, - "initiated_at": "initiated_at9", - "bank_account_id": "bank_account_id7" + "initiated_at": "initiated_at0", + "bank_account_id": "bank_account_id8" }, { "id": "id8", "status": "FAILED", "total_money": { - "amount": 54, - "currency_code": "MXN" + "amount": 250, + "currency_code": "KZT" }, "initiated_at": "initiated_at0", "bank_account_id": "bank_account_id8" diff --git a/doc/models/v1-money.md b/doc/models/v1-money.md index dfd7d115..243c4d48 100644 --- a/doc/models/v1-money.md +++ b/doc/models/v1-money.md @@ -16,8 +16,8 @@ ```json { - "amount": 46, - "currency_code": "RWF" + "amount": 24, + "currency_code": "UZS" } ``` diff --git a/doc/models/v1-order-history-entry.md b/doc/models/v1-order-history-entry.md index d1364757..191bd24f 100644 --- a/doc/models/v1-order-history-entry.md +++ b/doc/models/v1-order-history-entry.md @@ -18,8 +18,8 @@ V1OrderHistoryEntry ```json { - "action": "ORDER_PLACED", - "created_at": "created_at2" + "action": "EXPIRED", + "created_at": "created_at8" } ``` diff --git a/doc/models/v1-order.md b/doc/models/v1-order.md index cd9b451a..42120ac1 100644 --- a/doc/models/v1-order.md +++ b/doc/models/v1-order.md @@ -42,23 +42,17 @@ V1Order ```json { "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], "id": "id0", diff --git a/doc/models/v1-payment-discount.md b/doc/models/v1-payment-discount.md index 3a6eaf1f..b1c8a0e2 100644 --- a/doc/models/v1-payment-discount.md +++ b/doc/models/v1-payment-discount.md @@ -19,12 +19,12 @@ V1PaymentDiscount ```json { - "name": "name0", + "name": "name4", "applied_money": { "amount": 196, "currency_code": "IQD" }, - "discount_id": "discount_id8" + "discount_id": "discount_id2" } ``` diff --git a/doc/models/v1-payment-item-detail.md b/doc/models/v1-payment-item-detail.md index 32ca6e74..5e37fc66 100644 --- a/doc/models/v1-payment-item-detail.md +++ b/doc/models/v1-payment-item-detail.md @@ -20,10 +20,10 @@ V1PaymentItemDetail ```json { - "category_name": "category_name8", - "sku": "sku4", - "item_id": "item_id0", - "item_variation_id": "item_variation_id4" + "category_name": "category_name4", + "sku": "sku0", + "item_id": "item_id4", + "item_variation_id": "item_variation_id8" } ``` diff --git a/doc/models/v1-payment-itemization.md b/doc/models/v1-payment-itemization.md index 165ace3c..2dc576e1 100644 --- a/doc/models/v1-payment-itemization.md +++ b/doc/models/v1-payment-itemization.md @@ -45,8 +45,8 @@ price of items might have changed since the payment was processed. ```json { - "name": "name0", - "quantity": 149.16, + "name": "name4", + "quantity": 253.5, "itemization_type": "GIFT_CARD_UNKNOWN", "item_detail": { "category_name": "category_name0", @@ -54,7 +54,7 @@ price of items might have changed since the payment was processed. "item_id": "item_id2", "item_variation_id": "item_variation_id2" }, - "notes": "notes0" + "notes": "notes4" } ``` diff --git a/doc/models/v1-payment-surcharge.md b/doc/models/v1-payment-surcharge.md index 63a5d39a..08186ca6 100644 --- a/doc/models/v1-payment-surcharge.md +++ b/doc/models/v1-payment-surcharge.md @@ -24,17 +24,17 @@ V1PaymentSurcharge ```json { - "name": "name0", + "name": "name6", "applied_money": { "amount": 196, "currency_code": "IQD" }, - "rate": "rate0", + "rate": "rate4", "amount_money": { "amount": 186, "currency_code": "UZS" }, - "type": "CUSTOM" + "type": "AUTO_GRATUITY" } ``` diff --git a/doc/models/v1-payment-tax.md b/doc/models/v1-payment-tax.md index 104729ed..907ba99e 100644 --- a/doc/models/v1-payment-tax.md +++ b/doc/models/v1-payment-tax.md @@ -23,31 +23,19 @@ V1PaymentTax ```json { "errors": [ - { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" - }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" - }, - { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ], - "name": "name0", + "name": "name6", "applied_money": { "amount": 196, "currency_code": "IQD" }, - "rate": "rate0", + "rate": "rate4", "inclusion_type": "ADDITIVE" } ``` diff --git a/doc/models/v1-payment.md b/doc/models/v1-payment.md index 41116a48..5b8c02a0 100644 --- a/doc/models/v1-payment.md +++ b/doc/models/v1-payment.md @@ -34,7 +34,7 @@ Monetary values are negative if they represent an | `merchantId` | `string \| null \| undefined` | Optional | The unique identifier of the merchant that took the payment. | | `createdAt` | `string \| undefined` | Optional | The time when the payment was created, in ISO 8601 format. Reflects the time of the first payment if the object represents an incomplete partial payment, and the time of the last or complete payment otherwise. | | `creatorId` | `string \| null \| undefined` | Optional | The unique identifier of the Square account that took the payment. | -| `device` | [`Device \| undefined`](../../doc/models/device.md) | Optional | - | +| `device` | [`V1Device \| undefined`](../../doc/models/v1-device.md) | Optional | - | | `paymentUrl` | `string \| null \| undefined` | Optional | The URL of the payment's detail page in the merchant dashboard. The merchant must be signed in to the merchant dashboard to view this page. | | `receiptUrl` | `string \| null \| undefined` | Optional | The URL of the receipt for the payment. Note that for split tender
payments, this URL corresponds to the receipt for the first tender
listed in the payment's tender field. Each Tender object has its own
receipt_url field you can use to get the other receipts associated with
a split tender payment. | | `inclusiveTaxMoney` | [`V1Money \| undefined`](../../doc/models/v1-money.md) | Optional | - | @@ -62,10 +62,10 @@ Monetary values are negative if they represent an ```json { - "id": "id0", - "merchant_id": "merchant_id0", - "created_at": "created_at2", - "creator_id": "creator_id0", + "id": "id2", + "merchant_id": "merchant_id8", + "created_at": "created_at0", + "creator_id": "creator_id2", "device": { "id": "id6", "name": "name6" diff --git a/doc/models/v1-phone-number.md b/doc/models/v1-phone-number.md index 6225036b..9531b053 100644 --- a/doc/models/v1-phone-number.md +++ b/doc/models/v1-phone-number.md @@ -18,8 +18,8 @@ Represents a phone number. ```json { - "calling_code": "calling_code4", - "number": "number2" + "calling_code": "calling_code0", + "number": "number4" } ``` diff --git a/doc/models/v1-settlement-entry.md b/doc/models/v1-settlement-entry.md index 4a690fc5..41f9af8d 100644 --- a/doc/models/v1-settlement-entry.md +++ b/doc/models/v1-settlement-entry.md @@ -21,7 +21,7 @@ V1SettlementEntry ```json { "payment_id": "payment_id0", - "type": "PAID_SERVICE_FEE", + "type": "RETURNED_PAYOUT", "amount_money": { "amount": 186, "currency_code": "UZS" diff --git a/doc/models/v1-settlement.md b/doc/models/v1-settlement.md index c1a6e8a5..e2e9e06b 100644 --- a/doc/models/v1-settlement.md +++ b/doc/models/v1-settlement.md @@ -22,14 +22,14 @@ V1Settlement ```json { - "id": "id0", + "id": "id2", "status": "FAILED", "total_money": { "amount": 250, "currency_code": "KZT" }, - "initiated_at": "initiated_at2", - "bank_account_id": "bank_account_id0" + "initiated_at": "initiated_at4", + "bank_account_id": "bank_account_id2" } ``` diff --git a/doc/models/v1-tender.md b/doc/models/v1-tender.md index 3280dac6..aaf542f1 100644 --- a/doc/models/v1-tender.md +++ b/doc/models/v1-tender.md @@ -53,11 +53,11 @@ associated payment. ```json { - "id": "id0", - "type": "UNKNOWN", - "name": "name0", - "employee_id": "employee_id0", - "receipt_url": "receipt_url8" + "id": "id6", + "type": "SQUARE_WALLET", + "name": "name6", + "employee_id": "employee_id4", + "receipt_url": "receipt_url2" } ``` diff --git a/doc/models/v1-update-order-request.md b/doc/models/v1-update-order-request.md index 94a1fb48..0f8973be 100644 --- a/doc/models/v1-update-order-request.md +++ b/doc/models/v1-update-order-request.md @@ -22,10 +22,10 @@ V1UpdateOrderRequest ```json { "action": "COMPLETE", - "shipped_tracking_number": "shipped_tracking_number0", - "completed_note": "completed_note0", - "refunded_note": "refunded_note4", - "canceled_note": "canceled_note0" + "shipped_tracking_number": "shipped_tracking_number4", + "completed_note": "completed_note4", + "refunded_note": "refunded_note8", + "canceled_note": "canceled_note6" } ``` diff --git a/doc/models/vendor-contact.md b/doc/models/vendor-contact.md index d9028eeb..38cf1b6b 100644 --- a/doc/models/vendor-contact.md +++ b/doc/models/vendor-contact.md @@ -24,10 +24,10 @@ Represents a contact of a [Vendor](../../doc/models/vendor.md). { "id": "id0", "name": "name0", - "email_address": "email_address2", - "phone_number": "phone_number2", + "email_address": "email_address8", + "phone_number": "phone_number8", "removed": false, - "ordinal": 80 + "ordinal": 244 } ``` diff --git a/doc/models/vendor.md b/doc/models/vendor.md index 98ad9203..33083871 100644 --- a/doc/models/vendor.md +++ b/doc/models/vendor.md @@ -26,10 +26,10 @@ Represents a supplier to a seller. ```json { - "id": "id0", - "created_at": "created_at2", + "id": "id8", + "created_at": "created_at6", "updated_at": "updated_at4", - "name": "name0", + "name": "name8", "address": { "address_line_1": "address_line_16", "address_line_2": "address_line_26", diff --git a/doc/models/void-transaction-response.md b/doc/models/void-transaction-response.md index 04383ab3..06049480 100644 --- a/doc/models/void-transaction-response.md +++ b/doc/models/void-transaction-response.md @@ -20,22 +20,22 @@ a request to the [VoidTransaction](api-endpoint:Transactions-VoidTransaction) en { "errors": [ { - "category": "REFUND_ERROR", - "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", - "detail": "detail1", - "field": "field9" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "BAD_REQUEST", - "detail": "detail2", - "field": "field0" + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" }, { - "category": "EXTERNAL_VENDOR_ERROR", - "code": "MISSING_REQUIRED_PARAMETER", - "detail": "detail3", - "field": "field1" + "category": "MERCHANT_SUBSCRIPTION_ERROR", + "code": "MAP_KEY_LENGTH_TOO_LONG", + "detail": "detail6", + "field": "field4" } ] } diff --git a/doc/models/wage-setting.md b/doc/models/wage-setting.md index 14e9ba0f..c3114813 100644 --- a/doc/models/wage-setting.md +++ b/doc/models/wage-setting.md @@ -22,51 +22,51 @@ An object representing a team member's wage information. ```json { - "team_member_id": "team_member_id0", + "team_member_id": "team_member_id2", "job_assignments": [ { - "job_title": "job_title1", - "pay_type": "NONE", + "job_title": "job_title6", + "pay_type": "SALARY", "hourly_rate": { - "amount": 79, - "currency": "GNF" + "amount": 172, + "currency": "OMR" }, "annual_rate": { - "amount": 19, - "currency": "DKK" + "amount": 232, + "currency": "SBD" }, - "weekly_hours": 187 + "weekly_hours": 98 }, { - "job_title": "job_title2", - "pay_type": "HOURLY", + "job_title": "job_title6", + "pay_type": "SALARY", "hourly_rate": { - "amount": 80, - "currency": "GTQ" + "amount": 172, + "currency": "OMR" }, "annual_rate": { - "amount": 20, - "currency": "DOP" + "amount": 232, + "currency": "SBD" }, - "weekly_hours": 188 + "weekly_hours": 98 }, { - "job_title": "job_title3", + "job_title": "job_title6", "pay_type": "SALARY", "hourly_rate": { - "amount": 81, - "currency": "GYD" + "amount": 172, + "currency": "OMR" }, "annual_rate": { - "amount": 21, - "currency": "DZD" + "amount": 232, + "currency": "SBD" }, - "weekly_hours": 189 + "weekly_hours": 98 } ], "is_overtime_exempt": false, - "version": 172, - "created_at": "created_at2" + "version": 140, + "created_at": "created_at0" } ``` diff --git a/doc/models/webhook-subscription.md b/doc/models/webhook-subscription.md index 4f5e6866..80c8bdd4 100644 --- a/doc/models/webhook-subscription.md +++ b/doc/models/webhook-subscription.md @@ -26,14 +26,13 @@ event types, and signature key. ```json { - "id": "id0", - "name": "name0", + "id": "id8", + "name": "name8", "enabled": false, "event_types": [ - "event_types8", - "event_types9" + "event_types6" ], - "notification_url": "notification_url4" + "notification_url": "notification_url2" } ``` diff --git a/doc/models/workweek-config.md b/doc/models/workweek-config.md index 2190fc1c..2ba7e1ef 100644 --- a/doc/models/workweek-config.md +++ b/doc/models/workweek-config.md @@ -23,12 +23,12 @@ workweek. This is used to calculate overtime pay. ```json { - "id": "id0", - "start_of_week": "MON", - "start_of_day_local_time": "start_of_day_local_time6", - "version": 172, + "id": "id4", + "start_of_week": "SUN", + "start_of_day_local_time": "start_of_day_local_time0", + "version": 104, "created_at": "created_at2", - "updated_at": "updated_at4" + "updated_at": "updated_at0" } ``` diff --git a/package.json b/package.json index ea4c9c8f..b40ce474 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "30.0.0", + "version": "31.0.0", "license": "MIT", "sideEffects": false, "main": "dist/cjs/index.js", diff --git a/src/api/bookingsApi.ts b/src/api/bookingsApi.ts index e296f1e8..e8c476e4 100644 --- a/src/api/bookingsApi.ts +++ b/src/api/bookingsApi.ts @@ -7,6 +7,14 @@ import { BulkRetrieveBookingsResponse, bulkRetrieveBookingsResponseSchema, } from '../models/bulkRetrieveBookingsResponse'; +import { + BulkRetrieveTeamMemberBookingProfilesRequest, + bulkRetrieveTeamMemberBookingProfilesRequestSchema, +} from '../models/bulkRetrieveTeamMemberBookingProfilesRequest'; +import { + BulkRetrieveTeamMemberBookingProfilesResponse, + bulkRetrieveTeamMemberBookingProfilesResponseSchema, +} from '../models/bulkRetrieveTeamMemberBookingProfilesResponse'; import { CancelBookingRequest, cancelBookingRequestSchema, @@ -256,6 +264,34 @@ export class BookingsApi extends BaseApi { ); } + /** + * Retrieves one or more team members' booking profiles. + * + * @param body An object containing the fields to + * POST for the request. See the + * corresponding object definition for + * field details. + * @return Response from the API call + */ + async bulkRetrieveTeamMemberBookingProfiles( + body: BulkRetrieveTeamMemberBookingProfilesRequest, + requestOptions?: RequestOptions + ): Promise> { + const req = this.createRequest( + 'POST', + '/v2/bookings/team-member-booking-profiles/bulk-retrieve' + ); + const mapped = req.prepareArgs({ + body: [body, bulkRetrieveTeamMemberBookingProfilesRequestSchema], + }); + req.header('Content-Type', 'application/json'); + req.json(mapped.body); + return req.callAsJson( + bulkRetrieveTeamMemberBookingProfilesResponseSchema, + requestOptions + ); + } + /** * Retrieves a team member's booking profile. * diff --git a/src/api/checkoutApi.ts b/src/api/checkoutApi.ts index 89b8abe9..5c9d3247 100644 --- a/src/api/checkoutApi.ts +++ b/src/api/checkoutApi.ts @@ -48,8 +48,6 @@ export class CheckoutApi extends BaseApi { * NOTE: The Checkout API has been updated with new features. * For more information, see [Checkout API highlights](https://developer.squareup.com/docs/checkout- * api#checkout-api-highlights). - * We recommend that you use the new [CreatePaymentLink](api-endpoint:Checkout-CreatePaymentLink) - * endpoint in place of this previously released endpoint. * * @param locationId The ID of the business location to associate the checkout * with. diff --git a/src/api/devicesApi.ts b/src/api/devicesApi.ts index df8bb833..322e25d8 100644 --- a/src/api/devicesApi.ts +++ b/src/api/devicesApi.ts @@ -11,14 +11,57 @@ import { GetDeviceCodeResponse, getDeviceCodeResponseSchema, } from '../models/getDeviceCodeResponse'; +import { + GetDeviceResponse, + getDeviceResponseSchema, +} from '../models/getDeviceResponse'; import { ListDeviceCodesResponse, listDeviceCodesResponseSchema, } from '../models/listDeviceCodesResponse'; -import { optional, string } from '../schema'; +import { + ListDevicesResponse, + listDevicesResponseSchema, +} from '../models/listDevicesResponse'; +import { number, optional, string } from '../schema'; import { BaseApi } from './baseApi'; export class DevicesApi extends BaseApi { + /** + * List devices associated with the merchant. Currently, only Terminal API + * devices are supported. + * + * @param cursor A pagination cursor returned by a previous call to this endpoint. Provide this + * cursor to retrieve the next set of results for the original query. See + * [Pagination](https://developer.squareup.com/docs/build-basics/common-api- + * patterns/pagination) for more information. + * @param sortOrder The order in which results are listed. - `ASC` - Oldest to newest. - `DESC` - Newest + * to oldest (default). + * @param limit The number of results to return in a single page. + * @param locationId If present, only returns devices at the target location. + * @return Response from the API call + */ + async listDevices( + cursor?: string, + sortOrder?: string, + limit?: number, + locationId?: string, + requestOptions?: RequestOptions + ): Promise> { + const req = this.createRequest('GET', '/v2/devices'); + const mapped = req.prepareArgs({ + cursor: [cursor, optional(string())], + sortOrder: [sortOrder, optional(string())], + limit: [limit, optional(number())], + locationId: [locationId, optional(string())], + }); + req.query('cursor', mapped.cursor); + req.query('sort_order', mapped.sortOrder); + req.query('limit', mapped.limit); + req.query('location_id', mapped.locationId); + return req.callAsJson(listDevicesResponseSchema, requestOptions); + } + /** * Lists all DeviceCodes associated with the merchant. * @@ -91,4 +134,20 @@ export class DevicesApi extends BaseApi { req.appendTemplatePath`/v2/devices/codes/${mapped.id}`; return req.callAsJson(getDeviceCodeResponseSchema, requestOptions); } + + /** + * Retrieves Device with the associated `device_id`. + * + * @param deviceId The unique ID for the desired `Device`. + * @return Response from the API call + */ + async getDevice( + deviceId: string, + requestOptions?: RequestOptions + ): Promise> { + const req = this.createRequest('GET'); + const mapped = req.prepareArgs({ deviceId: [deviceId, string()] }); + req.appendTemplatePath`/v2/devices/${mapped.deviceId}`; + return req.callAsJson(getDeviceResponseSchema, requestOptions); + } } diff --git a/src/api/loyaltyApi.ts b/src/api/loyaltyApi.ts index 98a87aea..e6342281 100644 --- a/src/api/loyaltyApi.ts +++ b/src/api/loyaltyApi.ts @@ -468,7 +468,7 @@ export class LoyaltyApi extends BaseApi { promotionId: [promotionId, string()], programId: [programId, string()], }); - req.appendTemplatePath`/v2/loyalty/programs/${mapped.promotionId}/promotions/${mapped.programId}`; + req.appendTemplatePath`/v2/loyalty/programs/${mapped.programId}/promotions/${mapped.promotionId}`; return req.callAsJson( retrieveLoyaltyPromotionResponseSchema, requestOptions @@ -500,7 +500,7 @@ export class LoyaltyApi extends BaseApi { promotionId: [promotionId, string()], programId: [programId, string()], }); - req.appendTemplatePath`/v2/loyalty/programs/${mapped.promotionId}/promotions/${mapped.programId}/cancel`; + req.appendTemplatePath`/v2/loyalty/programs/${mapped.programId}/promotions/${mapped.promotionId}/cancel`; return req.callAsJson(cancelLoyaltyPromotionResponseSchema, requestOptions); } diff --git a/src/api/oAuthApi.ts b/src/api/oAuthApi.ts index a717e783..51892fa0 100644 --- a/src/api/oAuthApi.ts +++ b/src/api/oAuthApi.ts @@ -86,9 +86,7 @@ export class OAuthApi extends BaseApi { * Revokes an access token generated with the OAuth flow. * * If an account has more than one OAuth access token for your application, this - * endpoint revokes all of them, regardless of which token you specify. When an - * OAuth access token is revoked, all of the active subscriptions associated - * with that OAuth token are canceled immediately. + * endpoint revokes all of them, regardless of which token you specify. * * __Important:__ The `Authorization` header for this endpoint must have the * following format: diff --git a/src/client.ts b/src/client.ts index 205aa896..563a94ba 100644 --- a/src/client.ts +++ b/src/client.ts @@ -67,7 +67,7 @@ import { import { HttpClient } from './clientAdapter'; /** Current SDK version */ -export const SDK_VERSION = '30.0.0'; +export const SDK_VERSION = '31.0.0'; export class Client implements ClientInterface { private _config: Readonly; private _timeout: number; @@ -131,7 +131,7 @@ export class Client implements ClientInterface { ? this._config.httpClientOptions.timeout : this._config.timeout; this._userAgent = updateUserAgent( - 'Square-TypeScript-SDK/30.0.0 ({api-version}) {engine}/{engine-version} ({os-info}) {detail}', + 'Square-TypeScript-SDK/31.0.0 ({api-version}) {engine}/{engine-version} ({os-info}) {detail}', this._config.squareVersion, this._config.userAgentDetail ); diff --git a/src/defaultConfiguration.ts b/src/defaultConfiguration.ts index 4510a2a2..dd7b17f0 100644 --- a/src/defaultConfiguration.ts +++ b/src/defaultConfiguration.ts @@ -4,7 +4,7 @@ import { RetryConfiguration } from './core'; /** Default values for the configuration parameters of the client. */ export const DEFAULT_CONFIGURATION: Configuration = { timeout: 60000, - squareVersion: '2023-08-16', + squareVersion: '2023-09-25', additionalHeaders: {}, userAgentDetail: '', environment: Environment.Production, diff --git a/src/index.ts b/src/index.ts index f2f532f3..6d5a1e0b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -109,6 +109,8 @@ export type { BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute } from export type { BulkDeleteOrderCustomAttributesResponse } from './models/bulkDeleteOrderCustomAttributesResponse'; export type { BulkRetrieveBookingsRequest } from './models/bulkRetrieveBookingsRequest'; export type { BulkRetrieveBookingsResponse } from './models/bulkRetrieveBookingsResponse'; +export type { BulkRetrieveTeamMemberBookingProfilesRequest } from './models/bulkRetrieveTeamMemberBookingProfilesRequest'; +export type { BulkRetrieveTeamMemberBookingProfilesResponse } from './models/bulkRetrieveTeamMemberBookingProfilesResponse'; export type { BulkRetrieveVendorsRequest } from './models/bulkRetrieveVendorsRequest'; export type { BulkRetrieveVendorsResponse } from './models/bulkRetrieveVendorsResponse'; export type { BulkUpdateTeamMembersRequest } from './models/bulkUpdateTeamMembersRequest'; @@ -221,6 +223,7 @@ export type { CloneOrderResponse } from './models/cloneOrderResponse'; export type { CollectedData } from './models/collectedData'; export type { CompletePaymentRequest } from './models/completePaymentRequest'; export type { CompletePaymentResponse } from './models/completePaymentResponse'; +export type { Component } from './models/component'; export type { ConfirmationDecision } from './models/confirmationDecision'; export type { ConfirmationOptions } from './models/confirmationOptions'; export type { Coordinates } from './models/coordinates'; @@ -350,10 +353,19 @@ export type { Destination } from './models/destination'; export type { DestinationDetails } from './models/destinationDetails'; export type { DestinationDetailsCardRefundDetails } from './models/destinationDetailsCardRefundDetails'; export type { Device } from './models/device'; +export type { DeviceAttributes } from './models/deviceAttributes'; export type { DeviceCheckoutOptions } from './models/deviceCheckoutOptions'; export type { DeviceCode } from './models/deviceCode'; +export type { DeviceComponentDetailsApplicationDetails } from './models/deviceComponentDetailsApplicationDetails'; +export type { DeviceComponentDetailsBatteryDetails } from './models/deviceComponentDetailsBatteryDetails'; +export type { DeviceComponentDetailsCardReaderDetails } from './models/deviceComponentDetailsCardReaderDetails'; +export type { DeviceComponentDetailsEthernetDetails } from './models/deviceComponentDetailsEthernetDetails'; +export type { DeviceComponentDetailsMeasurement } from './models/deviceComponentDetailsMeasurement'; +export type { DeviceComponentDetailsNetworkInterfaceDetails } from './models/deviceComponentDetailsNetworkInterfaceDetails'; +export type { DeviceComponentDetailsWiFiDetails } from './models/deviceComponentDetailsWiFiDetails'; export type { DeviceDetails } from './models/deviceDetails'; export type { DeviceMetadata } from './models/deviceMetadata'; +export type { DeviceStatus } from './models/deviceStatus'; export type { DigitalWalletDetails } from './models/digitalWalletDetails'; export type { DisableCardResponse } from './models/disableCardResponse'; export type { DismissTerminalActionResponse } from './models/dismissTerminalActionResponse'; @@ -381,6 +393,7 @@ export type { GetBankAccountByV1IdResponse } from './models/getBankAccountByV1Id export type { GetBankAccountResponse } from './models/getBankAccountResponse'; export type { GetBreakTypeResponse } from './models/getBreakTypeResponse'; export type { GetDeviceCodeResponse } from './models/getDeviceCodeResponse'; +export type { GetDeviceResponse } from './models/getDeviceResponse'; export type { GetEmployeeWageResponse } from './models/getEmployeeWageResponse'; export type { GetInvoiceResponse } from './models/getInvoiceResponse'; export type { GetPaymentRefundResponse } from './models/getPaymentRefundResponse'; @@ -458,6 +471,8 @@ export type { ListCustomersRequest } from './models/listCustomersRequest'; export type { ListCustomersResponse } from './models/listCustomersResponse'; export type { ListDeviceCodesRequest } from './models/listDeviceCodesRequest'; export type { ListDeviceCodesResponse } from './models/listDeviceCodesResponse'; +export type { ListDevicesRequest } from './models/listDevicesRequest'; +export type { ListDevicesResponse } from './models/listDevicesResponse'; export type { ListDisputeEvidenceRequest } from './models/listDisputeEvidenceRequest'; export type { ListDisputeEvidenceResponse } from './models/listDisputeEvidenceResponse'; export type { ListDisputesRequest } from './models/listDisputesRequest'; @@ -600,6 +615,7 @@ export type { OrderServiceCharge } from './models/orderServiceCharge'; export type { OrderSource } from './models/orderSource'; export type { OrderUpdated } from './models/orderUpdated'; export type { OrderUpdatedObject } from './models/orderUpdatedObject'; +export type { PaginationCursor } from './models/paginationCursor'; export type { PauseSubscriptionRequest } from './models/pauseSubscriptionRequest'; export type { PauseSubscriptionResponse } from './models/pauseSubscriptionResponse'; export type { Payment } from './models/payment'; @@ -899,6 +915,7 @@ export type { UpsertOrderCustomAttributeResponse } from './models/upsertOrderCus export type { UpsertSnippetRequest } from './models/upsertSnippetRequest'; export type { UpsertSnippetResponse } from './models/upsertSnippetResponse'; export type { V1CreateRefundRequest } from './models/v1CreateRefundRequest'; +export type { V1Device } from './models/v1Device'; export type { V1ListOrdersRequest } from './models/v1ListOrdersRequest'; export type { V1ListOrdersResponse } from './models/v1ListOrdersResponse'; export type { V1ListPaymentsRequest } from './models/v1ListPaymentsRequest'; diff --git a/src/models/bulkRetrieveTeamMemberBookingProfilesRequest.ts b/src/models/bulkRetrieveTeamMemberBookingProfilesRequest.ts new file mode 100644 index 00000000..e22b8693 --- /dev/null +++ b/src/models/bulkRetrieveTeamMemberBookingProfilesRequest.ts @@ -0,0 +1,11 @@ +import { array, object, Schema, string } from '../schema'; + +/** Request payload for the [BulkRetrieveTeamMemberBookingProfiles]($e/Bookings/BulkRetrieveTeamMemberBookingProfiles) endpoint. */ +export interface BulkRetrieveTeamMemberBookingProfilesRequest { + /** A non-empty list of IDs of team members whose booking profiles you want to retrieve. */ + teamMemberIds: string[]; +} + +export const bulkRetrieveTeamMemberBookingProfilesRequestSchema: Schema = object( + { teamMemberIds: ['team_member_ids', array(string())] } +); diff --git a/src/models/bulkRetrieveTeamMemberBookingProfilesResponse.ts b/src/models/bulkRetrieveTeamMemberBookingProfilesResponse.ts new file mode 100644 index 00000000..efae972b --- /dev/null +++ b/src/models/bulkRetrieveTeamMemberBookingProfilesResponse.ts @@ -0,0 +1,26 @@ +import { array, dict, lazy, object, optional, Schema } from '../schema'; +import { Error, errorSchema } from './error'; +import { + RetrieveTeamMemberBookingProfileResponse, + retrieveTeamMemberBookingProfileResponseSchema, +} from './retrieveTeamMemberBookingProfileResponse'; + +/** Response payload for the [BulkRetrieveTeamMemberBookingProfiles]($e/Bookings/BulkRetrieveTeamMemberBookingProfiles) endpoint. */ +export interface BulkRetrieveTeamMemberBookingProfilesResponse { + /** The returned team members' booking profiles, as a map with `team_member_id` as the key and [TeamMemberBookingProfile](entity:TeamMemberBookingProfile) the value. */ + teamMemberBookingProfiles?: Record; + /** Errors that occurred during the request. */ + errors?: Error[]; +} + +export const bulkRetrieveTeamMemberBookingProfilesResponseSchema: Schema = object( + { + teamMemberBookingProfiles: [ + 'team_member_booking_profiles', + optional( + dict(lazy(() => retrieveTeamMemberBookingProfileResponseSchema)) + ), + ], + errors: ['errors', optional(array(lazy(() => errorSchema)))], + } +); diff --git a/src/models/component.ts b/src/models/component.ts new file mode 100644 index 00000000..53560358 --- /dev/null +++ b/src/models/component.ts @@ -0,0 +1,56 @@ +import { lazy, object, optional, Schema, string } from '../schema'; +import { + DeviceComponentDetailsApplicationDetails, + deviceComponentDetailsApplicationDetailsSchema, +} from './deviceComponentDetailsApplicationDetails'; +import { + DeviceComponentDetailsBatteryDetails, + deviceComponentDetailsBatteryDetailsSchema, +} from './deviceComponentDetailsBatteryDetails'; +import { + DeviceComponentDetailsCardReaderDetails, + deviceComponentDetailsCardReaderDetailsSchema, +} from './deviceComponentDetailsCardReaderDetails'; +import { + DeviceComponentDetailsEthernetDetails, + deviceComponentDetailsEthernetDetailsSchema, +} from './deviceComponentDetailsEthernetDetails'; +import { + DeviceComponentDetailsWiFiDetails, + deviceComponentDetailsWiFiDetailsSchema, +} from './deviceComponentDetailsWiFiDetails'; + +/** The wrapper object for the component entries of a given component type. */ +export interface Component { + /** An enum for ComponentType. */ + type: string; + applicationDetails?: DeviceComponentDetailsApplicationDetails; + cardReaderDetails?: DeviceComponentDetailsCardReaderDetails; + batteryDetails?: DeviceComponentDetailsBatteryDetails; + wifiDetails?: DeviceComponentDetailsWiFiDetails; + ethernetDetails?: DeviceComponentDetailsEthernetDetails; +} + +export const componentSchema: Schema = object({ + type: ['type', string()], + applicationDetails: [ + 'application_details', + optional(lazy(() => deviceComponentDetailsApplicationDetailsSchema)), + ], + cardReaderDetails: [ + 'card_reader_details', + optional(lazy(() => deviceComponentDetailsCardReaderDetailsSchema)), + ], + batteryDetails: [ + 'battery_details', + optional(lazy(() => deviceComponentDetailsBatteryDetailsSchema)), + ], + wifiDetails: [ + 'wifi_details', + optional(lazy(() => deviceComponentDetailsWiFiDetailsSchema)), + ], + ethernetDetails: [ + 'ethernet_details', + optional(lazy(() => deviceComponentDetailsEthernetDetailsSchema)), + ], +}); diff --git a/src/models/device.ts b/src/models/device.ts index 148bda3b..13f0cc7b 100644 --- a/src/models/device.ts +++ b/src/models/device.ts @@ -1,13 +1,34 @@ -import { nullable, object, optional, Schema, string } from '../schema'; +import { + array, + lazy, + nullable, + object, + optional, + Schema, + string, +} from '../schema'; +import { Component, componentSchema } from './component'; +import { DeviceAttributes, deviceAttributesSchema } from './deviceAttributes'; +import { DeviceStatus, deviceStatusSchema } from './deviceStatus'; export interface Device { - /** The device's Square-issued ID. */ + /** + * A synthetic identifier for the device. The identifier includes a standardized prefix and + * is otherwise an opaque id generated from key device fields. + */ id?: string; - /** The device's merchant-specified name. */ - name?: string | null; + attributes: DeviceAttributes; + /** A list of components applicable to the device. */ + components?: Component[] | null; + status?: DeviceStatus; } export const deviceSchema: Schema = object({ id: ['id', optional(string())], - name: ['name', optional(nullable(string()))], + attributes: ['attributes', lazy(() => deviceAttributesSchema)], + components: [ + 'components', + optional(nullable(array(lazy(() => componentSchema)))), + ], + status: ['status', optional(lazy(() => deviceStatusSchema))], }); diff --git a/src/models/deviceAttributes.ts b/src/models/deviceAttributes.ts new file mode 100644 index 00000000..b300832d --- /dev/null +++ b/src/models/deviceAttributes.ts @@ -0,0 +1,37 @@ +import { nullable, object, optional, Schema, string } from '../schema'; + +export interface DeviceAttributes { + /** An enum identifier of the device type. */ + type: string; + /** The maker of the device. */ + manufacturer: string; + /** The specific model of the device. */ + model?: string | null; + /** A seller-specified name for the device. */ + name?: string | null; + /** + * The manufacturer-supplied identifier for the device (where available). In many cases, + * this identifier will be a serial number. + */ + manufacturersId?: string | null; + /** + * The RFC 3339-formatted value of the most recent update to the device information. + * (Could represent any field update on the device.) + */ + updatedAt?: string; + /** The current version of software installed on the device. */ + version?: string; + /** The merchant_token identifying the merchant controlling the device. */ + merchantToken?: string | null; +} + +export const deviceAttributesSchema: Schema = object({ + type: ['type', string()], + manufacturer: ['manufacturer', string()], + model: ['model', optional(nullable(string()))], + name: ['name', optional(nullable(string()))], + manufacturersId: ['manufacturers_id', optional(nullable(string()))], + updatedAt: ['updated_at', optional(string())], + version: ['version', optional(string())], + merchantToken: ['merchant_token', optional(nullable(string()))], +}); diff --git a/src/models/deviceComponentDetailsApplicationDetails.ts b/src/models/deviceComponentDetailsApplicationDetails.ts new file mode 100644 index 00000000..ec1970b2 --- /dev/null +++ b/src/models/deviceComponentDetailsApplicationDetails.ts @@ -0,0 +1,20 @@ +import { nullable, object, optional, Schema, string } from '../schema'; + +export interface DeviceComponentDetailsApplicationDetails { + applicationType?: string; + /** The version of the application. */ + version?: string; + /** The location_id of the session for the application. */ + sessionLocation?: string | null; + /** The id of the device code that was used to log in to the device. */ + deviceCodeId?: string | null; +} + +export const deviceComponentDetailsApplicationDetailsSchema: Schema = object( + { + applicationType: ['application_type', optional(string())], + version: ['version', optional(string())], + sessionLocation: ['session_location', optional(nullable(string()))], + deviceCodeId: ['device_code_id', optional(nullable(string()))], + } +); diff --git a/src/models/deviceComponentDetailsBatteryDetails.ts b/src/models/deviceComponentDetailsBatteryDetails.ts new file mode 100644 index 00000000..9825d3b0 --- /dev/null +++ b/src/models/deviceComponentDetailsBatteryDetails.ts @@ -0,0 +1,15 @@ +import { nullable, number, object, optional, Schema, string } from '../schema'; + +export interface DeviceComponentDetailsBatteryDetails { + /** The battery charge percentage as displayed on the device. */ + visiblePercent?: number | null; + /** An enum for ExternalPower. */ + externalPower?: string; +} + +export const deviceComponentDetailsBatteryDetailsSchema: Schema = object( + { + visiblePercent: ['visible_percent', optional(nullable(number()))], + externalPower: ['external_power', optional(string())], + } +); diff --git a/src/models/deviceComponentDetailsCardReaderDetails.ts b/src/models/deviceComponentDetailsCardReaderDetails.ts new file mode 100644 index 00000000..a770a851 --- /dev/null +++ b/src/models/deviceComponentDetailsCardReaderDetails.ts @@ -0,0 +1,10 @@ +import { object, optional, Schema, string } from '../schema'; + +export interface DeviceComponentDetailsCardReaderDetails { + /** The version of the card reader. */ + version?: string; +} + +export const deviceComponentDetailsCardReaderDetailsSchema: Schema = object( + { version: ['version', optional(string())] } +); diff --git a/src/models/deviceComponentDetailsEthernetDetails.ts b/src/models/deviceComponentDetailsEthernetDetails.ts new file mode 100644 index 00000000..d2dbc806 --- /dev/null +++ b/src/models/deviceComponentDetailsEthernetDetails.ts @@ -0,0 +1,15 @@ +import { boolean, nullable, object, optional, Schema, string } from '../schema'; + +export interface DeviceComponentDetailsEthernetDetails { + /** A boolean to represent whether the Ethernet interface is currently active. */ + active?: boolean | null; + /** The string representation of the device’s IPv4 address. */ + ipAddressV4?: string | null; +} + +export const deviceComponentDetailsEthernetDetailsSchema: Schema = object( + { + active: ['active', optional(nullable(boolean()))], + ipAddressV4: ['ip_address_v4', optional(nullable(string()))], + } +); diff --git a/src/models/deviceComponentDetailsMeasurement.ts b/src/models/deviceComponentDetailsMeasurement.ts new file mode 100644 index 00000000..53d5c03f --- /dev/null +++ b/src/models/deviceComponentDetailsMeasurement.ts @@ -0,0 +1,10 @@ +import { nullable, number, object, optional, Schema } from '../schema'; + +/** A value qualified by unit of measure. */ +export interface DeviceComponentDetailsMeasurement { + value?: number | null; +} + +export const deviceComponentDetailsMeasurementSchema: Schema = object( + { value: ['value', optional(nullable(number()))] } +); diff --git a/src/models/deviceComponentDetailsNetworkInterfaceDetails.ts b/src/models/deviceComponentDetailsNetworkInterfaceDetails.ts new file mode 100644 index 00000000..005ba422 --- /dev/null +++ b/src/models/deviceComponentDetailsNetworkInterfaceDetails.ts @@ -0,0 +1,10 @@ +import { nullable, object, optional, Schema, string } from '../schema'; + +export interface DeviceComponentDetailsNetworkInterfaceDetails { + /** The string representation of the device’s IPv4 address. */ + ipAddressV4?: string | null; +} + +export const deviceComponentDetailsNetworkInterfaceDetailsSchema: Schema = object( + { ipAddressV4: ['ip_address_v4', optional(nullable(string()))] } +); diff --git a/src/models/deviceComponentDetailsWiFiDetails.ts b/src/models/deviceComponentDetailsWiFiDetails.ts new file mode 100644 index 00000000..58999e1c --- /dev/null +++ b/src/models/deviceComponentDetailsWiFiDetails.ts @@ -0,0 +1,42 @@ +import { + boolean, + lazy, + nullable, + object, + optional, + Schema, + string, +} from '../schema'; +import { + DeviceComponentDetailsMeasurement, + deviceComponentDetailsMeasurementSchema, +} from './deviceComponentDetailsMeasurement'; + +export interface DeviceComponentDetailsWiFiDetails { + /** A boolean to represent whether the WiFI interface is currently active. */ + active?: boolean | null; + /** The name of the connected WIFI network. */ + ssid?: string | null; + /** The string representation of the device’s IPv4 address. */ + ipAddressV4?: string | null; + /** + * The security protocol for a secure connection (e.g. WPA2). None provided if the connection + * is unsecured. + */ + secureConnection?: string | null; + /** A value qualified by unit of measure. */ + signalStrength?: DeviceComponentDetailsMeasurement; +} + +export const deviceComponentDetailsWiFiDetailsSchema: Schema = object( + { + active: ['active', optional(nullable(boolean()))], + ssid: ['ssid', optional(nullable(string()))], + ipAddressV4: ['ip_address_v4', optional(nullable(string()))], + secureConnection: ['secure_connection', optional(nullable(string()))], + signalStrength: [ + 'signal_strength', + optional(lazy(() => deviceComponentDetailsMeasurementSchema)), + ], + } +); diff --git a/src/models/deviceStatus.ts b/src/models/deviceStatus.ts new file mode 100644 index 00000000..4933c559 --- /dev/null +++ b/src/models/deviceStatus.ts @@ -0,0 +1,9 @@ +import { object, optional, Schema, string } from '../schema'; + +export interface DeviceStatus { + category?: string; +} + +export const deviceStatusSchema: Schema = object({ + category: ['category', optional(string())], +}); diff --git a/src/models/employee.ts b/src/models/employee.ts index 45a00215..791e783b 100644 --- a/src/models/employee.ts +++ b/src/models/employee.ts @@ -8,7 +8,10 @@ import { string, } from '../schema'; -/** An employee object that is used by the external API. */ +/** + * An employee object that is used by the external API. + * DEPRECATED at version 2020-08-26. Replaced by [TeamMember](entity:TeamMember). + */ export interface Employee { /** UUID for this object. */ id?: string; @@ -22,7 +25,10 @@ export interface Employee { phoneNumber?: string | null; /** A list of location IDs where this employee has access to. */ locationIds?: string[] | null; - /** The status of the Employee being retrieved. */ + /** + * The status of the Employee being retrieved. + * DEPRECATED at version 2020-08-26. Replaced by [TeamMemberStatus](entity:TeamMemberStatus). + */ status?: string; /** * Whether this employee is the owner of the merchant. Each merchant diff --git a/src/models/getDeviceResponse.ts b/src/models/getDeviceResponse.ts new file mode 100644 index 00000000..d7c05b85 --- /dev/null +++ b/src/models/getDeviceResponse.ts @@ -0,0 +1,14 @@ +import { array, lazy, object, optional, Schema } from '../schema'; +import { Device, deviceSchema } from './device'; +import { Error, errorSchema } from './error'; + +export interface GetDeviceResponse { + /** Information about errors encountered during the request. */ + errors?: Error[]; + device?: Device; +} + +export const getDeviceResponseSchema: Schema = object({ + errors: ['errors', optional(array(lazy(() => errorSchema)))], + device: ['device', optional(lazy(() => deviceSchema))], +}); diff --git a/src/models/listDevicesRequest.ts b/src/models/listDevicesRequest.ts new file mode 100644 index 00000000..286be369 --- /dev/null +++ b/src/models/listDevicesRequest.ts @@ -0,0 +1,23 @@ +import { nullable, number, object, optional, Schema, string } from '../schema'; + +export interface ListDevicesRequest { + /** + * A pagination cursor returned by a previous call to this endpoint. + * Provide this cursor to retrieve the next set of results for the original query. + * See [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination) for more information. + */ + cursor?: string | null; + /** The order (e.g., chronological or alphabetical) in which results from a request are returned. */ + sortOrder?: string; + /** The number of results to return in a single page. */ + limit?: number | null; + /** If present, only returns devices at the target location. */ + locationId?: string | null; +} + +export const listDevicesRequestSchema: Schema = object({ + cursor: ['cursor', optional(nullable(string()))], + sortOrder: ['sort_order', optional(string())], + limit: ['limit', optional(nullable(number()))], + locationId: ['location_id', optional(nullable(string()))], +}); diff --git a/src/models/listDevicesResponse.ts b/src/models/listDevicesResponse.ts new file mode 100644 index 00000000..ff549c6b --- /dev/null +++ b/src/models/listDevicesResponse.ts @@ -0,0 +1,22 @@ +import { array, lazy, object, optional, Schema, string } from '../schema'; +import { Device, deviceSchema } from './device'; +import { Error, errorSchema } from './error'; + +export interface ListDevicesResponse { + /** Information about errors that occurred during the request. */ + errors?: Error[]; + /** The requested list of `Device` objects. */ + devices?: Device[]; + /** + * The pagination cursor to be used in a subsequent request. If empty, + * this is the final response. + * See [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination) for more information. + */ + cursor?: string; +} + +export const listDevicesResponseSchema: Schema = object({ + errors: ['errors', optional(array(lazy(() => errorSchema)))], + devices: ['devices', optional(array(lazy(() => deviceSchema)))], + cursor: ['cursor', optional(string())], +}); diff --git a/src/models/listEmployeesRequest.ts b/src/models/listEmployeesRequest.ts index dce57caf..144f3641 100644 --- a/src/models/listEmployeesRequest.ts +++ b/src/models/listEmployeesRequest.ts @@ -2,7 +2,10 @@ import { nullable, number, object, optional, Schema, string } from '../schema'; export interface ListEmployeesRequest { locationId?: string | null; - /** The status of the Employee being retrieved. */ + /** + * The status of the Employee being retrieved. + * DEPRECATED at version 2020-08-26. Replaced by [TeamMemberStatus](entity:TeamMemberStatus). + */ status?: string; /** The number of employees to be returned on each page. */ limit?: number | null; diff --git a/src/models/modifierLocationOverrides.ts b/src/models/modifierLocationOverrides.ts index 2b45d700..567ed18c 100644 --- a/src/models/modifierLocationOverrides.ts +++ b/src/models/modifierLocationOverrides.ts @@ -1,4 +1,12 @@ -import { lazy, nullable, object, optional, Schema, string } from '../schema'; +import { + boolean, + lazy, + nullable, + object, + optional, + Schema, + string, +} from '../schema'; import { Money, moneySchema } from './money'; /** Location-specific overrides for specified properties of a `CatalogModifier` object. */ @@ -14,11 +22,17 @@ export interface ModifierLocationOverrides { * for more information. */ priceMoney?: Money; + /** + * Indicates whether the modifier is sold out at the specified location or not. As an example, for cheese (modifier) burger (item), when the modifier is sold out, it is the cheese, but not the burger, that is sold out. + * The seller can manually set this sold out status. Attempts by an application to set this attribute are ignored. + */ + soldOut?: boolean; } export const modifierLocationOverridesSchema: Schema = object( { locationId: ['location_id', optional(nullable(string()))], priceMoney: ['price_money', optional(lazy(() => moneySchema))], + soldOut: ['sold_out', optional(boolean())], } ); diff --git a/src/models/paginationCursor.ts b/src/models/paginationCursor.ts new file mode 100644 index 00000000..54850da9 --- /dev/null +++ b/src/models/paginationCursor.ts @@ -0,0 +1,17 @@ +import { nullable, object, optional, Schema, string } from '../schema'; + +/** + * Used *internally* to encapsulate pagination details. The resulting proto will be base62 encoded + * in order to produce a cursor that can be used externally. + */ +export interface PaginationCursor { + /** + * The ID of the last resource in the current page. The page can be in an ascending or + * descending order + */ + orderValue?: string | null; +} + +export const paginationCursorSchema: Schema = object({ + orderValue: ['order_value', optional(nullable(string()))], +}); diff --git a/src/models/retrieveEmployeeResponse.ts b/src/models/retrieveEmployeeResponse.ts index d7e85b7a..0bc76da5 100644 --- a/src/models/retrieveEmployeeResponse.ts +++ b/src/models/retrieveEmployeeResponse.ts @@ -3,7 +3,10 @@ import { Employee, employeeSchema } from './employee'; import { Error, errorSchema } from './error'; export interface RetrieveEmployeeResponse { - /** An employee object that is used by the external API. */ + /** + * An employee object that is used by the external API. + * DEPRECATED at version 2020-08-26. Replaced by [TeamMember](entity:TeamMember). + */ employee?: Employee; /** Any errors that occurred during the request. */ errors?: Error[]; diff --git a/src/models/taxIds.ts b/src/models/taxIds.ts index b8b9a8c2..a066d417 100644 --- a/src/models/taxIds.ts +++ b/src/models/taxIds.ts @@ -1,4 +1,4 @@ -import { nullable, object, optional, Schema, string } from '../schema'; +import { object, optional, Schema, string } from '../schema'; /** Identifiers for the location used by various governments for tax purposes. */ export interface TaxIds { @@ -7,34 +7,34 @@ export interface TaxIds { * If the EU VAT number is present, it is well-formed and has been * validated with VIES, the VAT Information Exchange System. */ - euVat?: string | null; + euVat?: string; /** * The SIRET (Système d'Identification du Répertoire des Entreprises et de leurs Etablissements) * number is a 14-digit code issued by the French INSEE. For example, `39922799000021`. */ - frSiret?: string | null; + frSiret?: string; /** * The French government uses the NAF (Nomenclature des Activités Françaises) to display and * track economic statistical data. This is also called the APE (Activite Principale de l’Entreprise) code. * For example, `6910Z`. */ - frNaf?: string | null; + frNaf?: string; /** * The NIF (Numero de Identificacion Fiscal) number is a nine-character tax identifier used in Spain. * If it is present, it has been validated. For example, `73628495A`. */ - esNif?: string | null; + esNif?: string; /** * The QII (Qualified Invoice Issuer) number is a 14-character tax identifier used in Japan. - * If it is present, it has been validated. For example, `T1234567890123`. + * For example, `T1234567890123`. */ jpQii?: string; } export const taxIdsSchema: Schema = object({ - euVat: ['eu_vat', optional(nullable(string()))], - frSiret: ['fr_siret', optional(nullable(string()))], - frNaf: ['fr_naf', optional(nullable(string()))], - esNif: ['es_nif', optional(nullable(string()))], + euVat: ['eu_vat', optional(string())], + frSiret: ['fr_siret', optional(string())], + frNaf: ['fr_naf', optional(string())], + esNif: ['es_nif', optional(string())], jpQii: ['jp_qii', optional(string())], }); diff --git a/src/models/teamMemberBookingProfile.ts b/src/models/teamMemberBookingProfile.ts index 4e5abbf2..9e4688db 100644 --- a/src/models/teamMemberBookingProfile.ts +++ b/src/models/teamMemberBookingProfile.ts @@ -8,7 +8,7 @@ export interface TeamMemberBookingProfile { description?: string; /** The display name of the team member. */ displayName?: string; - /** Indicates whether the team member can be booked through the Bookings API or the seller's online booking channel or site (`true) or not (`false`). */ + /** Indicates whether the team member can be booked through the Bookings API or the seller's online booking channel or site (`true`) or not (`false`). */ isBookable?: boolean | null; /** The URL of the team member's image for the bookings profile. */ profileImageUrl?: string; diff --git a/src/models/v1Device.ts b/src/models/v1Device.ts new file mode 100644 index 00000000..cb278765 --- /dev/null +++ b/src/models/v1Device.ts @@ -0,0 +1,13 @@ +import { nullable, object, optional, Schema, string } from '../schema'; + +export interface V1Device { + /** The device's Square-issued ID. */ + id?: string; + /** The device's merchant-specified name. */ + name?: string | null; +} + +export const v1DeviceSchema: Schema = object({ + id: ['id', optional(string())], + name: ['name', optional(nullable(string()))], +}); diff --git a/src/models/v1Payment.ts b/src/models/v1Payment.ts index 73a6eaf2..58965472 100644 --- a/src/models/v1Payment.ts +++ b/src/models/v1Payment.ts @@ -8,7 +8,7 @@ import { Schema, string, } from '../schema'; -import { Device, deviceSchema } from './device'; +import { V1Device, v1DeviceSchema } from './v1Device'; import { V1Money, v1MoneySchema } from './v1Money'; import { V1PaymentItemization, @@ -50,7 +50,7 @@ export interface V1Payment { createdAt?: string; /** The unique identifier of the Square account that took the payment. */ creatorId?: string | null; - device?: Device; + device?: V1Device; /** The URL of the payment's detail page in the merchant dashboard. The merchant must be signed in to the merchant dashboard to view this page. */ paymentUrl?: string | null; /** @@ -99,7 +99,7 @@ export const v1PaymentSchema: Schema = object({ merchantId: ['merchant_id', optional(nullable(string()))], createdAt: ['created_at', optional(string())], creatorId: ['creator_id', optional(nullable(string()))], - device: ['device', optional(lazy(() => deviceSchema))], + device: ['device', optional(lazy(() => v1DeviceSchema))], paymentUrl: ['payment_url', optional(nullable(string()))], receiptUrl: ['receipt_url', optional(nullable(string()))], inclusiveTaxMoney: [