From 526432ef41b91c9b30d313ec3ac59261c1a0dab8 Mon Sep 17 00:00:00 2001 From: autobot Date: Wed, 18 Sep 2024 16:15:11 +0000 Subject: [PATCH] Generated PR for Release: 41.1.0.20240919 --- doc/api/booking-custom-attributes.md | 4 +- doc/api/bookings.md | 2 +- doc/api/cards.md | 2 +- doc/api/catalog.md | 4 +- doc/api/customer-custom-attributes.md | 4 +- doc/api/customers.md | 2 +- doc/api/location-custom-attributes.md | 4 +- doc/api/merchant-custom-attributes.md | 4 +- doc/api/order-custom-attributes.md | 4 +- doc/api/payments.md | 2 +- doc/api/webhook-subscriptions.md | 2 +- doc/client.md | 9 ++- doc/models/booking.md | 1 + doc/models/customer.md | 2 +- doc/models/payment.md | 1 + doc/models/update-booking-response.md | 8 +++ pom.xml | 14 ++++- .../com/squareup/square/SquareClient.java | 6 +- .../java/com/squareup/square/api/BaseApi.java | 22 +++---- .../square/api/DefaultApplePayApi.java | 2 +- .../square/api/DefaultBankAccountsApi.java | 6 +- .../DefaultBookingCustomAttributesApi.java | 22 +++---- .../square/api/DefaultBookingsApi.java | 26 ++++----- .../squareup/square/api/DefaultCardsApi.java | 8 +-- .../square/api/DefaultCashDrawersApi.java | 6 +- .../square/api/DefaultCatalogApi.java | 28 ++++----- .../square/api/DefaultCheckoutApi.java | 20 +++---- .../DefaultCustomerCustomAttributesApi.java | 20 +++---- .../square/api/DefaultCustomerGroupsApi.java | 10 ++-- .../api/DefaultCustomerSegmentsApi.java | 4 +- .../square/api/DefaultCustomersApi.java | 28 ++++----- .../square/api/DefaultDevicesApi.java | 10 ++-- .../square/api/DefaultDisputesApi.java | 18 +++--- .../square/api/DefaultEmployeesApi.java | 4 +- .../squareup/square/api/DefaultEventsApi.java | 8 +-- .../api/DefaultGiftCardActivitiesApi.java | 4 +- .../square/api/DefaultGiftCardsApi.java | 14 ++--- .../square/api/DefaultInventoryApi.java | 26 ++++----- .../square/api/DefaultInvoicesApi.java | 20 +++---- .../squareup/square/api/DefaultLaborApi.java | 32 +++++------ .../DefaultLocationCustomAttributesApi.java | 22 +++---- .../square/api/DefaultLocationsApi.java | 8 +-- .../square/api/DefaultLoyaltyApi.java | 36 ++++++------ .../DefaultMerchantCustomAttributesApi.java | 22 +++---- .../square/api/DefaultMerchantsApi.java | 4 +- .../api/DefaultMobileAuthorizationApi.java | 2 +- .../squareup/square/api/DefaultOAuthApi.java | 6 +- .../api/DefaultOrderCustomAttributesApi.java | 22 +++---- .../squareup/square/api/DefaultOrdersApi.java | 16 +++--- .../square/api/DefaultPaymentsApi.java | 14 ++--- .../square/api/DefaultPayoutsApi.java | 6 +- .../square/api/DefaultRefundsApi.java | 6 +- .../squareup/square/api/DefaultSitesApi.java | 2 +- .../square/api/DefaultSnippetsApi.java | 6 +- .../square/api/DefaultSubscriptionsApi.java | 24 ++++---- .../squareup/square/api/DefaultTeamApi.java | 16 +++--- .../square/api/DefaultTerminalApi.java | 30 +++++----- .../square/api/DefaultTransactionsApi.java | 8 +-- .../square/api/DefaultV1TransactionsApi.java | 6 +- .../square/api/DefaultVendorsApi.java | 14 ++--- .../api/DefaultWebhookSubscriptionsApi.java | 16 +++--- .../com/squareup/square/models/Booking.java | 45 ++++++++++++--- .../com/squareup/square/models/Customer.java | 8 +-- .../com/squareup/square/models/Payment.java | 57 ++++++++++++++----- 64 files changed, 448 insertions(+), 361 deletions(-) diff --git a/doc/api/booking-custom-attributes.md b/doc/api/booking-custom-attributes.md index 8bb28f84..463b174d 100644 --- a/doc/api/booking-custom-attributes.md +++ b/doc/api/booking-custom-attributes.md @@ -369,7 +369,7 @@ CompletableFuture listBookingCustomAttribut | `bookingId` | `String` | Template, Required | The ID of the target [booking](entity:Booking). | | `limit` | `Integer` | Query, Optional | The maximum number of results to return in a single paged response. This limit is advisory.
The response might contain more or fewer results. The minimum value is 1 and the maximum value is 100.
The default value is 20. For more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination). | | `cursor` | `String` | Query, Optional | The cursor returned in the paged response from the previous call to this endpoint.
Provide this cursor to retrieve the next page of results for your original request. For more
information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination). | -| `withDefinitions` | `Boolean` | Query, Optional | Indicates whether to return the [custom attribute definition](entity:CustomAttributeDefinition) in the `definition` field of each
custom attribute. Set this parameter to `true` to get the name and description of each custom
attribute, information about the data type, or other definition details. The default value is `false`. | +| `withDefinitions` | `Boolean` | Query, Optional | Indicates whether to return the [custom attribute definition](entity:CustomAttributeDefinition) in the `definition` field of each
custom attribute. Set this parameter to `true` to get the name and description of each custom
attribute, information about the data type, or other definition details. The default value is `false`.
**Default**: `false` | ## Response Type @@ -457,7 +457,7 @@ CompletableFuture retrieveBookingCustomA | --- | --- | --- | --- | | `bookingId` | `String` | Template, Required | The ID of the target [booking](entity:Booking). | | `key` | `String` | Template, Required | The key of the custom attribute to retrieve. This key must match the `key` of a custom
attribute definition in the Square seller account. If the requesting application is not the
definition owner, you must use the qualified key. | -| `withDefinition` | `Boolean` | Query, Optional | Indicates whether to return the [custom attribute definition](entity:CustomAttributeDefinition) in the `definition` field of
the custom attribute. Set this parameter to `true` to get the name and description of the custom
attribute, information about the data type, or other definition details. The default value is `false`. | +| `withDefinition` | `Boolean` | Query, Optional | Indicates whether to return the [custom attribute definition](entity:CustomAttributeDefinition) in the `definition` field of
the custom attribute. Set this parameter to `true` to get the name and description of the custom
attribute, information about the data type, or other definition details. The default value is `false`.
**Default**: `false` | | `version` | `Integer` | Query, Optional | The current version of the custom attribute, which is used for strongly consistent reads to
guarantee that you receive the most up-to-date data. When included in the request, Square
returns the specified version or a higher version if one exists. If the specified version is
higher than the current version, Square returns a `BAD_REQUEST` error. | ## Response Type diff --git a/doc/api/bookings.md b/doc/api/bookings.md index 08f017de..cd3bdab5 100644 --- a/doc/api/bookings.md +++ b/doc/api/bookings.md @@ -331,7 +331,7 @@ CompletableFuture listTeamMemberBookingPr | Parameter | Type | Tags | Description | | --- | --- | --- | --- | -| `bookableOnly` | `Boolean` | Query, Optional | Indicates whether to include only bookable team members in the returned result (`true`) or not (`false`). | +| `bookableOnly` | `Boolean` | Query, Optional | Indicates whether to include only bookable team members in the returned result (`true`) or not (`false`).
**Default**: `false` | | `limit` | `Integer` | Query, Optional | The maximum number of results to return in a paged response. | | `cursor` | `String` | Query, Optional | The pagination cursor from the preceding response to return the next page of the results. Do not set this when retrieving the first page of the results. | | `locationId` | `String` | Query, Optional | Indicates whether to include only team members enabled at the given location in the returned result. | diff --git a/doc/api/cards.md b/doc/api/cards.md index 89cd9825..10f19b78 100644 --- a/doc/api/cards.md +++ b/doc/api/cards.md @@ -36,7 +36,7 @@ CompletableFuture listCardsAsync( | --- | --- | --- | --- | | `cursor` | `String` | Query, Optional | A pagination cursor returned by a previous call to this endpoint.
Provide this to retrieve the next set of results for your original query.

See [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination) for more information. | | `customerId` | `String` | Query, Optional | Limit results to cards associated with the customer supplied.
By default, all cards owned by the merchant are returned. | -| `includeDisabled` | `Boolean` | Query, Optional | Includes disabled cards.
By default, all enabled cards owned by the merchant are returned. | +| `includeDisabled` | `Boolean` | Query, Optional | Includes disabled cards.
By default, all enabled cards owned by the merchant are returned.
**Default**: `false` | | `referenceId` | `String` | Query, Optional | Limit results to cards associated with the reference_id supplied. | | `sortOrder` | [`String`](../../doc/models/sort-order.md) | Query, Optional | Sorts the returned list by when the card was created with the specified order.
This field defaults to ASC. | diff --git a/doc/api/catalog.md b/doc/api/catalog.md index cc7f7030..9b997635 100644 --- a/doc/api/catalog.md +++ b/doc/api/catalog.md @@ -609,9 +609,9 @@ CompletableFuture retrieveCatalogObjectAsync( | Parameter | Type | Tags | Description | | --- | --- | --- | --- | | `objectId` | `String` | Template, Required | The object ID of any type of catalog objects to be retrieved. | -| `includeRelatedObjects` | `Boolean` | Query, Optional | If `true`, the response will include additional objects that are related to the
requested objects. Related objects are defined as any objects referenced by ID by the results in the `objects` field
of the response. These objects are put in the `related_objects` field. Setting this to `true` is
helpful when the objects are needed for immediate display to a user.
This process only goes one level deep. Objects referenced by the related objects will not be included. For example,

if the `objects` field of the response contains a CatalogItem, its associated
CatalogCategory objects, CatalogTax objects, CatalogImage objects and
CatalogModifierLists will be returned in the `related_objects` field of the
response. If the `objects` field of the response contains a CatalogItemVariation,
its parent CatalogItem will be returned in the `related_objects` field of
the response.

Default value: `false` | +| `includeRelatedObjects` | `Boolean` | Query, Optional | If `true`, the response will include additional objects that are related to the
requested objects. Related objects are defined as any objects referenced by ID by the results in the `objects` field
of the response. These objects are put in the `related_objects` field. Setting this to `true` is
helpful when the objects are needed for immediate display to a user.
This process only goes one level deep. Objects referenced by the related objects will not be included. For example,

if the `objects` field of the response contains a CatalogItem, its associated
CatalogCategory objects, CatalogTax objects, CatalogImage objects and
CatalogModifierLists will be returned in the `related_objects` field of the
response. If the `objects` field of the response contains a CatalogItemVariation,
its parent CatalogItem will be returned in the `related_objects` field of
the response.

Default value: `false`
**Default**: `false` | | `catalogVersion` | `Long` | Query, Optional | Requests objects as of a specific version of the catalog. This allows you to retrieve historical
versions of objects. The value to retrieve a specific version of an object can be found
in the version field of [CatalogObject](../../doc/models/catalog-object.md)s. If not included, results will
be from the current version of the catalog. | -| `includeCategoryPathToRoot` | `Boolean` | Query, Optional | Specifies whether or not to include the `path_to_root` list for each returned category instance. The `path_to_root` list consists
of `CategoryPathToRootNode` objects and specifies the path that starts with the immediate parent category of the returned category
and ends with its root category. If the returned category is a top-level category, the `path_to_root` list is empty and is not returned
in the response payload. | +| `includeCategoryPathToRoot` | `Boolean` | Query, Optional | Specifies whether or not to include the `path_to_root` list for each returned category instance. The `path_to_root` list consists
of `CategoryPathToRootNode` objects and specifies the path that starts with the immediate parent category of the returned category
and ends with its root category. If the returned category is a top-level category, the `path_to_root` list is empty and is not returned
in the response payload.
**Default**: `false` | ## Response Type diff --git a/doc/api/customer-custom-attributes.md b/doc/api/customer-custom-attributes.md index 203ca240..5d3726e3 100644 --- a/doc/api/customer-custom-attributes.md +++ b/doc/api/customer-custom-attributes.md @@ -336,7 +336,7 @@ CompletableFuture listCustomerCustomAttrib | `customerId` | `String` | Template, Required | The ID of the target [customer profile](entity:Customer). | | `limit` | `Integer` | Query, Optional | The maximum number of results to return in a single paged response. This limit is advisory.
The response might contain more or fewer results. The minimum value is 1 and the maximum value is 100.
The default value is 20. For more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination). | | `cursor` | `String` | Query, Optional | The cursor returned in the paged response from the previous call to this endpoint.
Provide this cursor to retrieve the next page of results for your original request. For more
information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination). | -| `withDefinitions` | `Boolean` | Query, Optional | Indicates whether to return the [custom attribute definition](entity:CustomAttributeDefinition) in the `definition` field of each
custom attribute. Set this parameter to `true` to get the name and description of each custom
attribute, information about the data type, or other definition details. The default value is `false`. | +| `withDefinitions` | `Boolean` | Query, Optional | Indicates whether to return the [custom attribute definition](entity:CustomAttributeDefinition) in the `definition` field of each
custom attribute. Set this parameter to `true` to get the name and description of each custom
attribute, information about the data type, or other definition details. The default value is `false`.
**Default**: `false` | ## Response Type @@ -426,7 +426,7 @@ CompletableFuture retrieveCustomerCusto | --- | --- | --- | --- | | `customerId` | `String` | Template, Required | The ID of the target [customer profile](entity:Customer). | | `key` | `String` | Template, Required | The key of the custom attribute to retrieve. This key must match the `key` of a custom
attribute definition in the Square seller account. If the requesting application is not the
definition owner, you must use the qualified key. | -| `withDefinition` | `Boolean` | Query, Optional | Indicates whether to return the [custom attribute definition](entity:CustomAttributeDefinition) in the `definition` field of
the custom attribute. Set this parameter to `true` to get the name and description of the custom
attribute, information about the data type, or other definition details. The default value is `false`. | +| `withDefinition` | `Boolean` | Query, Optional | Indicates whether to return the [custom attribute definition](entity:CustomAttributeDefinition) in the `definition` field of
the custom attribute. Set this parameter to `true` to get the name and description of the custom
attribute, information about the data type, or other definition details. The default value is `false`.
**Default**: `false` | | `version` | `Integer` | Query, Optional | The current version of the custom attribute, which is used for strongly consistent reads to
guarantee that you receive the most up-to-date data. When included in the request, Square
returns the specified version or a higher version if one exists. If the specified version is
higher than the current version, Square returns a `BAD_REQUEST` error. | ## Response Type diff --git a/doc/api/customers.md b/doc/api/customers.md index f5bd89e4..95668320 100644 --- a/doc/api/customers.md +++ b/doc/api/customers.md @@ -51,7 +51,7 @@ CompletableFuture listCustomersAsync( | `limit` | `Integer` | Query, Optional | The maximum number of results to return in a single page. This limit is advisory. The response might contain more or fewer results.
If the specified limit is less than 1 or greater than 100, Square returns a `400 VALUE_TOO_LOW` or `400 VALUE_TOO_HIGH` error. The default value is 100.

For more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination). | | `sortField` | [`String`](../../doc/models/customer-sort-field.md) | Query, Optional | Indicates how customers should be sorted.

The default value is `DEFAULT`. | | `sortOrder` | [`String`](../../doc/models/sort-order.md) | Query, Optional | Indicates whether customers should be sorted in ascending (`ASC`) or
descending (`DESC`) order.

The default value is `ASC`. | -| `count` | `Boolean` | Query, Optional | Indicates whether to return the total count of customers in the `count` field of the response.

The default value is `false`. | +| `count` | `Boolean` | Query, Optional | Indicates whether to return the total count of customers in the `count` field of the response.

The default value is `false`.
**Default**: `false` | ## Response Type diff --git a/doc/api/location-custom-attributes.md b/doc/api/location-custom-attributes.md index bcad87ce..3af677f4 100644 --- a/doc/api/location-custom-attributes.md +++ b/doc/api/location-custom-attributes.md @@ -372,7 +372,7 @@ CompletableFuture listLocationCustomAttrib | `visibilityFilter` | [`String`](../../doc/models/visibility-filter.md) | Query, Optional | Filters the `CustomAttributeDefinition` results by their `visibility` values. | | `limit` | `Integer` | Query, Optional | The maximum number of results to return in a single paged response. This limit is advisory.
The response might contain more or fewer results. The minimum value is 1 and the maximum value is 100.
The default value is 20. For more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination). | | `cursor` | `String` | Query, Optional | The cursor returned in the paged response from the previous call to this endpoint.
Provide this cursor to retrieve the next page of results for your original request. For more
information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination). | -| `withDefinitions` | `Boolean` | Query, Optional | Indicates whether to return the [custom attribute definition](entity:CustomAttributeDefinition) in the `definition` field of each
custom attribute. Set this parameter to `true` to get the name and description of each custom
attribute, information about the data type, or other definition details. The default value is `false`. | +| `withDefinitions` | `Boolean` | Query, Optional | Indicates whether to return the [custom attribute definition](entity:CustomAttributeDefinition) in the `definition` field of each
custom attribute. Set this parameter to `true` to get the name and description of each custom
attribute, information about the data type, or other definition details. The default value is `false`.
**Default**: `false` | ## Response Type @@ -457,7 +457,7 @@ CompletableFuture retrieveLocationCusto | --- | --- | --- | --- | | `locationId` | `String` | Template, Required | The ID of the target [location](entity:Location). | | `key` | `String` | Template, Required | The key of the custom attribute to retrieve. This key must match the `key` of a custom
attribute definition in the Square seller account. If the requesting application is not the
definition owner, you must use the qualified key. | -| `withDefinition` | `Boolean` | Query, Optional | Indicates whether to return the [custom attribute definition](entity:CustomAttributeDefinition) in the `definition` field of
the custom attribute. Set this parameter to `true` to get the name and description of the custom
attribute, information about the data type, or other definition details. The default value is `false`. | +| `withDefinition` | `Boolean` | Query, Optional | Indicates whether to return the [custom attribute definition](entity:CustomAttributeDefinition) in the `definition` field of
the custom attribute. Set this parameter to `true` to get the name and description of the custom
attribute, information about the data type, or other definition details. The default value is `false`.
**Default**: `false` | | `version` | `Integer` | Query, Optional | The current version of the custom attribute, which is used for strongly consistent reads to
guarantee that you receive the most up-to-date data. When included in the request, Square
returns the specified version or a higher version if one exists. If the specified version is
higher than the current version, Square returns a `BAD_REQUEST` error. | ## Response Type diff --git a/doc/api/merchant-custom-attributes.md b/doc/api/merchant-custom-attributes.md index bd15771f..5165a974 100644 --- a/doc/api/merchant-custom-attributes.md +++ b/doc/api/merchant-custom-attributes.md @@ -369,7 +369,7 @@ CompletableFuture listMerchantCustomAttrib | `visibilityFilter` | [`String`](../../doc/models/visibility-filter.md) | Query, Optional | Filters the `CustomAttributeDefinition` results by their `visibility` values. | | `limit` | `Integer` | Query, Optional | The maximum number of results to return in a single paged response. This limit is advisory.
The response might contain more or fewer results. The minimum value is 1 and the maximum value is 100.
The default value is 20. For more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination). | | `cursor` | `String` | Query, Optional | The cursor returned in the paged response from the previous call to this endpoint.
Provide this cursor to retrieve the next page of results for your original request. For more
information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination). | -| `withDefinitions` | `Boolean` | Query, Optional | Indicates whether to return the [custom attribute definition](entity:CustomAttributeDefinition) in the `definition` field of each
custom attribute. Set this parameter to `true` to get the name and description of each custom
attribute, information about the data type, or other definition details. The default value is `false`. | +| `withDefinitions` | `Boolean` | Query, Optional | Indicates whether to return the [custom attribute definition](entity:CustomAttributeDefinition) in the `definition` field of each
custom attribute. Set this parameter to `true` to get the name and description of each custom
attribute, information about the data type, or other definition details. The default value is `false`.
**Default**: `false` | ## Response Type @@ -454,7 +454,7 @@ CompletableFuture retrieveMerchantCusto | --- | --- | --- | --- | | `merchantId` | `String` | Template, Required | The ID of the target [merchant](entity:Merchant). | | `key` | `String` | Template, Required | The key of the custom attribute to retrieve. This key must match the `key` of a custom
attribute definition in the Square seller account. If the requesting application is not the
definition owner, you must use the qualified key. | -| `withDefinition` | `Boolean` | Query, Optional | Indicates whether to return the [custom attribute definition](entity:CustomAttributeDefinition) in the `definition` field of
the custom attribute. Set this parameter to `true` to get the name and description of the custom
attribute, information about the data type, or other definition details. The default value is `false`. | +| `withDefinition` | `Boolean` | Query, Optional | Indicates whether to return the [custom attribute definition](entity:CustomAttributeDefinition) in the `definition` field of
the custom attribute. Set this parameter to `true` to get the name and description of the custom
attribute, information about the data type, or other definition details. The default value is `false`.
**Default**: `false` | | `version` | `Integer` | Query, Optional | The current version of the custom attribute, which is used for strongly consistent reads to
guarantee that you receive the most up-to-date data. When included in the request, Square
returns the specified version or a higher version if one exists. If the specified version is
higher than the current version, Square returns a `BAD_REQUEST` error. | ## Response Type diff --git a/doc/api/order-custom-attributes.md b/doc/api/order-custom-attributes.md index 2a8d75d8..360796b5 100644 --- a/doc/api/order-custom-attributes.md +++ b/doc/api/order-custom-attributes.md @@ -393,7 +393,7 @@ CompletableFuture listOrderCustomAttributesAs | `visibilityFilter` | [`String`](../../doc/models/visibility-filter.md) | Query, Optional | Requests that all of the custom attributes be returned, or only those that are read-only or read-write. | | `cursor` | `String` | Query, Optional | The cursor returned in the paged response from the previous call to this endpoint.
Provide this cursor to retrieve the next page of results for your original request.
For more information, see [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination). | | `limit` | `Integer` | Query, Optional | The maximum number of results to return in a single paged response. This limit is advisory.
The response might contain more or fewer results. The minimum value is 1 and the maximum value is 100.
The default value is 20.
For more information, see [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination). | -| `withDefinitions` | `Boolean` | Query, Optional | Indicates whether to return the [custom attribute definition](entity:CustomAttributeDefinition) in the `definition` field of each
custom attribute. Set this parameter to `true` to get the name and description of each custom attribute,
information about the data type, or other definition details. The default value is `false`. | +| `withDefinitions` | `Boolean` | Query, Optional | Indicates whether to return the [custom attribute definition](entity:CustomAttributeDefinition) in the `definition` field of each
custom attribute. Set this parameter to `true` to get the name and description of each custom attribute,
information about the data type, or other definition details. The default value is `false`.
**Default**: `false` | ## Response Type @@ -484,7 +484,7 @@ CompletableFuture retrieveOrderCustomAttri | `orderId` | `String` | Template, Required | The ID of the target [order](entity:Order). | | `customAttributeKey` | `String` | Template, Required | The key of the custom attribute to retrieve. This key must match the key of an
existing custom attribute definition. | | `version` | `Integer` | Query, Optional | To enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency)
control, include this optional field and specify the current version of the custom attribute. | -| `withDefinition` | `Boolean` | Query, Optional | Indicates whether to return the [custom attribute definition](entity:CustomAttributeDefinition) in the `definition` field of each
custom attribute. Set this parameter to `true` to get the name and description of each custom attribute,
information about the data type, or other definition details. The default value is `false`. | +| `withDefinition` | `Boolean` | Query, Optional | Indicates whether to return the [custom attribute definition](entity:CustomAttributeDefinition) in the `definition` field of each
custom attribute. Set this parameter to `true` to get the name and description of each custom attribute,
information about the data type, or other definition details. The default value is `false`.
**Default**: `false` | ## Response Type diff --git a/doc/api/payments.md b/doc/api/payments.md index d393d796..7fab2072 100644 --- a/doc/api/payments.md +++ b/doc/api/payments.md @@ -57,7 +57,7 @@ CompletableFuture listPaymentsAsync( | `last4` | `String` | Query, Optional | The last four digits of a payment card. | | `cardBrand` | `String` | Query, Optional | The brand of the payment card (for example, VISA). | | `limit` | `Integer` | Query, Optional | The maximum number of results to be returned in a single page.
It is possible to receive fewer results than the specified limit on a given page.

The default value of 100 is also the maximum allowed value. If the provided value is
greater than 100, it is ignored and the default value is used instead.

Default: `100` | -| `isOfflinePayment` | `Boolean` | Query, Optional | Whether the payment was taken offline or not. | +| `isOfflinePayment` | `Boolean` | Query, Optional | Whether the payment was taken offline or not.
**Default**: `false` | | `offlineBeginTime` | `String` | Query, Optional | Indicates the start of the time range for which to retrieve offline payments, in RFC 3339
format for timestamps. The range is determined using the
`offline_payment_details.client_created_at` field for each Payment. If set, payments without a
value set in `offline_payment_details.client_created_at` will not be returned.

Default: The current time. | | `offlineEndTime` | `String` | Query, Optional | Indicates the end of the time range for which to retrieve offline payments, in RFC 3339
format for timestamps. The range is determined using the
`offline_payment_details.client_created_at` field for each Payment. If set, payments without a
value set in `offline_payment_details.client_created_at` will not be returned.

Default: The current time. | diff --git a/doc/api/webhook-subscriptions.md b/doc/api/webhook-subscriptions.md index 225fe38d..ac63c4fb 100644 --- a/doc/api/webhook-subscriptions.md +++ b/doc/api/webhook-subscriptions.md @@ -70,7 +70,7 @@ CompletableFuture listWebhookSubscriptionsAsyn | Parameter | Type | Tags | Description | | --- | --- | --- | --- | | `cursor` | `String` | Query, Optional | A pagination cursor returned by a previous call to this endpoint.
Provide this to retrieve the next set of results for your original query.

For more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination). | -| `includeDisabled` | `Boolean` | Query, Optional | Includes disabled [Subscription](entity:WebhookSubscription)s.
By default, all enabled [Subscription](entity:WebhookSubscription)s are returned. | +| `includeDisabled` | `Boolean` | Query, Optional | Includes disabled [Subscription](entity:WebhookSubscription)s.
By default, all enabled [Subscription](entity:WebhookSubscription)s are returned.
**Default**: `false` | | `sortOrder` | [`String`](../../doc/models/sort-order.md) | Query, Optional | Sorts the returned list by when the [Subscription](entity:WebhookSubscription) was created with the specified order.
This field defaults to ASC. | | `limit` | `Integer` | Query, Optional | The maximum number of results to be returned in a single page.
It is possible to receive fewer results than the specified limit on a given page.
The default value of 100 is also the maximum allowed value.

Default: 100 | diff --git a/doc/client.md b/doc/client.md index e373d61a..8b202589 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*: `"2024-08-21"` | +| `squareVersion` | `String` | Square Connect API versions
*Default*: `"2024-09-19"` | | `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`** | | `httpClientConfig` | [`Consumer`](http-client-configuration-builder.md) | Set up Http Client Configuration instance. | @@ -19,7 +19,7 @@ The API client can be initialized as follows: SquareClient client = new SquareClient.Builder() .httpClientConfig(configBuilder -> configBuilder .timeout(0)) - .squareVersion("2024-08-21") + .squareVersion("2024-09-19") .bearerAuthCredentials(new BearerAuthModel.Builder( "AccessToken" ) @@ -34,6 +34,7 @@ SquareClient client = new SquareClient.Builder() ```java package com.example; +import com.squareup.square.Environment; import com.squareup.square.SquareClient; import com.squareup.square.api.LocationsApi; import com.squareup.square.authentication.BearerAuthModel; @@ -44,11 +45,13 @@ public class Program { SquareClient client = new SquareClient.Builder() .httpClientConfig(configBuilder -> configBuilder .timeout(0)) - .squareVersion("2024-08-21") + .squareVersion("2024-09-19") .bearerAuthCredentials(new BearerAuthModel.Builder( "AccessToken" ) .build()) + .environment(Environment.PRODUCTION) + .customUrl("https://connect.squareup.com") .build(); LocationsApi locationsApi = client.getLocationsApi(); diff --git a/doc/models/booking.md b/doc/models/booking.md index b5fa881e..e2232e01 100644 --- a/doc/models/booking.md +++ b/doc/models/booking.md @@ -28,6 +28,7 @@ at a given location to a requesting customer in one or more appointment segments | `LocationType` | [`String`](../../doc/models/business-appointment-settings-booking-location-type.md) | Optional | Supported types of location where service is provided. | String getLocationType() | | `CreatorDetails` | [`BookingCreatorDetails`](../../doc/models/booking-creator-details.md) | Optional | Information about a booking creator. | BookingCreatorDetails getCreatorDetails() | | `Source` | [`String`](../../doc/models/booking-booking-source.md) | Optional | Supported sources a booking was created from. | String getSource() | +| `Address` | [`Address`](../../doc/models/address.md) | Optional | Represents a postal address in a country.
For more information, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses). | Address getAddress() | ## Example (as JSON) diff --git a/doc/models/customer.md b/doc/models/customer.md index 6d30ad6f..99f9d02d 100644 --- a/doc/models/customer.md +++ b/doc/models/customer.md @@ -14,7 +14,7 @@ Represents a Square customer profile in the Customer Directory of a Square selle | `Id` | `String` | Optional | A unique Square-assigned ID for the customer profile.

If you need this ID for an API request, use the ID returned when you created the customer profile or call the [SearchCustomers](api-endpoint:Customers-SearchCustomers)
or [ListCustomers](api-endpoint:Customers-ListCustomers) endpoint. | String getId() | | `CreatedAt` | `String` | Optional | The timestamp when the customer profile was created, in RFC 3339 format. | String getCreatedAt() | | `UpdatedAt` | `String` | Optional | The timestamp when the customer profile was last updated, in RFC 3339 format. | String getUpdatedAt() | -| `Cards` | [`List`](../../doc/models/card.md) | Optional | Payment details of the credit, debit, and gift cards stored on file for the customer profile.

DEPRECATED at version 2021-06-16. Replaced by calling [ListCards](api-endpoint:Cards-ListCards) (for credit and debit cards on file)
or [ListGiftCards](api-endpoint:GiftCards-ListGiftCards) (for gift cards on file) and including the `customer_id` query parameter.
For more information, see [Migration notes](https://developer.squareup.com/docs/customers-api/what-it-does#migrate-customer-cards). | List getCards() | +| `Cards` | [`List`](../../doc/models/card.md) | Optional | Payment details of the credit, debit, and gift cards stored on file for the customer profile.

DEPRECATED at version 2021-06-16 and will be RETIRED at version 2024-12-18. Replaced by calling [ListCards](api-endpoint:Cards-ListCards) (for credit and debit cards on file)
or [ListGiftCards](api-endpoint:GiftCards-ListGiftCards) (for gift cards on file) and including the `customer_id` query parameter.
For more information, see [Migration notes](https://developer.squareup.com/docs/customers-api/what-it-does#migrate-customer-cards). | List getCards() | | `GivenName` | `String` | Optional | The given name (that is, the first name) associated with the customer profile. | String getGivenName() | | `FamilyName` | `String` | Optional | The family name (that is, the last name) associated with the customer profile. | String getFamilyName() | | `Nickname` | `String` | Optional | A nickname for the customer profile. | String getNickname() | diff --git a/doc/models/payment.md b/doc/models/payment.md index 66ff7204..2259c650 100644 --- a/doc/models/payment.md +++ b/doc/models/payment.md @@ -41,6 +41,7 @@ Represents a payment processed by the Square API. | `TeamMemberId` | `String` | Optional | An optional ID of the [TeamMember](entity:TeamMember) associated with taking the payment.
**Constraints**: *Maximum Length*: `192` | String getTeamMemberId() | | `RefundIds` | `List` | Optional | A list of `refund_id`s identifying refunds for the payment. | List getRefundIds() | | `RiskEvaluation` | [`RiskEvaluation`](../../doc/models/risk-evaluation.md) | Optional | Represents fraud risk information for the associated payment.

When you take a payment through Square's Payments API (using the `CreatePayment`
endpoint), Square evaluates it and assigns a risk level to the payment. Sellers
can use this information to determine the course of action (for example,
provide the goods/services or refund the payment). | RiskEvaluation getRiskEvaluation() | +| `TerminalCheckoutId` | `String` | Optional | An optional ID for a Terminal checkout that is associated with the payment. | String getTerminalCheckoutId() | | `BuyerEmailAddress` | `String` | Optional | The buyer's email address.
**Constraints**: *Maximum Length*: `255` | String getBuyerEmailAddress() | | `BillingAddress` | [`Address`](../../doc/models/address.md) | Optional | Represents a postal address in a country.
For more information, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses). | Address getBillingAddress() | | `ShippingAddress` | [`Address`](../../doc/models/address.md) | Optional | Represents a postal address in a country.
For more information, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses). | Address getShippingAddress() | diff --git a/doc/models/update-booking-response.md b/doc/models/update-booking-response.md index 167219ed..d0d5d99b 100644 --- a/doc/models/update-booking-response.md +++ b/doc/models/update-booking-response.md @@ -17,6 +17,13 @@ ```json { "booking": { + "address": { + "address_line_1": "1955 Broadway", + "address_line_2": "Suite 600", + "administrative_district_level_1": "CA", + "locality": "Oakland", + "postal_code": "94612" + }, "appointment_segments": [ { "duration_minutes": 60, @@ -30,6 +37,7 @@ "customer_note": "I would like to sit near the window please", "id": "zkras0xv0xwswx", "location_id": "LEQHH0YY8B42M", + "location_type": "CUSTOMER_LOCATION", "seller_note": "", "start_at": "2020-11-26T13:00:00Z", "status": "ACCEPTED", diff --git a/pom.xml b/pom.xml index 0d609b02..e8f6b25d 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.squareup square - 41.0.0.20240821 + 41.1.0.20240919 jar Square Java client library for the Square API @@ -142,6 +142,18 @@ + + org.apache.maven.plugins + maven-jar-plugin + 3.4.0 + + + + com.squareup.square + + + + diff --git a/src/main/java/com/squareup/square/SquareClient.java b/src/main/java/com/squareup/square/SquareClient.java index d8dfca26..9ddb4670 100644 --- a/src/main/java/com/squareup/square/SquareClient.java +++ b/src/main/java/com/squareup/square/SquareClient.java @@ -157,7 +157,7 @@ public final class SquareClient implements SquareClientInterface { private static final CompatibilityFactory compatibilityFactory = new CompatibilityFactoryImpl(); - private static String userAgent = "Square-Java-SDK/41.0.0.20240821 ({api-version}) {engine}/{engine-version} ({os-info}) {detail}"; + private static String userAgent = "Square-Java-SDK/41.1.0.20240919 ({api-version}) {engine}/{engine-version} ({os-info}) {detail}"; /** * Current API environment. @@ -719,7 +719,7 @@ public String getAccessToken() { * @return sdkVersion */ public String getSdkVersion() { - return "41.0.0.20240821"; + return "41.1.0.20240919"; } /** @@ -832,7 +832,7 @@ public static class Builder { private Environment environment = Environment.PRODUCTION; private String customUrl = "https://connect.squareup.com"; - private String squareVersion = "2024-08-21"; + private String squareVersion = "2024-09-19"; private HttpClient httpClient; private Headers additionalHeaders = new Headers(); private String userAgentDetail = null; diff --git a/src/main/java/com/squareup/square/api/BaseApi.java b/src/main/java/com/squareup/square/api/BaseApi.java index 0390e893..3cfc85bd 100644 --- a/src/main/java/com/squareup/square/api/BaseApi.java +++ b/src/main/java/com/squareup/square/api/BaseApi.java @@ -21,17 +21,17 @@ public abstract class BaseApi { (reason, context) -> new ApiException(reason, context))); } - protected BaseApi(GlobalConfiguration globalConfig) { - this.globalConfig = globalConfig; - } - - /** - * Get httpCallback associated with this controller. - * @return HttpCallback - */ - public HttpCallback getHttpCallback() { - return (HttpCallback) globalConfig.getHttpCallback(); - } + protected BaseApi(GlobalConfiguration globalConfig) { + this.globalConfig = globalConfig; + } + + /** + * Get httpCallback associated with this controller. + * @return HttpCallback + */ + public HttpCallback getHttpCallback() { + return (HttpCallback) globalConfig.getHttpCallback(); + } /** * Shared instance of the Http client. diff --git a/src/main/java/com/squareup/square/api/DefaultApplePayApi.java b/src/main/java/com/squareup/square/api/DefaultApplePayApi.java index d3d2f481..27e77a74 100644 --- a/src/main/java/com/squareup/square/api/DefaultApplePayApi.java +++ b/src/main/java/com/squareup/square/api/DefaultApplePayApi.java @@ -101,7 +101,7 @@ private ApiCall prepareRegisterDomainReque response -> ApiHelper.deserialize(response, RegisterDomainResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultBankAccountsApi.java b/src/main/java/com/squareup/square/api/DefaultBankAccountsApi.java index 28297eb5..0046659d 100644 --- a/src/main/java/com/squareup/square/api/DefaultBankAccountsApi.java +++ b/src/main/java/com/squareup/square/api/DefaultBankAccountsApi.java @@ -103,7 +103,7 @@ private ApiCall prepareListBankAccountsR response -> ApiHelper.deserialize(response, ListBankAccountsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -161,7 +161,7 @@ private ApiCall prepareGetBankAccoun response -> ApiHelper.deserialize(response, GetBankAccountByV1IdResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -213,7 +213,7 @@ private ApiCall prepareGetBankAccountReque response -> ApiHelper.deserialize(response, GetBankAccountResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultBookingCustomAttributesApi.java b/src/main/java/com/squareup/square/api/DefaultBookingCustomAttributesApi.java index b0a12fee..9e2a9917 100644 --- a/src/main/java/com/squareup/square/api/DefaultBookingCustomAttributesApi.java +++ b/src/main/java/com/squareup/square/api/DefaultBookingCustomAttributesApi.java @@ -116,7 +116,7 @@ private ApiCall pre response -> ApiHelper.deserialize(response, ListBookingCustomAttributeDefinitionsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -180,7 +180,7 @@ private ApiCall pr response -> ApiHelper.deserialize(response, CreateBookingCustomAttributeDefinitionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -240,7 +240,7 @@ private ApiCall pr response -> ApiHelper.deserialize(response, DeleteBookingCustomAttributeDefinitionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -317,7 +317,7 @@ private ApiCall response -> ApiHelper.deserialize(response, RetrieveBookingCustomAttributeDefinitionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -388,7 +388,7 @@ private ApiCall pr response -> ApiHelper.deserialize(response, UpdateBookingCustomAttributeDefinitionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -452,7 +452,7 @@ private ApiCall prepare response -> ApiHelper.deserialize(response, BulkDeleteBookingCustomAttributesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -516,7 +516,7 @@ private ApiCall prepare response -> ApiHelper.deserialize(response, BulkUpsertBookingCustomAttributesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -617,7 +617,7 @@ private ApiCall prepareListBo response -> ApiHelper.deserialize(response, ListBookingCustomAttributesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -688,7 +688,7 @@ private ApiCall prepareDelet response -> ApiHelper.deserialize(response, DeleteBookingCustomAttributeResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -787,7 +787,7 @@ private ApiCall prepareRet response -> ApiHelper.deserialize(response, RetrieveBookingCustomAttributeResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -871,7 +871,7 @@ private ApiCall prepareUpser response -> ApiHelper.deserialize(response, UpsertBookingCustomAttributeResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultBookingsApi.java b/src/main/java/com/squareup/square/api/DefaultBookingsApi.java index 8b9ea9a4..ebe91104 100644 --- a/src/main/java/com/squareup/square/api/DefaultBookingsApi.java +++ b/src/main/java/com/squareup/square/api/DefaultBookingsApi.java @@ -156,7 +156,7 @@ private ApiCall prepareListBookingsRequest( response -> ApiHelper.deserialize(response, ListBookingsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -226,7 +226,7 @@ private ApiCall prepareCreateBookingRequest response -> ApiHelper.deserialize(response, CreateBookingResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -286,7 +286,7 @@ private ApiCall prepareSearchAvailabil response -> ApiHelper.deserialize(response, SearchAvailabilityResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -348,7 +348,7 @@ private ApiCall prepareBulkRetrieveB response -> ApiHelper.deserialize(response, BulkRetrieveBookingsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -393,7 +393,7 @@ private ApiCall prepareRet response -> ApiHelper.deserialize(response, RetrieveBusinessBookingProfileResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -458,7 +458,7 @@ private ApiCall prepareListLo response -> ApiHelper.deserialize(response, ListLocationBookingProfilesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -512,7 +512,7 @@ private ApiCall prepareRet response -> ApiHelper.deserialize(response, RetrieveLocationBookingProfileResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -597,7 +597,7 @@ private ApiCall prepareList response -> ApiHelper.deserialize(response, ListTeamMemberBookingProfilesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -653,7 +653,7 @@ private ApiCall pre response -> ApiHelper.deserialize(response, BulkRetrieveTeamMemberBookingProfilesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -705,7 +705,7 @@ private ApiCall prepareR response -> ApiHelper.deserialize(response, RetrieveTeamMemberBookingProfileResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -763,7 +763,7 @@ private ApiCall prepareRetrieveBookingReq response -> ApiHelper.deserialize(response, RetrieveBookingResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -836,7 +836,7 @@ private ApiCall prepareUpdateBookingRequest response -> ApiHelper.deserialize(response, UpdateBookingResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -909,7 +909,7 @@ private ApiCall prepareCancelBookingRequest response -> ApiHelper.deserialize(response, CancelBookingResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultCardsApi.java b/src/main/java/com/squareup/square/api/DefaultCardsApi.java index 5a2c0017..aaa2bed2 100644 --- a/src/main/java/com/squareup/square/api/DefaultCardsApi.java +++ b/src/main/java/com/squareup/square/api/DefaultCardsApi.java @@ -126,7 +126,7 @@ private ApiCall prepareListCardsRequest( response -> ApiHelper.deserialize(response, ListCardsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -182,7 +182,7 @@ private ApiCall prepareCreateCardRequest( response -> ApiHelper.deserialize(response, CreateCardResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -234,7 +234,7 @@ private ApiCall prepareRetrieveCardRequest( response -> ApiHelper.deserialize(response, RetrieveCardResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -288,7 +288,7 @@ private ApiCall prepareDisableCardRequest( response -> ApiHelper.deserialize(response, DisableCardResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultCashDrawersApi.java b/src/main/java/com/squareup/square/api/DefaultCashDrawersApi.java index b27bbbb8..9f81db90 100644 --- a/src/main/java/com/squareup/square/api/DefaultCashDrawersApi.java +++ b/src/main/java/com/squareup/square/api/DefaultCashDrawersApi.java @@ -122,7 +122,7 @@ private ApiCall prepareListCashDrawe response -> ApiHelper.deserialize(response, ListCashDrawerShiftsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -187,7 +187,7 @@ private ApiCall prepareRetrieveCa response -> ApiHelper.deserialize(response, RetrieveCashDrawerShiftResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -266,7 +266,7 @@ private ApiCall prepareListCash response -> ApiHelper.deserialize(response, ListCashDrawerShiftEventsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultCatalogApi.java b/src/main/java/com/squareup/square/api/DefaultCatalogApi.java index e62b7518..7e2a4da3 100644 --- a/src/main/java/com/squareup/square/api/DefaultCatalogApi.java +++ b/src/main/java/com/squareup/square/api/DefaultCatalogApi.java @@ -119,7 +119,7 @@ private ApiCall prepareBatchDel response -> ApiHelper.deserialize(response, BatchDeleteCatalogObjectsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -183,7 +183,7 @@ private ApiCall prepareBatchR response -> ApiHelper.deserialize(response, BatchRetrieveCatalogObjectsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -257,7 +257,7 @@ private ApiCall prepareBatchUps response -> ApiHelper.deserialize(response, BatchUpsertCatalogObjectsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -330,7 +330,7 @@ private ApiCall prepareCreateCatalogIm response -> ApiHelper.deserialize(response, CreateCatalogImageResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -410,7 +410,7 @@ private ApiCall prepareUpdateCatalogIm response -> ApiHelper.deserialize(response, UpdateCatalogImageResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -457,7 +457,7 @@ private ApiCall prepareCatalogInfoRequest() t response -> ApiHelper.deserialize(response, CatalogInfoResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -567,7 +567,7 @@ private ApiCall prepareListCatalogRequest( response -> ApiHelper.deserialize(response, ListCatalogResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -629,7 +629,7 @@ private ApiCall prepareUpsertCatalogO response -> ApiHelper.deserialize(response, UpsertCatalogObjectResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -701,7 +701,7 @@ private ApiCall prepareDeleteCatalogO response -> ApiHelper.deserialize(response, DeleteCatalogObjectResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -828,7 +828,7 @@ private ApiCall prepareRetrieveCata response -> ApiHelper.deserialize(response, RetrieveCatalogObjectResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -904,7 +904,7 @@ private ApiCall prepareSearchCatalog response -> ApiHelper.deserialize(response, SearchCatalogObjectsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -980,7 +980,7 @@ private ApiCall prepareSearchCatalogIt response -> ApiHelper.deserialize(response, SearchCatalogItemsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -1038,7 +1038,7 @@ private ApiCall prepareUpdateItem response -> ApiHelper.deserialize(response, UpdateItemModifierListsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -1096,7 +1096,7 @@ private ApiCall prepareUpdateItemTaxesReq response -> ApiHelper.deserialize(response, UpdateItemTaxesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultCheckoutApi.java b/src/main/java/com/squareup/square/api/DefaultCheckoutApi.java index 93b6a5b5..747c9788 100644 --- a/src/main/java/com/squareup/square/api/DefaultCheckoutApi.java +++ b/src/main/java/com/squareup/square/api/DefaultCheckoutApi.java @@ -115,7 +115,7 @@ private ApiCall prepareCreateCheckoutReque response -> ApiHelper.deserialize(response, CreateCheckoutResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -169,7 +169,7 @@ private ApiCall prepareRetrieveL response -> ApiHelper.deserialize(response, RetrieveLocationSettingsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -234,7 +234,7 @@ private ApiCall prepareUpdateLocat response -> ApiHelper.deserialize(response, UpdateLocationSettingsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -279,7 +279,7 @@ private ApiCall prepareRetrieveM response -> ApiHelper.deserialize(response, RetrieveMerchantSettingsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -335,7 +335,7 @@ private ApiCall prepareUpdateMerch response -> ApiHelper.deserialize(response, UpdateMerchantSettingsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -408,7 +408,7 @@ private ApiCall prepareListPaymentLinksR response -> ApiHelper.deserialize(response, ListPaymentLinksResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -466,7 +466,7 @@ private ApiCall prepareCreatePaymentLin response -> ApiHelper.deserialize(response, CreatePaymentLinkResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -518,7 +518,7 @@ private ApiCall prepareDeletePaymentLin response -> ApiHelper.deserialize(response, DeletePaymentLinkResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -570,7 +570,7 @@ private ApiCall prepareRetrievePaymen response -> ApiHelper.deserialize(response, RetrievePaymentLinkResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -637,7 +637,7 @@ private ApiCall prepareUpdatePaymentLin response -> ApiHelper.deserialize(response, UpdatePaymentLinkResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultCustomerCustomAttributesApi.java b/src/main/java/com/squareup/square/api/DefaultCustomerCustomAttributesApi.java index a92bad1d..40b264af 100644 --- a/src/main/java/com/squareup/square/api/DefaultCustomerCustomAttributesApi.java +++ b/src/main/java/com/squareup/square/api/DefaultCustomerCustomAttributesApi.java @@ -118,7 +118,7 @@ private ApiCall pr response -> ApiHelper.deserialize(response, ListCustomerCustomAttributeDefinitionsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -192,7 +192,7 @@ private ApiCall p response -> ApiHelper.deserialize(response, CreateCustomerCustomAttributeDefinitionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -250,7 +250,7 @@ private ApiCall p response -> ApiHelper.deserialize(response, DeleteCustomerCustomAttributeDefinitionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -329,7 +329,7 @@ private ApiCall response -> ApiHelper.deserialize(response, RetrieveCustomerCustomAttributeDefinitionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -400,7 +400,7 @@ private ApiCall p response -> ApiHelper.deserialize(response, UpdateCustomerCustomAttributeDefinitionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -478,7 +478,7 @@ private ApiCall prepar response -> ApiHelper.deserialize(response, BulkUpsertCustomerCustomAttributesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -585,7 +585,7 @@ private ApiCall prepareListC response -> ApiHelper.deserialize(response, ListCustomerCustomAttributesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -656,7 +656,7 @@ private ApiCall prepareDele response -> ApiHelper.deserialize(response, DeleteCustomerCustomAttributeResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -763,7 +763,7 @@ private ApiCall prepareRe response -> ApiHelper.deserialize(response, RetrieveCustomerCustomAttributeResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -855,7 +855,7 @@ private ApiCall prepareUpse response -> ApiHelper.deserialize(response, UpsertCustomerCustomAttributeResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultCustomerGroupsApi.java b/src/main/java/com/squareup/square/api/DefaultCustomerGroupsApi.java index 0f5446f7..db4ee47a 100644 --- a/src/main/java/com/squareup/square/api/DefaultCustomerGroupsApi.java +++ b/src/main/java/com/squareup/square/api/DefaultCustomerGroupsApi.java @@ -101,7 +101,7 @@ private ApiCall prepareListCustomerGro response -> ApiHelper.deserialize(response, ListCustomerGroupsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -159,7 +159,7 @@ private ApiCall prepareCreateCustomer response -> ApiHelper.deserialize(response, CreateCustomerGroupResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -211,7 +211,7 @@ private ApiCall prepareDeleteCustomer response -> ApiHelper.deserialize(response, DeleteCustomerGroupResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -263,7 +263,7 @@ private ApiCall prepareRetrieveCust response -> ApiHelper.deserialize(response, RetrieveCustomerGroupResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -326,7 +326,7 @@ private ApiCall prepareUpdateCustomer response -> ApiHelper.deserialize(response, UpdateCustomerGroupResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultCustomerSegmentsApi.java b/src/main/java/com/squareup/square/api/DefaultCustomerSegmentsApi.java index 5ff561b9..4f7aba39 100644 --- a/src/main/java/com/squareup/square/api/DefaultCustomerSegmentsApi.java +++ b/src/main/java/com/squareup/square/api/DefaultCustomerSegmentsApi.java @@ -97,7 +97,7 @@ private ApiCall prepareListCustomerS response -> ApiHelper.deserialize(response, ListCustomerSegmentsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -149,7 +149,7 @@ private ApiCall prepareRetrieveCu response -> ApiHelper.deserialize(response, RetrieveCustomerSegmentResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultCustomersApi.java b/src/main/java/com/squareup/square/api/DefaultCustomersApi.java index 6ccec8d6..e867f01a 100644 --- a/src/main/java/com/squareup/square/api/DefaultCustomersApi.java +++ b/src/main/java/com/squareup/square/api/DefaultCustomersApi.java @@ -151,7 +151,7 @@ private ApiCall prepareListCustomersRequest response -> ApiHelper.deserialize(response, ListCustomersResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -211,7 +211,7 @@ private ApiCall prepareCreateCustomerReque response -> ApiHelper.deserialize(response, CreateCustomerResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -273,7 +273,7 @@ private ApiCall prepareBulkCreateCust response -> ApiHelper.deserialize(response, BulkCreateCustomersResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -331,7 +331,7 @@ private ApiCall prepareBulkDeleteCust response -> ApiHelper.deserialize(response, BulkDeleteCustomersResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -389,7 +389,7 @@ private ApiCall prepareBulkRetrieve response -> ApiHelper.deserialize(response, BulkRetrieveCustomersResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -449,7 +449,7 @@ private ApiCall prepareBulkUpdateCust response -> ApiHelper.deserialize(response, BulkUpdateCustomersResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -517,7 +517,7 @@ private ApiCall prepareSearchCustomersReq response -> ApiHelper.deserialize(response, SearchCustomersResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -588,7 +588,7 @@ private ApiCall prepareDeleteCustomerReque response -> ApiHelper.deserialize(response, DeleteCustomerResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -640,7 +640,7 @@ private ApiCall prepareRetrieveCustomerR response -> ApiHelper.deserialize(response, RetrieveCustomerResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -713,7 +713,7 @@ private ApiCall prepareUpdateCustomerReque response -> ApiHelper.deserialize(response, UpdateCustomerResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -788,7 +788,7 @@ private ApiCall prepareCreateCustomerC response -> ApiHelper.deserialize(response, CreateCustomerCardResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -855,7 +855,7 @@ private ApiCall prepareDeleteCustomerC response -> ApiHelper.deserialize(response, DeleteCustomerCardResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -918,7 +918,7 @@ private ApiCall prepareRemoveGrou response -> ApiHelper.deserialize(response, RemoveGroupFromCustomerResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -979,7 +979,7 @@ private ApiCall prepareAddGroupToCusto response -> ApiHelper.deserialize(response, AddGroupToCustomerResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultDevicesApi.java b/src/main/java/com/squareup/square/api/DefaultDevicesApi.java index 2e1c6542..60357c50 100644 --- a/src/main/java/com/squareup/square/api/DefaultDevicesApi.java +++ b/src/main/java/com/squareup/square/api/DefaultDevicesApi.java @@ -114,7 +114,7 @@ private ApiCall prepareListDevicesRequest( response -> ApiHelper.deserialize(response, ListDevicesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -201,7 +201,7 @@ private ApiCall prepareListDeviceCodesReq response -> ApiHelper.deserialize(response, ListDeviceCodesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -259,7 +259,7 @@ private ApiCall prepareCreateDeviceCodeR response -> ApiHelper.deserialize(response, CreateDeviceCodeResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -311,7 +311,7 @@ private ApiCall prepareGetDeviceCodeRequest response -> ApiHelper.deserialize(response, GetDeviceCodeResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -363,7 +363,7 @@ private ApiCall prepareGetDeviceRequest( response -> ApiHelper.deserialize(response, GetDeviceResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultDisputesApi.java b/src/main/java/com/squareup/square/api/DefaultDisputesApi.java index f1c0e74b..90af49ac 100644 --- a/src/main/java/com/squareup/square/api/DefaultDisputesApi.java +++ b/src/main/java/com/squareup/square/api/DefaultDisputesApi.java @@ -112,7 +112,7 @@ private ApiCall prepareListDisputesRequest( response -> ApiHelper.deserialize(response, ListDisputesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -164,7 +164,7 @@ private ApiCall prepareRetrieveDisputeReq response -> ApiHelper.deserialize(response, RetrieveDisputeResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -222,7 +222,7 @@ private ApiCall prepareAcceptDisputeRequest response -> ApiHelper.deserialize(response, AcceptDisputeResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -287,7 +287,7 @@ private ApiCall prepareListDisputeEvi response -> ApiHelper.deserialize(response, ListDisputeEvidenceResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -365,7 +365,7 @@ private ApiCall prepareCreateDi response -> ApiHelper.deserialize(response, CreateDisputeEvidenceFileResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -430,7 +430,7 @@ private ApiCall prepareCreateDi response -> ApiHelper.deserialize(response, CreateDisputeEvidenceTextResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -493,7 +493,7 @@ private ApiCall prepareDeleteDisput response -> ApiHelper.deserialize(response, DeleteDisputeEvidenceResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -558,7 +558,7 @@ private ApiCall prepareRetrieveDi response -> ApiHelper.deserialize(response, RetrieveDisputeEvidenceResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -622,7 +622,7 @@ private ApiCall prepareSubmitEvidenceReque response -> ApiHelper.deserialize(response, SubmitEvidenceResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultEmployeesApi.java b/src/main/java/com/squareup/square/api/DefaultEmployeesApi.java index 8b4e5180..5593ca76 100644 --- a/src/main/java/com/squareup/square/api/DefaultEmployeesApi.java +++ b/src/main/java/com/squareup/square/api/DefaultEmployeesApi.java @@ -101,7 +101,7 @@ private ApiCall prepareListEmployeesRequest response -> ApiHelper.deserialize(response, ListEmployeesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -157,7 +157,7 @@ private ApiCall prepareRetrieveEmployeeR response -> ApiHelper.deserialize(response, RetrieveEmployeeResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultEventsApi.java b/src/main/java/com/squareup/square/api/DefaultEventsApi.java index d10bc4dc..8ec0fade 100644 --- a/src/main/java/com/squareup/square/api/DefaultEventsApi.java +++ b/src/main/java/com/squareup/square/api/DefaultEventsApi.java @@ -82,7 +82,7 @@ private ApiCall prepareSearchEventsRequest( response -> ApiHelper.deserialize(response, SearchEventsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -131,7 +131,7 @@ private ApiCall prepareDisableEventsRequest response -> ApiHelper.deserialize(response, DisableEventsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -178,7 +178,7 @@ private ApiCall prepareEnableEventsRequest() response -> ApiHelper.deserialize(response, EnableEventsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -232,7 +232,7 @@ private ApiCall prepareListEventTypesReque response -> ApiHelper.deserialize(response, ListEventTypesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultGiftCardActivitiesApi.java b/src/main/java/com/squareup/square/api/DefaultGiftCardActivitiesApi.java index 2300a3fc..a27aa844 100644 --- a/src/main/java/com/squareup/square/api/DefaultGiftCardActivitiesApi.java +++ b/src/main/java/com/squareup/square/api/DefaultGiftCardActivitiesApi.java @@ -169,7 +169,7 @@ private ApiCall prepareListGiftCar response -> ApiHelper.deserialize(response, ListGiftCardActivitiesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -229,7 +229,7 @@ private ApiCall prepareCreateGiftC response -> ApiHelper.deserialize(response, CreateGiftCardActivityResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultGiftCardsApi.java b/src/main/java/com/squareup/square/api/DefaultGiftCardsApi.java index b7735c9a..2a006c27 100644 --- a/src/main/java/com/squareup/square/api/DefaultGiftCardsApi.java +++ b/src/main/java/com/squareup/square/api/DefaultGiftCardsApi.java @@ -139,7 +139,7 @@ private ApiCall prepareListGiftCardsRequest response -> ApiHelper.deserialize(response, ListGiftCardsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -203,7 +203,7 @@ private ApiCall prepareCreateGiftCardReque response -> ApiHelper.deserialize(response, CreateGiftCardResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -259,7 +259,7 @@ private ApiCall prepareRetrieveGi response -> ApiHelper.deserialize(response, RetrieveGiftCardFromGANResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -315,7 +315,7 @@ private ApiCall prepareRetrieve response -> ApiHelper.deserialize(response, RetrieveGiftCardFromNonceResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -378,7 +378,7 @@ private ApiCall prepareLinkCustome response -> ApiHelper.deserialize(response, LinkCustomerToGiftCardResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -441,7 +441,7 @@ private ApiCall prepareUnlinkC response -> ApiHelper.deserialize(response, UnlinkCustomerFromGiftCardResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -493,7 +493,7 @@ private ApiCall prepareRetrieveGiftCardR response -> ApiHelper.deserialize(response, RetrieveGiftCardResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultInventoryApi.java b/src/main/java/com/squareup/square/api/DefaultInventoryApi.java index fc639eca..5cc7624a 100644 --- a/src/main/java/com/squareup/square/api/DefaultInventoryApi.java +++ b/src/main/java/com/squareup/square/api/DefaultInventoryApi.java @@ -96,7 +96,7 @@ private ApiCall prepareDeprec response -> ApiHelper.deserialize(response, RetrieveInventoryAdjustmentResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -152,7 +152,7 @@ private ApiCall prepareRetrie response -> ApiHelper.deserialize(response, RetrieveInventoryAdjustmentResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -216,7 +216,7 @@ private ApiCall prepareDeprecatedBat response -> ApiHelper.deserialize(response, BatchChangeInventoryResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -282,7 +282,7 @@ private ApiCall prepareDepr response -> ApiHelper.deserialize(response, BatchRetrieveInventoryChangesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -348,7 +348,7 @@ private ApiCall prepareDepre response -> ApiHelper.deserialize(response, BatchRetrieveInventoryCountsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -408,7 +408,7 @@ private ApiCall prepareBatchChangeIn response -> ApiHelper.deserialize(response, BatchChangeInventoryResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -470,7 +470,7 @@ private ApiCall prepareBatc response -> ApiHelper.deserialize(response, BatchRetrieveInventoryChangesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -536,7 +536,7 @@ private ApiCall prepareBatch response -> ApiHelper.deserialize(response, BatchRetrieveInventoryCountsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -600,7 +600,7 @@ private ApiCall prepareDep response -> ApiHelper.deserialize(response, RetrieveInventoryPhysicalCountResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -656,7 +656,7 @@ private ApiCall prepareRet response -> ApiHelper.deserialize(response, RetrieveInventoryPhysicalCountResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -710,7 +710,7 @@ private ApiCall prepareRetrieve response -> ApiHelper.deserialize(response, RetrieveInventoryTransferResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -793,7 +793,7 @@ private ApiCall prepareRetrieveInv response -> ApiHelper.deserialize(response, RetrieveInventoryCountResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -895,7 +895,7 @@ private ApiCall prepareRetrieveI response -> ApiHelper.deserialize(response, RetrieveInventoryChangesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultInvoicesApi.java b/src/main/java/com/squareup/square/api/DefaultInvoicesApi.java index 59d5d7ae..d1a855ad 100644 --- a/src/main/java/com/squareup/square/api/DefaultInvoicesApi.java +++ b/src/main/java/com/squareup/square/api/DefaultInvoicesApi.java @@ -117,7 +117,7 @@ private ApiCall prepareListInvoicesRequest( response -> ApiHelper.deserialize(response, ListInvoicesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -179,7 +179,7 @@ private ApiCall prepareCreateInvoiceRequest response -> ApiHelper.deserialize(response, CreateInvoiceResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -243,7 +243,7 @@ private ApiCall prepareSearchInvoicesReque response -> ApiHelper.deserialize(response, SearchInvoicesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -312,7 +312,7 @@ private ApiCall prepareDeleteInvoiceRequest response -> ApiHelper.deserialize(response, DeleteInvoiceResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -364,7 +364,7 @@ private ApiCall prepareGetInvoiceRequest( response -> ApiHelper.deserialize(response, GetInvoiceResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -431,7 +431,7 @@ private ApiCall prepareUpdateInvoiceRequest response -> ApiHelper.deserialize(response, UpdateInvoiceResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -515,7 +515,7 @@ private ApiCall prepareCreateInvo response -> ApiHelper.deserialize(response, CreateInvoiceAttachmentResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -580,7 +580,7 @@ private ApiCall prepareDeleteInvo response -> ApiHelper.deserialize(response, DeleteInvoiceAttachmentResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -647,7 +647,7 @@ private ApiCall prepareCancelInvoiceRequest response -> ApiHelper.deserialize(response, CancelInvoiceResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -726,7 +726,7 @@ private ApiCall preparePublishInvoiceReque response -> ApiHelper.deserialize(response, PublishInvoiceResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultLaborApi.java b/src/main/java/com/squareup/square/api/DefaultLaborApi.java index db21e8e5..1e5f96c3 100644 --- a/src/main/java/com/squareup/square/api/DefaultLaborApi.java +++ b/src/main/java/com/squareup/square/api/DefaultLaborApi.java @@ -115,7 +115,7 @@ private ApiCall prepareListBreakTypesReque response -> ApiHelper.deserialize(response, ListBreakTypesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -179,7 +179,7 @@ private ApiCall prepareCreateBreakTypeReq response -> ApiHelper.deserialize(response, CreateBreakTypeResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -233,7 +233,7 @@ private ApiCall prepareDeleteBreakTypeReq response -> ApiHelper.deserialize(response, DeleteBreakTypeResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -285,7 +285,7 @@ private ApiCall prepareGetBreakTypeRequest( response -> ApiHelper.deserialize(response, GetBreakTypeResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -348,7 +348,7 @@ private ApiCall prepareUpdateBreakTypeReq response -> ApiHelper.deserialize(response, UpdateBreakTypeResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -426,7 +426,7 @@ private ApiCall prepareListEmployeeWage response -> ApiHelper.deserialize(response, ListEmployeeWagesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -484,7 +484,7 @@ private ApiCall prepareGetEmployeeWageReq response -> ApiHelper.deserialize(response, GetEmployeeWageResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -554,7 +554,7 @@ private ApiCall prepareCreateShiftRequest( response -> ApiHelper.deserialize(response, CreateShiftResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -616,7 +616,7 @@ private ApiCall prepareSearchShiftsRequest( response -> ApiHelper.deserialize(response, SearchShiftsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -668,7 +668,7 @@ private ApiCall prepareDeleteShiftRequest( response -> ApiHelper.deserialize(response, DeleteShiftResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -720,7 +720,7 @@ private ApiCall prepareGetShiftRequest( response -> ApiHelper.deserialize(response, GetShiftResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -789,7 +789,7 @@ private ApiCall prepareUpdateShiftRequest( response -> ApiHelper.deserialize(response, UpdateShiftResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -861,7 +861,7 @@ private ApiCall prepareListTeamMember response -> ApiHelper.deserialize(response, ListTeamMemberWagesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -913,7 +913,7 @@ private ApiCall prepareGetTeamMemberWag response -> ApiHelper.deserialize(response, GetTeamMemberWageResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -976,7 +976,7 @@ private ApiCall prepareListWorkweekCo response -> ApiHelper.deserialize(response, ListWorkweekConfigsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -1039,7 +1039,7 @@ private ApiCall prepareUpdateWorkwee response -> ApiHelper.deserialize(response, UpdateWorkweekConfigResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultLocationCustomAttributesApi.java b/src/main/java/com/squareup/square/api/DefaultLocationCustomAttributesApi.java index ce0ab967..a270bf16 100644 --- a/src/main/java/com/squareup/square/api/DefaultLocationCustomAttributesApi.java +++ b/src/main/java/com/squareup/square/api/DefaultLocationCustomAttributesApi.java @@ -129,7 +129,7 @@ private ApiCall pr response -> ApiHelper.deserialize(response, ListLocationCustomAttributeDefinitionsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -197,7 +197,7 @@ private ApiCall p response -> ApiHelper.deserialize(response, CreateLocationCustomAttributeDefinitionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -255,7 +255,7 @@ private ApiCall p response -> ApiHelper.deserialize(response, DeleteLocationCustomAttributeDefinitionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -332,7 +332,7 @@ private ApiCall response -> ApiHelper.deserialize(response, RetrieveLocationCustomAttributeDefinitionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -401,7 +401,7 @@ private ApiCall p response -> ApiHelper.deserialize(response, UpdateLocationCustomAttributeDefinitionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -461,7 +461,7 @@ private ApiCall prepar response -> ApiHelper.deserialize(response, BulkDeleteLocationCustomAttributesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -537,7 +537,7 @@ private ApiCall prepar response -> ApiHelper.deserialize(response, BulkUpsertLocationCustomAttributesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -651,7 +651,7 @@ private ApiCall prepareListL response -> ApiHelper.deserialize(response, ListLocationCustomAttributesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -718,7 +718,7 @@ private ApiCall prepareDele response -> ApiHelper.deserialize(response, DeleteLocationCustomAttributeResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -819,7 +819,7 @@ private ApiCall prepareRe response -> ApiHelper.deserialize(response, RetrieveLocationCustomAttributeResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -905,7 +905,7 @@ private ApiCall prepareUpse response -> ApiHelper.deserialize(response, UpsertLocationCustomAttributeResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultLocationsApi.java b/src/main/java/com/squareup/square/api/DefaultLocationsApi.java index c6a011c7..7e87908e 100644 --- a/src/main/java/com/squareup/square/api/DefaultLocationsApi.java +++ b/src/main/java/com/squareup/square/api/DefaultLocationsApi.java @@ -76,7 +76,7 @@ private ApiCall prepareListLocationsRequest response -> ApiHelper.deserialize(response, ListLocationsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -142,7 +142,7 @@ private ApiCall prepareCreateLocationReque response -> ApiHelper.deserialize(response, CreateLocationResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -200,7 +200,7 @@ private ApiCall prepareRetrieveLocationR response -> ApiHelper.deserialize(response, RetrieveLocationResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -263,7 +263,7 @@ private ApiCall prepareUpdateLocationReque response -> ApiHelper.deserialize(response, UpdateLocationResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultLoyaltyApi.java b/src/main/java/com/squareup/square/api/DefaultLoyaltyApi.java index eb11fa57..43dfff0d 100644 --- a/src/main/java/com/squareup/square/api/DefaultLoyaltyApi.java +++ b/src/main/java/com/squareup/square/api/DefaultLoyaltyApi.java @@ -107,7 +107,7 @@ private ApiCall prepareCreateLoyalty response -> ApiHelper.deserialize(response, CreateLoyaltyAccountResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -169,7 +169,7 @@ private ApiCall prepareSearchLoyalt response -> ApiHelper.deserialize(response, SearchLoyaltyAccountsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -223,7 +223,7 @@ private ApiCall prepareRetrieveLoy response -> ApiHelper.deserialize(response, RetrieveLoyaltyAccountResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -314,7 +314,7 @@ private ApiCall prepareAccumulate response -> ApiHelper.deserialize(response, AccumulateLoyaltyPointsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -385,7 +385,7 @@ private ApiCall prepareAdjustLoyaltyP response -> ApiHelper.deserialize(response, AdjustLoyaltyPointsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -449,7 +449,7 @@ private ApiCall prepareSearchLoyaltyE response -> ApiHelper.deserialize(response, SearchLoyaltyEventsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -512,7 +512,7 @@ private ApiCall prepareListLoyaltyPro response -> ApiHelper.deserialize(response, ListLoyaltyProgramsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -576,7 +576,7 @@ private ApiCall prepareRetrieveLoy response -> ApiHelper.deserialize(response, RetrieveLoyaltyProgramResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -667,7 +667,7 @@ private ApiCall prepareCalculateLo response -> ApiHelper.deserialize(response, CalculateLoyaltyPointsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -764,7 +764,7 @@ private ApiCall prepareListLoyaltyP response -> ApiHelper.deserialize(response, ListLoyaltyPromotionsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -841,7 +841,7 @@ private ApiCall prepareCreateLoyal response -> ApiHelper.deserialize(response, CreateLoyaltyPromotionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -908,7 +908,7 @@ private ApiCall prepareRetrieveL response -> ApiHelper.deserialize(response, RetrieveLoyaltyPromotionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -981,7 +981,7 @@ private ApiCall prepareCancelLoyal response -> ApiHelper.deserialize(response, CancelLoyaltyPromotionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -1045,7 +1045,7 @@ private ApiCall prepareCreateLoyaltyR response -> ApiHelper.deserialize(response, CreateLoyaltyRewardResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -1109,7 +1109,7 @@ private ApiCall prepareSearchLoyalty response -> ApiHelper.deserialize(response, SearchLoyaltyRewardsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -1171,7 +1171,7 @@ private ApiCall prepareDeleteLoyaltyR response -> ApiHelper.deserialize(response, DeleteLoyaltyRewardResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -1225,7 +1225,7 @@ private ApiCall prepareRetrieveLoya response -> ApiHelper.deserialize(response, RetrieveLoyaltyRewardResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -1298,7 +1298,7 @@ private ApiCall prepareRedeemLoyaltyR response -> ApiHelper.deserialize(response, RedeemLoyaltyRewardResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultMerchantCustomAttributesApi.java b/src/main/java/com/squareup/square/api/DefaultMerchantCustomAttributesApi.java index 8f4b6af9..d9125a08 100644 --- a/src/main/java/com/squareup/square/api/DefaultMerchantCustomAttributesApi.java +++ b/src/main/java/com/squareup/square/api/DefaultMerchantCustomAttributesApi.java @@ -129,7 +129,7 @@ private ApiCall pr response -> ApiHelper.deserialize(response, ListMerchantCustomAttributeDefinitionsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -199,7 +199,7 @@ private ApiCall p response -> ApiHelper.deserialize(response, CreateMerchantCustomAttributeDefinitionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -257,7 +257,7 @@ private ApiCall p response -> ApiHelper.deserialize(response, DeleteMerchantCustomAttributeDefinitionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -334,7 +334,7 @@ private ApiCall response -> ApiHelper.deserialize(response, RetrieveMerchantCustomAttributeDefinitionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -403,7 +403,7 @@ private ApiCall p response -> ApiHelper.deserialize(response, UpdateMerchantCustomAttributeDefinitionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -463,7 +463,7 @@ private ApiCall prepar response -> ApiHelper.deserialize(response, BulkDeleteMerchantCustomAttributesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -539,7 +539,7 @@ private ApiCall prepar response -> ApiHelper.deserialize(response, BulkUpsertMerchantCustomAttributesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -653,7 +653,7 @@ private ApiCall prepareListM response -> ApiHelper.deserialize(response, ListMerchantCustomAttributesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -720,7 +720,7 @@ private ApiCall prepareDele response -> ApiHelper.deserialize(response, DeleteMerchantCustomAttributeResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -821,7 +821,7 @@ private ApiCall prepareRe response -> ApiHelper.deserialize(response, RetrieveMerchantCustomAttributeResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -907,7 +907,7 @@ private ApiCall prepareUpse response -> ApiHelper.deserialize(response, UpsertMerchantCustomAttributeResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultMerchantsApi.java b/src/main/java/com/squareup/square/api/DefaultMerchantsApi.java index 3e535852..ed373cec 100644 --- a/src/main/java/com/squareup/square/api/DefaultMerchantsApi.java +++ b/src/main/java/com/squareup/square/api/DefaultMerchantsApi.java @@ -86,7 +86,7 @@ private ApiCall prepareListMerchantsRequest response -> ApiHelper.deserialize(response, ListMerchantsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -142,7 +142,7 @@ private ApiCall prepareRetrieveMerchantR response -> ApiHelper.deserialize(response, RetrieveMerchantResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultMobileAuthorizationApi.java b/src/main/java/com/squareup/square/api/DefaultMobileAuthorizationApi.java index b0fbf856..0e9a5454 100644 --- a/src/main/java/com/squareup/square/api/DefaultMobileAuthorizationApi.java +++ b/src/main/java/com/squareup/square/api/DefaultMobileAuthorizationApi.java @@ -89,7 +89,7 @@ private ApiCall prepareCrea response -> ApiHelper.deserialize(response, CreateMobileAuthorizationCodeResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultOAuthApi.java b/src/main/java/com/squareup/square/api/DefaultOAuthApi.java index 5b259ce1..da49a274 100644 --- a/src/main/java/com/squareup/square/api/DefaultOAuthApi.java +++ b/src/main/java/com/squareup/square/api/DefaultOAuthApi.java @@ -97,7 +97,7 @@ private ApiCall prepareRevokeTokenRequest( response -> ApiHelper.deserialize(response, RevokeTokenResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -171,7 +171,7 @@ private ApiCall prepareObtainTokenRequest( response -> ApiHelper.deserialize(response, ObtainTokenResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -234,7 +234,7 @@ private ApiCall prepareRetrieveTokenS response -> ApiHelper.deserialize(response, RetrieveTokenStatusResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultOrderCustomAttributesApi.java b/src/main/java/com/squareup/square/api/DefaultOrderCustomAttributesApi.java index 3152c46f..761a6949 100644 --- a/src/main/java/com/squareup/square/api/DefaultOrderCustomAttributesApi.java +++ b/src/main/java/com/squareup/square/api/DefaultOrderCustomAttributesApi.java @@ -131,7 +131,7 @@ private ApiCall prepa response -> ApiHelper.deserialize(response, ListOrderCustomAttributeDefinitionsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -191,7 +191,7 @@ private ApiCall prep response -> ApiHelper.deserialize(response, CreateOrderCustomAttributeDefinitionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -245,7 +245,7 @@ private ApiCall prep response -> ApiHelper.deserialize(response, DeleteOrderCustomAttributeDefinitionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -318,7 +318,7 @@ private ApiCall pr response -> ApiHelper.deserialize(response, RetrieveOrderCustomAttributeDefinitionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -385,7 +385,7 @@ private ApiCall prep response -> ApiHelper.deserialize(response, UpdateOrderCustomAttributeDefinitionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -463,7 +463,7 @@ private ApiCall prepareBu response -> ApiHelper.deserialize(response, BulkDeleteOrderCustomAttributesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -541,7 +541,7 @@ private ApiCall prepareBu response -> ApiHelper.deserialize(response, BulkUpsertOrderCustomAttributesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -655,7 +655,7 @@ private ApiCall prepareListOrde response -> ApiHelper.deserialize(response, ListOrderCustomAttributesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -722,7 +722,7 @@ private ApiCall prepareDeleteO response -> ApiHelper.deserialize(response, DeleteOrderCustomAttributeResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -823,7 +823,7 @@ private ApiCall prepareRetri response -> ApiHelper.deserialize(response, RetrieveOrderCustomAttributeResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -911,7 +911,7 @@ private ApiCall prepareUpsertO response -> ApiHelper.deserialize(response, UpsertOrderCustomAttributeResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultOrdersApi.java b/src/main/java/com/squareup/square/api/DefaultOrdersApi.java index 658d20d5..8e177baf 100644 --- a/src/main/java/com/squareup/square/api/DefaultOrdersApi.java +++ b/src/main/java/com/squareup/square/api/DefaultOrdersApi.java @@ -98,7 +98,7 @@ private ApiCall prepareCreateOrderRequest( response -> ApiHelper.deserialize(response, CreateOrderResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -156,7 +156,7 @@ private ApiCall prepareBatchRetrieveO response -> ApiHelper.deserialize(response, BatchRetrieveOrdersResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -212,7 +212,7 @@ private ApiCall prepareCalculateOrderReque response -> ApiHelper.deserialize(response, CalculateOrderResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -272,7 +272,7 @@ private ApiCall prepareCloneOrderRequest( response -> ApiHelper.deserialize(response, CloneOrderResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -346,7 +346,7 @@ private ApiCall prepareSearchOrdersRequest( response -> ApiHelper.deserialize(response, SearchOrdersResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -398,7 +398,7 @@ private ApiCall prepareRetrieveOrderRequest response -> ApiHelper.deserialize(response, RetrieveOrderResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -479,7 +479,7 @@ private ApiCall prepareUpdateOrderRequest( response -> ApiHelper.deserialize(response, UpdateOrderResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -558,7 +558,7 @@ private ApiCall preparePayOrderRequest( response -> ApiHelper.deserialize(response, PayOrderResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultPaymentsApi.java b/src/main/java/com/squareup/square/api/DefaultPaymentsApi.java index 42e7fdb3..ef45d6b9 100644 --- a/src/main/java/com/squareup/square/api/DefaultPaymentsApi.java +++ b/src/main/java/com/squareup/square/api/DefaultPaymentsApi.java @@ -215,7 +215,7 @@ private ApiCall prepareListPaymentsRequest( response -> ApiHelper.deserialize(response, ListPaymentsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -277,7 +277,7 @@ private ApiCall prepareCreatePaymentRequest response -> ApiHelper.deserialize(response, CreatePaymentResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -347,7 +347,7 @@ private ApiCall prepareCanc response -> ApiHelper.deserialize(response, CancelPaymentByIdempotencyKeyResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -399,7 +399,7 @@ private ApiCall prepareGetPaymentRequest( response -> ApiHelper.deserialize(response, GetPaymentResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -464,7 +464,7 @@ private ApiCall prepareUpdatePaymentRequest response -> ApiHelper.deserialize(response, UpdatePaymentResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -518,7 +518,7 @@ private ApiCall prepareCancelPaymentRequest response -> ApiHelper.deserialize(response, CancelPaymentResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -583,7 +583,7 @@ private ApiCall prepareCompletePaymentReq response -> ApiHelper.deserialize(response, CompletePaymentResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultPayoutsApi.java b/src/main/java/com/squareup/square/api/DefaultPayoutsApi.java index 8ac6bd45..aba98f4f 100644 --- a/src/main/java/com/squareup/square/api/DefaultPayoutsApi.java +++ b/src/main/java/com/squareup/square/api/DefaultPayoutsApi.java @@ -151,7 +151,7 @@ private ApiCall prepareListPayoutsRequest( response -> ApiHelper.deserialize(response, ListPayoutsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -205,7 +205,7 @@ private ApiCall prepareGetPayoutRequest( response -> ApiHelper.deserialize(response, GetPayoutResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -298,7 +298,7 @@ private ApiCall prepareListPayoutEntrie response -> ApiHelper.deserialize(response, ListPayoutEntriesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultRefundsApi.java b/src/main/java/com/squareup/square/api/DefaultRefundsApi.java index 656b6419..c1d9db98 100644 --- a/src/main/java/com/squareup/square/api/DefaultRefundsApi.java +++ b/src/main/java/com/squareup/square/api/DefaultRefundsApi.java @@ -174,7 +174,7 @@ private ApiCall prepareListPaymentRefu response -> ApiHelper.deserialize(response, ListPaymentRefundsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -236,7 +236,7 @@ private ApiCall prepareRefundPaymentRequest response -> ApiHelper.deserialize(response, RefundPaymentResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -288,7 +288,7 @@ private ApiCall prepareGetPaymentRefundR response -> ApiHelper.deserialize(response, GetPaymentRefundResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultSitesApi.java b/src/main/java/com/squareup/square/api/DefaultSitesApi.java index f54ea910..fde7374a 100644 --- a/src/main/java/com/squareup/square/api/DefaultSitesApi.java +++ b/src/main/java/com/squareup/square/api/DefaultSitesApi.java @@ -72,7 +72,7 @@ private ApiCall prepareListSitesRequest() throw response -> ApiHelper.deserialize(response, ListSitesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultSnippetsApi.java b/src/main/java/com/squareup/square/api/DefaultSnippetsApi.java index d4ddec02..527bf23e 100644 --- a/src/main/java/com/squareup/square/api/DefaultSnippetsApi.java +++ b/src/main/java/com/squareup/square/api/DefaultSnippetsApi.java @@ -85,7 +85,7 @@ private ApiCall prepareDeleteSnippetRequest response -> ApiHelper.deserialize(response, DeleteSnippetResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -147,7 +147,7 @@ private ApiCall prepareRetrieveSnippetReq response -> ApiHelper.deserialize(response, RetrieveSnippetResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -224,7 +224,7 @@ private ApiCall prepareUpsertSnippetRequest response -> ApiHelper.deserialize(response, UpsertSnippetResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultSubscriptionsApi.java b/src/main/java/com/squareup/square/api/DefaultSubscriptionsApi.java index 74202ea4..9de15fa6 100644 --- a/src/main/java/com/squareup/square/api/DefaultSubscriptionsApi.java +++ b/src/main/java/com/squareup/square/api/DefaultSubscriptionsApi.java @@ -107,7 +107,7 @@ private ApiCall prepareCreateSubscript response -> ApiHelper.deserialize(response, CreateSubscriptionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -167,7 +167,7 @@ private ApiCall prepareBulkSwapPlanRequest( response -> ApiHelper.deserialize(response, BulkSwapPlanResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -235,7 +235,7 @@ private ApiCall prepareSearchSubscrip response -> ApiHelper.deserialize(response, SearchSubscriptionsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -298,7 +298,7 @@ private ApiCall prepareRetrieveSubsc response -> ApiHelper.deserialize(response, RetrieveSubscriptionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -363,7 +363,7 @@ private ApiCall prepareUpdateSubscript response -> ApiHelper.deserialize(response, UpdateSubscriptionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -424,7 +424,7 @@ private ApiCall prepareDeleteSub response -> ApiHelper.deserialize(response, DeleteSubscriptionActionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -493,7 +493,7 @@ private ApiCall prepareChangeBill response -> ApiHelper.deserialize(response, ChangeBillingAnchorDateResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -549,7 +549,7 @@ private ApiCall prepareCancelSubscript response -> ApiHelper.deserialize(response, CancelSubscriptionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -629,7 +629,7 @@ private ApiCall prepareListSubscri response -> ApiHelper.deserialize(response, ListSubscriptionEventsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -692,7 +692,7 @@ private ApiCall preparePauseSubscriptio response -> ApiHelper.deserialize(response, PauseSubscriptionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -755,7 +755,7 @@ private ApiCall prepareResumeSubscript response -> ApiHelper.deserialize(response, ResumeSubscriptionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -824,7 +824,7 @@ private ApiCall prepareSwapPlanRequest( response -> ApiHelper.deserialize(response, SwapPlanResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultTeamApi.java b/src/main/java/com/squareup/square/api/DefaultTeamApi.java index 9601a543..605b109b 100644 --- a/src/main/java/com/squareup/square/api/DefaultTeamApi.java +++ b/src/main/java/com/squareup/square/api/DefaultTeamApi.java @@ -97,7 +97,7 @@ private ApiCall prepareCreateTeamMemberR response -> ApiHelper.deserialize(response, CreateTeamMemberResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -163,7 +163,7 @@ private ApiCall prepareBulkCreateTe response -> ApiHelper.deserialize(response, BulkCreateTeamMembersResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -229,7 +229,7 @@ private ApiCall prepareBulkUpdateTe response -> ApiHelper.deserialize(response, BulkUpdateTeamMembersResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -287,7 +287,7 @@ private ApiCall prepareSearchTeamMember response -> ApiHelper.deserialize(response, SearchTeamMembersResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -343,7 +343,7 @@ private ApiCall prepareRetrieveTeamMem response -> ApiHelper.deserialize(response, RetrieveTeamMemberResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -410,7 +410,7 @@ private ApiCall prepareUpdateTeamMemberR response -> ApiHelper.deserialize(response, UpdateTeamMemberResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -468,7 +468,7 @@ private ApiCall prepareRetrieveWageSe response -> ApiHelper.deserialize(response, RetrieveWageSettingResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -541,7 +541,7 @@ private ApiCall prepareUpdateWageSettin response -> ApiHelper.deserialize(response, UpdateWageSettingResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultTerminalApi.java b/src/main/java/com/squareup/square/api/DefaultTerminalApi.java index 574323a4..25462b6a 100644 --- a/src/main/java/com/squareup/square/api/DefaultTerminalApi.java +++ b/src/main/java/com/squareup/square/api/DefaultTerminalApi.java @@ -98,7 +98,7 @@ private ApiCall prepareCreateTermina response -> ApiHelper.deserialize(response, CreateTerminalActionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -156,7 +156,7 @@ private ApiCall prepareSearchTermin response -> ApiHelper.deserialize(response, SearchTerminalActionsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -210,7 +210,7 @@ private ApiCall prepareGetTerminalActio response -> ApiHelper.deserialize(response, GetTerminalActionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -262,7 +262,7 @@ private ApiCall prepareCancelTermina response -> ApiHelper.deserialize(response, CancelTerminalActionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -322,7 +322,7 @@ private ApiCall prepareDismissTermi response -> ApiHelper.deserialize(response, DismissTerminalActionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -380,7 +380,7 @@ private ApiCall prepareCreateTermi response -> ApiHelper.deserialize(response, CreateTerminalCheckoutResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -440,7 +440,7 @@ private ApiCall prepareSearchTerm response -> ApiHelper.deserialize(response, SearchTerminalCheckoutsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -494,7 +494,7 @@ private ApiCall prepareGetTerminalChe response -> ApiHelper.deserialize(response, GetTerminalCheckoutResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -546,7 +546,7 @@ private ApiCall prepareCancelTermi response -> ApiHelper.deserialize(response, CancelTerminalCheckoutResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -600,7 +600,7 @@ private ApiCall prepareDismissTer response -> ApiHelper.deserialize(response, DismissTerminalCheckoutResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -662,7 +662,7 @@ private ApiCall prepareCreateTermina response -> ApiHelper.deserialize(response, CreateTerminalRefundResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -720,7 +720,7 @@ private ApiCall prepareSearchTermin response -> ApiHelper.deserialize(response, SearchTerminalRefundsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -774,7 +774,7 @@ private ApiCall prepareGetTerminalRefun response -> ApiHelper.deserialize(response, GetTerminalRefundResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -828,7 +828,7 @@ private ApiCall prepareCancelTermina response -> ApiHelper.deserialize(response, CancelTerminalRefundResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -882,7 +882,7 @@ private ApiCall prepareDismissTermi response -> ApiHelper.deserialize(response, DismissTerminalRefundResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultTransactionsApi.java b/src/main/java/com/squareup/square/api/DefaultTransactionsApi.java index 5e15515d..ccbbb2ac 100644 --- a/src/main/java/com/squareup/square/api/DefaultTransactionsApi.java +++ b/src/main/java/com/squareup/square/api/DefaultTransactionsApi.java @@ -140,7 +140,7 @@ private ApiCall prepareListTransactionsR response -> ApiHelper.deserialize(response, ListTransactionsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -205,7 +205,7 @@ private ApiCall prepareRetrieveTransa response -> ApiHelper.deserialize(response, RetrieveTransactionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -276,7 +276,7 @@ private ApiCall prepareCaptureTransact response -> ApiHelper.deserialize(response, CaptureTransactionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -347,7 +347,7 @@ private ApiCall prepareVoidTransactionReq response -> ApiHelper.deserialize(response, VoidTransactionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultV1TransactionsApi.java b/src/main/java/com/squareup/square/api/DefaultV1TransactionsApi.java index 45158cff..d49b36ee 100644 --- a/src/main/java/com/squareup/square/api/DefaultV1TransactionsApi.java +++ b/src/main/java/com/squareup/square/api/DefaultV1TransactionsApi.java @@ -112,7 +112,7 @@ private ApiCall, ApiException> prepareV1ListOrdersRequest( .contextInitializer((context, result) -> { for (int i = 0; i < result.size(); i++) { result.set(i, result.get(i).toBuilder() - .httpContext((HttpContext)context).build()); + .httpContext((HttpContext) context).build()); } return result; }) @@ -184,7 +184,7 @@ private ApiCall prepareV1RetrieveOrderRequest( response -> ApiHelper.deserialize(response, V1Order.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -264,7 +264,7 @@ private ApiCall prepareV1UpdateOrderRequest( response -> ApiHelper.deserialize(response, V1Order.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultVendorsApi.java b/src/main/java/com/squareup/square/api/DefaultVendorsApi.java index 873a4fab..1a6ec2c5 100644 --- a/src/main/java/com/squareup/square/api/DefaultVendorsApi.java +++ b/src/main/java/com/squareup/square/api/DefaultVendorsApi.java @@ -90,7 +90,7 @@ private ApiCall prepareBulkCreateVendor response -> ApiHelper.deserialize(response, BulkCreateVendorsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -146,7 +146,7 @@ private ApiCall prepareBulkRetrieveVe response -> ApiHelper.deserialize(response, BulkRetrieveVendorsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -202,7 +202,7 @@ private ApiCall prepareBulkUpdateVendor response -> ApiHelper.deserialize(response, BulkUpdateVendorsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -258,7 +258,7 @@ private ApiCall prepareCreateVendorRequest( response -> ApiHelper.deserialize(response, CreateVendorResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -316,7 +316,7 @@ private ApiCall prepareSearchVendorsRequest response -> ApiHelper.deserialize(response, SearchVendorsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -368,7 +368,7 @@ private ApiCall prepareRetrieveVendorReque response -> ApiHelper.deserialize(response, RetrieveVendorResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -431,7 +431,7 @@ private ApiCall prepareUpdateVendorRequest( response -> ApiHelper.deserialize(response, UpdateVendorResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/api/DefaultWebhookSubscriptionsApi.java b/src/main/java/com/squareup/square/api/DefaultWebhookSubscriptionsApi.java index 7f1d1733..ed7c2cc1 100644 --- a/src/main/java/com/squareup/square/api/DefaultWebhookSubscriptionsApi.java +++ b/src/main/java/com/squareup/square/api/DefaultWebhookSubscriptionsApi.java @@ -87,7 +87,7 @@ private ApiCall prepareListWebhookE response -> ApiHelper.deserialize(response, ListWebhookEventTypesResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -180,7 +180,7 @@ private ApiCall prepareListWebho response -> ApiHelper.deserialize(response, ListWebhookSubscriptionsResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -236,7 +236,7 @@ private ApiCall prepareCreateWe response -> ApiHelper.deserialize(response, CreateWebhookSubscriptionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -290,7 +290,7 @@ private ApiCall prepareDeleteWe response -> ApiHelper.deserialize(response, DeleteWebhookSubscriptionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -344,7 +344,7 @@ private ApiCall prepareRetrie response -> ApiHelper.deserialize(response, RetrieveWebhookSubscriptionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -409,7 +409,7 @@ private ApiCall prepareUpdateWe response -> ApiHelper.deserialize(response, UpdateWebhookSubscriptionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -474,7 +474,7 @@ private ApiCall pre response -> ApiHelper.deserialize(response, UpdateWebhookSubscriptionSignatureKeyResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } @@ -539,7 +539,7 @@ private ApiCall prepareTestWebhoo response -> ApiHelper.deserialize(response, TestWebhookSubscriptionResponse.class)) .nullify404(false) .contextInitializer((context, result) -> - result.toBuilder().httpContext((HttpContext)context).build()) + result.toBuilder().httpContext((HttpContext) context).build()) .globalErrorCase(GLOBAL_ERROR_CASES)) .build(); } diff --git a/src/main/java/com/squareup/square/models/Booking.java b/src/main/java/com/squareup/square/models/Booking.java index f43aeb64..d66840dd 100644 --- a/src/main/java/com/squareup/square/models/Booking.java +++ b/src/main/java/com/squareup/square/models/Booking.java @@ -31,6 +31,7 @@ public class Booking { private final String locationType; private final BookingCreatorDetails creatorDetails; private final String source; + private final Address address; /** * Initialization constructor. @@ -50,6 +51,7 @@ public class Booking { * @param locationType String value for locationType. * @param creatorDetails BookingCreatorDetails value for creatorDetails. * @param source String value for source. + * @param address Address value for address. */ @JsonCreator public Booking( @@ -68,7 +70,8 @@ public Booking( @JsonProperty("all_day") Boolean allDay, @JsonProperty("location_type") String locationType, @JsonProperty("creator_details") BookingCreatorDetails creatorDetails, - @JsonProperty("source") String source) { + @JsonProperty("source") String source, + @JsonProperty("address") Address address) { this.id = id; this.version = version; this.status = status; @@ -85,6 +88,7 @@ public Booking( this.locationType = locationType; this.creatorDetails = creatorDetails; this.source = source; + this.address = address; } /** @@ -105,6 +109,7 @@ public Booking( * @param locationType String value for locationType. * @param creatorDetails BookingCreatorDetails value for creatorDetails. * @param source String value for source. + * @param address Address value for address. */ protected Booking(String id, Integer version, String status, String createdAt, String updatedAt, @@ -113,7 +118,7 @@ protected Booking(String id, Integer version, String status, String createdAt, S OptionalNullable sellerNote, OptionalNullable> appointmentSegments, Integer transitionTimeMinutes, Boolean allDay, String locationType, - BookingCreatorDetails creatorDetails, String source) { + BookingCreatorDetails creatorDetails, String source, Address address) { this.id = id; this.version = version; this.status = status; @@ -130,6 +135,7 @@ protected Booking(String id, Integer version, String status, String createdAt, S this.locationType = locationType; this.creatorDetails = creatorDetails; this.source = source; + this.address = address; } /** @@ -389,11 +395,23 @@ public String getSource() { return source; } + /** + * Getter for Address. + * Represents a postal address in a country. For more information, see [Working with + * Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses). + * @return Returns the Address + */ + @JsonGetter("address") + @JsonInclude(JsonInclude.Include.NON_NULL) + public Address getAddress() { + return address; + } + @Override public int hashCode() { return Objects.hash(id, version, status, createdAt, updatedAt, startAt, locationId, customerId, customerNote, sellerNote, appointmentSegments, transitionTimeMinutes, - allDay, locationType, creatorDetails, source); + allDay, locationType, creatorDetails, source, address); } @Override @@ -420,7 +438,8 @@ public boolean equals(Object obj) { && Objects.equals(allDay, other.allDay) && Objects.equals(locationType, other.locationType) && Objects.equals(creatorDetails, other.creatorDetails) - && Objects.equals(source, other.source); + && Objects.equals(source, other.source) + && Objects.equals(address, other.address); } /** @@ -435,7 +454,7 @@ public String toString() { + customerNote + ", sellerNote=" + sellerNote + ", appointmentSegments=" + appointmentSegments + ", transitionTimeMinutes=" + transitionTimeMinutes + ", allDay=" + allDay + ", locationType=" + locationType + ", creatorDetails=" - + creatorDetails + ", source=" + source + "]"; + + creatorDetails + ", source=" + source + ", address=" + address + "]"; } /** @@ -454,7 +473,8 @@ public Builder toBuilder() { .allDay(getAllDay()) .locationType(getLocationType()) .creatorDetails(getCreatorDetails()) - .source(getSource()); + .source(getSource()) + .address(getAddress()); builder.startAt = internalGetStartAt(); builder.locationId = internalGetLocationId(); builder.customerId = internalGetCustomerId(); @@ -484,6 +504,7 @@ public static class Builder { private String locationType; private BookingCreatorDetails creatorDetails; private String source; + private Address address; @@ -701,6 +722,16 @@ public Builder source(String source) { return this; } + /** + * Setter for address. + * @param address Address value for address. + * @return Builder + */ + public Builder address(Address address) { + this.address = address; + return this; + } + /** * Builds a new {@link Booking} object using the set fields. * @return {@link Booking} @@ -708,7 +739,7 @@ public Builder source(String source) { public Booking build() { return new Booking(id, version, status, createdAt, updatedAt, startAt, locationId, customerId, customerNote, sellerNote, appointmentSegments, - transitionTimeMinutes, allDay, locationType, creatorDetails, source); + transitionTimeMinutes, allDay, locationType, creatorDetails, source, address); } } } diff --git a/src/main/java/com/squareup/square/models/Customer.java b/src/main/java/com/squareup/square/models/Customer.java index b5aa789b..97a3e52a 100644 --- a/src/main/java/com/squareup/square/models/Customer.java +++ b/src/main/java/com/squareup/square/models/Customer.java @@ -197,8 +197,8 @@ public String getUpdatedAt() { /** * Internal Getter for Cards. * Payment details of the credit, debit, and gift cards stored on file for the customer profile. - * DEPRECATED at version 2021-06-16. Replaced by calling - * [ListCards](api-endpoint:Cards-ListCards) (for credit and debit cards on file) or + * DEPRECATED at version 2021-06-16 and will be RETIRED at version 2024-12-18. Replaced by + * calling [ListCards](api-endpoint:Cards-ListCards) (for credit and debit cards on file) or * [ListGiftCards](api-endpoint:GiftCards-ListGiftCards) (for gift cards on file) and including * the `customer_id` query parameter. For more information, see [Migration * notes](https://developer.squareup.com/docs/customers-api/what-it-does#migrate-customer-cards). @@ -214,8 +214,8 @@ protected OptionalNullable> internalGetCards() { /** * Getter for Cards. * Payment details of the credit, debit, and gift cards stored on file for the customer profile. - * DEPRECATED at version 2021-06-16. Replaced by calling - * [ListCards](api-endpoint:Cards-ListCards) (for credit and debit cards on file) or + * DEPRECATED at version 2021-06-16 and will be RETIRED at version 2024-12-18. Replaced by + * calling [ListCards](api-endpoint:Cards-ListCards) (for credit and debit cards on file) or * [ListGiftCards](api-endpoint:GiftCards-ListGiftCards) (for gift cards on file) and including * the `customer_id` query parameter. For more information, see [Migration * notes](https://developer.squareup.com/docs/customers-api/what-it-does#migrate-customer-cards). diff --git a/src/main/java/com/squareup/square/models/Payment.java b/src/main/java/com/squareup/square/models/Payment.java index f9ca1282..8958eecc 100644 --- a/src/main/java/com/squareup/square/models/Payment.java +++ b/src/main/java/com/squareup/square/models/Payment.java @@ -45,6 +45,7 @@ public class Payment { private final OptionalNullable teamMemberId; private final List refundIds; private final RiskEvaluation riskEvaluation; + private final String terminalCheckoutId; private final String buyerEmailAddress; private final Address billingAddress; private final Address shippingAddress; @@ -91,6 +92,7 @@ public class Payment { * @param teamMemberId String value for teamMemberId. * @param refundIds List of String value for refundIds. * @param riskEvaluation RiskEvaluation value for riskEvaluation. + * @param terminalCheckoutId String value for terminalCheckoutId. * @param buyerEmailAddress String value for buyerEmailAddress. * @param billingAddress Address value for billingAddress. * @param shippingAddress Address value for shippingAddress. @@ -137,6 +139,7 @@ public Payment( @JsonProperty("team_member_id") String teamMemberId, @JsonProperty("refund_ids") List refundIds, @JsonProperty("risk_evaluation") RiskEvaluation riskEvaluation, + @JsonProperty("terminal_checkout_id") String terminalCheckoutId, @JsonProperty("buyer_email_address") String buyerEmailAddress, @JsonProperty("billing_address") Address billingAddress, @JsonProperty("shipping_address") Address shippingAddress, @@ -180,6 +183,7 @@ public Payment( this.teamMemberId = OptionalNullable.of(teamMemberId); this.refundIds = refundIds; this.riskEvaluation = riskEvaluation; + this.terminalCheckoutId = terminalCheckoutId; this.buyerEmailAddress = buyerEmailAddress; this.billingAddress = billingAddress; this.shippingAddress = shippingAddress; @@ -227,6 +231,7 @@ public Payment( * @param teamMemberId String value for teamMemberId. * @param refundIds List of String value for refundIds. * @param riskEvaluation RiskEvaluation value for riskEvaluation. + * @param terminalCheckoutId String value for terminalCheckoutId. * @param buyerEmailAddress String value for buyerEmailAddress. * @param billingAddress Address value for billingAddress. * @param shippingAddress Address value for shippingAddress. @@ -252,10 +257,10 @@ protected Payment(String id, String createdAt, String updatedAt, Money amountMon SquareAccountDetails squareAccountDetails, String locationId, String orderId, String referenceId, String customerId, String employeeId, OptionalNullable teamMemberId, List refundIds, - RiskEvaluation riskEvaluation, String buyerEmailAddress, Address billingAddress, - Address shippingAddress, String note, String statementDescriptionIdentifier, - List capabilities, String receiptNumber, String receiptUrl, - DeviceDetails deviceDetails, ApplicationDetails applicationDetails, + RiskEvaluation riskEvaluation, String terminalCheckoutId, String buyerEmailAddress, + Address billingAddress, Address shippingAddress, String note, + String statementDescriptionIdentifier, List capabilities, String receiptNumber, + String receiptUrl, DeviceDetails deviceDetails, ApplicationDetails applicationDetails, Boolean isOfflinePayment, OfflinePaymentDetails offlinePaymentDetails, OptionalNullable versionToken) { this.id = id; @@ -288,6 +293,7 @@ protected Payment(String id, String createdAt, String updatedAt, Money amountMon this.teamMemberId = teamMemberId; this.refundIds = refundIds; this.riskEvaluation = riskEvaluation; + this.terminalCheckoutId = terminalCheckoutId; this.buyerEmailAddress = buyerEmailAddress; this.billingAddress = billingAddress; this.shippingAddress = shippingAddress; @@ -714,6 +720,17 @@ public RiskEvaluation getRiskEvaluation() { return riskEvaluation; } + /** + * Getter for TerminalCheckoutId. + * An optional ID for a Terminal checkout that is associated with the payment. + * @return Returns the String + */ + @JsonGetter("terminal_checkout_id") + @JsonInclude(JsonInclude.Include.NON_NULL) + public String getTerminalCheckoutId() { + return terminalCheckoutId; + } + /** * Getter for BuyerEmailAddress. * The buyer's email address. @@ -885,10 +902,10 @@ public int hashCode() { delayAction, delayedUntil, sourceType, cardDetails, cashDetails, bankAccountDetails, externalDetails, walletDetails, buyNowPayLaterDetails, squareAccountDetails, locationId, orderId, referenceId, customerId, employeeId, teamMemberId, refundIds, - riskEvaluation, buyerEmailAddress, billingAddress, shippingAddress, note, - statementDescriptionIdentifier, capabilities, receiptNumber, receiptUrl, - deviceDetails, applicationDetails, isOfflinePayment, offlinePaymentDetails, - versionToken); + riskEvaluation, terminalCheckoutId, buyerEmailAddress, billingAddress, + shippingAddress, note, statementDescriptionIdentifier, capabilities, receiptNumber, + receiptUrl, deviceDetails, applicationDetails, isOfflinePayment, + offlinePaymentDetails, versionToken); } @Override @@ -930,6 +947,7 @@ public boolean equals(Object obj) { && Objects.equals(teamMemberId, other.teamMemberId) && Objects.equals(refundIds, other.refundIds) && Objects.equals(riskEvaluation, other.riskEvaluation) + && Objects.equals(terminalCheckoutId, other.terminalCheckoutId) && Objects.equals(buyerEmailAddress, other.buyerEmailAddress) && Objects.equals(billingAddress, other.billingAddress) && Objects.equals(shippingAddress, other.shippingAddress) @@ -965,7 +983,8 @@ public String toString() { + ", locationId=" + locationId + ", orderId=" + orderId + ", referenceId=" + referenceId + ", customerId=" + customerId + ", employeeId=" + employeeId + ", teamMemberId=" + teamMemberId + ", refundIds=" + refundIds - + ", riskEvaluation=" + riskEvaluation + ", buyerEmailAddress=" + buyerEmailAddress + + ", riskEvaluation=" + riskEvaluation + ", terminalCheckoutId=" + + terminalCheckoutId + ", buyerEmailAddress=" + buyerEmailAddress + ", billingAddress=" + billingAddress + ", shippingAddress=" + shippingAddress + ", note=" + note + ", statementDescriptionIdentifier=" + statementDescriptionIdentifier + ", capabilities=" + capabilities @@ -1010,6 +1029,7 @@ public Builder toBuilder() { .employeeId(getEmployeeId()) .refundIds(getRefundIds()) .riskEvaluation(getRiskEvaluation()) + .terminalCheckoutId(getTerminalCheckoutId()) .buyerEmailAddress(getBuyerEmailAddress()) .billingAddress(getBillingAddress()) .shippingAddress(getShippingAddress()) @@ -1062,6 +1082,7 @@ public static class Builder { private OptionalNullable teamMemberId; private List refundIds; private RiskEvaluation riskEvaluation; + private String terminalCheckoutId; private String buyerEmailAddress; private Address billingAddress; private Address shippingAddress; @@ -1396,6 +1417,16 @@ public Builder riskEvaluation(RiskEvaluation riskEvaluation) { return this; } + /** + * Setter for terminalCheckoutId. + * @param terminalCheckoutId String value for terminalCheckoutId. + * @return Builder + */ + public Builder terminalCheckoutId(String terminalCheckoutId) { + this.terminalCheckoutId = terminalCheckoutId; + return this; + } + /** * Setter for buyerEmailAddress. * @param buyerEmailAddress String value for buyerEmailAddress. @@ -1545,10 +1576,10 @@ public Payment build() { delayAction, delayedUntil, sourceType, cardDetails, cashDetails, bankAccountDetails, externalDetails, walletDetails, buyNowPayLaterDetails, squareAccountDetails, locationId, orderId, referenceId, customerId, employeeId, - teamMemberId, refundIds, riskEvaluation, buyerEmailAddress, billingAddress, - shippingAddress, note, statementDescriptionIdentifier, capabilities, - receiptNumber, receiptUrl, deviceDetails, applicationDetails, isOfflinePayment, - offlinePaymentDetails, versionToken); + teamMemberId, refundIds, riskEvaluation, terminalCheckoutId, buyerEmailAddress, + billingAddress, shippingAddress, note, statementDescriptionIdentifier, + capabilities, receiptNumber, receiptUrl, deviceDetails, applicationDetails, + isOfflinePayment, offlinePaymentDetails, versionToken); } } }