Skip to content

Commit c9608b0

Browse files
committed
SDK regeneration
1 parent 8160511 commit c9608b0

File tree

1,742 files changed

+77671
-31670
lines changed

Some content is hidden

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

1,742 files changed

+77671
-31670
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
steps:
1010
- name: Checkout repo
11-
uses: actions/checkout@v3
11+
uses: actions/checkout@v4
1212

1313
- name: Set up Java
1414
id: setup-jre
@@ -25,7 +25,7 @@ jobs:
2525
runs-on: ubuntu-latest
2626
steps:
2727
- name: Checkout repo
28-
uses: actions/checkout@v3
28+
uses: actions/checkout@v4
2929

3030
- name: Set up Java
3131
id: setup-jre
@@ -36,17 +36,14 @@ jobs:
3636

3737
- name: Test
3838
run: ./gradlew test
39-
env:
40-
TEST_SQUARE_TOKEN: ${{ secrets.TEST_SQUARE_TOKEN }}
41-
4239
publish:
43-
needs: [ compile ]
40+
needs: [ compile, test ]
4441
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
4542
runs-on: ubuntu-latest
4643

4744
steps:
4845
- name: Checkout repo
49-
uses: actions/checkout@v3
46+
uses: actions/checkout@v4
5047

5148
- name: Set up Java
5249
id: setup-jre
@@ -55,10 +52,10 @@ jobs:
5552
java-version: "11"
5653
architecture: x64
5754

58-
- name: Publish to Maven Central
59-
run: ./gradlew publish --stacktrace
55+
- name: Publish to maven
56+
run: |
57+
./gradlew publish
6058
env:
61-
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_CENTRAL_USERNAME }}
62-
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_CENTRAL_PASSWORD }}
63-
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_SECRET_KEY }}
64-
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_SECRET_PASSPHRASE }}
59+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
60+
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
61+
MAVEN_PUBLISH_REGISTRY_URL: "https://s01.oss.sonatype.org/content/repositories/releases/"

.mock/definition/__package__.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11325,7 +11325,7 @@ types:
1132511325
maxLength: 255
1132611326
access: read-only
1132711327
name:
11328-
type: string
11328+
type: optional<string>
1132911329
docs: The name of the segment.
1133011330
access: read-only
1133111331
created_at:
@@ -20811,7 +20811,7 @@ types:
2081120811
Events](https://developer.squareup.com/docs/loyalty-api/loyalty-events).
2081220812
properties:
2081320813
id:
20814-
type: string
20814+
type: optional<string>
2081520815
docs: The Square-assigned ID of the loyalty event.
2081620816
validation:
2081720817
minLength: 1
@@ -20822,7 +20822,7 @@ types:
2082220822
The type of the loyalty event.
2082320823
See [LoyaltyEventType](#type-loyaltyeventtype) for possible values
2082420824
created_at:
20825-
type: string
20825+
type: optional<string>
2082620826
docs: The timestamp when the event was created, in RFC 3339 format.
2082720827
validation:
2082820828
minLength: 1
@@ -20843,7 +20843,7 @@ types:
2084320843
type: optional<LoyaltyEventAdjustPoints>
2084420844
docs: Provides metadata when the event `type` is `ADJUST_POINTS`.
2084520845
loyalty_account_id:
20846-
type: string
20846+
type: optional<string>
2084720847
docs: >-
2084820848
The ID of the [loyalty account](entity:LoyaltyAccount) associated with
2084920849
the event.
@@ -20918,11 +20918,11 @@ types:
2091820918
maxLength: 255
2091920919
access: read-only
2092020920
points:
20921-
type: integer
20921+
type: optional<integer>
2092220922
docs: The number of points earned by the event.
2092320923
access: read-only
2092420924
order_id:
20925-
type: string
20925+
type: optional<string>
2092620926
docs: >-
2092720927
The ID of the [order](entity:Order) for which the buyer earned the
2092820928
promotion points.
@@ -20959,7 +20959,7 @@ types:
2095920959
docs: Provides metadata when the event `type` is `CREATE_REWARD`.
2096020960
properties:
2096120961
loyalty_program_id:
20962-
type: string
20962+
type: optional<string>
2096320963
docs: The ID of the [loyalty program](entity:LoyaltyProgram).
2096420964
validation:
2096520965
minLength: 1
@@ -20976,7 +20976,7 @@ types:
2097620976
maxLength: 36
2097720977
access: read-only
2097820978
points:
20979-
type: integer
20979+
type: optional<integer>
2098020980
docs: The loyalty points used to create the reward.
2098120981
access: read-only
2098220982
source:
@@ -21043,7 +21043,7 @@ types:
2104321043
docs: Provides metadata when the event `type` is `DELETE_REWARD`.
2104421044
properties:
2104521045
loyalty_program_id:
21046-
type: string
21046+
type: optional<string>
2104721047
docs: The ID of the [loyalty program](entity:LoyaltyProgram).
2104821048
validation:
2104921049
minLength: 1
@@ -21058,7 +21058,7 @@ types:
2105821058
maxLength: 36
2105921059
access: read-only
2106021060
points:
21061-
type: integer
21061+
type: optional<integer>
2106221062
docs: The number of points returned to the loyalty account.
2106321063
access: read-only
2106421064
source:
@@ -21067,7 +21067,7 @@ types:
2106721067
docs: Provides metadata when the event `type` is `EXPIRE_POINTS`.
2106821068
properties:
2106921069
loyalty_program_id:
21070-
type: string
21070+
type: optional<string>
2107121071
docs: >-
2107221072
The Square-assigned ID of the [loyalty
2107321073
program](entity:LoyaltyProgram).
@@ -21142,7 +21142,7 @@ types:
2114221142
docs: Provides metadata when the event `type` is `OTHER`.
2114321143
properties:
2114421144
loyalty_program_id:
21145-
type: string
21145+
type: optional<string>
2114621146
docs: >-
2114721147
The Square-assigned ID of the [loyalty
2114821148
program](entity:LoyaltyProgram).
@@ -21167,7 +21167,7 @@ types:
2116721167
docs: Provides metadata when the event `type` is `REDEEM_REWARD`.
2116821168
properties:
2116921169
loyalty_program_id:
21170-
type: string
21170+
type: optional<string>
2117121171
docs: The ID of the [loyalty program](entity:LoyaltyProgram).
2117221172
validation:
2117321173
minLength: 1

.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-06-18'
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-06-18'
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-06-18'
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-06-18'
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-06-18'
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-06-18'
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-06-18'
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-06-18'
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-06-18'
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-06-18'
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-06-18'
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-06-18'
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-06-18'
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-06-18'
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-06-18'
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-06-18'
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-06-18'
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-06-18'
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-06-18'
380390
response:
381391
body:
382392
errors:

0 commit comments

Comments
 (0)