Skip to content
Open
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
10 changes: 5 additions & 5 deletions .mock/definition/bookings/customAttributeDefinitions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ service:
custom_attribute_definitions:
- key: favoriteShampoo
schema:
ref: >-
\$ref: >-
https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String
name: Favorite shampoo
description: Update the description as desired.
Expand All @@ -71,7 +71,7 @@ service:
created_at: '2022-11-16T15:27:30Z'
- key: partySize
schema:
ref: >-
\$ref: >-
https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.Number
name: Party size
description: Number of people in the party for dine-in
Expand Down Expand Up @@ -170,7 +170,7 @@ service:
custom_attribute_definition:
key: favoriteShampoo
schema:
ref: >-
\$ref: >-
https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String
name: Favorite Shampoo
description: The favorite shampoo of the customer.
Expand Down Expand Up @@ -238,7 +238,7 @@ service:
custom_attribute_definition:
key: favoriteShampoo
schema:
ref: >-
\$ref: >-
https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String
name: Favorite shampoo
description: The favorite shampoo of the customer.
Expand Down Expand Up @@ -337,7 +337,7 @@ service:
custom_attribute_definition:
key: favoriteShampoo
schema:
ref: >-
\$ref: >-
https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String
name: Favorite shampoo
description: Update the description as desired.
Expand Down
12 changes: 6 additions & 6 deletions .mock/definition/customers/customAttributeDefinitions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ service:
custom_attribute_definitions:
- key: favoritemovie
schema:
ref: >-
\$ref: >-
https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String
name: Favorite Movie
description: Update the description as desired.
Expand All @@ -79,7 +79,7 @@ service:
created_at: '2022-04-26T15:27:30Z'
- key: ownsmovie
schema:
ref: >-
\$ref: >-
https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.Boolean
name: Owns Movie
description: Customer owns movie.
Expand Down Expand Up @@ -174,7 +174,7 @@ service:
custom_attribute_definition:
key: favoritemovie
schema:
ref: >-
\$ref: >-
https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String
name: Favorite Movie
description: The favorite movie of the customer.
Expand All @@ -184,7 +184,7 @@ service:
custom_attribute_definition:
key: favoritemovie
schema:
ref: >-
\$ref: >-
https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String
name: Favorite Movie
description: The favorite movie of the customer.
Expand Down Expand Up @@ -258,7 +258,7 @@ service:
custom_attribute_definition:
key: favoritemovie
schema:
ref: >-
\$ref: >-
https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String
name: Favorite Movie
description: The favorite movie of the customer.
Expand Down Expand Up @@ -367,7 +367,7 @@ service:
custom_attribute_definition:
key: favoritemovie
schema:
ref: >-
\$ref: >-
https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String
name: Favorite Movie
description: Update the description as desired.
Expand Down
12 changes: 6 additions & 6 deletions .mock/definition/locations/customAttributeDefinitions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ service:
custom_attribute_definitions:
- key: phone-number
schema:
ref: >-
\$ref: >-
https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.PhoneNumber
name: phone number
description: Location's phone number
Expand All @@ -80,7 +80,7 @@ service:
created_at: '2022-12-02T19:50:21.832Z'
- key: bestseller
schema:
ref: >-
\$ref: >-
https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String
name: Bestseller
description: Bestselling item at location
Expand Down Expand Up @@ -163,7 +163,7 @@ service:
custom_attribute_definition:
key: bestseller
schema:
ref: >-
\$ref: >-
https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String
name: Bestseller
description: Bestselling item at location
Expand All @@ -173,7 +173,7 @@ service:
custom_attribute_definition:
key: bestseller
schema:
ref: >-
\$ref: >-
https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String
name: Bestseller
description: Bestselling item at location
Expand Down Expand Up @@ -242,7 +242,7 @@ service:
custom_attribute_definition:
key: bestseller
schema:
ref: >-
\$ref: >-
https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String
name: Bestseller
description: Bestselling item at location
Expand Down Expand Up @@ -346,7 +346,7 @@ service:
custom_attribute_definition:
key: bestseller
schema:
ref: >-
\$ref: >-
https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String
name: Bestseller
description: Update the description as desired.
Expand Down
12 changes: 6 additions & 6 deletions .mock/definition/merchants/customAttributeDefinitions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ service:
custom_attribute_definitions:
- key: has_seen_tutorial
schema:
ref: >-
\$ref: >-
https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.Boolean
name: NAME
description: >-
Expand All @@ -82,7 +82,7 @@ service:
created_at: '2023-05-05T16:50:21.832Z'
- key: alternative_seller_name
schema:
ref: >-
\$ref: >-
https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String
name: Alternative Merchant Name
description: This is the other name this merchant goes by.
Expand Down Expand Up @@ -165,7 +165,7 @@ service:
custom_attribute_definition:
key: alternative_seller_name
schema:
ref: >-
\$ref: >-
https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String
name: Alternative Merchant Name
description: This is the other name this merchant goes by.
Expand All @@ -175,7 +175,7 @@ service:
custom_attribute_definition:
key: alternative_seller_name
schema:
ref: >-
\$ref: >-
https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String
name: Alternative Merchant Name
description: This is the other name this merchant goes by.
Expand Down Expand Up @@ -244,7 +244,7 @@ service:
custom_attribute_definition:
key: alternative_seller_name
schema:
ref: >-
\$ref: >-
https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String
name: Alternative Merchant Name
description: This is the other name this merchant goes by.
Expand Down Expand Up @@ -348,7 +348,7 @@ service:
custom_attribute_definition:
key: alternative_seller_name
schema:
ref: >-
\$ref: >-
https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String
name: Alternative Merchant Name
description: Update the description as desired.
Expand Down
14 changes: 7 additions & 7 deletions .mock/definition/orders/customAttributeDefinitions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ service:
custom_attribute_definitions:
- key: cover-count
schema:
ref: >-
\$ref: >-
https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.Number
name: Cover count
description: The number of people seated at a table
Expand All @@ -86,7 +86,7 @@ service:
created_at: '2022-11-16T18:03:44.051Z'
- key: seat-number
schema:
ref: >-
\$ref: >-
https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.Number
name: Seat number
description: The identifier for a particular seat
Expand All @@ -96,7 +96,7 @@ service:
created_at: '2022-11-16T18:04:32.059Z'
- key: table-number
schema:
ref: >-
\$ref: >-
https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.Number
name: Table number
description: The identifier for a particular table
Expand Down Expand Up @@ -175,7 +175,7 @@ service:
custom_attribute_definition:
key: cover-count
schema:
ref: >-
\$ref: >-
https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.Number
name: Cover count
description: The number of people seated at a table
Expand All @@ -186,7 +186,7 @@ service:
custom_attribute_definition:
key: cover-count
schema:
ref: >-
\$ref: >-
https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.Number
name: Cover count
description: The number of people seated at a table
Expand Down Expand Up @@ -250,7 +250,7 @@ service:
custom_attribute_definition:
key: cover-count
schema:
ref: >-
\$ref: >-
https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.Number
name: Cover count
description: The number of people seated at a table
Expand Down Expand Up @@ -335,7 +335,7 @@ service:
custom_attribute_definition:
key: cover-count
schema:
ref: >-
\$ref: >-
https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.Number
name: Cover count
description: The number of people seated at a table
Expand Down
2 changes: 1 addition & 1 deletion .mock/fern.config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"organization" : "square",
"version" : "0.64.23"
"version" : "0.66.19"
}
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": "43.0.2",
"version": "44.0.0.20250820",
"private": false,
"repository": "github:square/square-nodejs-sdk",
"license": "MIT",
Expand Down
8 changes: 4 additions & 4 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -14669,7 +14669,7 @@ await client.customers.customAttributeDefinitions.create({
customAttributeDefinition: {
key: "favoritemovie",
schema: {
ref: "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String",
$ref: "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String",
},
name: "Favorite Movie",
description: "The favorite movie of the customer.",
Expand Down Expand Up @@ -18016,7 +18016,7 @@ await client.locations.customAttributeDefinitions.create({
customAttributeDefinition: {
key: "bestseller",
schema: {
ref: "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String",
$ref: "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String",
},
name: "Bestseller",
description: "Bestselling item at location",
Expand Down Expand Up @@ -20380,7 +20380,7 @@ await client.merchants.customAttributeDefinitions.create({
customAttributeDefinition: {
key: "alternative_seller_name",
schema: {
ref: "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String",
$ref: "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String",
},
name: "Alternative Merchant Name",
description: "This is the other name this merchant goes by.",
Expand Down Expand Up @@ -21201,7 +21201,7 @@ await client.orders.customAttributeDefinitions.create({
customAttributeDefinition: {
key: "cover-count",
schema: {
ref: "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.Number",
$ref: "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.Number",
},
name: "Cover count",
description: "The number of people seated at a table",
Expand Down
4 changes: 2 additions & 2 deletions src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ export class SquareClient {
"Square-Version": _options?.version ?? "2025-08-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
"X-Fern-SDK-Version": "43.0.2",
"User-Agent": "square/43.0.2",
"X-Fern-SDK-Version": "44.0.0.20250820",
"User-Agent": "square/44.0.0.20250820",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export class CustomAttributeDefinitions {
* customAttributeDefinition: {
* key: "favoritemovie",
* schema: {
* "ref": "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String"
* "$ref": "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String"
* },
* name: "Favorite Movie",
* description: "The favorite movie of the customer.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as Square from "../../../../../../index";
* customAttributeDefinition: {
* key: "favoritemovie",
* schema: {
* "ref": "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String"
* "$ref": "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String"
* },
* name: "Favorite Movie",
* description: "The favorite movie of the customer.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export class CustomAttributeDefinitions {
* customAttributeDefinition: {
* key: "bestseller",
* schema: {
* "ref": "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String"
* "$ref": "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String"
* },
* name: "Bestseller",
* description: "Bestselling item at location",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as Square from "../../../../../../index";
* customAttributeDefinition: {
* key: "bestseller",
* schema: {
* "ref": "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String"
* "$ref": "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String"
* },
* name: "Bestseller",
* description: "Bestselling item at location",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export class CustomAttributeDefinitions {
* customAttributeDefinition: {
* key: "alternative_seller_name",
* schema: {
* "ref": "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String"
* "$ref": "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String"
* },
* name: "Alternative Merchant Name",
* description: "This is the other name this merchant goes by.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as Square from "../../../../../../index";
* customAttributeDefinition: {
* key: "alternative_seller_name",
* schema: {
* "ref": "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String"
* "$ref": "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String"
* },
* name: "Alternative Merchant Name",
* description: "This is the other name this merchant goes by.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export class CustomAttributeDefinitions {
* customAttributeDefinition: {
* key: "cover-count",
* schema: {
* "ref": "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.Number"
* "$ref": "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.Number"
* },
* name: "Cover count",
* description: "The number of people seated at a table",
Expand Down
Loading
Loading