From fae34726b270c77a1b63ea4a9beb779a545ec81c Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 18 Aug 2026 20:52:32 +0000 Subject: [PATCH 1/2] [fern-generated] Update SDK Generated by Fern CLI Version: unknown Generators: - fernapi/fern-typescript-sdk: 3.73.4 --- .fern/metadata.json | 2 +- reference.md | 5 +- src/BaseClient.ts | 6 +-- src/api/resources/applePay/client/Client.ts | 2 +- .../resources/bankAccounts/client/Client.ts | 10 ++-- src/api/resources/bookings/client/Client.ts | 20 +++---- .../client/Client.ts | 10 ++-- .../customAttributes/client/Client.ts | 12 ++--- .../locationProfiles/client/Client.ts | 2 +- .../teamMemberProfiles/client/Client.ts | 4 +- src/api/resources/cards/client/Client.ts | 8 +-- .../resources/shifts/client/Client.ts | 6 +-- src/api/resources/catalog/client/Client.ts | 18 +++---- .../requests/BatchGetCatalogObjectsRequest.ts | 4 ++ .../requests/SearchCatalogItemsRequest.ts | 2 + .../requests/SearchCatalogObjectsRequest.ts | 2 + .../catalog/resources/images/client/Client.ts | 4 +- .../catalog/resources/object/client/Client.ts | 6 +-- src/api/resources/channels/client/Client.ts | 6 +-- src/api/resources/checkout/client/Client.ts | 8 +-- .../resources/paymentLinks/client/Client.ts | 10 ++-- src/api/resources/customers/client/Client.ts | 20 +++---- .../resources/cards/client/Client.ts | 4 +- .../client/Client.ts | 12 ++--- .../customAttributes/client/Client.ts | 8 +-- .../resources/groups/client/Client.ts | 14 ++--- .../resources/segments/client/Client.ts | 4 +- src/api/resources/devices/client/Client.ts | 4 +- .../devices/resources/codes/client/Client.ts | 6 +-- src/api/resources/disputes/client/Client.ts | 12 ++--- .../resources/evidence/client/Client.ts | 6 +-- src/api/resources/employees/client/Client.ts | 4 +- src/api/resources/events/client/Client.ts | 8 +-- src/api/resources/giftCards/client/Client.ts | 14 ++--- .../resources/activities/client/Client.ts | 4 +- src/api/resources/inventory/client/Client.ts | 40 +++++++------- src/api/resources/invoices/client/Client.ts | 20 +++---- src/api/resources/labor/client/Client.ts | 22 ++++---- .../resources/breakTypes/client/Client.ts | 10 ++-- .../resources/employeeWages/client/Client.ts | 4 +- .../labor/resources/shifts/client/Client.ts | 10 ++-- .../teamMemberWages/client/Client.ts | 4 +- .../workweekConfigs/client/Client.ts | 4 +- src/api/resources/locations/client/Client.ts | 10 ++-- .../client/Client.ts | 10 ++-- .../customAttributes/client/Client.ts | 12 ++--- .../resources/transactions/client/Client.ts | 8 +-- src/api/resources/loyalty/client/Client.ts | 2 +- .../resources/accounts/client/Client.ts | 10 ++-- .../resources/programs/client/Client.ts | 6 +-- .../resources/promotions/client/Client.ts | 8 +-- .../resources/rewards/client/Client.ts | 10 ++-- src/api/resources/merchants/client/Client.ts | 4 +- .../client/Client.ts | 10 ++-- .../customAttributes/client/Client.ts | 12 ++--- src/api/resources/oAuth/client/Client.ts | 8 +-- src/api/resources/orders/client/Client.ts | 21 ++++---- .../client/Client.ts | 10 ++-- .../customAttributes/client/Client.ts | 12 ++--- src/api/resources/payments/client/Client.ts | 14 ++--- src/api/resources/payouts/client/Client.ts | 6 +-- src/api/resources/refunds/client/Client.ts | 6 +-- src/api/resources/reporting/client/Client.ts | 4 +- src/api/resources/sites/client/Client.ts | 2 +- src/api/resources/snippets/client/Client.ts | 6 +-- .../resources/subscriptions/client/Client.ts | 24 ++++----- src/api/resources/team/client/Client.ts | 8 +-- .../resources/teamMembers/client/Client.ts | 12 ++--- .../resources/wageSetting/client/Client.ts | 4 +- src/api/resources/terminal/client/Client.ts | 6 +-- .../resources/actions/client/Client.ts | 8 +-- .../resources/checkouts/client/Client.ts | 8 +-- .../resources/refunds/client/Client.ts | 8 +-- .../resources/transferOrders/client/Client.ts | 16 +++--- .../resources/v1Transactions/client/Client.ts | 6 +-- src/api/resources/vendors/client/Client.ts | 14 ++--- .../resources/eventTypes/client/Client.ts | 2 +- .../resources/subscriptions/client/Client.ts | 14 ++--- .../types/BatchGetCatalogObjectsResponse.ts | 2 + src/api/types/CardBrand.ts | 4 ++ src/api/types/CatalogModifier.ts | 11 ++++ src/api/types/CatalogQuery.ts | 2 + .../CatalogQueryModifiersForChildList.ts | 12 +++++ src/api/types/ErrorCode.ts | 9 ++++ src/api/types/IncludeOptions.ts | 15 ++++++ src/api/types/IncludeType.ts | 8 +++ src/api/types/IncludedResources.ts | 13 +++++ src/api/types/Location.ts | 10 ++++ src/api/types/SearchCatalogItemsResponse.ts | 2 + src/api/types/SearchCatalogObjectsResponse.ts | 2 + src/api/types/index.ts | 4 ++ .../requests/BatchGetCatalogObjectsRequest.ts | 3 ++ .../requests/SearchCatalogItemsRequest.ts | 3 ++ .../requests/SearchCatalogObjectsRequest.ts | 3 ++ .../types/BatchGetCatalogObjectsResponse.ts | 3 ++ src/serialization/types/CardBrand.ts | 10 +++- src/serialization/types/CatalogModifier.ts | 5 ++ src/serialization/types/CatalogQuery.ts | 6 +++ .../CatalogQueryModifiersForChildList.ts | 21 ++++++++ src/serialization/types/ErrorCode.ts | 18 +++++++ src/serialization/types/IncludeOptions.ts | 17 ++++++ src/serialization/types/IncludeType.ts | 12 +++++ src/serialization/types/IncludedResources.ts | 26 +++++++++ src/serialization/types/Location.ts | 7 +++ .../types/SearchCatalogItemsResponse.ts | 3 ++ .../types/SearchCatalogObjectsResponse.ts | 3 ++ src/serialization/types/index.ts | 4 ++ tests/wire/catalog.test.ts | 54 +++++++++++++++++++ tests/wire/locations.test.ts | 20 +++++++ 109 files changed, 667 insertions(+), 347 deletions(-) create mode 100644 src/api/types/CatalogQueryModifiersForChildList.ts create mode 100644 src/api/types/IncludeOptions.ts create mode 100644 src/api/types/IncludeType.ts create mode 100644 src/api/types/IncludedResources.ts create mode 100644 src/serialization/types/CatalogQueryModifiersForChildList.ts create mode 100644 src/serialization/types/IncludeOptions.ts create mode 100644 src/serialization/types/IncludeType.ts create mode 100644 src/serialization/types/IncludedResources.ts diff --git a/.fern/metadata.json b/.fern/metadata.json index a4cf018b8..f2cf3541b 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -54,7 +54,7 @@ } } }, - "originGitCommit": "074e2540401528521d322c512800c4ebd67cd153", + "originGitCommit": "b05364cda2b85e35d8daa9ff2c24bbabbbd9652a", "originGitCommitIsDirty": false, "invokedBy": "ci", "requestedVersion": "45.1.0", diff --git a/reference.md b/reference.md index b87a16824..ff92a3ca7 100644 --- a/reference.md +++ b/reference.md @@ -9512,8 +9512,9 @@ how to sort or filter the results. Your `SearchOrdersQuery` can: Note that details for orders processed with Square Point of Sale while in offline mode might not be transmitted to Square for up to 72 hours. Offline -orders have a `created_at` value that reflects the time the order was created, -not the time it was subsequently transmitted to Square. +orders have a `created_at` value that reflects the time the order was +transmitted to Square and created server-side, not the time the order was +created on the Point of Sale device. diff --git a/src/BaseClient.ts b/src/BaseClient.ts index 034400440..843ca44a3 100644 --- a/src/BaseClient.ts +++ b/src/BaseClient.ts @@ -16,7 +16,7 @@ export type BaseClientOptions = { /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; /** Override the Square-Version header */ - version?: "2026-07-15"; + version?: "2026-08-19"; /** Additional headers to include in requests. */ headers?: Record | null | undefined>; /** The default maximum time to wait for a response in seconds. */ @@ -40,7 +40,7 @@ export interface BaseRequestOptions { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2026-07-15"; + version?: "2026-08-19"; /** Additional query string parameters to include in the request. */ queryParams?: Record; /** Additional headers to include in the request. */ @@ -68,7 +68,7 @@ export function normalizeClientOptions> { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -242,7 +242,7 @@ export class OAuthClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -300,7 +300,7 @@ export class OAuthClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ diff --git a/src/api/resources/orders/client/Client.ts b/src/api/resources/orders/client/Client.ts index edb23d1da..fec33d902 100644 --- a/src/api/resources/orders/client/Client.ts +++ b/src/api/resources/orders/client/Client.ts @@ -112,7 +112,7 @@ export class OrdersClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -190,7 +190,7 @@ export class OrdersClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -287,7 +287,7 @@ export class OrdersClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -365,7 +365,7 @@ export class OrdersClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -430,8 +430,9 @@ export class OrdersClient { * * Note that details for orders processed with Square Point of Sale while in * offline mode might not be transmitted to Square for up to 72 hours. Offline - * orders have a `created_at` value that reflects the time the order was created, - * not the time it was subsequently transmitted to Square. + * orders have a `created_at` value that reflects the time the order was + * transmitted to Square and created server-side, not the time the order was + * created on the Point of Sale device. * * @param {Square.SearchOrdersRequest} request * @param {OrdersClient.RequestOptions} requestOptions - Request-specific configuration. @@ -475,7 +476,7 @@ export class OrdersClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -551,7 +552,7 @@ export class OrdersClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -650,7 +651,7 @@ export class OrdersClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -741,7 +742,7 @@ export class OrdersClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ diff --git a/src/api/resources/orders/resources/customAttributeDefinitions/client/Client.ts b/src/api/resources/orders/resources/customAttributeDefinitions/client/Client.ts index f0f874994..8941dc176 100644 --- a/src/api/resources/orders/resources/customAttributeDefinitions/client/Client.ts +++ b/src/api/resources/orders/resources/customAttributeDefinitions/client/Client.ts @@ -65,7 +65,7 @@ export class CustomAttributeDefinitionsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -167,7 +167,7 @@ export class CustomAttributeDefinitionsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -256,7 +256,7 @@ export class CustomAttributeDefinitionsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -343,7 +343,7 @@ export class CustomAttributeDefinitionsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -426,7 +426,7 @@ export class CustomAttributeDefinitionsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ diff --git a/src/api/resources/orders/resources/customAttributes/client/Client.ts b/src/api/resources/orders/resources/customAttributes/client/Client.ts index 512d12148..5cd43bce1 100644 --- a/src/api/resources/orders/resources/customAttributes/client/Client.ts +++ b/src/api/resources/orders/resources/customAttributes/client/Client.ts @@ -71,7 +71,7 @@ export class CustomAttributesClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -181,7 +181,7 @@ export class CustomAttributesClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -282,7 +282,7 @@ export class CustomAttributesClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -386,7 +386,7 @@ export class CustomAttributesClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -479,7 +479,7 @@ export class CustomAttributesClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -565,7 +565,7 @@ export class CustomAttributesClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ diff --git a/src/api/resources/payments/client/Client.ts b/src/api/resources/payments/client/Client.ts index ffd184b06..d9f12f789 100644 --- a/src/api/resources/payments/client/Client.ts +++ b/src/api/resources/payments/client/Client.ts @@ -103,7 +103,7 @@ export class PaymentsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -208,7 +208,7 @@ export class PaymentsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -293,7 +293,7 @@ export class PaymentsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -369,7 +369,7 @@ export class PaymentsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -452,7 +452,7 @@ export class PaymentsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -529,7 +529,7 @@ export class PaymentsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -607,7 +607,7 @@ export class PaymentsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ diff --git a/src/api/resources/payouts/client/Client.ts b/src/api/resources/payouts/client/Client.ts index 8084d24bb..a54b2eb68 100644 --- a/src/api/resources/payouts/client/Client.ts +++ b/src/api/resources/payouts/client/Client.ts @@ -74,7 +74,7 @@ export class PayoutsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -160,7 +160,7 @@ export class PayoutsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -242,7 +242,7 @@ export class PayoutsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ diff --git a/src/api/resources/refunds/client/Client.ts b/src/api/resources/refunds/client/Client.ts index 597567828..e6efbffec 100644 --- a/src/api/resources/refunds/client/Client.ts +++ b/src/api/resources/refunds/client/Client.ts @@ -93,7 +93,7 @@ export class RefundsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -190,7 +190,7 @@ export class RefundsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -266,7 +266,7 @@ export class RefundsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ diff --git a/src/api/resources/reporting/client/Client.ts b/src/api/resources/reporting/client/Client.ts index 33a9d8c6f..d71e26735 100644 --- a/src/api/resources/reporting/client/Client.ts +++ b/src/api/resources/reporting/client/Client.ts @@ -44,7 +44,7 @@ export class ReportingClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -111,7 +111,7 @@ export class ReportingClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ diff --git a/src/api/resources/sites/client/Client.ts b/src/api/resources/sites/client/Client.ts index 9c8029309..14b04a712 100644 --- a/src/api/resources/sites/client/Client.ts +++ b/src/api/resources/sites/client/Client.ts @@ -45,7 +45,7 @@ export class SitesClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ diff --git a/src/api/resources/snippets/client/Client.ts b/src/api/resources/snippets/client/Client.ts index 6fb2de477..55b1da0b0 100644 --- a/src/api/resources/snippets/client/Client.ts +++ b/src/api/resources/snippets/client/Client.ts @@ -55,7 +55,7 @@ export class SnippetsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -134,7 +134,7 @@ export class SnippetsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -215,7 +215,7 @@ export class SnippetsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ diff --git a/src/api/resources/subscriptions/client/Client.ts b/src/api/resources/subscriptions/client/Client.ts index 7e20be629..75ea3c84c 100644 --- a/src/api/resources/subscriptions/client/Client.ts +++ b/src/api/resources/subscriptions/client/Client.ts @@ -69,7 +69,7 @@ export class SubscriptionsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -147,7 +147,7 @@ export class SubscriptionsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -246,7 +246,7 @@ export class SubscriptionsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -326,7 +326,7 @@ export class SubscriptionsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -409,7 +409,7 @@ export class SubscriptionsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -491,7 +491,7 @@ export class SubscriptionsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -568,7 +568,7 @@ export class SubscriptionsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -651,7 +651,7 @@ export class SubscriptionsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -729,7 +729,7 @@ export class SubscriptionsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -819,7 +819,7 @@ export class SubscriptionsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -900,7 +900,7 @@ export class SubscriptionsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -987,7 +987,7 @@ export class SubscriptionsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ diff --git a/src/api/resources/team/client/Client.ts b/src/api/resources/team/client/Client.ts index 6fe498e07..7b1fe6ccf 100644 --- a/src/api/resources/team/client/Client.ts +++ b/src/api/resources/team/client/Client.ts @@ -53,7 +53,7 @@ export class TeamClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -131,7 +131,7 @@ export class TeamClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -207,7 +207,7 @@ export class TeamClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -288,7 +288,7 @@ export class TeamClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ diff --git a/src/api/resources/teamMembers/client/Client.ts b/src/api/resources/teamMembers/client/Client.ts index 9d00798b9..a257bbd9e 100644 --- a/src/api/resources/teamMembers/client/Client.ts +++ b/src/api/resources/teamMembers/client/Client.ts @@ -91,7 +91,7 @@ export class TeamMembersClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -197,7 +197,7 @@ export class TeamMembersClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -306,7 +306,7 @@ export class TeamMembersClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -389,7 +389,7 @@ export class TeamMembersClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -466,7 +466,7 @@ export class TeamMembersClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -575,7 +575,7 @@ export class TeamMembersClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ diff --git a/src/api/resources/teamMembers/resources/wageSetting/client/Client.ts b/src/api/resources/teamMembers/resources/wageSetting/client/Client.ts index ed189ec1a..fe8924bcd 100644 --- a/src/api/resources/teamMembers/resources/wageSetting/client/Client.ts +++ b/src/api/resources/teamMembers/resources/wageSetting/client/Client.ts @@ -55,7 +55,7 @@ export class WageSettingClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -156,7 +156,7 @@ export class WageSettingClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ diff --git a/src/api/resources/terminal/client/Client.ts b/src/api/resources/terminal/client/Client.ts index 8f1b891a2..843c39449 100644 --- a/src/api/resources/terminal/client/Client.ts +++ b/src/api/resources/terminal/client/Client.ts @@ -70,7 +70,7 @@ export class TerminalClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -145,7 +145,7 @@ export class TerminalClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -220,7 +220,7 @@ export class TerminalClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ diff --git a/src/api/resources/terminal/resources/actions/client/Client.ts b/src/api/resources/terminal/resources/actions/client/Client.ts index 075b68505..b4243efb7 100644 --- a/src/api/resources/terminal/resources/actions/client/Client.ts +++ b/src/api/resources/terminal/resources/actions/client/Client.ts @@ -58,7 +58,7 @@ export class ActionsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -143,7 +143,7 @@ export class ActionsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -219,7 +219,7 @@ export class ActionsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -294,7 +294,7 @@ export class ActionsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ diff --git a/src/api/resources/terminal/resources/checkouts/client/Client.ts b/src/api/resources/terminal/resources/checkouts/client/Client.ts index 9ce912939..8bfdc3a87 100644 --- a/src/api/resources/terminal/resources/checkouts/client/Client.ts +++ b/src/api/resources/terminal/resources/checkouts/client/Client.ts @@ -61,7 +61,7 @@ export class CheckoutsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -141,7 +141,7 @@ export class CheckoutsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -222,7 +222,7 @@ export class CheckoutsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -297,7 +297,7 @@ export class CheckoutsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ diff --git a/src/api/resources/terminal/resources/refunds/client/Client.ts b/src/api/resources/terminal/resources/refunds/client/Client.ts index 1e08a7295..8152f596b 100644 --- a/src/api/resources/terminal/resources/refunds/client/Client.ts +++ b/src/api/resources/terminal/resources/refunds/client/Client.ts @@ -58,7 +58,7 @@ export class RefundsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -138,7 +138,7 @@ export class RefundsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -214,7 +214,7 @@ export class RefundsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -289,7 +289,7 @@ export class RefundsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ diff --git a/src/api/resources/transferOrders/client/Client.ts b/src/api/resources/transferOrders/client/Client.ts index 1bba53961..5ae829cc3 100644 --- a/src/api/resources/transferOrders/client/Client.ts +++ b/src/api/resources/transferOrders/client/Client.ts @@ -83,7 +83,7 @@ export class TransferOrdersClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -173,7 +173,7 @@ export class TransferOrdersClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -271,7 +271,7 @@ export class TransferOrdersClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -368,7 +368,7 @@ export class TransferOrdersClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -457,7 +457,7 @@ export class TransferOrdersClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -547,7 +547,7 @@ export class TransferOrdersClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -657,7 +657,7 @@ export class TransferOrdersClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -747,7 +747,7 @@ export class TransferOrdersClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ diff --git a/src/api/resources/v1Transactions/client/Client.ts b/src/api/resources/v1Transactions/client/Client.ts index 67ea16529..e2655de23 100644 --- a/src/api/resources/v1Transactions/client/Client.ts +++ b/src/api/resources/v1Transactions/client/Client.ts @@ -63,7 +63,7 @@ export class V1TransactionsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -140,7 +140,7 @@ export class V1TransactionsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -219,7 +219,7 @@ export class V1TransactionsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ diff --git a/src/api/resources/vendors/client/Client.ts b/src/api/resources/vendors/client/Client.ts index a426112ed..71cb96bc8 100644 --- a/src/api/resources/vendors/client/Client.ts +++ b/src/api/resources/vendors/client/Client.ts @@ -69,7 +69,7 @@ export class VendorsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -144,7 +144,7 @@ export class VendorsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -226,7 +226,7 @@ export class VendorsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -320,7 +320,7 @@ export class VendorsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -393,7 +393,7 @@ export class VendorsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -469,7 +469,7 @@ export class VendorsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -548,7 +548,7 @@ export class VendorsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ diff --git a/src/api/resources/webhooks/resources/eventTypes/client/Client.ts b/src/api/resources/webhooks/resources/eventTypes/client/Client.ts index 7cf034444..65f880dbd 100644 --- a/src/api/resources/webhooks/resources/eventTypes/client/Client.ts +++ b/src/api/resources/webhooks/resources/eventTypes/client/Client.ts @@ -53,7 +53,7 @@ export class EventTypesClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ diff --git a/src/api/resources/webhooks/resources/subscriptions/client/Client.ts b/src/api/resources/webhooks/resources/subscriptions/client/Client.ts index 73b96226d..dd0bf6326 100644 --- a/src/api/resources/webhooks/resources/subscriptions/client/Client.ts +++ b/src/api/resources/webhooks/resources/subscriptions/client/Client.ts @@ -62,7 +62,7 @@ export class SubscriptionsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -157,7 +157,7 @@ export class SubscriptionsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -233,7 +233,7 @@ export class SubscriptionsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -312,7 +312,7 @@ export class SubscriptionsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -393,7 +393,7 @@ export class SubscriptionsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -469,7 +469,7 @@ export class SubscriptionsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -551,7 +551,7 @@ export class SubscriptionsClient { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, this._options?.headers, - mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-07-15" }), + mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }), requestOptions?.headers, ); const _response = await (this._options.fetcher ?? core.fetcher)({ diff --git a/src/api/types/BatchGetCatalogObjectsResponse.ts b/src/api/types/BatchGetCatalogObjectsResponse.ts index bbbfffd85..eb3b59ddc 100644 --- a/src/api/types/BatchGetCatalogObjectsResponse.ts +++ b/src/api/types/BatchGetCatalogObjectsResponse.ts @@ -9,4 +9,6 @@ export interface BatchGetCatalogObjectsResponse { objects?: Square.CatalogObject[]; /** A list of [CatalogObject](entity:CatalogObject)s referenced by the object in the `objects` field. */ relatedObjects?: Square.CatalogObject[]; + /** A list of [CatalogObject](entity:CatalogObject)s referenced by the object in the `objects` field and specifically requested. */ + includedResources?: Square.IncludedResources; } diff --git a/src/api/types/CardBrand.ts b/src/api/types/CardBrand.ts index fd646bcf6..1baae036f 100644 --- a/src/api/types/CardBrand.ts +++ b/src/api/types/CardBrand.ts @@ -16,5 +16,9 @@ export const CardBrand = { Eftpos: "EFTPOS", Felica: "FELICA", Ebt: "EBT", + Quicpay: "QUICPAY", + Id: "ID", + TransportationIc: "TRANSPORTATION_IC", + Carnet: "CARNET", } as const; export type CardBrand = (typeof CardBrand)[keyof typeof CardBrand]; diff --git a/src/api/types/CatalogModifier.ts b/src/api/types/CatalogModifier.ts index 36bbcdaad..1273aeefc 100644 --- a/src/api/types/CatalogModifier.ts +++ b/src/api/types/CatalogModifier.ts @@ -35,4 +35,15 @@ export interface CatalogModifier { imageId?: string | null; /** When `true`, this modifier is hidden from online ordering channels. This setting can be overridden at the item level using `CatalogModifierListInfo.modifier_overrides`. */ hiddenOnline?: boolean | null; + /** + * Child `CatalogModifierList`s that this `CatalogModifier` nests for multi-step choices. + * When a customer or staff member selects this modifier, the relevant follow-up modifier list appears. + * For example, selecting "Hummus" reveals a secondary "Choose Hummus Flavor" set, and selecting a flavor + * could reveal a third-level portion size set. + * + * Each entry references a child modifier list. Each modifier can nest up to 5 child modifier list, and + * supports up to 3 levels of nesting depth. The order in `child_modifier_list_ids` determines display order + * during checkout. + */ + childModifierListIds?: string[] | null; } diff --git a/src/api/types/CatalogQuery.ts b/src/api/types/CatalogQuery.ts index 5c1acbe6a..f8b54c0ff 100644 --- a/src/api/types/CatalogQuery.ts +++ b/src/api/types/CatalogQuery.ts @@ -72,4 +72,6 @@ export interface CatalogQuery { * contain all of the specified `CatalogItemOption` IDs. */ itemVariationsForItemOptionValuesQuery?: Square.CatalogQueryItemVariationsForItemOptionValues; + /** A query expression to return `CatalogModifier` objects that nest the specified modifier lists (via `child_modifier_list_ids`) */ + modifiersForChildListQuery?: Square.CatalogQueryModifiersForChildList; } diff --git a/src/api/types/CatalogQueryModifiersForChildList.ts b/src/api/types/CatalogQueryModifiersForChildList.ts new file mode 100644 index 000000000..fd5ee8750 --- /dev/null +++ b/src/api/types/CatalogQueryModifiersForChildList.ts @@ -0,0 +1,12 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * Query to find `CatalogModifier` objects that reference a given `CatalogModifierList` in their `child_modifier_list_ids` field. + */ +export interface CatalogQueryModifiersForChildList { + /** + * The `CatalogModifierList` IDs to find parent `CatalogModifier`s for. + * Returns `CatalogModifier` objects where `child_modifier_list_ids` contains any of these IDs. + */ + childModifierListIds: string[]; +} diff --git a/src/api/types/ErrorCode.ts b/src/api/types/ErrorCode.ts index cf44f9c73..afccadf48 100644 --- a/src/api/types/ErrorCode.ts +++ b/src/api/types/ErrorCode.ts @@ -103,6 +103,7 @@ export const ErrorCode = { CardTokenExpired: "CARD_TOKEN_EXPIRED", CardTokenUsed: "CARD_TOKEN_USED", AmountTooHigh: "AMOUNT_TOO_HIGH", + AmountTooLow: "AMOUNT_TOO_LOW", UnsupportedInstrumentType: "UNSUPPORTED_INSTRUMENT_TYPE", RefundAmountInvalid: "REFUND_AMOUNT_INVALID", RefundAlreadyPending: "REFUND_ALREADY_PENDING", @@ -133,6 +134,13 @@ export const ErrorCode = { PlaidError: "PLAID_ERROR", PlaidErrorItemLoginRequired: "PLAID_ERROR_ITEM_LOGIN_REQUIRED", PlaidErrorRateLimit: "PLAID_ERROR_RATE_LIMIT", + PlaidErrorInvalidAccessToken: "PLAID_ERROR_INVALID_ACCESS_TOKEN", + PlaidErrorInvalidAccountId: "PLAID_ERROR_INVALID_ACCOUNT_ID", + PlaidErrorNoAccounts: "PLAID_ERROR_NO_ACCOUNTS", + PlaidErrorItemNotFound: "PLAID_ERROR_ITEM_NOT_FOUND", + PlaidErrorInsufficientCredentials: "PLAID_ERROR_INSUFFICIENT_CREDENTIALS", + PlaidErrorItemNotSupported: "PLAID_ERROR_ITEM_NOT_SUPPORTED", + PlaidErrorProductNotReady: "PLAID_ERROR_PRODUCT_NOT_READY", PaymentSourceNotEnabledForTarget: "PAYMENT_SOURCE_NOT_ENABLED_FOR_TARGET", CardDeclined: "CARD_DECLINED", VerifyCvvFailure: "VERIFY_CVV_FAILURE", @@ -144,6 +152,7 @@ export const ErrorCode = { AllowablePinTriesExceeded: "ALLOWABLE_PIN_TRIES_EXCEEDED", ReservationDeclined: "RESERVATION_DECLINED", UnknownBodyParameter: "UNKNOWN_BODY_PARAMETER", + CartIneligibleForEbt: "CART_INELIGIBLE_FOR_EBT", NotFound: "NOT_FOUND", ApplePaymentProcessingCertificateHashNotFound: "APPLE_PAYMENT_PROCESSING_CERTIFICATE_HASH_NOT_FOUND", MethodNotAllowed: "METHOD_NOT_ALLOWED", diff --git a/src/api/types/IncludeOptions.ts b/src/api/types/IncludeOptions.ts new file mode 100644 index 000000000..271b73c1c --- /dev/null +++ b/src/api/types/IncludeOptions.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Square from "../index"; + +/** + * Options to include related resources of the requested `CatalogObject`s. Related resources will be included in + * `IncludedResources` in the response. + */ +export interface IncludeOptions { + /** + * Resources to include in the response. + * See [IncludeType](#type-includetype) for possible values + */ + include?: Square.IncludeType[] | null; +} diff --git a/src/api/types/IncludeType.ts b/src/api/types/IncludeType.ts new file mode 100644 index 000000000..bd32def1c --- /dev/null +++ b/src/api/types/IncludeType.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Related resources of requested `CatalogObject`s to include as part of the response. */ +export const IncludeType = { + IncludeNestedModifiers: "INCLUDE_NESTED_MODIFIERS", + IncludeAncestorModifiers: "INCLUDE_ANCESTOR_MODIFIERS", +} as const; +export type IncludeType = (typeof IncludeType)[keyof typeof IncludeType]; diff --git a/src/api/types/IncludedResources.ts b/src/api/types/IncludedResources.ts new file mode 100644 index 000000000..e3fd8447c --- /dev/null +++ b/src/api/types/IncludedResources.ts @@ -0,0 +1,13 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Square from "../index"; + +/** + * Related resources of the response `CatalogObject`s requested using `IncludeOptions` + */ +export interface IncludedResources { + /** Nested `CatalogModifierList`s as requested via `INCLUDE_NESTED_MODIFIERS`. */ + nestedModifiers?: Square.CatalogObject[] | null; + /** Ancestor `CatalogModifierList`s as requested via INCLUDE_ANCESTOR_MODIFIERS */ + ancestorModifiers?: Square.CatalogObject[] | null; +} diff --git a/src/api/types/Location.ts b/src/api/types/Location.ts index cb17835cd..b6f4867c4 100644 --- a/src/api/types/Location.ts +++ b/src/api/types/Location.ts @@ -106,4 +106,14 @@ export interface Location { fullFormatLogoUrl?: string; /** The tax IDs for this location. */ taxIds?: Square.TaxIds; + /** + * The custom text that appears on receipts issued for this location. + * This text can also be configured in the Seller Dashboard (Receipts section). + */ + customReceiptText?: string | null; + /** + * The return policy that appears on receipts issued for this location. + * This text can also be configured in the Seller Dashboard (Receipts section). + */ + returnPolicy?: string | null; } diff --git a/src/api/types/SearchCatalogItemsResponse.ts b/src/api/types/SearchCatalogItemsResponse.ts index 3df785fbb..6542d71a8 100644 --- a/src/api/types/SearchCatalogItemsResponse.ts +++ b/src/api/types/SearchCatalogItemsResponse.ts @@ -14,4 +14,6 @@ export interface SearchCatalogItemsResponse { cursor?: string; /** Ids of returned item variations matching the specified query expression. */ matchedVariationIds?: string[]; + /** Related resources included in the response as requested via include_options */ + includedResources?: Square.IncludedResources; } diff --git a/src/api/types/SearchCatalogObjectsResponse.ts b/src/api/types/SearchCatalogObjectsResponse.ts index f9bdc5aae..adfbceea1 100644 --- a/src/api/types/SearchCatalogObjectsResponse.ts +++ b/src/api/types/SearchCatalogObjectsResponse.ts @@ -19,4 +19,6 @@ export interface SearchCatalogObjectsResponse { * match the value for `end_time` or `cursor` if either field is included in the `SearchCatalog` request. */ latestTime?: string; + /** A list of [CatalogObject](entity:CatalogObject)s referenced by the object in the `objects` field and specifically requested. */ + includedResources?: Square.IncludedResources; } diff --git a/src/api/types/index.ts b/src/api/types/index.ts index 9a8b41bcf..a5c8b041a 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -239,6 +239,7 @@ export * from "./CatalogQueryItemsForItemOptions"; export * from "./CatalogQueryItemsForModifierList"; export * from "./CatalogQueryItemsForTax"; export * from "./CatalogQueryItemVariationsForItemOptionValues"; +export * from "./CatalogQueryModifiersForChildList"; export * from "./CatalogQueryPrefix"; export * from "./CatalogQueryRange"; export * from "./CatalogQuerySet"; @@ -663,6 +664,9 @@ export * from "./GiftCardUpdatedEvent"; export * from "./GiftCardUpdatedEventData"; export * from "./GiftCardUpdatedEventObject"; export * from "./Hierarchy"; +export * from "./IncludedResources"; +export * from "./IncludeOptions"; +export * from "./IncludeType"; export * from "./InventoryAdjustment"; export * from "./InventoryAdjustmentGroup"; export * from "./InventoryAdjustmentReason"; diff --git a/src/serialization/resources/catalog/client/requests/BatchGetCatalogObjectsRequest.ts b/src/serialization/resources/catalog/client/requests/BatchGetCatalogObjectsRequest.ts index f8042b3a3..d03524dd7 100644 --- a/src/serialization/resources/catalog/client/requests/BatchGetCatalogObjectsRequest.ts +++ b/src/serialization/resources/catalog/client/requests/BatchGetCatalogObjectsRequest.ts @@ -3,6 +3,7 @@ import type * as Square from "../../../../../api/index"; import * as core from "../../../../../core"; import type * as serializers from "../../../../index"; +import { IncludeOptions } from "../../../../types/IncludeOptions"; export const BatchGetCatalogObjectsRequest: core.serialization.Schema< serializers.BatchGetCatalogObjectsRequest.Raw, @@ -22,6 +23,7 @@ export const BatchGetCatalogObjectsRequest: core.serialization.Schema< "include_category_path_to_root", core.serialization.boolean().optionalNullable(), ), + includeOptions: core.serialization.property("include_options", IncludeOptions.optional()), }); export declare namespace BatchGetCatalogObjectsRequest { @@ -31,5 +33,6 @@ export declare namespace BatchGetCatalogObjectsRequest { catalog_version?: ((bigint | number) | null | undefined) | null; include_deleted_objects?: (boolean | null | undefined) | null; include_category_path_to_root?: (boolean | null | undefined) | null; + include_options?: IncludeOptions.Raw | null; } } diff --git a/src/serialization/resources/catalog/client/requests/SearchCatalogItemsRequest.ts b/src/serialization/resources/catalog/client/requests/SearchCatalogItemsRequest.ts index 8f317af1a..ef5832ce8 100644 --- a/src/serialization/resources/catalog/client/requests/SearchCatalogItemsRequest.ts +++ b/src/serialization/resources/catalog/client/requests/SearchCatalogItemsRequest.ts @@ -6,6 +6,7 @@ import type * as serializers from "../../../../index"; import { ArchivedState } from "../../../../types/ArchivedState"; import { CatalogItemProductType } from "../../../../types/CatalogItemProductType"; import { CustomAttributeFilter } from "../../../../types/CustomAttributeFilter"; +import { IncludeOptions } from "../../../../types/IncludeOptions"; import { SearchCatalogItemsRequestStockLevel } from "../../../../types/SearchCatalogItemsRequestStockLevel"; import { SortOrder } from "../../../../types/SortOrder"; @@ -38,6 +39,7 @@ export const SearchCatalogItemsRequest: core.serialization.Schema< core.serialization.list(CustomAttributeFilter).optional(), ), archivedState: core.serialization.property("archived_state", ArchivedState.optional()), + includeOptions: core.serialization.property("include_options", IncludeOptions.optional()), }); export declare namespace SearchCatalogItemsRequest { @@ -52,5 +54,6 @@ export declare namespace SearchCatalogItemsRequest { product_types?: CatalogItemProductType.Raw[] | null; custom_attribute_filters?: CustomAttributeFilter.Raw[] | null; archived_state?: ArchivedState.Raw | null; + include_options?: IncludeOptions.Raw | null; } } diff --git a/src/serialization/resources/catalog/client/requests/SearchCatalogObjectsRequest.ts b/src/serialization/resources/catalog/client/requests/SearchCatalogObjectsRequest.ts index aec46cc92..1139bf35a 100644 --- a/src/serialization/resources/catalog/client/requests/SearchCatalogObjectsRequest.ts +++ b/src/serialization/resources/catalog/client/requests/SearchCatalogObjectsRequest.ts @@ -5,6 +5,7 @@ import * as core from "../../../../../core"; import type * as serializers from "../../../../index"; import { CatalogObjectType } from "../../../../types/CatalogObjectType"; import { CatalogQuery } from "../../../../types/CatalogQuery"; +import { IncludeOptions } from "../../../../types/IncludeOptions"; export const SearchCatalogObjectsRequest: core.serialization.Schema< serializers.SearchCatalogObjectsRequest.Raw, @@ -27,6 +28,7 @@ export const SearchCatalogObjectsRequest: core.serialization.Schema< "include_category_path_to_root", core.serialization.boolean().optional(), ), + includeOptions: core.serialization.property("include_options", IncludeOptions.optional()), }); export declare namespace SearchCatalogObjectsRequest { @@ -39,5 +41,6 @@ export declare namespace SearchCatalogObjectsRequest { query?: CatalogQuery.Raw | null; limit?: number | null; include_category_path_to_root?: boolean | null; + include_options?: IncludeOptions.Raw | null; } } diff --git a/src/serialization/types/BatchGetCatalogObjectsResponse.ts b/src/serialization/types/BatchGetCatalogObjectsResponse.ts index 319bc9e58..a4578a0a5 100644 --- a/src/serialization/types/BatchGetCatalogObjectsResponse.ts +++ b/src/serialization/types/BatchGetCatalogObjectsResponse.ts @@ -4,6 +4,7 @@ import type * as Square from "../../api/index"; import * as core from "../../core"; import * as serializers from "../index"; import { Error_ } from "./Error_"; +import { IncludedResources } from "./IncludedResources"; export const BatchGetCatalogObjectsResponse: core.serialization.ObjectSchema< serializers.BatchGetCatalogObjectsResponse.Raw, @@ -15,6 +16,7 @@ export const BatchGetCatalogObjectsResponse: core.serialization.ObjectSchema< "related_objects", core.serialization.list(core.serialization.lazy(() => serializers.CatalogObject)).optional(), ), + includedResources: core.serialization.property("included_resources", IncludedResources.optional()), }); export declare namespace BatchGetCatalogObjectsResponse { @@ -22,5 +24,6 @@ export declare namespace BatchGetCatalogObjectsResponse { errors?: Error_.Raw[] | null; objects?: serializers.CatalogObject.Raw[] | null; related_objects?: serializers.CatalogObject.Raw[] | null; + included_resources?: IncludedResources.Raw | null; } } diff --git a/src/serialization/types/CardBrand.ts b/src/serialization/types/CardBrand.ts index 166051ab7..659827898 100644 --- a/src/serialization/types/CardBrand.ts +++ b/src/serialization/types/CardBrand.ts @@ -20,6 +20,10 @@ export const CardBrand: core.serialization.Schema = core.serialization.object({ + childModifierListIds: core.serialization.property( + "child_modifier_list_ids", + core.serialization.list(core.serialization.string()), + ), +}); + +export declare namespace CatalogQueryModifiersForChildList { + export interface Raw { + child_modifier_list_ids: string[]; + } +} diff --git a/src/serialization/types/ErrorCode.ts b/src/serialization/types/ErrorCode.ts index 3ef14ffd9..b047a25a4 100644 --- a/src/serialization/types/ErrorCode.ts +++ b/src/serialization/types/ErrorCode.ts @@ -104,6 +104,7 @@ export const ErrorCode: core.serialization.Schema = + core.serialization.object({ + include: core.serialization.list(IncludeType).optionalNullable(), + }); + +export declare namespace IncludeOptions { + export interface Raw { + include?: (IncludeType.Raw[] | null | undefined) | null; + } +} diff --git a/src/serialization/types/IncludeType.ts b/src/serialization/types/IncludeType.ts new file mode 100644 index 000000000..4ec36cd9c --- /dev/null +++ b/src/serialization/types/IncludeType.ts @@ -0,0 +1,12 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Square from "../../api/index"; +import * as core from "../../core"; +import type * as serializers from "../index"; + +export const IncludeType: core.serialization.Schema = + core.serialization.enum_(["INCLUDE_NESTED_MODIFIERS", "INCLUDE_ANCESTOR_MODIFIERS"]); + +export declare namespace IncludeType { + export type Raw = "INCLUDE_NESTED_MODIFIERS" | "INCLUDE_ANCESTOR_MODIFIERS"; +} diff --git a/src/serialization/types/IncludedResources.ts b/src/serialization/types/IncludedResources.ts new file mode 100644 index 000000000..8289c00b1 --- /dev/null +++ b/src/serialization/types/IncludedResources.ts @@ -0,0 +1,26 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Square from "../../api/index"; +import * as core from "../../core"; +import * as serializers from "../index"; + +export const IncludedResources: core.serialization.ObjectSchema< + serializers.IncludedResources.Raw, + Square.IncludedResources +> = core.serialization.object({ + nestedModifiers: core.serialization.property( + "nested_modifiers", + core.serialization.list(core.serialization.lazy(() => serializers.CatalogObject)).optionalNullable(), + ), + ancestorModifiers: core.serialization.property( + "ancestor_modifiers", + core.serialization.list(core.serialization.lazy(() => serializers.CatalogObject)).optionalNullable(), + ), +}); + +export declare namespace IncludedResources { + export interface Raw { + nested_modifiers?: (serializers.CatalogObject.Raw[] | null | undefined) | null; + ancestor_modifiers?: (serializers.CatalogObject.Raw[] | null | undefined) | null; + } +} diff --git a/src/serialization/types/Location.ts b/src/serialization/types/Location.ts index 374284914..f808c44a3 100644 --- a/src/serialization/types/Location.ts +++ b/src/serialization/types/Location.ts @@ -48,6 +48,11 @@ export const Location: core.serialization.ObjectSchema serializers.CatalogObject)).optional(), ), latestTime: core.serialization.property("latest_time", core.serialization.string().optional()), + includedResources: core.serialization.property("included_resources", IncludedResources.optional()), }); export declare namespace SearchCatalogObjectsResponse { @@ -26,5 +28,6 @@ export declare namespace SearchCatalogObjectsResponse { objects?: serializers.CatalogObject.Raw[] | null; related_objects?: serializers.CatalogObject.Raw[] | null; latest_time?: string | null; + included_resources?: IncludedResources.Raw | null; } } diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts index 9a8b41bcf..a5c8b041a 100644 --- a/src/serialization/types/index.ts +++ b/src/serialization/types/index.ts @@ -239,6 +239,7 @@ export * from "./CatalogQueryItemsForItemOptions"; export * from "./CatalogQueryItemsForModifierList"; export * from "./CatalogQueryItemsForTax"; export * from "./CatalogQueryItemVariationsForItemOptionValues"; +export * from "./CatalogQueryModifiersForChildList"; export * from "./CatalogQueryPrefix"; export * from "./CatalogQueryRange"; export * from "./CatalogQuerySet"; @@ -663,6 +664,9 @@ export * from "./GiftCardUpdatedEvent"; export * from "./GiftCardUpdatedEventData"; export * from "./GiftCardUpdatedEventObject"; export * from "./Hierarchy"; +export * from "./IncludedResources"; +export * from "./IncludeOptions"; +export * from "./IncludeType"; export * from "./InventoryAdjustment"; export * from "./InventoryAdjustmentGroup"; export * from "./InventoryAdjustmentReason"; diff --git a/tests/wire/catalog.test.ts b/tests/wire/catalog.test.ts index 996aa7d3e..8fe2aeeda 100644 --- a/tests/wire/catalog.test.ts +++ b/tests/wire/catalog.test.ts @@ -106,6 +106,10 @@ describe("CatalogClient", () => { image_id: "image_id", }, ], + included_resources: { + nested_modifiers: [{ type: "ITEM", id: "id" }], + ancestor_modifiers: [{ type: "ITEM", id: "id" }], + }, }; server @@ -195,6 +199,20 @@ describe("CatalogClient", () => { imageId: "image_id", }, ], + includedResources: { + nestedModifiers: [ + { + type: "ITEM", + id: "id", + }, + ], + ancestorModifiers: [ + { + type: "ITEM", + id: "id", + }, + ], + }, }); }); @@ -634,6 +652,10 @@ describe("CatalogClient", () => { }, ], latest_time: "latest_time", + included_resources: { + nested_modifiers: [{ type: "ITEM", id: "id" }], + ancestor_modifiers: [{ type: "ITEM", id: "id" }], + }, }; server @@ -715,6 +737,20 @@ describe("CatalogClient", () => { }, ], latestTime: "latest_time", + includedResources: { + nestedModifiers: [ + { + type: "ITEM", + id: "id", + }, + ], + ancestorModifiers: [ + { + type: "ITEM", + id: "id", + }, + ], + }, }); }); @@ -755,6 +791,10 @@ describe("CatalogClient", () => { ], cursor: "cursor", matched_variation_ids: ["VBJNPHCOKDFECR6VU25WRJUD"], + included_resources: { + nested_modifiers: [{ type: "ITEM", id: "id" }], + ancestor_modifiers: [{ type: "ITEM", id: "id" }], + }, }; server @@ -823,6 +863,20 @@ describe("CatalogClient", () => { ], cursor: "cursor", matchedVariationIds: ["VBJNPHCOKDFECR6VU25WRJUD"], + includedResources: { + nestedModifiers: [ + { + type: "ITEM", + id: "id", + }, + ], + ancestorModifiers: [ + { + type: "ITEM", + id: "id", + }, + ], + }, }); }); diff --git a/tests/wire/locations.test.ts b/tests/wire/locations.test.ts index b6bbcfb35..1a44e74f5 100644 --- a/tests/wire/locations.test.ts +++ b/tests/wire/locations.test.ts @@ -42,6 +42,8 @@ describe("LocationsClient", () => { pos_background_url: "pos_background_url", mcc: "mcc", full_format_logo_url: "full_format_logo_url", + custom_receipt_text: "custom_receipt_text", + return_policy: "return_policy", }, { id: "3Z4V4WHQK64X9", @@ -74,6 +76,8 @@ describe("LocationsClient", () => { pos_background_url: "pos_background_url", mcc: "7299", full_format_logo_url: "full_format_logo_url", + custom_receipt_text: "custom_receipt_text", + return_policy: "return_policy", }, ], }; @@ -122,6 +126,8 @@ describe("LocationsClient", () => { posBackgroundUrl: "pos_background_url", mcc: "mcc", fullFormatLogoUrl: "full_format_logo_url", + customReceiptText: "custom_receipt_text", + returnPolicy: "return_policy", }, { id: "3Z4V4WHQK64X9", @@ -157,6 +163,8 @@ describe("LocationsClient", () => { posBackgroundUrl: "pos_background_url", mcc: "7299", fullFormatLogoUrl: "full_format_logo_url", + customReceiptText: "custom_receipt_text", + returnPolicy: "return_policy", }, ], }); @@ -228,6 +236,8 @@ describe("LocationsClient", () => { es_nif: "es_nif", jp_qii: "jp_qii", }, + custom_receipt_text: "custom_receipt_text", + return_policy: "return_policy", }, }; @@ -315,6 +325,8 @@ describe("LocationsClient", () => { esNif: "es_nif", jpQii: "jp_qii", }, + customReceiptText: "custom_receipt_text", + returnPolicy: "return_policy", }, }); }); @@ -374,6 +386,8 @@ describe("LocationsClient", () => { es_nif: "es_nif", jp_qii: "jp_qii", }, + custom_receipt_text: "custom_receipt_text", + return_policy: "return_policy", }, }; @@ -451,6 +465,8 @@ describe("LocationsClient", () => { esNif: "es_nif", jpQii: "jp_qii", }, + customReceiptText: "custom_receipt_text", + returnPolicy: "return_policy", }, }); }); @@ -527,6 +543,8 @@ describe("LocationsClient", () => { es_nif: "es_nif", jp_qii: "jp_qii", }, + custom_receipt_text: "custom_receipt_text", + return_policy: "return_policy", }, }; @@ -643,6 +661,8 @@ describe("LocationsClient", () => { esNif: "es_nif", jpQii: "jp_qii", }, + customReceiptText: "custom_receipt_text", + returnPolicy: "return_policy", }, }); }); From 02d23dc09b5297f674c239b056eed879d9c567d4 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 18 Aug 2026 20:52:32 +0000 Subject: [PATCH 2/2] [fern-replay] advance lockfile --- .fern/replay.lock | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.fern/replay.lock b/.fern/replay.lock index 09cfa091a..d86d64d36 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -18,5 +18,11 @@ generations: cli_version: unknown generator_versions: fernapi/fern-typescript-sdk: 3.73.4 -current_generation: 6729e01b81208926a1db65bd2ac68d8d76c0eed9 + - commit_sha: b26664a3c04125973c03d69b837ea997f9209cef + tree_hash: e0995c198e0d54a3892d8f4e615413bb367cc004 + timestamp: 2026-08-18T20:52:24.055Z + cli_version: unknown + generator_versions: + fernapi/fern-typescript-sdk: 3.73.4 +current_generation: b26664a3c04125973c03d69b837ea997f9209cef patches: []