Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@
}
}
},
"originGitCommit": "b05364cda2b85e35d8daa9ff2c24bbabbbd9652a",
"originGitCommit": "37b3f34f979590cc8d882c9ab2fe92748bfb0556",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "45.1.0",
"requestedVersion": "46.0.0",
"ciProvider": "buildkite",
"sdkVersion": "45.1.0"
"sdkVersion": "46.0.0"
}
8 changes: 7 additions & 1 deletion .fern/replay.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "square",
"version": "45.1.0",
"version": "46.0.0",
"private": false,
"repository": {
"type": "git",
Expand Down
42 changes: 2 additions & 40 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -20787,29 +20787,10 @@ await client.locations.transactions.get({
</dl>
</details>

<details><summary><code>client.locations.transactions.<a href="/src/api/resources/locations/resources/transactions/client/Client.ts">capture</a>({ ...params }) -> Square.CaptureTransactionResponse</code></summary>
<details><summary><code>client.locations.transactions.<a href="/src/api/resources/locations/resources/transactions/client/Client.ts">capture</a>({ ...params }) -> void</code></summary>
<dl>
<dd>

#### 📝 Description

<dl>
<dd>

<dl>
<dd>

Captures a transaction that was created with the [Charge](api-endpoint:Transactions-Charge)
endpoint with a `delay_capture` value of `true`.


See [Delayed capture transactions](https://developer.squareup.com/docs/payments/transactions/overview#delayed-capture)
for more information.
</dd>
</dl>
</dd>
</dl>

#### 🔌 Usage

<dl>
Expand Down Expand Up @@ -20858,29 +20839,10 @@ await client.locations.transactions.capture({
</dl>
</details>

<details><summary><code>client.locations.transactions.<a href="/src/api/resources/locations/resources/transactions/client/Client.ts">void</a>({ ...params }) -> Square.VoidTransactionResponse</code></summary>
<details><summary><code>client.locations.transactions.<a href="/src/api/resources/locations/resources/transactions/client/Client.ts">void</a>({ ...params }) -> void</code></summary>
<dl>
<dd>

#### 📝 Description

<dl>
<dd>

<dl>
<dd>

Cancels a transaction that was created with the [Charge](api-endpoint:Transactions-Charge)
endpoint with a `delay_capture` value of `true`.


See [Delayed capture transactions](https://developer.squareup.com/docs/payments/transactions/overview#delayed-capture)
for more information.
</dd>
</dl>
</dd>
</dl>

#### 🔌 Usage

<dl>
Expand Down
10 changes: 5 additions & 5 deletions src/BaseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export type BaseClientOptions = {
/** Specify a custom URL to connect the client to. */
baseUrl?: core.Supplier<string>;
/** Override the Square-Version header */
version?: "2026-08-19";
version?: "2026-09-16";
/** Additional headers to include in requests. */
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
/** The default maximum time to wait for a response in seconds. */
Expand All @@ -40,7 +40,7 @@ export interface BaseRequestOptions {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
version?: "2026-08-19";
version?: "2026-09-16";
/** Additional query string parameters to include in the request. */
queryParams?: Record<string, unknown>;
/** Additional headers to include in the request. */
Expand All @@ -64,11 +64,11 @@ export function normalizeClientOptions<T extends BaseClientOptions = BaseClientO
{
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
"X-Fern-SDK-Version": "45.1.0",
"User-Agent": "square/45.1.0",
"X-Fern-SDK-Version": "46.0.0",
"User-Agent": "square/46.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
"Square-Version": options?.version ?? "2026-08-19",
"Square-Version": options?.version ?? "2026-09-16",
},
options?.headers,
);
Expand Down
2 changes: 1 addition & 1 deletion src/api/resources/applePay/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class ApplePayClient {
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
_authRequest.headers,
this._options?.headers,
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }),
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-09-16" }),
requestOptions?.headers,
);
const _response = await (this._options.fetcher ?? core.fetcher)({
Expand Down
10 changes: 5 additions & 5 deletions src/api/resources/bankAccounts/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class BankAccountsClient {
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
_authRequest.headers,
this._options?.headers,
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }),
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-09-16" }),
requestOptions?.headers,
);
const _response = await (this._options.fetcher ?? core.fetcher)({
Expand Down Expand Up @@ -142,7 +142,7 @@ export class BankAccountsClient {
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
_authRequest.headers,
this._options?.headers,
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }),
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-09-16" }),
requestOptions?.headers,
);
const _response = await (this._options.fetcher ?? core.fetcher)({
Expand Down Expand Up @@ -218,7 +218,7 @@ export class BankAccountsClient {
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
_authRequest.headers,
this._options?.headers,
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }),
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-09-16" }),
requestOptions?.headers,
);
const _response = await (this._options.fetcher ?? core.fetcher)({
Expand Down Expand Up @@ -293,7 +293,7 @@ export class BankAccountsClient {
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
_authRequest.headers,
this._options?.headers,
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }),
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-09-16" }),
requestOptions?.headers,
);
const _response = await (this._options.fetcher ?? core.fetcher)({
Expand Down Expand Up @@ -368,7 +368,7 @@ export class BankAccountsClient {
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
_authRequest.headers,
this._options?.headers,
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }),
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-09-16" }),
requestOptions?.headers,
);
const _response = await (this._options.fetcher ?? core.fetcher)({
Expand Down
20 changes: 10 additions & 10 deletions src/api/resources/bookings/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class BookingsClient {
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
_authRequest.headers,
this._options?.headers,
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }),
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-09-16" }),
requestOptions?.headers,
);
const _response = await (this._options.fetcher ?? core.fetcher)({
Expand Down Expand Up @@ -184,7 +184,7 @@ export class BookingsClient {
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
_authRequest.headers,
this._options?.headers,
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }),
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-09-16" }),
requestOptions?.headers,
);
const _response = await (this._options.fetcher ?? core.fetcher)({
Expand Down Expand Up @@ -266,7 +266,7 @@ export class BookingsClient {
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
_authRequest.headers,
this._options?.headers,
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }),
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-09-16" }),
requestOptions?.headers,
);
const _response = await (this._options.fetcher ?? core.fetcher)({
Expand Down Expand Up @@ -349,7 +349,7 @@ export class BookingsClient {
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
_authRequest.headers,
this._options?.headers,
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }),
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-09-16" }),
requestOptions?.headers,
);
const _response = await (this._options.fetcher ?? core.fetcher)({
Expand Down Expand Up @@ -419,7 +419,7 @@ export class BookingsClient {
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
_authRequest.headers,
this._options?.headers,
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }),
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-09-16" }),
requestOptions?.headers,
);
const _response = await (this._options.fetcher ?? core.fetcher)({
Expand Down Expand Up @@ -494,7 +494,7 @@ export class BookingsClient {
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
_authRequest.headers,
this._options?.headers,
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }),
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-09-16" }),
requestOptions?.headers,
);
const _response = await (this._options.fetcher ?? core.fetcher)({
Expand Down Expand Up @@ -570,7 +570,7 @@ export class BookingsClient {
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
_authRequest.headers,
this._options?.headers,
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }),
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-09-16" }),
requestOptions?.headers,
);
const _response = await (this._options.fetcher ?? core.fetcher)({
Expand Down Expand Up @@ -654,7 +654,7 @@ export class BookingsClient {
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
_authRequest.headers,
this._options?.headers,
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }),
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-09-16" }),
requestOptions?.headers,
);
const _response = await (this._options.fetcher ?? core.fetcher)({
Expand Down Expand Up @@ -731,7 +731,7 @@ export class BookingsClient {
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
_authRequest.headers,
this._options?.headers,
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }),
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-09-16" }),
requestOptions?.headers,
);
const _response = await (this._options.fetcher ?? core.fetcher)({
Expand Down Expand Up @@ -813,7 +813,7 @@ export class BookingsClient {
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
_authRequest.headers,
this._options?.headers,
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }),
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-09-16" }),
requestOptions?.headers,
);
const _response = await (this._options.fetcher ?? core.fetcher)({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class CustomAttributeDefinitionsClient {
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
_authRequest.headers,
this._options?.headers,
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }),
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-09-16" }),
requestOptions?.headers,
);
const _response = await (this._options.fetcher ?? core.fetcher)({
Expand Down Expand Up @@ -150,7 +150,7 @@ export class CustomAttributeDefinitionsClient {
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
_authRequest.headers,
this._options?.headers,
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }),
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-09-16" }),
requestOptions?.headers,
);
const _response = await (this._options.fetcher ?? core.fetcher)({
Expand Down Expand Up @@ -238,7 +238,7 @@ export class CustomAttributeDefinitionsClient {
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
_authRequest.headers,
this._options?.headers,
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }),
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-09-16" }),
requestOptions?.headers,
);
const _response = await (this._options.fetcher ?? core.fetcher)({
Expand Down Expand Up @@ -324,7 +324,7 @@ export class CustomAttributeDefinitionsClient {
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
_authRequest.headers,
this._options?.headers,
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }),
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-09-16" }),
requestOptions?.headers,
);
const _response = await (this._options.fetcher ?? core.fetcher)({
Expand Down Expand Up @@ -411,7 +411,7 @@ export class CustomAttributeDefinitionsClient {
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
_authRequest.headers,
this._options?.headers,
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }),
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-09-16" }),
requestOptions?.headers,
);
const _response = await (this._options.fetcher ?? core.fetcher)({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class CustomAttributesClient {
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
_authRequest.headers,
this._options?.headers,
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }),
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-09-16" }),
requestOptions?.headers,
);
const _response = await (this._options.fetcher ?? core.fetcher)({
Expand Down Expand Up @@ -151,7 +151,7 @@ export class CustomAttributesClient {
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
_authRequest.headers,
this._options?.headers,
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }),
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-09-16" }),
requestOptions?.headers,
);
const _response = await (this._options.fetcher ?? core.fetcher)({
Expand Down Expand Up @@ -240,7 +240,7 @@ export class CustomAttributesClient {
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
_authRequest.headers,
this._options?.headers,
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }),
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-09-16" }),
requestOptions?.headers,
);
const _response = await (this._options.fetcher ?? core.fetcher)({
Expand Down Expand Up @@ -340,7 +340,7 @@ export class CustomAttributesClient {
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
_authRequest.headers,
this._options?.headers,
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }),
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-09-16" }),
requestOptions?.headers,
);
const _response = await (this._options.fetcher ?? core.fetcher)({
Expand Down Expand Up @@ -427,7 +427,7 @@ export class CustomAttributesClient {
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
_authRequest.headers,
this._options?.headers,
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }),
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-09-16" }),
requestOptions?.headers,
);
const _response = await (this._options.fetcher ?? core.fetcher)({
Expand Down Expand Up @@ -515,7 +515,7 @@ export class CustomAttributesClient {
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
_authRequest.headers,
this._options?.headers,
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }),
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-09-16" }),
requestOptions?.headers,
);
const _response = await (this._options.fetcher ?? core.fetcher)({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class LocationProfilesClient {
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
_authRequest.headers,
this._options?.headers,
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-08-19" }),
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-09-16" }),
requestOptions?.headers,
);
const _response = await (this._options.fetcher ?? core.fetcher)({
Expand Down
Loading
Loading