Skip to content

Commit 0d89655

Browse files
committed
SDK regeneration
1 parent 050cb7c commit 0d89655

File tree

99 files changed

+917
-1253
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+917
-1253
lines changed

.mock/definition/__package__.yml

Lines changed: 58 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -5156,25 +5156,16 @@ types:
51565156
DISCOUNT: CatalogObjectDiscount
51575157
MODIFIER_LIST: CatalogObjectModifierList
51585158
MODIFIER: CatalogObjectModifier
5159-
DINING_OPTION: CatalogObjectDiningOption
5160-
TAX_EXEMPTION: CatalogObjectTaxExemption
5161-
SERVICE_CHARGE: CatalogObjectServiceCharge
51625159
PRICING_RULE: CatalogObjectPricingRule
51635160
PRODUCT_SET: CatalogObjectProductSet
51645161
TIME_PERIOD: CatalogObjectTimePeriod
51655162
MEASUREMENT_UNIT: CatalogObjectMeasurementUnit
5166-
SUBSCRIPTION_PLAN: CatalogObjectSubscriptionPlan
5163+
SUBSCRIPTION_PLAN_VARIATION: CatalogObjectSubscriptionPlanVariation
51675164
ITEM_OPTION: CatalogObjectItemOption
51685165
ITEM_OPTION_VAL: CatalogObjectItemOptionValue
51695166
CUSTOM_ATTRIBUTE_DEFINITION: CatalogObjectCustomAttributeDefinition
51705167
QUICK_AMOUNTS_SETTINGS: CatalogObjectQuickAmountsSettings
5171-
COMPONENT: CatalogObjectComponent
5172-
COMPOSITION: CatalogObjectComposition
5173-
RESOURCE: CatalogObjectResource
5174-
CHECKOUT_LINK: CatalogObjectCheckoutLink
5175-
ADDRESS: CatalogObjectAddress
5176-
SUBSCRIPTION_PRODUCT: CatalogObjectSubscriptionProduct
5177-
SUBSCRIPTION_PLAN_VARIATION: CatalogObjectSubscriptionPlanVariation
5168+
SUBSCRIPTION_PLAN: CatalogObjectSubscriptionPlan
51785169
AVAILABILITY_PERIOD: CatalogObjectAvailabilityPeriod
51795170
source:
51805171
openapi: openapi/openapi.json
@@ -7506,6 +7497,28 @@ types:
75067497
docs: The new gift card.
75077498
source:
75087499
openapi: openapi/openapi.json
7500+
CreateInvoiceAttachmentRequestData:
7501+
docs: >-
7502+
Represents a
7503+
[CreateInvoiceAttachment](api-endpoint:Invoices-CreateInvoiceAttachment)
7504+
request.
7505+
properties:
7506+
idempotency_key:
7507+
type: optional<string>
7508+
docs: >-
7509+
A unique string that identifies the `CreateInvoiceAttachment` request.
7510+
7511+
For more information, see
7512+
[Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).
7513+
validation:
7514+
maxLength: 128
7515+
description:
7516+
type: optional<string>
7517+
docs: The description of the attachment to display on the invoice.
7518+
validation:
7519+
maxLength: 128
7520+
source:
7521+
openapi: openapi/openapi.json
75097522
CreateInvoiceAttachmentResponse:
75107523
docs: >-
75117524
Represents a
@@ -26838,6 +26851,17 @@ types:
2683826851
- CatalogObjectBase
2683926852
source:
2684026853
openapi: openapi/openapi.json
26854+
CatalogObjectImage:
26855+
properties:
26856+
image_data:
26857+
type: optional<CatalogImage>
26858+
docs: >-
26859+
Structured data for a `CatalogImage`, set for CatalogObjects of type
26860+
`IMAGE`.
26861+
extends:
26862+
- CatalogObjectBase
26863+
source:
26864+
openapi: openapi/openapi.json
2684126865
CatalogObjectItemVariation:
2684226866
properties:
2684326867
item_variation_data:
@@ -26893,31 +26917,16 @@ types:
2689326917
- CatalogObjectBase
2689426918
source:
2689526919
openapi: openapi/openapi.json
26896-
CatalogObjectDiningOption:
26897-
properties: {}
26898-
extends:
26899-
- CatalogObjectBase
26900-
source:
26901-
openapi: openapi/openapi.json
26902-
CatalogObjectTaxExemption:
26903-
properties: {}
26904-
extends:
26905-
- CatalogObjectBase
26906-
source:
26907-
openapi: openapi/openapi.json
26908-
CatalogObjectServiceCharge:
26909-
properties: {}
26910-
extends:
26911-
- CatalogObjectBase
26912-
source:
26913-
openapi: openapi/openapi.json
26914-
CatalogObjectTimePeriod:
26920+
CatalogObjectPricingRule:
2691526921
properties:
26916-
time_period_data:
26917-
type: optional<CatalogTimePeriod>
26922+
pricing_rule_data:
26923+
type: optional<CatalogPricingRule>
2691826924
docs: >-
26919-
Structured data for a `CatalogTimePeriod`, set for CatalogObjects of
26920-
type `TIME_PERIOD`.
26925+
Structured data for a `CatalogPricingRule`, set for CatalogObjects of
26926+
type `PRICING_RULE`.
26927+
26928+
A `CatalogPricingRule` object often works with a `CatalogProductSet`
26929+
object or a `CatalogTimePeriod` object.
2692126930
extends:
2692226931
- CatalogObjectBase
2692326932
source:
@@ -26933,27 +26942,13 @@ types:
2693326942
- CatalogObjectBase
2693426943
source:
2693526944
openapi: openapi/openapi.json
26936-
CatalogObjectPricingRule:
26937-
properties:
26938-
pricing_rule_data:
26939-
type: optional<CatalogPricingRule>
26940-
docs: >-
26941-
Structured data for a `CatalogPricingRule`, set for CatalogObjects of
26942-
type `PRICING_RULE`.
26943-
26944-
A `CatalogPricingRule` object often works with a `CatalogProductSet`
26945-
object or a `CatalogTimePeriod` object.
26946-
extends:
26947-
- CatalogObjectBase
26948-
source:
26949-
openapi: openapi/openapi.json
26950-
CatalogObjectImage:
26945+
CatalogObjectTimePeriod:
2695126946
properties:
26952-
image_data:
26953-
type: optional<CatalogImage>
26947+
time_period_data:
26948+
type: optional<CatalogTimePeriod>
2695426949
docs: >-
26955-
Structured data for a `CatalogImage`, set for CatalogObjects of type
26956-
`IMAGE`.
26950+
Structured data for a `CatalogTimePeriod`, set for CatalogObjects of
26951+
type `TIME_PERIOD`.
2695726952
extends:
2695826953
- CatalogObjectBase
2695926954
source:
@@ -26969,13 +26964,13 @@ types:
2696926964
- CatalogObjectBase
2697026965
source:
2697126966
openapi: openapi/openapi.json
26972-
CatalogObjectSubscriptionPlan:
26967+
CatalogObjectSubscriptionPlanVariation:
2697326968
properties:
26974-
subscription_plan_data:
26975-
type: optional<CatalogSubscriptionPlan>
26969+
subscription_plan_variation_data:
26970+
type: optional<CatalogSubscriptionPlanVariation>
2697626971
docs: >-
26977-
Structured data for a `CatalogSubscriptionPlan`, set for
26978-
CatalogObjects of type `SUBSCRIPTION_PLAN`.
26972+
Structured data for a `CatalogSubscriptionPlanVariation`, set for
26973+
CatalogObjects of type `SUBSCRIPTION_PLAN_VARIATION`.
2697926974
extends:
2698026975
- CatalogObjectBase
2698126976
source:
@@ -27024,13 +27019,13 @@ types:
2702427019
- CatalogObjectBase
2702527020
source:
2702627021
openapi: openapi/openapi.json
27027-
CatalogObjectSubscriptionPlanVariation:
27022+
CatalogObjectSubscriptionPlan:
2702827023
properties:
27029-
subscription_plan_variation_data:
27030-
type: optional<CatalogSubscriptionPlanVariation>
27024+
subscription_plan_data:
27025+
type: optional<CatalogSubscriptionPlan>
2703127026
docs: >-
27032-
Structured data for a `CatalogSubscriptionPlanVariation`, set for
27033-
CatalogObjects of type `SUBSCRIPTION_PLAN_VARIATION`.
27027+
Structured data for a `CatalogSubscriptionPlan`, set for
27028+
CatalogObjects of type `SUBSCRIPTION_PLAN`.
2703427029
extends:
2703527030
- CatalogObjectBase
2703627031
source:
@@ -27046,39 +27041,3 @@ types:
2704627041
- CatalogObjectBase
2704727042
source:
2704827043
openapi: openapi/openapi.json
27049-
CatalogObjectComponent:
27050-
properties: {}
27051-
extends:
27052-
- CatalogObjectBase
27053-
source:
27054-
openapi: openapi/openapi.json
27055-
CatalogObjectComposition:
27056-
properties: {}
27057-
extends:
27058-
- CatalogObjectBase
27059-
source:
27060-
openapi: openapi/openapi.json
27061-
CatalogObjectResource:
27062-
properties: {}
27063-
extends:
27064-
- CatalogObjectBase
27065-
source:
27066-
openapi: openapi/openapi.json
27067-
CatalogObjectCheckoutLink:
27068-
properties: {}
27069-
extends:
27070-
- CatalogObjectBase
27071-
source:
27072-
openapi: openapi/openapi.json
27073-
CatalogObjectAddress:
27074-
properties: {}
27075-
extends:
27076-
- CatalogObjectBase
27077-
source:
27078-
openapi: openapi/openapi.json
27079-
CatalogObjectSubscriptionProduct:
27080-
properties: {}
27081-
extends:
27082-
- CatalogObjectBase
27083-
source:
27084-
openapi: openapi/openapi.json

.mock/definition/invoices.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ service:
854854
body:
855855
properties:
856856
request:
857-
type: optional<unknown>
857+
type: optional<root.CreateInvoiceAttachmentRequestData>
858858
content-type: application/json; charset=utf-8
859859
image_file:
860860
type: optional<file>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "square",
3-
"version": "42.1.0",
3+
"version": "42.2.0",
44
"private": false,
55
"repository": "https://github.com/square/square-nodejs-sdk",
66
"license": "MIT",

src/api/resources/applePay/client/Client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ export class ApplePay {
7878
"Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16",
7979
"X-Fern-Language": "JavaScript",
8080
"X-Fern-SDK-Name": "square",
81-
"X-Fern-SDK-Version": "42.1.0",
82-
"User-Agent": "square/42.1.0",
81+
"X-Fern-SDK-Version": "42.2.0",
82+
"User-Agent": "square/42.2.0",
8383
"X-Fern-Runtime": core.RUNTIME.type,
8484
"X-Fern-Runtime-Version": core.RUNTIME.version,
8585
...requestOptions?.headers,

src/api/resources/bankAccounts/client/Client.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ export class BankAccounts {
7575
"Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16",
7676
"X-Fern-Language": "JavaScript",
7777
"X-Fern-SDK-Name": "square",
78-
"X-Fern-SDK-Version": "42.1.0",
79-
"User-Agent": "square/42.1.0",
78+
"X-Fern-SDK-Version": "42.2.0",
79+
"User-Agent": "square/42.2.0",
8080
"X-Fern-Runtime": core.RUNTIME.type,
8181
"X-Fern-Runtime-Version": core.RUNTIME.version,
8282
...requestOptions?.headers,
@@ -156,8 +156,8 @@ export class BankAccounts {
156156
"Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16",
157157
"X-Fern-Language": "JavaScript",
158158
"X-Fern-SDK-Name": "square",
159-
"X-Fern-SDK-Version": "42.1.0",
160-
"User-Agent": "square/42.1.0",
159+
"X-Fern-SDK-Version": "42.2.0",
160+
"User-Agent": "square/42.2.0",
161161
"X-Fern-Runtime": core.RUNTIME.type,
162162
"X-Fern-Runtime-Version": core.RUNTIME.version,
163163
...requestOptions?.headers,
@@ -232,8 +232,8 @@ export class BankAccounts {
232232
"Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16",
233233
"X-Fern-Language": "JavaScript",
234234
"X-Fern-SDK-Name": "square",
235-
"X-Fern-SDK-Version": "42.1.0",
236-
"User-Agent": "square/42.1.0",
235+
"X-Fern-SDK-Version": "42.2.0",
236+
"User-Agent": "square/42.2.0",
237237
"X-Fern-Runtime": core.RUNTIME.type,
238238
"X-Fern-Runtime-Version": core.RUNTIME.version,
239239
...requestOptions?.headers,

src/api/resources/bookings/client/Client.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ export class Bookings {
115115
"Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16",
116116
"X-Fern-Language": "JavaScript",
117117
"X-Fern-SDK-Name": "square",
118-
"X-Fern-SDK-Version": "42.1.0",
119-
"User-Agent": "square/42.1.0",
118+
"X-Fern-SDK-Version": "42.2.0",
119+
"User-Agent": "square/42.2.0",
120120
"X-Fern-Runtime": core.RUNTIME.type,
121121
"X-Fern-Runtime-Version": core.RUNTIME.version,
122122
...requestOptions?.headers,
@@ -208,8 +208,8 @@ export class Bookings {
208208
"Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16",
209209
"X-Fern-Language": "JavaScript",
210210
"X-Fern-SDK-Name": "square",
211-
"X-Fern-SDK-Version": "42.1.0",
212-
"User-Agent": "square/42.1.0",
211+
"X-Fern-SDK-Version": "42.2.0",
212+
"User-Agent": "square/42.2.0",
213213
"X-Fern-Runtime": core.RUNTIME.type,
214214
"X-Fern-Runtime-Version": core.RUNTIME.version,
215215
...requestOptions?.headers,
@@ -291,8 +291,8 @@ export class Bookings {
291291
"Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16",
292292
"X-Fern-Language": "JavaScript",
293293
"X-Fern-SDK-Name": "square",
294-
"X-Fern-SDK-Version": "42.1.0",
295-
"User-Agent": "square/42.1.0",
294+
"X-Fern-SDK-Version": "42.2.0",
295+
"User-Agent": "square/42.2.0",
296296
"X-Fern-Runtime": core.RUNTIME.type,
297297
"X-Fern-Runtime-Version": core.RUNTIME.version,
298298
...requestOptions?.headers,
@@ -372,8 +372,8 @@ export class Bookings {
372372
"Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16",
373373
"X-Fern-Language": "JavaScript",
374374
"X-Fern-SDK-Name": "square",
375-
"X-Fern-SDK-Version": "42.1.0",
376-
"User-Agent": "square/42.1.0",
375+
"X-Fern-SDK-Version": "42.2.0",
376+
"User-Agent": "square/42.2.0",
377377
"X-Fern-Runtime": core.RUNTIME.type,
378378
"X-Fern-Runtime-Version": core.RUNTIME.version,
379379
...requestOptions?.headers,
@@ -444,8 +444,8 @@ export class Bookings {
444444
"Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16",
445445
"X-Fern-Language": "JavaScript",
446446
"X-Fern-SDK-Name": "square",
447-
"X-Fern-SDK-Version": "42.1.0",
448-
"User-Agent": "square/42.1.0",
447+
"X-Fern-SDK-Version": "42.2.0",
448+
"User-Agent": "square/42.2.0",
449449
"X-Fern-Runtime": core.RUNTIME.type,
450450
"X-Fern-Runtime-Version": core.RUNTIME.version,
451451
...requestOptions?.headers,
@@ -519,8 +519,8 @@ export class Bookings {
519519
"Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16",
520520
"X-Fern-Language": "JavaScript",
521521
"X-Fern-SDK-Name": "square",
522-
"X-Fern-SDK-Version": "42.1.0",
523-
"User-Agent": "square/42.1.0",
522+
"X-Fern-SDK-Version": "42.2.0",
523+
"User-Agent": "square/42.2.0",
524524
"X-Fern-Runtime": core.RUNTIME.type,
525525
"X-Fern-Runtime-Version": core.RUNTIME.version,
526526
...requestOptions?.headers,
@@ -593,8 +593,8 @@ export class Bookings {
593593
"Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16",
594594
"X-Fern-Language": "JavaScript",
595595
"X-Fern-SDK-Name": "square",
596-
"X-Fern-SDK-Version": "42.1.0",
597-
"User-Agent": "square/42.1.0",
596+
"X-Fern-SDK-Version": "42.2.0",
597+
"User-Agent": "square/42.2.0",
598598
"X-Fern-Runtime": core.RUNTIME.type,
599599
"X-Fern-Runtime-Version": core.RUNTIME.version,
600600
...requestOptions?.headers,
@@ -675,8 +675,8 @@ export class Bookings {
675675
"Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16",
676676
"X-Fern-Language": "JavaScript",
677677
"X-Fern-SDK-Name": "square",
678-
"X-Fern-SDK-Version": "42.1.0",
679-
"User-Agent": "square/42.1.0",
678+
"X-Fern-SDK-Version": "42.2.0",
679+
"User-Agent": "square/42.2.0",
680680
"X-Fern-Runtime": core.RUNTIME.type,
681681
"X-Fern-Runtime-Version": core.RUNTIME.version,
682682
...requestOptions?.headers,
@@ -755,8 +755,8 @@ export class Bookings {
755755
"Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16",
756756
"X-Fern-Language": "JavaScript",
757757
"X-Fern-SDK-Name": "square",
758-
"X-Fern-SDK-Version": "42.1.0",
759-
"User-Agent": "square/42.1.0",
758+
"X-Fern-SDK-Version": "42.2.0",
759+
"User-Agent": "square/42.2.0",
760760
"X-Fern-Runtime": core.RUNTIME.type,
761761
"X-Fern-Runtime-Version": core.RUNTIME.version,
762762
...requestOptions?.headers,
@@ -838,8 +838,8 @@ export class Bookings {
838838
"Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-04-16",
839839
"X-Fern-Language": "JavaScript",
840840
"X-Fern-SDK-Name": "square",
841-
"X-Fern-SDK-Version": "42.1.0",
842-
"User-Agent": "square/42.1.0",
841+
"X-Fern-SDK-Version": "42.2.0",
842+
"User-Agent": "square/42.2.0",
843843
"X-Fern-Runtime": core.RUNTIME.type,
844844
"X-Fern-Runtime-Version": core.RUNTIME.version,
845845
...requestOptions?.headers,

0 commit comments

Comments
 (0)