Skip to content
Merged
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
26 changes: 13 additions & 13 deletions .mock/definition/__package__.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11192,7 +11192,7 @@ types:
maxLength: 255
access: read-only
name:
type: string
type: optional<string>
docs: The name of the segment.
access: read-only
created_at:
Expand Down Expand Up @@ -20678,7 +20678,7 @@ types:
Events](https://developer.squareup.com/docs/loyalty-api/loyalty-events).
properties:
id:
type: string
type: optional<string>
docs: The Square-assigned ID of the loyalty event.
validation:
minLength: 1
Expand All @@ -20689,7 +20689,7 @@ types:
The type of the loyalty event.
See [LoyaltyEventType](#type-loyaltyeventtype) for possible values
created_at:
type: string
type: optional<string>
docs: The timestamp when the event was created, in RFC 3339 format.
validation:
minLength: 1
Expand All @@ -20710,7 +20710,7 @@ types:
type: optional<LoyaltyEventAdjustPoints>
docs: Provides metadata when the event `type` is `ADJUST_POINTS`.
loyalty_account_id:
type: string
type: optional<string>
docs: >-
The ID of the [loyalty account](entity:LoyaltyAccount) associated with
the event.
Expand Down Expand Up @@ -20785,11 +20785,11 @@ types:
maxLength: 255
access: read-only
points:
type: integer
type: optional<integer>
docs: The number of points earned by the event.
access: read-only
order_id:
type: string
type: optional<string>
docs: >-
The ID of the [order](entity:Order) for which the buyer earned the
promotion points.
Expand Down Expand Up @@ -20826,7 +20826,7 @@ types:
docs: Provides metadata when the event `type` is `CREATE_REWARD`.
properties:
loyalty_program_id:
type: string
type: optional<string>
docs: The ID of the [loyalty program](entity:LoyaltyProgram).
validation:
minLength: 1
Expand All @@ -20843,7 +20843,7 @@ types:
maxLength: 36
access: read-only
points:
type: integer
type: optional<integer>
docs: The loyalty points used to create the reward.
access: read-only
source:
Expand Down Expand Up @@ -20910,7 +20910,7 @@ types:
docs: Provides metadata when the event `type` is `DELETE_REWARD`.
properties:
loyalty_program_id:
type: string
type: optional<string>
docs: The ID of the [loyalty program](entity:LoyaltyProgram).
validation:
minLength: 1
Expand All @@ -20925,7 +20925,7 @@ types:
maxLength: 36
access: read-only
points:
type: integer
type: optional<integer>
docs: The number of points returned to the loyalty account.
access: read-only
source:
Expand All @@ -20934,7 +20934,7 @@ types:
docs: Provides metadata when the event `type` is `EXPIRE_POINTS`.
properties:
loyalty_program_id:
type: string
type: optional<string>
docs: >-
The Square-assigned ID of the [loyalty
program](entity:LoyaltyProgram).
Expand Down Expand Up @@ -21009,7 +21009,7 @@ types:
docs: Provides metadata when the event `type` is `OTHER`.
properties:
loyalty_program_id:
type: string
type: optional<string>
docs: >-
The Square-assigned ID of the [loyalty
program](entity:LoyaltyProgram).
Expand All @@ -21034,7 +21034,7 @@ types:
docs: Provides metadata when the event `type` is `REDEEM_REWARD`.
properties:
loyalty_program_id:
type: string
type: optional<string>
docs: The ID of the [loyalty program](entity:LoyaltyProgram).
validation:
minLength: 1
Expand Down
2 changes: 1 addition & 1 deletion .mock/definition/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ headers:
Square-Version:
name: version
env: VERSION
type: literal<"2025-06-18">
type: literal<"2025-07-16">
auth-schemes:
Bearer:
scheme: bearer
Expand Down
4 changes: 3 additions & 1 deletion .mock/definition/applePay.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ service:
type: root.RegisterDomainResponse
status-code: 200
examples:
- request:
- headers:
Square-Version: '2025-07-16'
request:
domain_name: example.com
response:
body:
Expand Down
8 changes: 7 additions & 1 deletion .mock/definition/bankAccounts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ service:
type: root.ListBankAccountsResponse
status-code: 200
examples:
- response:
- headers:
Square-Version: '2025-07-16'
response:
body:
errors:
- category: API_ERROR
Expand Down Expand Up @@ -129,6 +131,8 @@ service:
examples:
- path-parameters:
v1_bank_account_id: v1_bank_account_id
headers:
Square-Version: '2025-07-16'
response:
body:
errors:
Expand Down Expand Up @@ -177,6 +181,8 @@ service:
examples:
- path-parameters:
bank_account_id: bank_account_id
headers:
Square-Version: '2025-07-16'
response:
body:
errors:
Expand Down
32 changes: 26 additions & 6 deletions .mock/definition/bookings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ service:
type: root.ListBookingsResponse
status-code: 200
examples:
- response:
- headers:
Square-Version: '2025-07-16'
response:
body:
bookings:
- id: zkras0xv0xwswx
Expand Down Expand Up @@ -148,7 +150,9 @@ service:
type: root.CreateBookingResponse
status-code: 200
examples:
- request:
- headers:
Square-Version: '2025-07-16'
request:
booking: {}
response:
body:
Expand Down Expand Up @@ -227,7 +231,9 @@ service:
type: root.SearchAvailabilityResponse
status-code: 200
examples:
- request:
- headers:
Square-Version: '2025-07-16'
request:
query:
filter:
start_at_range: {}
Expand Down Expand Up @@ -396,7 +402,9 @@ service:
type: root.BulkRetrieveBookingsResponse
status-code: 200
examples:
- request:
- headers:
Square-Version: '2025-07-16'
request:
booking_ids:
- booking_ids
response:
Expand Down Expand Up @@ -466,7 +474,9 @@ service:
type: root.GetBusinessBookingProfileResponse
status-code: 200
examples:
- response:
- headers:
Square-Version: '2025-07-16'
response:
body:
business_booking_profile:
seller_id: MLJQYZZRM0D3Y
Expand Down Expand Up @@ -518,6 +528,8 @@ service:
examples:
- path-parameters:
location_id: location_id
headers:
Square-Version: '2025-07-16'
response:
body:
location_booking_profile:
Expand Down Expand Up @@ -552,7 +564,9 @@ service:
type: root.BulkRetrieveTeamMemberBookingProfilesResponse
status-code: 200
examples:
- request:
- headers:
Square-Version: '2025-07-16'
request:
team_member_ids:
- team_member_ids
response:
Expand Down Expand Up @@ -615,6 +629,8 @@ service:
examples:
- path-parameters:
booking_id: booking_id
headers:
Square-Version: '2025-07-16'
response:
body:
booking:
Expand Down Expand Up @@ -712,6 +728,8 @@ service:
examples:
- path-parameters:
booking_id: booking_id
headers:
Square-Version: '2025-07-16'
request:
booking: {}
response:
Expand Down Expand Up @@ -810,6 +828,8 @@ service:
examples:
- path-parameters:
booking_id: booking_id
headers:
Square-Version: '2025-07-16'
request: {}
response:
body:
Expand Down
14 changes: 12 additions & 2 deletions .mock/definition/bookings/customAttributeDefinitions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ service:
type: root.ListBookingCustomAttributeDefinitionsResponse
status-code: 200
examples:
- response:
- headers:
Square-Version: '2025-07-16'
response:
body:
custom_attribute_definitions:
- key: favoriteShampoo
Expand Down Expand Up @@ -159,7 +161,9 @@ service:
type: root.CreateBookingCustomAttributeDefinitionResponse
status-code: 200
examples:
- request:
- headers:
Square-Version: '2025-07-16'
request:
custom_attribute_definition: {}
response:
body:
Expand Down Expand Up @@ -227,6 +231,8 @@ service:
examples:
- path-parameters:
key: key
headers:
Square-Version: '2025-07-16'
response:
body:
custom_attribute_definition:
Expand Down Expand Up @@ -322,6 +328,8 @@ service:
examples:
- path-parameters:
key: key
headers:
Square-Version: '2025-07-16'
request:
custom_attribute_definition: {}
response:
Expand Down Expand Up @@ -377,6 +385,8 @@ service:
examples:
- path-parameters:
key: key
headers:
Square-Version: '2025-07-16'
response:
body:
errors:
Expand Down
16 changes: 14 additions & 2 deletions .mock/definition/bookings/customAttributes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ service:
type: root.BulkDeleteBookingCustomAttributesResponse
status-code: 200
examples:
- request:
- headers:
Square-Version: '2025-07-16'
request:
values:
key:
booking_id: booking_id
Expand Down Expand Up @@ -116,7 +118,9 @@ service:
type: root.BulkUpsertBookingCustomAttributesResponse
status-code: 200
examples:
- request:
- headers:
Square-Version: '2025-07-16'
request:
values:
key:
booking_id: booking_id
Expand Down Expand Up @@ -258,6 +262,8 @@ service:
examples:
- path-parameters:
booking_id: booking_id
headers:
Square-Version: '2025-07-16'
response:
body:
custom_attributes:
Expand Down Expand Up @@ -347,6 +353,8 @@ service:
- path-parameters:
booking_id: booking_id
key: key
headers:
Square-Version: '2025-07-16'
response:
body:
custom_attribute:
Expand Down Expand Up @@ -451,6 +459,8 @@ service:
- path-parameters:
booking_id: booking_id
key: key
headers:
Square-Version: '2025-07-16'
request:
custom_attribute: {}
response:
Expand Down Expand Up @@ -523,6 +533,8 @@ service:
- path-parameters:
booking_id: booking_id
key: key
headers:
Square-Version: '2025-07-16'
response:
body:
errors:
Expand Down
4 changes: 3 additions & 1 deletion .mock/definition/bookings/locationProfiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ service:
type: root.ListLocationBookingProfilesResponse
status-code: 200
examples:
- response:
- headers:
Square-Version: '2025-07-16'
response:
body:
location_booking_profiles:
- location_id: LY6WNBPVM6VGV
Expand Down
Loading