diff --git a/.mock/definition/__package__.yml b/.mock/definition/__package__.yml index 154cd91d1..e313afebe 100644 --- a/.mock/definition/__package__.yml +++ b/.mock/definition/__package__.yml @@ -4220,6 +4220,16 @@ types: variations in a specified order. Maximum: 6 item options. + ecom_uri: + type: optional> + docs: >- + Deprecated; see go/ecomUriUseCases. A URI pointing to a published + e-commerce product page for the Item. + ecom_image_uris: + type: optional>> + docs: >- + Deprecated; see go/ecomUriUseCases. A comma-separated list of encoded + URIs pointing to a set of published e-commerce images for the Item. image_ids: type: optional>> docs: |- @@ -4319,6 +4329,9 @@ types: reporting_category: type: optional docs: The item's reporting category. + is_alcoholic: + type: optional> + docs: Indicates whether this item is alcoholic (`true`) or not (`false`). source: openapi: openapi/openapi.json CatalogItemFoodAndBeverageDetails: @@ -13535,12 +13548,20 @@ types: public_url: type: optional docs: >- - The URL of the Square-hosted invoice page. + A temporary link to the Square-hosted payment page where the customer + can pay the + + invoice. If the link expires, customers can provide the email address + or phone number - After you publish the invoice using the `PublishInvoice` endpoint, - Square hosts the invoice + associated with the invoice and request a new link directly from the + expired payment page. - page and returns the page URL in the response. + + This field is added after the invoice is published and reaches the + scheduled date + + (if one is defined). access: read-only next_payment_amount_money: type: optional @@ -14252,7 +14273,7 @@ types: - CANCELED - FAILED - PAYMENT_PENDING - docs: Indicates the status of an invoice. + docs: Indicates the status of an [invoice](entity:Invoice). source: openapi: openapi/openapi.json ItemVariationLocationOverrides: @@ -20762,9 +20783,10 @@ types: type: optional> docs: >- Indicates whether the `Payment` objects created from this - `TerminalCheckout` are automatically + `TerminalCheckout` are - `COMPLETED` or left in an `APPROVED` state for later modification. + automatically `COMPLETED` or left in an `APPROVED` state for later + modification. Default: true @@ -25072,9 +25094,7 @@ types: docs: The reference to the Square order ID for the checkout request. payment_options: type: optional - docs: >- - Payment-specific options for the checkout request. Supported only in - the US. + docs: Payment-specific options for the checkout request. device_options: type: DeviceCheckoutOptions docs: >- @@ -25185,9 +25205,6 @@ types: To set this field, PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS OAuth permission is required. For more information, see [Permissions](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees#permissions). - - - Supported only in the US. statement_description_identifier: type: optional> docs: >- @@ -25197,8 +25214,7 @@ types: part of the statement description. This can be, for example, an invoice number, ticket number, - or short description that uniquely identifies the purchase. Supported - only in the US. + or short description that uniquely identifies the purchase. validation: maxLength: 20 tip_money: @@ -25208,9 +25224,7 @@ types: may only be set for a checkout that has tipping disabled (`tip_settings.allow_tipping` is - `false`). Supported only in - - the US. + `false`). source: openapi: openapi/openapi.json TerminalCheckoutQuery: diff --git a/.mock/definition/api.yml b/.mock/definition/api.yml index 4cdd7a00c..28aa10da1 100644 --- a/.mock/definition/api.yml +++ b/.mock/definition/api.yml @@ -10,7 +10,7 @@ headers: Square-Version: name: version env: VERSION - type: literal<"2025-03-19"> + type: literal<"2025-04-16"> auth-schemes: Bearer: scheme: bearer diff --git a/.mock/definition/catalog.yml b/.mock/definition/catalog.yml index 784fb2ce9..91e8d86bb 100644 --- a/.mock/definition/catalog.yml +++ b/.mock/definition/catalog.yml @@ -49,7 +49,6 @@ service: body: properties: object_ids: - type: optional>> docs: >- The IDs of the CatalogObjects to be deleted. When an object is deleted, other objects @@ -58,6 +57,7 @@ service: (for example, deleting a CatalogItem will delete its CatalogItemVariation. + type: list content-type: application/json response: docs: Success diff --git a/.mock/definition/catalog/object.yml b/.mock/definition/catalog/object.yml index 275afd08c..d5819e020 100644 --- a/.mock/definition/catalog/object.yml +++ b/.mock/definition/catalog/object.yml @@ -111,6 +111,9 @@ service: skip_modifier_screen: true item_options: - {} + ecom_uri: ecom_uri + ecom_image_uris: + - ecom_image_uris image_ids: - image_ids sort_name: sort_name @@ -119,6 +122,7 @@ service: channels: - channels is_archived: true + is_alcoholic: true type: ITEM id_mappings: - client_object_id: '#Cocoa' @@ -269,6 +273,9 @@ service: skip_modifier_screen: true item_options: - {} + ecom_uri: ecom_uri + ecom_image_uris: + - ecom_image_uris image_ids: - image_ids sort_name: sort_name @@ -277,6 +284,7 @@ service: channels: - channels is_archived: true + is_alcoholic: true type: ITEM related_objects: - id: id diff --git a/.mock/definition/invoices.yml b/.mock/definition/invoices.yml index e886e3827..969d63818 100644 --- a/.mock/definition/invoices.yml +++ b/.mock/definition/invoices.yml @@ -160,7 +160,8 @@ service: title: title description: description scheduled_at: scheduled_at - public_url: https://squareup.com/pay-invoice/h9sfsfTGTSnYEhISUDBhEQ + public_url: >- + https://squareup.com/pay-invoice/invtmp:5e22a2c2-47c1-46d6-b061-808764dfe2b9 next_payment_amount_money: amount: 3000 currency: USD @@ -508,7 +509,8 @@ service: title: title description: description scheduled_at: scheduled_at - public_url: https://squareup.com/pay-invoice/h9sfsfTGTSnYEhISUDBhEQ + public_url: >- + https://squareup.com/pay-invoice/invtmp:5e22a2c2-47c1-46d6-b061-808764dfe2b9 next_payment_amount_money: amount: 3000 currency: USD @@ -1148,7 +1150,7 @@ service: description: We appreciate your business! scheduled_at: '2030-01-13T10:00:00Z' public_url: >- - https://squareup.com/pay-invoice/inv:0-ChCHu2mZEabLeeHahQnXDjZQECY + https://squareup.com/pay-invoice/invtmp:5e22a2c2-47c1-46d6-b061-808764dfe2b9 next_payment_amount_money: amount: 1000000 currency: UNKNOWN_CURRENCY diff --git a/.mock/fern.config.json b/.mock/fern.config.json index 7ca1996f8..2414e8045 100644 --- a/.mock/fern.config.json +++ b/.mock/fern.config.json @@ -1,4 +1,4 @@ { "organization" : "square", - "version" : "0.57.11" + "version" : "0.57.17" } \ No newline at end of file diff --git a/.mock/openapi/openapi.json b/.mock/openapi/openapi.json index e98d67cb4..cbb5c9be8 100644 --- a/.mock/openapi/openapi.json +++ b/.mock/openapi/openapi.json @@ -146,7 +146,7 @@ "name": "Square-Version", "description": "Square Connect API versions", "schema": { - "default": "2025-03-19" + "default": "2025-04-16" } } ], @@ -1437,14 +1437,16 @@ "BatchDeleteCatalogObjectsRequest": { "type": "object", "x-release-status": "PUBLIC", + "required": [ + "object_ids" + ], "properties": { "object_ids": { "type": "array", "items": { "type": "string" }, - "description": "The IDs of the CatalogObjects to be deleted. When an object is deleted, other objects\nin the graph that depend on that object will be deleted as well (for example, deleting a\nCatalogItem will delete its CatalogItemVariation.", - "nullable": true + "description": "The IDs of the CatalogObjects to be deleted. When an object is deleted, other objects\nin the graph that depend on that object will be deleted as well (for example, deleting a\nCatalogItem will delete its CatalogItemVariation." } }, "example": { @@ -7841,6 +7843,21 @@ "description": "List of item options IDs for this item. Used to manage and group item\nvariations in a specified order.\n\nMaximum: 6 item options.", "nullable": true }, + "ecom_uri": { + "type": "string", + "description": "Deprecated; see go/ecomUriUseCases. A URI pointing to a published e-commerce product page for the Item.", + "x-release-status": "DEPRECATED", + "nullable": true + }, + "ecom_image_uris": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Deprecated; see go/ecomUriUseCases. A comma-separated list of encoded URIs pointing to a set of published e-commerce images for the Item.", + "x-release-status": "DEPRECATED", + "nullable": true + }, "image_ids": { "type": "array", "items": { @@ -7903,6 +7920,11 @@ "$ref": "#/components/schemas/CatalogObjectCategory", "description": "The item's reporting category.", "nullable": true + }, + "is_alcoholic": { + "type": "boolean", + "description": "Indicates whether this item is alcoholic (`true`) or not (`false`).", + "nullable": true } }, "example": { @@ -24011,7 +24033,7 @@ }, "public_url": { "type": "string", - "description": "The URL of the Square-hosted invoice page.\nAfter you publish the invoice using the `PublishInvoice` endpoint, Square hosts the invoice\npage and returns the page URL in the response.", + "description": "A temporary link to the Square-hosted payment page where the customer can pay the\ninvoice. If the link expires, customers can provide the email address or phone number\nassociated with the invoice and request a new link directly from the expired payment page. \n\nThis field is added after the invoice is published and reaches the scheduled date\n(if one is defined).", "readOnly": true }, "next_payment_amount_money": { @@ -24645,7 +24667,7 @@ }, { "name": "CANCELED", - "description": "The invoice is canceled. Square no longer requests payments from the customer.\nThe `public_url` page remains and is accessible, but it displays the invoice\nas canceled and does not accept payment." + "description": "The invoice is canceled. Square no longer requests payments from the customer.\nThe Square-hosted payment page is still accessible using the temporary `public_url`\nlink, but the invoice is shown as canceled and does not accept payment." }, { "name": "FAILED", @@ -24656,7 +24678,7 @@ "description": "A payment on the invoice was initiated but has not yet been processed.\n\nWhen in this state, invoices cannot be updated and other payments cannot be initiated." } ], - "description": "Indicates the status of an invoice.", + "description": "Indicates the status of an [invoice](entity:Invoice).", "x-release-status": "PUBLIC" }, "ItemVariationLocationOverrides": { @@ -27052,7 +27074,7 @@ "given_name": "Amelia", "phone_number": "1-212-555-4240" }, - "public_url": "https://squareup.com/pay-invoice/h9sfsfTGTSnYEhISUDBhEQ", + "public_url": "https://squareup.com/pay-invoice/invtmp:5e22a2c2-47c1-46d6-b061-808764dfe2b9", "sale_or_service_date": "2030-01-24", "status": "PARTIALLY_PAID", "store_payment_method_enabled": false, @@ -35081,7 +35103,7 @@ "properties": { "autocomplete": { "type": "boolean", - "description": "Indicates whether the `Payment` objects created from this `TerminalCheckout` are automatically\n`COMPLETED` or left in an `APPROVED` state for later modification.\n\nDefault: true", + "description": "Indicates whether the `Payment` objects created from this `TerminalCheckout` are\nautomatically `COMPLETED` or left in an `APPROVED` state for later modification.\n\nDefault: true", "nullable": true }, "delay_duration": { @@ -35097,7 +35119,6 @@ "delay_action": { "$ref": "#/components/schemas/PaymentOptionsDelayAction", "description": "The action to be applied to the `Payment` when the delay_duration has elapsed.\nThe action must be CANCEL or COMPLETE.\n\nThe action cannot be set to COMPLETE if an `order_id` is present on the TerminalCheckout.\n\nThis parameter can only be set for a delayed capture payment (`autocomplete=false`). For more\ninformation, see [Delayed Capture](https://developer.squareup.com/docs/payments-api/take-payments/card-payments/delayed-capture#time-threshold).\n\nDefault: CANCEL\nSee [DelayAction](#type-delayaction) for possible values", - "x-release-status": "BETA", "nullable": true } } @@ -35119,7 +35140,7 @@ } ], "description": "Describes the action to be applied to a delayed capture payment when the delay_duration\nhas elapsed.", - "x-release-status": "BETA" + "x-release-status": "PUBLIC" }, "PaymentRefund": { "type": "object", @@ -35818,7 +35839,7 @@ "given_name": "Amelia", "phone_number": "1-212-555-4240" }, - "public_url": "https://squareup.com/pay-invoice/inv:0-ChCHu2mZEabLeeHahQnXDjZQECY", + "public_url": "https://squareup.com/pay-invoice/invtmp:5e22a2c2-47c1-46d6-b061-808764dfe2b9", "sale_or_service_date": "2030-01-24", "scheduled_at": "2030-01-13T10:00:00Z", "status": "SCHEDULED", @@ -40485,7 +40506,7 @@ "given_name": "Amelia", "phone_number": "1-212-555-4240" }, - "public_url": "https://squareup.com/pay-invoice/h9sfsfTGTSnYEhISUDBhEQ", + "public_url": "https://squareup.com/pay-invoice/invtmp:5e22a2c2-47c1-46d6-b061-808764dfe2b9", "sale_or_service_date": "2030-01-24", "status": "PARTIALLY_PAID", "store_payment_method_enabled": false, @@ -44512,7 +44533,7 @@ }, "payment_options": { "$ref": "#/components/schemas/PaymentOptions", - "description": "Payment-specific options for the checkout request. Supported only in the US.", + "description": "Payment-specific options for the checkout request.", "nullable": true }, "device_options": { @@ -44572,7 +44593,6 @@ "team_member_id": { "type": "string", "description": "An optional ID of the team member associated with creating the checkout.", - "x-release-status": "BETA", "nullable": true }, "customer_id": { @@ -44582,20 +44602,18 @@ }, "app_fee_money": { "$ref": "#/components/schemas/Money", - "description": "The amount the developer is taking as a fee for facilitating the payment on behalf\nof the seller.\n\nThe amount cannot be more than 90% of the total amount of the payment.\n\nThe amount must be specified in the smallest denomination of the applicable currency (for example, US dollar amounts are specified in cents). For more information, see [Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts).\n\nThe fee currency code must match the currency associated with the seller that is accepting the payment. The application must be from a developer account in the same country and using the same currency code as the seller.\n\nFor more information about the application fee scenario, see [Take Payments and Collect Fees](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees).\n\nTo set this field, PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS OAuth permission is required. For more information, see [Permissions](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees#permissions).\n\nSupported only in the US.", + "description": "The amount the developer is taking as a fee for facilitating the payment on behalf\nof the seller.\n\nThe amount cannot be more than 90% of the total amount of the payment.\n\nThe amount must be specified in the smallest denomination of the applicable currency (for example, US dollar amounts are specified in cents). For more information, see [Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts).\n\nThe fee currency code must match the currency associated with the seller that is accepting the payment. The application must be from a developer account in the same country and using the same currency code as the seller.\n\nFor more information about the application fee scenario, see [Take Payments and Collect Fees](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees).\n\nTo set this field, PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS OAuth permission is required. For more information, see [Permissions](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees#permissions).", "nullable": true }, "statement_description_identifier": { "type": "string", - "description": "Optional additional payment information to include on the customer's card statement as\npart of the statement description. This can be, for example, an invoice number, ticket number,\nor short description that uniquely identifies the purchase. Supported only in the US.", + "description": "Optional additional payment information to include on the customer's card statement as\npart of the statement description. This can be, for example, an invoice number, ticket number,\nor short description that uniquely identifies the purchase.", "maxLength": 20, - "x-release-status": "BETA", "nullable": true }, "tip_money": { "$ref": "#/components/schemas/Money", - "description": "The amount designated as a tip, in addition to `amount_money`. This may only be set for a\ncheckout that has tipping disabled (`tip_settings.allow_tipping` is `false`). Supported only in\nthe US.", - "x-release-status": "BETA", + "description": "The amount designated as a tip, in addition to `amount_money`. This may only be set for a\ncheckout that has tipping disabled (`tip_settings.allow_tipping` is `false`).", "nullable": true } } @@ -64759,7 +64777,7 @@ "name": "version", "optional": true, "env": "VERSION", - "type": "literal\u003c\"2025-03-19\"\u003e" + "type": "literal\u003c\"2025-04-16\"\u003e" } ] } \ No newline at end of file diff --git a/package.json b/package.json index 24d322289..faf63f732 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "square", - "version": "42.0.1", + "version": "42.1.0", "private": false, "repository": "https://github.com/square/square-nodejs-sdk", "license": "MIT", diff --git a/src/Client.ts b/src/Client.ts index a7602a769..00c309b8d 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -46,7 +46,7 @@ export declare namespace SquareClient { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -58,7 +58,7 @@ export declare namespace SquareClient { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } diff --git a/src/api/resources/applePay/client/Client.ts b/src/api/resources/applePay/client/Client.ts index 55475b431..584d7967d 100644 --- a/src/api/resources/applePay/client/Client.ts +++ b/src/api/resources/applePay/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace ApplePay { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace ApplePay { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -75,11 +75,11 @@ export class ApplePay { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/bankAccounts/client/Client.ts b/src/api/resources/bankAccounts/client/Client.ts index b9fb54dd1..ca75df367 100644 --- a/src/api/resources/bankAccounts/client/Client.ts +++ b/src/api/resources/bankAccounts/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace BankAccounts { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace BankAccounts { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -72,11 +72,11 @@ export class BankAccounts { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -153,11 +153,11 @@ export class BankAccounts { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -229,11 +229,11 @@ export class BankAccounts { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/bookings/client/Client.ts b/src/api/resources/bookings/client/Client.ts index 2ff8bf57a..8e6a965a7 100644 --- a/src/api/resources/bookings/client/Client.ts +++ b/src/api/resources/bookings/client/Client.ts @@ -20,7 +20,7 @@ export declare namespace Bookings { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -32,7 +32,7 @@ export declare namespace Bookings { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -112,11 +112,11 @@ export class Bookings { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -205,11 +205,11 @@ export class Bookings { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -288,11 +288,11 @@ export class Bookings { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -369,11 +369,11 @@ export class Bookings { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -441,11 +441,11 @@ export class Bookings { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -516,11 +516,11 @@ export class Bookings { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -590,11 +590,11 @@ export class Bookings { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -672,11 +672,11 @@ export class Bookings { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -752,11 +752,11 @@ export class Bookings { method: "PUT", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -835,11 +835,11 @@ export class Bookings { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/bookings/resources/customAttributeDefinitions/client/Client.ts b/src/api/resources/bookings/resources/customAttributeDefinitions/client/Client.ts index 071e88964..f8b4e0a59 100644 --- a/src/api/resources/bookings/resources/customAttributeDefinitions/client/Client.ts +++ b/src/api/resources/bookings/resources/customAttributeDefinitions/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace CustomAttributeDefinitions { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace CustomAttributeDefinitions { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -74,11 +74,11 @@ export class CustomAttributeDefinitions { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -165,11 +165,11 @@ export class CustomAttributeDefinitions { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -252,11 +252,11 @@ export class CustomAttributeDefinitions { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -335,11 +335,11 @@ export class CustomAttributeDefinitions { method: "PUT", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -420,11 +420,11 @@ export class CustomAttributeDefinitions { method: "DELETE", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/bookings/resources/customAttributes/client/Client.ts b/src/api/resources/bookings/resources/customAttributes/client/Client.ts index b9de9a40d..5a580e8af 100644 --- a/src/api/resources/bookings/resources/customAttributes/client/Client.ts +++ b/src/api/resources/bookings/resources/customAttributes/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace CustomAttributes { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace CustomAttributes { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -73,11 +73,11 @@ export class CustomAttributes { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -162,11 +162,11 @@ export class CustomAttributes { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -257,11 +257,11 @@ export class CustomAttributes { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -353,11 +353,11 @@ export class CustomAttributes { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -437,11 +437,11 @@ export class CustomAttributes { method: "PUT", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -523,11 +523,11 @@ export class CustomAttributes { method: "DELETE", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/bookings/resources/locationProfiles/client/Client.ts b/src/api/resources/bookings/resources/locationProfiles/client/Client.ts index ff363a21d..389fcbd63 100644 --- a/src/api/resources/bookings/resources/locationProfiles/client/Client.ts +++ b/src/api/resources/bookings/resources/locationProfiles/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace LocationProfiles { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace LocationProfiles { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -71,11 +71,11 @@ export class LocationProfiles { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/bookings/resources/teamMemberProfiles/client/Client.ts b/src/api/resources/bookings/resources/teamMemberProfiles/client/Client.ts index ddde06d57..bca1f0f0a 100644 --- a/src/api/resources/bookings/resources/teamMemberProfiles/client/Client.ts +++ b/src/api/resources/bookings/resources/teamMemberProfiles/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace TeamMemberProfiles { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace TeamMemberProfiles { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -77,11 +77,11 @@ export class TeamMemberProfiles { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -160,11 +160,11 @@ export class TeamMemberProfiles { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/cards/client/Client.ts b/src/api/resources/cards/client/Client.ts index e266c9eba..90f40c971 100644 --- a/src/api/resources/cards/client/Client.ts +++ b/src/api/resources/cards/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Cards { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace Cards { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -82,11 +82,11 @@ export class Cards { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -176,11 +176,11 @@ export class Cards { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -253,11 +253,11 @@ export class Cards { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -327,11 +327,11 @@ export class Cards { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/cashDrawers/client/Client.ts b/src/api/resources/cashDrawers/client/Client.ts index 81b51dc3d..e7ed37072 100644 --- a/src/api/resources/cashDrawers/client/Client.ts +++ b/src/api/resources/cashDrawers/client/Client.ts @@ -13,7 +13,7 @@ export declare namespace CashDrawers { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -25,7 +25,7 @@ export declare namespace CashDrawers { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } diff --git a/src/api/resources/cashDrawers/resources/shifts/client/Client.ts b/src/api/resources/cashDrawers/resources/shifts/client/Client.ts index 41acfa41c..df50fcdc7 100644 --- a/src/api/resources/cashDrawers/resources/shifts/client/Client.ts +++ b/src/api/resources/cashDrawers/resources/shifts/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Shifts { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace Shifts { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -87,11 +87,11 @@ export class Shifts { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -172,11 +172,11 @@ export class Shifts { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -260,11 +260,11 @@ export class Shifts { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/catalog/client/Client.ts b/src/api/resources/catalog/client/Client.ts index cc28c263d..28141cac6 100644 --- a/src/api/resources/catalog/client/Client.ts +++ b/src/api/resources/catalog/client/Client.ts @@ -18,7 +18,7 @@ export declare namespace Catalog { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -30,7 +30,7 @@ export declare namespace Catalog { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -75,7 +75,7 @@ export class Catalog { * }) */ public async batchDelete( - request: Square.BatchDeleteCatalogObjectsRequest = {}, + request: Square.BatchDeleteCatalogObjectsRequest, requestOptions?: Catalog.RequestOptions, ): Promise { const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -88,11 +88,11 @@ export class Catalog { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -170,11 +170,11 @@ export class Catalog { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -273,11 +273,11 @@ export class Catalog { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -344,11 +344,11 @@ export class Catalog { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -433,11 +433,11 @@ export class Catalog { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -529,11 +529,11 @@ export class Catalog { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -635,11 +635,11 @@ export class Catalog { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -717,11 +717,11 @@ export class Catalog { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -799,11 +799,11 @@ export class Catalog { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/catalog/client/requests/BatchDeleteCatalogObjectsRequest.ts b/src/api/resources/catalog/client/requests/BatchDeleteCatalogObjectsRequest.ts index 1ab61ebc3..5928375f6 100644 --- a/src/api/resources/catalog/client/requests/BatchDeleteCatalogObjectsRequest.ts +++ b/src/api/resources/catalog/client/requests/BatchDeleteCatalogObjectsRequest.ts @@ -14,5 +14,5 @@ export interface BatchDeleteCatalogObjectsRequest { * in the graph that depend on that object will be deleted as well (for example, deleting a * CatalogItem will delete its CatalogItemVariation. */ - objectIds?: string[] | null; + objectIds: string[]; } diff --git a/src/api/resources/catalog/resources/images/client/Client.ts b/src/api/resources/catalog/resources/images/client/Client.ts index d4a46b647..c7af92806 100644 --- a/src/api/resources/catalog/resources/images/client/Client.ts +++ b/src/api/resources/catalog/resources/images/client/Client.ts @@ -17,7 +17,7 @@ export declare namespace Images { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -29,7 +29,7 @@ export declare namespace Images { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -84,11 +84,11 @@ export class Images { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ..._maybeEncodedRequest.headers, @@ -179,11 +179,11 @@ export class Images { method: "PUT", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ..._maybeEncodedRequest.headers, diff --git a/src/api/resources/catalog/resources/object/client/Client.ts b/src/api/resources/catalog/resources/object/client/Client.ts index 27f462556..7c558ebe0 100644 --- a/src/api/resources/catalog/resources/object/client/Client.ts +++ b/src/api/resources/catalog/resources/object/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Object_ { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace Object_ { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -70,11 +70,11 @@ export class Object_ { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -166,11 +166,11 @@ export class Object_ { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -251,11 +251,11 @@ export class Object_ { method: "DELETE", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/checkout/client/Client.ts b/src/api/resources/checkout/client/Client.ts index 504400849..7adbf7997 100644 --- a/src/api/resources/checkout/client/Client.ts +++ b/src/api/resources/checkout/client/Client.ts @@ -17,7 +17,7 @@ export declare namespace Checkout { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -29,7 +29,7 @@ export declare namespace Checkout { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -70,11 +70,11 @@ export class Checkout { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -146,11 +146,11 @@ export class Checkout { method: "PUT", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -220,11 +220,11 @@ export class Checkout { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -294,11 +294,11 @@ export class Checkout { method: "PUT", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/checkout/resources/paymentLinks/client/Client.ts b/src/api/resources/checkout/resources/paymentLinks/client/Client.ts index 0e22d44aa..372ed4d26 100644 --- a/src/api/resources/checkout/resources/paymentLinks/client/Client.ts +++ b/src/api/resources/checkout/resources/paymentLinks/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace PaymentLinks { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace PaymentLinks { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -71,11 +71,11 @@ export class PaymentLinks { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -161,11 +161,11 @@ export class PaymentLinks { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -240,11 +240,11 @@ export class PaymentLinks { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -323,11 +323,11 @@ export class PaymentLinks { method: "PUT", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -402,11 +402,11 @@ export class PaymentLinks { method: "DELETE", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/customers/client/Client.ts b/src/api/resources/customers/client/Client.ts index e61447349..7458ff364 100644 --- a/src/api/resources/customers/client/Client.ts +++ b/src/api/resources/customers/client/Client.ts @@ -21,7 +21,7 @@ export declare namespace Customers { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -33,7 +33,7 @@ export declare namespace Customers { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -119,11 +119,11 @@ export class Customers { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -221,11 +221,11 @@ export class Customers { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -340,11 +340,11 @@ export class Customers { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -418,11 +418,11 @@ export class Customers { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -496,11 +496,11 @@ export class Customers { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -585,11 +585,11 @@ export class Customers { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -691,11 +691,11 @@ export class Customers { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -768,11 +768,11 @@ export class Customers { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -847,11 +847,11 @@ export class Customers { method: "PUT", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -931,11 +931,11 @@ export class Customers { method: "DELETE", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/customers/resources/cards/client/Client.ts b/src/api/resources/customers/resources/cards/client/Client.ts index 1ebfbcace..dc50704d7 100644 --- a/src/api/resources/customers/resources/cards/client/Client.ts +++ b/src/api/resources/customers/resources/cards/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Cards { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace Cards { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -77,11 +77,11 @@ export class Cards { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -157,11 +157,11 @@ export class Cards { method: "DELETE", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/customers/resources/customAttributeDefinitions/client/Client.ts b/src/api/resources/customers/resources/customAttributeDefinitions/client/Client.ts index 29cd227bc..bf9e4ae90 100644 --- a/src/api/resources/customers/resources/customAttributeDefinitions/client/Client.ts +++ b/src/api/resources/customers/resources/customAttributeDefinitions/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace CustomAttributeDefinitions { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace CustomAttributeDefinitions { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -76,11 +76,11 @@ export class CustomAttributeDefinitions { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -179,11 +179,11 @@ export class CustomAttributeDefinitions { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -267,11 +267,11 @@ export class CustomAttributeDefinitions { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -353,11 +353,11 @@ export class CustomAttributeDefinitions { method: "PUT", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -437,11 +437,11 @@ export class CustomAttributeDefinitions { method: "DELETE", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -560,11 +560,11 @@ export class CustomAttributeDefinitions { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/customers/resources/customAttributes/client/Client.ts b/src/api/resources/customers/resources/customAttributes/client/Client.ts index 8ac48b438..fd345d4a7 100644 --- a/src/api/resources/customers/resources/customAttributes/client/Client.ts +++ b/src/api/resources/customers/resources/customAttributes/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace CustomAttributes { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace CustomAttributes { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -83,11 +83,11 @@ export class CustomAttributes { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -183,11 +183,11 @@ export class CustomAttributes { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -271,11 +271,11 @@ export class CustomAttributes { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -355,11 +355,11 @@ export class CustomAttributes { method: "DELETE", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/customers/resources/groups/client/Client.ts b/src/api/resources/customers/resources/groups/client/Client.ts index 6d5b953cf..b34421d92 100644 --- a/src/api/resources/customers/resources/groups/client/Client.ts +++ b/src/api/resources/customers/resources/groups/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Groups { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace Groups { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -71,11 +71,11 @@ export class Groups { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -155,11 +155,11 @@ export class Groups { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -232,11 +232,11 @@ export class Groups { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -310,11 +310,11 @@ export class Groups { method: "PUT", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -389,11 +389,11 @@ export class Groups { method: "DELETE", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -468,11 +468,11 @@ export class Groups { method: "PUT", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -547,11 +547,11 @@ export class Groups { method: "DELETE", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/customers/resources/segments/client/Client.ts b/src/api/resources/customers/resources/segments/client/Client.ts index 8cd8dde72..d7b28ff87 100644 --- a/src/api/resources/customers/resources/segments/client/Client.ts +++ b/src/api/resources/customers/resources/segments/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Segments { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace Segments { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -71,11 +71,11 @@ export class Segments { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -152,11 +152,11 @@ export class Segments { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/devices/client/Client.ts b/src/api/resources/devices/client/Client.ts index 6d3011bc6..6baf620c3 100644 --- a/src/api/resources/devices/client/Client.ts +++ b/src/api/resources/devices/client/Client.ts @@ -17,7 +17,7 @@ export declare namespace Devices { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -29,7 +29,7 @@ export declare namespace Devices { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -86,11 +86,11 @@ export class Devices { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -167,11 +167,11 @@ export class Devices { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/devices/resources/codes/client/Client.ts b/src/api/resources/devices/resources/codes/client/Client.ts index 390202aff..3c2eceff7 100644 --- a/src/api/resources/devices/resources/codes/client/Client.ts +++ b/src/api/resources/devices/resources/codes/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Codes { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace Codes { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -81,11 +81,11 @@ export class Codes { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -167,11 +167,11 @@ export class Codes { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -244,11 +244,11 @@ export class Codes { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/disputes/client/Client.ts b/src/api/resources/disputes/client/Client.ts index d06e4ab1c..77e01fc0f 100644 --- a/src/api/resources/disputes/client/Client.ts +++ b/src/api/resources/disputes/client/Client.ts @@ -18,7 +18,7 @@ export declare namespace Disputes { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -30,7 +30,7 @@ export declare namespace Disputes { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -83,11 +83,11 @@ export class Disputes { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -164,11 +164,11 @@ export class Disputes { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -241,11 +241,11 @@ export class Disputes { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -334,11 +334,11 @@ export class Disputes { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ..._maybeEncodedRequest.headers, @@ -414,11 +414,11 @@ export class Disputes { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -499,11 +499,11 @@ export class Disputes { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/disputes/resources/evidence/client/Client.ts b/src/api/resources/disputes/resources/evidence/client/Client.ts index 6f84a8fa5..4d29cb6ab 100644 --- a/src/api/resources/disputes/resources/evidence/client/Client.ts +++ b/src/api/resources/disputes/resources/evidence/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Evidence { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace Evidence { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -70,11 +70,11 @@ export class Evidence { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -156,11 +156,11 @@ export class Evidence { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -233,11 +233,11 @@ export class Evidence { method: "DELETE", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/employees/client/Client.ts b/src/api/resources/employees/client/Client.ts index 669d5466a..0f584a839 100644 --- a/src/api/resources/employees/client/Client.ts +++ b/src/api/resources/employees/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Employees { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace Employees { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -78,11 +78,11 @@ export class Employees { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -159,11 +159,11 @@ export class Employees { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/events/client/Client.ts b/src/api/resources/events/client/Client.ts index ded6852ca..8085c68f0 100644 --- a/src/api/resources/events/client/Client.ts +++ b/src/api/resources/events/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Events { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace Events { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -60,11 +60,11 @@ export class Events { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -132,11 +132,11 @@ export class Events { method: "PUT", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -198,11 +198,11 @@ export class Events { method: "PUT", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -274,11 +274,11 @@ export class Events { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/giftCards/client/Client.ts b/src/api/resources/giftCards/client/Client.ts index 98d5f6e55..7111486e1 100644 --- a/src/api/resources/giftCards/client/Client.ts +++ b/src/api/resources/giftCards/client/Client.ts @@ -17,7 +17,7 @@ export declare namespace GiftCards { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -29,7 +29,7 @@ export declare namespace GiftCards { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -86,11 +86,11 @@ export class GiftCards { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -174,11 +174,11 @@ export class GiftCards { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -250,11 +250,11 @@ export class GiftCards { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -326,11 +326,11 @@ export class GiftCards { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -404,11 +404,11 @@ export class GiftCards { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -484,11 +484,11 @@ export class GiftCards { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -563,11 +563,11 @@ export class GiftCards { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/giftCards/resources/activities/client/Client.ts b/src/api/resources/giftCards/resources/activities/client/Client.ts index b4046cb81..d0210fe2d 100644 --- a/src/api/resources/giftCards/resources/activities/client/Client.ts +++ b/src/api/resources/giftCards/resources/activities/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Activities { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace Activities { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -92,11 +92,11 @@ export class Activities { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -182,11 +182,11 @@ export class Activities { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/inventory/client/Client.ts b/src/api/resources/inventory/client/Client.ts index 5b770418d..77d376fdc 100644 --- a/src/api/resources/inventory/client/Client.ts +++ b/src/api/resources/inventory/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Inventory { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace Inventory { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -64,11 +64,11 @@ export class Inventory { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -140,11 +140,11 @@ export class Inventory { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -228,11 +228,11 @@ export class Inventory { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -310,11 +310,11 @@ export class Inventory { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -391,11 +391,11 @@ export class Inventory { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -486,11 +486,11 @@ export class Inventory { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -579,11 +579,11 @@ export class Inventory { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -679,11 +679,11 @@ export class Inventory { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -766,11 +766,11 @@ export class Inventory { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -842,11 +842,11 @@ export class Inventory { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -918,11 +918,11 @@ export class Inventory { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -1004,11 +1004,11 @@ export class Inventory { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -1107,11 +1107,11 @@ export class Inventory { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/invoices/client/Client.ts b/src/api/resources/invoices/client/Client.ts index 46a08f18a..2e5cc030a 100644 --- a/src/api/resources/invoices/client/Client.ts +++ b/src/api/resources/invoices/client/Client.ts @@ -17,7 +17,7 @@ export declare namespace Invoices { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -29,7 +29,7 @@ export declare namespace Invoices { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -75,11 +75,11 @@ export class Invoices { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -199,11 +199,11 @@ export class Invoices { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -291,11 +291,11 @@ export class Invoices { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -368,11 +368,11 @@ export class Invoices { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -452,11 +452,11 @@ export class Invoices { method: "PUT", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -536,11 +536,11 @@ export class Invoices { method: "DELETE", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -629,11 +629,11 @@ export class Invoices { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ..._maybeEncodedRequest.headers, @@ -708,11 +708,11 @@ export class Invoices { method: "DELETE", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -787,11 +787,11 @@ export class Invoices { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -881,11 +881,11 @@ export class Invoices { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/labor/client/Client.ts b/src/api/resources/labor/client/Client.ts index f127eeb11..eeb769149 100644 --- a/src/api/resources/labor/client/Client.ts +++ b/src/api/resources/labor/client/Client.ts @@ -17,7 +17,7 @@ export declare namespace Labor { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -29,7 +29,7 @@ export declare namespace Labor { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } diff --git a/src/api/resources/labor/resources/breakTypes/client/Client.ts b/src/api/resources/labor/resources/breakTypes/client/Client.ts index 29355871d..47716869b 100644 --- a/src/api/resources/labor/resources/breakTypes/client/Client.ts +++ b/src/api/resources/labor/resources/breakTypes/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace BreakTypes { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace BreakTypes { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -72,11 +72,11 @@ export class BreakTypes { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -171,11 +171,11 @@ export class BreakTypes { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -248,11 +248,11 @@ export class BreakTypes { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -328,11 +328,11 @@ export class BreakTypes { method: "PUT", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -407,11 +407,11 @@ export class BreakTypes { method: "DELETE", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/labor/resources/employeeWages/client/Client.ts b/src/api/resources/labor/resources/employeeWages/client/Client.ts index 1a7947f79..dff45e37b 100644 --- a/src/api/resources/labor/resources/employeeWages/client/Client.ts +++ b/src/api/resources/labor/resources/employeeWages/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace EmployeeWages { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace EmployeeWages { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -74,11 +74,11 @@ export class EmployeeWages { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -155,11 +155,11 @@ export class EmployeeWages { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/labor/resources/shifts/client/Client.ts b/src/api/resources/labor/resources/shifts/client/Client.ts index c174e8ac8..bee479c4d 100644 --- a/src/api/resources/labor/resources/shifts/client/Client.ts +++ b/src/api/resources/labor/resources/shifts/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Shifts { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace Shifts { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -105,11 +105,11 @@ export class Shifts { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -206,11 +206,11 @@ export class Shifts { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -283,11 +283,11 @@ export class Shifts { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -390,11 +390,11 @@ export class Shifts { method: "PUT", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -467,11 +467,11 @@ export class Shifts { method: "DELETE", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/labor/resources/teamMemberWages/client/Client.ts b/src/api/resources/labor/resources/teamMemberWages/client/Client.ts index ac94a45de..7379cf297 100644 --- a/src/api/resources/labor/resources/teamMemberWages/client/Client.ts +++ b/src/api/resources/labor/resources/teamMemberWages/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace TeamMemberWages { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace TeamMemberWages { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -74,11 +74,11 @@ export class TeamMemberWages { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -157,11 +157,11 @@ export class TeamMemberWages { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/labor/resources/workweekConfigs/client/Client.ts b/src/api/resources/labor/resources/workweekConfigs/client/Client.ts index 99c64ad6f..82a8e56b7 100644 --- a/src/api/resources/labor/resources/workweekConfigs/client/Client.ts +++ b/src/api/resources/labor/resources/workweekConfigs/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace WorkweekConfigs { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace WorkweekConfigs { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -71,11 +71,11 @@ export class WorkweekConfigs { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -159,11 +159,11 @@ export class WorkweekConfigs { method: "PUT", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/locations/client/Client.ts b/src/api/resources/locations/client/Client.ts index cdbee4689..fc3a45529 100644 --- a/src/api/resources/locations/client/Client.ts +++ b/src/api/resources/locations/client/Client.ts @@ -19,7 +19,7 @@ export declare namespace Locations { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -31,7 +31,7 @@ export declare namespace Locations { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -76,11 +76,11 @@ export class Locations { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -163,11 +163,11 @@ export class Locations { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -241,11 +241,11 @@ export class Locations { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -332,11 +332,11 @@ export class Locations { method: "PUT", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -489,11 +489,11 @@ export class Locations { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/locations/resources/customAttributeDefinitions/client/Client.ts b/src/api/resources/locations/resources/customAttributeDefinitions/client/Client.ts index 8e2a5aaf9..4b6a7443d 100644 --- a/src/api/resources/locations/resources/customAttributeDefinitions/client/Client.ts +++ b/src/api/resources/locations/resources/customAttributeDefinitions/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace CustomAttributeDefinitions { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace CustomAttributeDefinitions { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -80,11 +80,11 @@ export class CustomAttributeDefinitions { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -179,11 +179,11 @@ export class CustomAttributeDefinitions { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -265,11 +265,11 @@ export class CustomAttributeDefinitions { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -348,11 +348,11 @@ export class CustomAttributeDefinitions { method: "PUT", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -430,11 +430,11 @@ export class CustomAttributeDefinitions { method: "DELETE", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/locations/resources/customAttributes/client/Client.ts b/src/api/resources/locations/resources/customAttributes/client/Client.ts index 4422e3640..dfb806ca7 100644 --- a/src/api/resources/locations/resources/customAttributes/client/Client.ts +++ b/src/api/resources/locations/resources/customAttributes/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace CustomAttributes { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace CustomAttributes { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -74,11 +74,11 @@ export class CustomAttributes { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -183,11 +183,11 @@ export class CustomAttributes { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -286,11 +286,11 @@ export class CustomAttributes { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -383,11 +383,11 @@ export class CustomAttributes { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -468,11 +468,11 @@ export class CustomAttributes { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -550,11 +550,11 @@ export class CustomAttributes { method: "DELETE", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/locations/resources/transactions/client/Client.ts b/src/api/resources/locations/resources/transactions/client/Client.ts index 517eaf1d5..13cd675bf 100644 --- a/src/api/resources/locations/resources/transactions/client/Client.ts +++ b/src/api/resources/locations/resources/transactions/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Transactions { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace Transactions { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -88,11 +88,11 @@ export class Transactions { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -165,11 +165,11 @@ export class Transactions { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -246,11 +246,11 @@ export class Transactions { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -327,11 +327,11 @@ export class Transactions { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/loyalty/client/Client.ts b/src/api/resources/loyalty/client/Client.ts index 58180acf8..a29ec9027 100644 --- a/src/api/resources/loyalty/client/Client.ts +++ b/src/api/resources/loyalty/client/Client.ts @@ -19,7 +19,7 @@ export declare namespace Loyalty { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -31,7 +31,7 @@ export declare namespace Loyalty { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -95,11 +95,11 @@ export class Loyalty { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/loyalty/resources/accounts/client/Client.ts b/src/api/resources/loyalty/resources/accounts/client/Client.ts index 042ec3037..f5e8d6ea6 100644 --- a/src/api/resources/loyalty/resources/accounts/client/Client.ts +++ b/src/api/resources/loyalty/resources/accounts/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Accounts { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace Accounts { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -68,11 +68,11 @@ export class Accounts { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -153,11 +153,11 @@ export class Accounts { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -230,11 +230,11 @@ export class Accounts { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -323,11 +323,11 @@ export class Accounts { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -411,11 +411,11 @@ export class Accounts { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/loyalty/resources/programs/client/Client.ts b/src/api/resources/loyalty/resources/programs/client/Client.ts index 81f01f590..53e99d9bc 100644 --- a/src/api/resources/loyalty/resources/programs/client/Client.ts +++ b/src/api/resources/loyalty/resources/programs/client/Client.ts @@ -17,7 +17,7 @@ export declare namespace Programs { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -29,7 +29,7 @@ export declare namespace Programs { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -67,11 +67,11 @@ export class Programs { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -142,11 +142,11 @@ export class Programs { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -233,11 +233,11 @@ export class Programs { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/loyalty/resources/programs/resources/promotions/client/Client.ts b/src/api/resources/loyalty/resources/programs/resources/promotions/client/Client.ts index 047eb956f..3268b7621 100644 --- a/src/api/resources/loyalty/resources/programs/resources/promotions/client/Client.ts +++ b/src/api/resources/loyalty/resources/programs/resources/promotions/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Promotions { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace Promotions { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -80,11 +80,11 @@ export class Promotions { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -190,11 +190,11 @@ export class Promotions { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -270,11 +270,11 @@ export class Promotions { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -351,11 +351,11 @@ export class Promotions { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/loyalty/resources/rewards/client/Client.ts b/src/api/resources/loyalty/resources/rewards/client/Client.ts index 89c16ac62..f64e4f14f 100644 --- a/src/api/resources/loyalty/resources/rewards/client/Client.ts +++ b/src/api/resources/loyalty/resources/rewards/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Rewards { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace Rewards { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -74,11 +74,11 @@ export class Rewards { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -159,11 +159,11 @@ export class Rewards { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -236,11 +236,11 @@ export class Rewards { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -319,11 +319,11 @@ export class Rewards { method: "DELETE", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -406,11 +406,11 @@ export class Rewards { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/merchants/client/Client.ts b/src/api/resources/merchants/client/Client.ts index 1307abdf7..5ec6b5739 100644 --- a/src/api/resources/merchants/client/Client.ts +++ b/src/api/resources/merchants/client/Client.ts @@ -18,7 +18,7 @@ export declare namespace Merchants { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -30,7 +30,7 @@ export declare namespace Merchants { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -88,11 +88,11 @@ export class Merchants { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -169,11 +169,11 @@ export class Merchants { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/merchants/resources/customAttributeDefinitions/client/Client.ts b/src/api/resources/merchants/resources/customAttributeDefinitions/client/Client.ts index 9992dbfe6..fbf05776b 100644 --- a/src/api/resources/merchants/resources/customAttributeDefinitions/client/Client.ts +++ b/src/api/resources/merchants/resources/customAttributeDefinitions/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace CustomAttributeDefinitions { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace CustomAttributeDefinitions { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -80,11 +80,11 @@ export class CustomAttributeDefinitions { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -179,11 +179,11 @@ export class CustomAttributeDefinitions { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -265,11 +265,11 @@ export class CustomAttributeDefinitions { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -348,11 +348,11 @@ export class CustomAttributeDefinitions { method: "PUT", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -430,11 +430,11 @@ export class CustomAttributeDefinitions { method: "DELETE", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/merchants/resources/customAttributes/client/Client.ts b/src/api/resources/merchants/resources/customAttributes/client/Client.ts index 2f3e476be..5f6418ecd 100644 --- a/src/api/resources/merchants/resources/customAttributes/client/Client.ts +++ b/src/api/resources/merchants/resources/customAttributes/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace CustomAttributes { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace CustomAttributes { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -71,11 +71,11 @@ export class CustomAttributes { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -173,11 +173,11 @@ export class CustomAttributes { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -276,11 +276,11 @@ export class CustomAttributes { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -373,11 +373,11 @@ export class CustomAttributes { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -458,11 +458,11 @@ export class CustomAttributes { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -540,11 +540,11 @@ export class CustomAttributes { method: "DELETE", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/mobile/client/Client.ts b/src/api/resources/mobile/client/Client.ts index 544f4513b..644ed1071 100644 --- a/src/api/resources/mobile/client/Client.ts +++ b/src/api/resources/mobile/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Mobile { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace Mobile { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -76,11 +76,11 @@ export class Mobile { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/oAuth/client/Client.ts b/src/api/resources/oAuth/client/Client.ts index c80888920..5a03557cb 100644 --- a/src/api/resources/oAuth/client/Client.ts +++ b/src/api/resources/oAuth/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace OAuth { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace OAuth { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -76,11 +76,11 @@ export class OAuth { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -175,11 +175,11 @@ export class OAuth { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -260,11 +260,11 @@ export class OAuth { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -324,11 +324,11 @@ export class OAuth { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/orders/client/Client.ts b/src/api/resources/orders/client/Client.ts index bc709ee61..130f7ac7e 100644 --- a/src/api/resources/orders/client/Client.ts +++ b/src/api/resources/orders/client/Client.ts @@ -18,7 +18,7 @@ export declare namespace Orders { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -30,7 +30,7 @@ export declare namespace Orders { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -126,11 +126,11 @@ export class Orders { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -205,11 +205,11 @@ export class Orders { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -303,11 +303,11 @@ export class Orders { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -382,11 +382,11 @@ export class Orders { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -493,11 +493,11 @@ export class Orders { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -570,11 +570,11 @@ export class Orders { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -672,11 +672,11 @@ export class Orders { method: "PUT", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -764,11 +764,11 @@ export class Orders { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/orders/resources/customAttributeDefinitions/client/Client.ts b/src/api/resources/orders/resources/customAttributeDefinitions/client/Client.ts index d4bf85834..e34aa3094 100644 --- a/src/api/resources/orders/resources/customAttributeDefinitions/client/Client.ts +++ b/src/api/resources/orders/resources/customAttributeDefinitions/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace CustomAttributeDefinitions { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace CustomAttributeDefinitions { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -82,11 +82,11 @@ export class CustomAttributeDefinitions { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -177,11 +177,11 @@ export class CustomAttributeDefinitions { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -265,11 +265,11 @@ export class CustomAttributeDefinitions { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -349,11 +349,11 @@ export class CustomAttributeDefinitions { method: "PUT", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -430,11 +430,11 @@ export class CustomAttributeDefinitions { method: "DELETE", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/orders/resources/customAttributes/client/Client.ts b/src/api/resources/orders/resources/customAttributes/client/Client.ts index 6960870a1..2849d724d 100644 --- a/src/api/resources/orders/resources/customAttributes/client/Client.ts +++ b/src/api/resources/orders/resources/customAttributes/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace CustomAttributes { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace CustomAttributes { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -84,11 +84,11 @@ export class CustomAttributes { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -192,11 +192,11 @@ export class CustomAttributes { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -297,11 +297,11 @@ export class CustomAttributes { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -397,11 +397,11 @@ export class CustomAttributes { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -487,11 +487,11 @@ export class CustomAttributes { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -571,11 +571,11 @@ export class CustomAttributes { method: "DELETE", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/payments/client/Client.ts b/src/api/resources/payments/client/Client.ts index 4f0077a89..59ac8659c 100644 --- a/src/api/resources/payments/client/Client.ts +++ b/src/api/resources/payments/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Payments { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace Payments { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -132,11 +132,11 @@ export class Payments { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -233,11 +233,11 @@ export class Payments { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -319,11 +319,11 @@ export class Payments { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -396,11 +396,11 @@ export class Payments { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -482,11 +482,11 @@ export class Payments { method: "PUT", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -560,11 +560,11 @@ export class Payments { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -638,11 +638,11 @@ export class Payments { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/payouts/client/Client.ts b/src/api/resources/payouts/client/Client.ts index 6214fd672..184428c78 100644 --- a/src/api/resources/payouts/client/Client.ts +++ b/src/api/resources/payouts/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Payouts { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace Payouts { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -92,11 +92,11 @@ export class Payouts { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -174,11 +174,11 @@ export class Payouts { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -262,11 +262,11 @@ export class Payouts { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/refunds/client/Client.ts b/src/api/resources/refunds/client/Client.ts index 5e4ad4d6d..9c23b6580 100644 --- a/src/api/resources/refunds/client/Client.ts +++ b/src/api/resources/refunds/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Refunds { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace Refunds { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -116,11 +116,11 @@ export class Refunds { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -209,11 +209,11 @@ export class Refunds { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -286,11 +286,11 @@ export class Refunds { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/sites/client/Client.ts b/src/api/resources/sites/client/Client.ts index 957a89aa6..dddabdb81 100644 --- a/src/api/resources/sites/client/Client.ts +++ b/src/api/resources/sites/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Sites { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace Sites { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -59,11 +59,11 @@ export class Sites { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/snippets/client/Client.ts b/src/api/resources/snippets/client/Client.ts index 8090a3a5c..7fe21786a 100644 --- a/src/api/resources/snippets/client/Client.ts +++ b/src/api/resources/snippets/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Snippets { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace Snippets { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -68,11 +68,11 @@ export class Snippets { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -150,11 +150,11 @@ export class Snippets { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -232,11 +232,11 @@ export class Snippets { method: "DELETE", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/subscriptions/client/Client.ts b/src/api/resources/subscriptions/client/Client.ts index f1d4c9db4..f2f72e917 100644 --- a/src/api/resources/subscriptions/client/Client.ts +++ b/src/api/resources/subscriptions/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Subscriptions { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace Subscriptions { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -82,11 +82,11 @@ export class Subscriptions { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -161,11 +161,11 @@ export class Subscriptions { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -258,11 +258,11 @@ export class Subscriptions { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -340,11 +340,11 @@ export class Subscriptions { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -420,11 +420,11 @@ export class Subscriptions { method: "PUT", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -500,11 +500,11 @@ export class Subscriptions { method: "DELETE", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -577,11 +577,11 @@ export class Subscriptions { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -658,11 +658,11 @@ export class Subscriptions { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -743,11 +743,11 @@ export class Subscriptions { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -826,11 +826,11 @@ export class Subscriptions { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -905,11 +905,11 @@ export class Subscriptions { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -990,11 +990,11 @@ export class Subscriptions { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/team/client/Client.ts b/src/api/resources/team/client/Client.ts index 11a2120ea..e08745efa 100644 --- a/src/api/resources/team/client/Client.ts +++ b/src/api/resources/team/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Team { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace Team { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -66,11 +66,11 @@ export class Team { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -144,11 +144,11 @@ export class Team { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -221,11 +221,11 @@ export class Team { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -302,11 +302,11 @@ export class Team { method: "PUT", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/teamMembers/client/Client.ts b/src/api/resources/teamMembers/client/Client.ts index 2cb50e724..e1129ea61 100644 --- a/src/api/resources/teamMembers/client/Client.ts +++ b/src/api/resources/teamMembers/client/Client.ts @@ -17,7 +17,7 @@ export declare namespace TeamMembers { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -29,7 +29,7 @@ export declare namespace TeamMembers { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -105,11 +105,11 @@ export class TeamMembers { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -212,11 +212,11 @@ export class TeamMembers { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -322,11 +322,11 @@ export class TeamMembers { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -406,11 +406,11 @@ export class TeamMembers { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -484,11 +484,11 @@ export class TeamMembers { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -593,11 +593,11 @@ export class TeamMembers { method: "PUT", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/teamMembers/resources/wageSetting/client/Client.ts b/src/api/resources/teamMembers/resources/wageSetting/client/Client.ts index 4f546dab3..4b9573ee4 100644 --- a/src/api/resources/teamMembers/resources/wageSetting/client/Client.ts +++ b/src/api/resources/teamMembers/resources/wageSetting/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace WageSetting { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace WageSetting { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -68,11 +68,11 @@ export class WageSetting { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -169,11 +169,11 @@ export class WageSetting { method: "PUT", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/terminal/client/Client.ts b/src/api/resources/terminal/client/Client.ts index c1af471b9..f6d56bff6 100644 --- a/src/api/resources/terminal/client/Client.ts +++ b/src/api/resources/terminal/client/Client.ts @@ -19,7 +19,7 @@ export declare namespace Terminal { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -31,7 +31,7 @@ export declare namespace Terminal { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -84,11 +84,11 @@ export class Terminal { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -159,11 +159,11 @@ export class Terminal { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -234,11 +234,11 @@ export class Terminal { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/terminal/resources/actions/client/Client.ts b/src/api/resources/terminal/resources/actions/client/Client.ts index f04c0c73a..869ec82d1 100644 --- a/src/api/resources/terminal/resources/actions/client/Client.ts +++ b/src/api/resources/terminal/resources/actions/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Actions { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace Actions { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -71,11 +71,11 @@ export class Actions { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -157,11 +157,11 @@ export class Actions { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -234,11 +234,11 @@ export class Actions { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -309,11 +309,11 @@ export class Actions { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/terminal/resources/checkouts/client/Client.ts b/src/api/resources/terminal/resources/checkouts/client/Client.ts index 225c3d854..058ad68e4 100644 --- a/src/api/resources/terminal/resources/checkouts/client/Client.ts +++ b/src/api/resources/terminal/resources/checkouts/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Checkouts { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace Checkouts { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -74,11 +74,11 @@ export class Checkouts { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -155,11 +155,11 @@ export class Checkouts { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -234,11 +234,11 @@ export class Checkouts { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -309,11 +309,11 @@ export class Checkouts { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/terminal/resources/refunds/client/Client.ts b/src/api/resources/terminal/resources/refunds/client/Client.ts index 5666ce869..933e4cc47 100644 --- a/src/api/resources/terminal/resources/refunds/client/Client.ts +++ b/src/api/resources/terminal/resources/refunds/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Refunds { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace Refunds { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -71,11 +71,11 @@ export class Refunds { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -152,11 +152,11 @@ export class Refunds { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -229,11 +229,11 @@ export class Refunds { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -304,11 +304,11 @@ export class Refunds { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/v1Transactions/client/Client.ts b/src/api/resources/v1Transactions/client/Client.ts index 821d73b7a..8955b147e 100644 --- a/src/api/resources/v1Transactions/client/Client.ts +++ b/src/api/resources/v1Transactions/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace V1Transactions { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace V1Transactions { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -79,11 +79,11 @@ export class V1Transactions { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -154,11 +154,11 @@ export class V1Transactions { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -231,11 +231,11 @@ export class V1Transactions { method: "PUT", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/vendors/client/Client.ts b/src/api/resources/vendors/client/Client.ts index e1cadb7c9..b8b2c2847 100644 --- a/src/api/resources/vendors/client/Client.ts +++ b/src/api/resources/vendors/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Vendors { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace Vendors { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -82,11 +82,11 @@ export class Vendors { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -158,11 +158,11 @@ export class Vendors { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -241,11 +241,11 @@ export class Vendors { method: "PUT", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -336,11 +336,11 @@ export class Vendors { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -410,11 +410,11 @@ export class Vendors { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -487,11 +487,11 @@ export class Vendors { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -569,11 +569,11 @@ export class Vendors { method: "PUT", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/webhooks/client/Client.ts b/src/api/resources/webhooks/client/Client.ts index 577969803..f1799c6e1 100644 --- a/src/api/resources/webhooks/client/Client.ts +++ b/src/api/resources/webhooks/client/Client.ts @@ -14,7 +14,7 @@ export declare namespace Webhooks { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -26,7 +26,7 @@ export declare namespace Webhooks { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } diff --git a/src/api/resources/webhooks/resources/eventTypes/client/Client.ts b/src/api/resources/webhooks/resources/eventTypes/client/Client.ts index 0813f7a5b..07a87476a 100644 --- a/src/api/resources/webhooks/resources/eventTypes/client/Client.ts +++ b/src/api/resources/webhooks/resources/eventTypes/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace EventTypes { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace EventTypes { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -66,11 +66,11 @@ export class EventTypes { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/webhooks/resources/subscriptions/client/Client.ts b/src/api/resources/webhooks/resources/subscriptions/client/Client.ts index 7b315b764..29a932b9e 100644 --- a/src/api/resources/webhooks/resources/subscriptions/client/Client.ts +++ b/src/api/resources/webhooks/resources/subscriptions/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Subscriptions { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; fetcher?: core.FetchFunction; } @@ -28,7 +28,7 @@ export declare namespace Subscriptions { /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the Square-Version header */ - version?: "2025-03-19"; + version?: "2025-04-16"; /** Additional headers to include in the request. */ headers?: Record; } @@ -80,11 +80,11 @@ export class Subscriptions { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -168,11 +168,11 @@ export class Subscriptions { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -245,11 +245,11 @@ export class Subscriptions { method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -324,11 +324,11 @@ export class Subscriptions { method: "PUT", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -403,11 +403,11 @@ export class Subscriptions { method: "DELETE", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -479,11 +479,11 @@ export class Subscriptions { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -559,11 +559,11 @@ export class Subscriptions { method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), - "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-03-19", + "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "square", - "X-Fern-SDK-Version": "42.0.1", - "User-Agent": "square/42.0.1", + "X-Fern-SDK-Version": "42.1.0", + "User-Agent": "square/42.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/types/CatalogItem.ts b/src/api/types/CatalogItem.ts index 2855ce6cc..3f94759fd 100644 --- a/src/api/types/CatalogItem.ts +++ b/src/api/types/CatalogItem.ts @@ -75,6 +75,10 @@ export interface CatalogItem { * Maximum: 6 item options. */ itemOptions?: Square.CatalogItemOptionForItem[] | null; + /** Deprecated; see go/ecomUriUseCases. A URI pointing to a published e-commerce product page for the Item. */ + ecomUri?: string | null; + /** Deprecated; see go/ecomUriUseCases. A comma-separated list of encoded URIs pointing to a set of published e-commerce images for the Item. */ + ecomImageUris?: string[] | null; /** * The IDs of images associated with this `CatalogItem` instance. * These images will be shown to customers in Square Online Store. @@ -132,4 +136,6 @@ export interface CatalogItem { foodAndBeverageDetails?: Square.CatalogItemFoodAndBeverageDetails; /** The item's reporting category. */ reportingCategory?: Square.CatalogObjectCategory; + /** Indicates whether this item is alcoholic (`true`) or not (`false`). */ + isAlcoholic?: boolean | null; } diff --git a/src/api/types/Invoice.ts b/src/api/types/Invoice.ts index e46e40002..c0395c393 100644 --- a/src/api/types/Invoice.ts +++ b/src/api/types/Invoice.ts @@ -84,9 +84,12 @@ export interface Invoice { */ scheduledAt?: string | null; /** - * The URL of the Square-hosted invoice page. - * After you publish the invoice using the `PublishInvoice` endpoint, Square hosts the invoice - * page and returns the page URL in the response. + * A temporary link to the Square-hosted payment page where the customer can pay the + * invoice. If the link expires, customers can provide the email address or phone number + * associated with the invoice and request a new link directly from the expired payment page. + * + * This field is added after the invoice is published and reaches the scheduled date + * (if one is defined). */ publicUrl?: string; /** diff --git a/src/api/types/InvoiceStatus.ts b/src/api/types/InvoiceStatus.ts index f261493cc..32c521001 100644 --- a/src/api/types/InvoiceStatus.ts +++ b/src/api/types/InvoiceStatus.ts @@ -3,7 +3,7 @@ */ /** - * Indicates the status of an invoice. + * Indicates the status of an [invoice](entity:Invoice). */ export type InvoiceStatus = | "DRAFT" diff --git a/src/api/types/PaymentOptions.ts b/src/api/types/PaymentOptions.ts index 363ee94b7..b1ad4dbad 100644 --- a/src/api/types/PaymentOptions.ts +++ b/src/api/types/PaymentOptions.ts @@ -6,8 +6,8 @@ import * as Square from "../index"; export interface PaymentOptions { /** - * Indicates whether the `Payment` objects created from this `TerminalCheckout` are automatically - * `COMPLETED` or left in an `APPROVED` state for later modification. + * Indicates whether the `Payment` objects created from this `TerminalCheckout` are + * automatically `COMPLETED` or left in an `APPROVED` state for later modification. * * Default: true */ diff --git a/src/api/types/TerminalCheckout.ts b/src/api/types/TerminalCheckout.ts index fd5065c95..1247ec526 100644 --- a/src/api/types/TerminalCheckout.ts +++ b/src/api/types/TerminalCheckout.ts @@ -26,7 +26,7 @@ export interface TerminalCheckout { note?: string | null; /** The reference to the Square order ID for the checkout request. */ orderId?: string | null; - /** Payment-specific options for the checkout request. Supported only in the US. */ + /** Payment-specific options for the checkout request. */ paymentOptions?: Square.PaymentOptions; /** Options to control the display and behavior of the Square Terminal device. */ deviceOptions: Square.DeviceCheckoutOptions; @@ -82,20 +82,17 @@ export interface TerminalCheckout { * For more information about the application fee scenario, see [Take Payments and Collect Fees](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees). * * To set this field, PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS OAuth permission is required. For more information, see [Permissions](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees#permissions). - * - * Supported only in the US. */ appFeeMoney?: Square.Money; /** * Optional additional payment information to include on the customer's card statement as * part of the statement description. This can be, for example, an invoice number, ticket number, - * or short description that uniquely identifies the purchase. Supported only in the US. + * or short description that uniquely identifies the purchase. */ statementDescriptionIdentifier?: string | null; /** * The amount designated as a tip, in addition to `amount_money`. This may only be set for a - * checkout that has tipping disabled (`tip_settings.allow_tipping` is `false`). Supported only in - * the US. + * checkout that has tipping disabled (`tip_settings.allow_tipping` is `false`). */ tipMoney?: Square.Money; } diff --git a/src/serialization/resources/catalog/client/requests/BatchDeleteCatalogObjectsRequest.ts b/src/serialization/resources/catalog/client/requests/BatchDeleteCatalogObjectsRequest.ts index 93bfb12f7..4f103bc79 100644 --- a/src/serialization/resources/catalog/client/requests/BatchDeleteCatalogObjectsRequest.ts +++ b/src/serialization/resources/catalog/client/requests/BatchDeleteCatalogObjectsRequest.ts @@ -10,14 +10,11 @@ export const BatchDeleteCatalogObjectsRequest: core.serialization.Schema< serializers.BatchDeleteCatalogObjectsRequest.Raw, Square.BatchDeleteCatalogObjectsRequest > = core.serialization.object({ - objectIds: core.serialization.property( - "object_ids", - core.serialization.list(core.serialization.string()).optionalNullable(), - ), + objectIds: core.serialization.property("object_ids", core.serialization.list(core.serialization.string())), }); export declare namespace BatchDeleteCatalogObjectsRequest { export interface Raw { - object_ids?: (string[] | null) | null; + object_ids: string[]; } } diff --git a/src/serialization/types/CatalogItem.ts b/src/serialization/types/CatalogItem.ts index 911335e46..0b061d922 100644 --- a/src/serialization/types/CatalogItem.ts +++ b/src/serialization/types/CatalogItem.ts @@ -39,6 +39,11 @@ export const CatalogItem: core.serialization.ObjectSchema serializers.CatalogObjectCategory).optional(), ), + isAlcoholic: core.serialization.property("is_alcoholic", core.serialization.boolean().optionalNullable()), }); export declare namespace CatalogItem { @@ -82,6 +88,8 @@ export declare namespace CatalogItem { product_type?: CatalogItemProductType.Raw | null; skip_modifier_screen?: (boolean | null) | null; item_options?: (CatalogItemOptionForItem.Raw[] | null) | null; + ecom_uri?: (string | null) | null; + ecom_image_uris?: (string[] | null) | null; image_ids?: (string[] | null) | null; sort_name?: (string | null) | null; categories?: (serializers.CatalogObjectCategory.Raw[] | null) | null; @@ -92,5 +100,6 @@ export declare namespace CatalogItem { ecom_seo_data?: CatalogEcomSeoData.Raw | null; food_and_beverage_details?: CatalogItemFoodAndBeverageDetails.Raw | null; reporting_category?: serializers.CatalogObjectCategory.Raw | null; + is_alcoholic?: (boolean | null) | null; } } diff --git a/src/version.ts b/src/version.ts index 1240d1335..814941192 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "42.0.1"; +export const SDK_VERSION = "42.1.0"; diff --git a/yarn.lock b/yarn.lock index 0ba1b54db..85fa757cf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -761,9 +761,9 @@ form-data "^4.0.0" "@types/node@*": - version "22.14.0" - resolved "https://registry.yarnpkg.com/@types/node/-/node-22.14.0.tgz#d3bfa3936fef0dbacd79ea3eb17d521c628bb47e" - integrity sha512-Kmpl+z84ILoG+3T/zQFyAJsU6EPTmOCj8/2+83fSN6djd6I4o7uOuGIH6vq3PrjY5BGitSbFuMN18j3iknubbA== + version "22.14.1" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.14.1.tgz#53b54585cec81c21eee3697521e31312d6ca1e6f" + integrity sha512-u0HuPQwe/dHrItgHHpmw3N2fYCR6x4ivMNbPHRkBVP4CvN+kiRrKHWk3i8tXiO/joPwXLMYvF9TTF0eqgHIuOw== dependencies: undici-types "~6.21.0" @@ -1235,9 +1235,9 @@ camelcase@^6.2.0: integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== caniuse-lite@^1.0.30001688: - version "1.0.30001710" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001710.tgz#2cda0c6071ddd43c01151c7f704a0e510a86612f" - integrity sha512-B5C0I0UmaGqHgo5FuqJ7hBd4L57A4dDD+Xi+XX1nXOoxGeDdY4Ko38qJYOyqznBVJEqON5p8P1x5zRR3+rsnxA== + version "1.0.30001714" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001714.tgz#cfd27ff07e6fa20a0f45c7a10d28a0ffeaba2122" + integrity sha512-mtgapdwDLSSBnCI3JokHM7oEQBLxiJKVRtg10AxM1AyeiKcM96f0Mkbqeq+1AbiCtvMcHRulAAEMu693JrSWqg== chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0: version "4.1.2" @@ -1439,9 +1439,9 @@ ejs@^3.1.10: jake "^10.8.5" electron-to-chromium@^1.5.73: - version "1.5.132" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.132.tgz#081b8086d7cecc58732f7cc1f1c19306c5510c5f" - integrity sha512-QgX9EBvWGmvSRa74zqfnG7+Eno0Ak0vftBll0Pt2/z5b3bEGYL6OUXLgKPtvx73dn3dvwrlyVkjPKRRlhLYTEg== + version "1.5.137" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.137.tgz#53a7fef3ea9f7eb5fcf704454050ff930c43ed92" + integrity sha512-/QSJaU2JyIuTbbABAo/crOs+SuAZLS+fVVS10PVrIT9hrRkmZl8Hb0xPSkKRUUWHQtYzXHpQUW3Dy5hwMzGZkA== emittery@^0.13.1: version "0.13.1" @@ -3125,9 +3125,9 @@ tr46@~0.0.3: integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== ts-jest@^29.1.1: - version "29.3.1" - resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.3.1.tgz#2e459e1f94a833bd8216ba4b045fac948e265937" - integrity sha512-FT2PIRtZABwl6+ZCry8IY7JZ3xMuppsEV9qFVHOVe8jDzggwUZ9TsM4chyJxL9yi6LvkqcZYU3LmapEE454zBQ== + version "29.3.2" + resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.3.2.tgz#0576cdf0a507f811fe73dcd16d135ce89f8156cb" + integrity sha512-bJJkrWc6PjFVz5g2DGCNUo8z7oFEYaz1xP1NpeDU7KNLMWPpEyV8Chbpkn8xjzgRDpQhnGMyvyldoL7h8JXyug== dependencies: bs-logger "^0.2.6" ejs "^3.1.10" @@ -3137,7 +3137,7 @@ ts-jest@^29.1.1: lodash.memoize "^4.1.2" make-error "^1.3.6" semver "^7.7.1" - type-fest "^4.38.0" + type-fest "^4.39.1" yargs-parser "^21.1.1" ts-loader@^9.5.1: @@ -3166,10 +3166,10 @@ type-fest@^0.21.3: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== -type-fest@^4.38.0: - version "4.39.1" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-4.39.1.tgz#7521f6944e279abaf79cf60cfbc4823f4858083e" - integrity sha512-uW9qzd66uyHYxwyVBYiwS4Oi0qZyUqwjU+Oevr6ZogYiXt99EOYtwvzMSLw1c3lYo2HzJsep/NB23iEVEgjG/w== +type-fest@^4.39.1: + version "4.40.0" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-4.40.0.tgz#62bc09caccb99a75e1ad6b9b4653e8805e5e1eee" + integrity sha512-ABHZ2/tS2JkvH1PEjxFDTUWC8dB5OsIGZP4IFLhR293GqT5Y5qB1WwL2kMPYhQW9DVgVD8Hd7I8gjwPIf5GFkw== typescript@~5.7.2: version "5.7.3" @@ -3259,9 +3259,9 @@ webpack-sources@^3.2.3: integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w== webpack@^5.97.1: - version "5.98.0" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.98.0.tgz#44ae19a8f2ba97537978246072fb89d10d1fbd17" - integrity sha512-UFynvx+gM44Gv9qFgj0acCQK2VE1CtdfwFdimkapco3hlPCJ/zeq73n2yVKimVbtm+TnApIugGhLJnkU6gjYXA== + version "5.99.5" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.99.5.tgz#86e3b3a5a03377ea5da271c929934003f5ac5dd8" + integrity sha512-q+vHBa6H9qwBLUlHL4Y7L0L1/LlyBKZtS9FHNCQmtayxjI5RKC9yD8gpvLeqGv5lCQp1Re04yi0MF40pf30Pvg== dependencies: "@types/eslint-scope" "^3.7.7" "@types/estree" "^1.0.6"