Skip to content

Commit 35aaab3

Browse files
SDK regeneration (#156)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent 54bdac7 commit 35aaab3

File tree

83 files changed

+900
-314
lines changed

Some content is hidden

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

83 files changed

+900
-314
lines changed

.mock/definition/__package__.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11192,7 +11192,7 @@ types:
1119211192
maxLength: 255
1119311193
access: read-only
1119411194
name:
11195-
type: string
11195+
type: optional<string>
1119611196
docs: The name of the segment.
1119711197
access: read-only
1119811198
created_at:
@@ -20678,7 +20678,7 @@ types:
2067820678
Events](https://developer.squareup.com/docs/loyalty-api/loyalty-events).
2067920679
properties:
2068020680
id:
20681-
type: string
20681+
type: optional<string>
2068220682
docs: The Square-assigned ID of the loyalty event.
2068320683
validation:
2068420684
minLength: 1
@@ -20689,7 +20689,7 @@ types:
2068920689
The type of the loyalty event.
2069020690
See [LoyaltyEventType](#type-loyaltyeventtype) for possible values
2069120691
created_at:
20692-
type: string
20692+
type: optional<string>
2069320693
docs: The timestamp when the event was created, in RFC 3339 format.
2069420694
validation:
2069520695
minLength: 1
@@ -20710,7 +20710,7 @@ types:
2071020710
type: optional<LoyaltyEventAdjustPoints>
2071120711
docs: Provides metadata when the event `type` is `ADJUST_POINTS`.
2071220712
loyalty_account_id:
20713-
type: string
20713+
type: optional<string>
2071420714
docs: >-
2071520715
The ID of the [loyalty account](entity:LoyaltyAccount) associated with
2071620716
the event.
@@ -20785,11 +20785,11 @@ types:
2078520785
maxLength: 255
2078620786
access: read-only
2078720787
points:
20788-
type: integer
20788+
type: optional<integer>
2078920789
docs: The number of points earned by the event.
2079020790
access: read-only
2079120791
order_id:
20792-
type: string
20792+
type: optional<string>
2079320793
docs: >-
2079420794
The ID of the [order](entity:Order) for which the buyer earned the
2079520795
promotion points.
@@ -20826,7 +20826,7 @@ types:
2082620826
docs: Provides metadata when the event `type` is `CREATE_REWARD`.
2082720827
properties:
2082820828
loyalty_program_id:
20829-
type: string
20829+
type: optional<string>
2083020830
docs: The ID of the [loyalty program](entity:LoyaltyProgram).
2083120831
validation:
2083220832
minLength: 1
@@ -20843,7 +20843,7 @@ types:
2084320843
maxLength: 36
2084420844
access: read-only
2084520845
points:
20846-
type: integer
20846+
type: optional<integer>
2084720847
docs: The loyalty points used to create the reward.
2084820848
access: read-only
2084920849
source:
@@ -20910,7 +20910,7 @@ types:
2091020910
docs: Provides metadata when the event `type` is `DELETE_REWARD`.
2091120911
properties:
2091220912
loyalty_program_id:
20913-
type: string
20913+
type: optional<string>
2091420914
docs: The ID of the [loyalty program](entity:LoyaltyProgram).
2091520915
validation:
2091620916
minLength: 1
@@ -20925,7 +20925,7 @@ types:
2092520925
maxLength: 36
2092620926
access: read-only
2092720927
points:
20928-
type: integer
20928+
type: optional<integer>
2092920929
docs: The number of points returned to the loyalty account.
2093020930
access: read-only
2093120931
source:
@@ -20934,7 +20934,7 @@ types:
2093420934
docs: Provides metadata when the event `type` is `EXPIRE_POINTS`.
2093520935
properties:
2093620936
loyalty_program_id:
20937-
type: string
20937+
type: optional<string>
2093820938
docs: >-
2093920939
The Square-assigned ID of the [loyalty
2094020940
program](entity:LoyaltyProgram).
@@ -21009,7 +21009,7 @@ types:
2100921009
docs: Provides metadata when the event `type` is `OTHER`.
2101021010
properties:
2101121011
loyalty_program_id:
21012-
type: string
21012+
type: optional<string>
2101321013
docs: >-
2101421014
The Square-assigned ID of the [loyalty
2101521015
program](entity:LoyaltyProgram).
@@ -21034,7 +21034,7 @@ types:
2103421034
docs: Provides metadata when the event `type` is `REDEEM_REWARD`.
2103521035
properties:
2103621036
loyalty_program_id:
21037-
type: string
21037+
type: optional<string>
2103821038
docs: The ID of the [loyalty program](entity:LoyaltyProgram).
2103921039
validation:
2104021040
minLength: 1

.mock/definition/api.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ headers:
1010
Square-Version:
1111
name: version
1212
env: VERSION
13-
type: literal<"2025-06-18">
13+
type: literal<"2025-07-16">
1414
auth-schemes:
1515
Bearer:
1616
scheme: bearer

.mock/definition/applePay.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ service:
6464
type: root.RegisterDomainResponse
6565
status-code: 200
6666
examples:
67-
- request:
67+
- headers:
68+
Square-Version: '2025-07-16'
69+
request:
6870
domain_name: example.com
6971
response:
7072
body:

.mock/definition/bankAccounts.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ service:
5858
type: root.ListBankAccountsResponse
5959
status-code: 200
6060
examples:
61-
- response:
61+
- headers:
62+
Square-Version: '2025-07-16'
63+
response:
6264
body:
6365
errors:
6466
- category: API_ERROR
@@ -129,6 +131,8 @@ service:
129131
examples:
130132
- path-parameters:
131133
v1_bank_account_id: v1_bank_account_id
134+
headers:
135+
Square-Version: '2025-07-16'
132136
response:
133137
body:
134138
errors:
@@ -177,6 +181,8 @@ service:
177181
examples:
178182
- path-parameters:
179183
bank_account_id: bank_account_id
184+
headers:
185+
Square-Version: '2025-07-16'
180186
response:
181187
body:
182188
errors:

.mock/definition/bookings.yml

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ service:
6868
type: root.ListBookingsResponse
6969
status-code: 200
7070
examples:
71-
- response:
71+
- headers:
72+
Square-Version: '2025-07-16'
73+
response:
7274
body:
7375
bookings:
7476
- id: zkras0xv0xwswx
@@ -148,7 +150,9 @@ service:
148150
type: root.CreateBookingResponse
149151
status-code: 200
150152
examples:
151-
- request:
153+
- headers:
154+
Square-Version: '2025-07-16'
155+
request:
152156
booking: {}
153157
response:
154158
body:
@@ -227,7 +231,9 @@ service:
227231
type: root.SearchAvailabilityResponse
228232
status-code: 200
229233
examples:
230-
- request:
234+
- headers:
235+
Square-Version: '2025-07-16'
236+
request:
231237
query:
232238
filter:
233239
start_at_range: {}
@@ -396,7 +402,9 @@ service:
396402
type: root.BulkRetrieveBookingsResponse
397403
status-code: 200
398404
examples:
399-
- request:
405+
- headers:
406+
Square-Version: '2025-07-16'
407+
request:
400408
booking_ids:
401409
- booking_ids
402410
response:
@@ -466,7 +474,9 @@ service:
466474
type: root.GetBusinessBookingProfileResponse
467475
status-code: 200
468476
examples:
469-
- response:
477+
- headers:
478+
Square-Version: '2025-07-16'
479+
response:
470480
body:
471481
business_booking_profile:
472482
seller_id: MLJQYZZRM0D3Y
@@ -518,6 +528,8 @@ service:
518528
examples:
519529
- path-parameters:
520530
location_id: location_id
531+
headers:
532+
Square-Version: '2025-07-16'
521533
response:
522534
body:
523535
location_booking_profile:
@@ -552,7 +564,9 @@ service:
552564
type: root.BulkRetrieveTeamMemberBookingProfilesResponse
553565
status-code: 200
554566
examples:
555-
- request:
567+
- headers:
568+
Square-Version: '2025-07-16'
569+
request:
556570
team_member_ids:
557571
- team_member_ids
558572
response:
@@ -615,6 +629,8 @@ service:
615629
examples:
616630
- path-parameters:
617631
booking_id: booking_id
632+
headers:
633+
Square-Version: '2025-07-16'
618634
response:
619635
body:
620636
booking:
@@ -712,6 +728,8 @@ service:
712728
examples:
713729
- path-parameters:
714730
booking_id: booking_id
731+
headers:
732+
Square-Version: '2025-07-16'
715733
request:
716734
booking: {}
717735
response:
@@ -810,6 +828,8 @@ service:
810828
examples:
811829
- path-parameters:
812830
booking_id: booking_id
831+
headers:
832+
Square-Version: '2025-07-16'
813833
request: {}
814834
response:
815835
body:

.mock/definition/bookings/customAttributeDefinitions.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ service:
5454
type: root.ListBookingCustomAttributeDefinitionsResponse
5555
status-code: 200
5656
examples:
57-
- response:
57+
- headers:
58+
Square-Version: '2025-07-16'
59+
response:
5860
body:
5961
custom_attribute_definitions:
6062
- key: favoriteShampoo
@@ -159,7 +161,9 @@ service:
159161
type: root.CreateBookingCustomAttributeDefinitionResponse
160162
status-code: 200
161163
examples:
162-
- request:
164+
- headers:
165+
Square-Version: '2025-07-16'
166+
request:
163167
custom_attribute_definition: {}
164168
response:
165169
body:
@@ -227,6 +231,8 @@ service:
227231
examples:
228232
- path-parameters:
229233
key: key
234+
headers:
235+
Square-Version: '2025-07-16'
230236
response:
231237
body:
232238
custom_attribute_definition:
@@ -322,6 +328,8 @@ service:
322328
examples:
323329
- path-parameters:
324330
key: key
331+
headers:
332+
Square-Version: '2025-07-16'
325333
request:
326334
custom_attribute_definition: {}
327335
response:
@@ -377,6 +385,8 @@ service:
377385
examples:
378386
- path-parameters:
379387
key: key
388+
headers:
389+
Square-Version: '2025-07-16'
380390
response:
381391
body:
382392
errors:

.mock/definition/bookings/customAttributes.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ service:
4646
type: root.BulkDeleteBookingCustomAttributesResponse
4747
status-code: 200
4848
examples:
49-
- request:
49+
- headers:
50+
Square-Version: '2025-07-16'
51+
request:
5052
values:
5153
key:
5254
booking_id: booking_id
@@ -116,7 +118,9 @@ service:
116118
type: root.BulkUpsertBookingCustomAttributesResponse
117119
status-code: 200
118120
examples:
119-
- request:
121+
- headers:
122+
Square-Version: '2025-07-16'
123+
request:
120124
values:
121125
key:
122126
booking_id: booking_id
@@ -258,6 +262,8 @@ service:
258262
examples:
259263
- path-parameters:
260264
booking_id: booking_id
265+
headers:
266+
Square-Version: '2025-07-16'
261267
response:
262268
body:
263269
custom_attributes:
@@ -347,6 +353,8 @@ service:
347353
- path-parameters:
348354
booking_id: booking_id
349355
key: key
356+
headers:
357+
Square-Version: '2025-07-16'
350358
response:
351359
body:
352360
custom_attribute:
@@ -451,6 +459,8 @@ service:
451459
- path-parameters:
452460
booking_id: booking_id
453461
key: key
462+
headers:
463+
Square-Version: '2025-07-16'
454464
request:
455465
custom_attribute: {}
456466
response:
@@ -523,6 +533,8 @@ service:
523533
- path-parameters:
524534
booking_id: booking_id
525535
key: key
536+
headers:
537+
Square-Version: '2025-07-16'
526538
response:
527539
body:
528540
errors:

.mock/definition/bookings/locationProfiles.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ service:
3333
type: root.ListLocationBookingProfilesResponse
3434
status-code: 200
3535
examples:
36-
- response:
36+
- headers:
37+
Square-Version: '2025-07-16'
38+
response:
3739
body:
3840
location_booking_profiles:
3941
- location_id: LY6WNBPVM6VGV

0 commit comments

Comments
 (0)