diff --git a/.mock/definition/api.yml b/.mock/definition/api.yml index 4f0fe636..bf5d1a45 100644 --- a/.mock/definition/api.yml +++ b/.mock/definition/api.yml @@ -10,7 +10,7 @@ headers: Square-Version: name: version env: VERSION - type: literal<"2025-07-16"> + type: literal<"2025-08-20"> auth-schemes: Bearer: scheme: bearer diff --git a/.mock/definition/applePay.yml b/.mock/definition/applePay.yml index 8470c702..051bc4a6 100644 --- a/.mock/definition/applePay.yml +++ b/.mock/definition/applePay.yml @@ -65,7 +65,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: domain_name: example.com response: diff --git a/.mock/definition/bankAccounts.yml b/.mock/definition/bankAccounts.yml index 20bc52f6..5f6e39e0 100644 --- a/.mock/definition/bankAccounts.yml +++ b/.mock/definition/bankAccounts.yml @@ -59,7 +59,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -132,7 +132,7 @@ service: - path-parameters: v1_bank_account_id: v1_bank_account_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -182,7 +182,7 @@ service: - path-parameters: bank_account_id: bank_account_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/bookings.yml b/.mock/definition/bookings.yml index 2898d325..d850c889 100644 --- a/.mock/definition/bookings.yml +++ b/.mock/definition/bookings.yml @@ -69,7 +69,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: bookings: @@ -151,7 +151,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: booking: {} response: @@ -232,7 +232,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: query: filter: @@ -403,7 +403,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: booking_ids: - booking_ids @@ -475,7 +475,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: business_booking_profile: @@ -529,7 +529,7 @@ service: - path-parameters: location_id: location_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: location_booking_profile: @@ -565,7 +565,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: team_member_ids: - team_member_ids @@ -630,7 +630,7 @@ service: - path-parameters: booking_id: booking_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: booking: @@ -729,7 +729,7 @@ service: - path-parameters: booking_id: booking_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: booking: {} response: @@ -829,7 +829,7 @@ service: - path-parameters: booking_id: booking_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: {} response: body: diff --git a/.mock/definition/bookings/customAttributeDefinitions.yml b/.mock/definition/bookings/customAttributeDefinitions.yml index 89c8024a..e07be756 100644 --- a/.mock/definition/bookings/customAttributeDefinitions.yml +++ b/.mock/definition/bookings/customAttributeDefinitions.yml @@ -55,13 +55,13 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: 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. @@ -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 @@ -162,7 +162,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: custom_attribute_definition: {} response: @@ -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. @@ -232,13 +232,13 @@ service: - path-parameters: key: key headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: 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. @@ -329,7 +329,7 @@ service: - path-parameters: key: key headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: custom_attribute_definition: {} response: @@ -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. @@ -386,7 +386,7 @@ service: - path-parameters: key: key headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/bookings/customAttributes.yml b/.mock/definition/bookings/customAttributes.yml index d1ea704f..b3b412c2 100644 --- a/.mock/definition/bookings/customAttributes.yml +++ b/.mock/definition/bookings/customAttributes.yml @@ -47,7 +47,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: values: key: @@ -119,7 +119,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: values: key: @@ -263,7 +263,7 @@ service: - path-parameters: booking_id: booking_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: custom_attributes: @@ -354,7 +354,7 @@ service: booking_id: booking_id key: key headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: custom_attribute: @@ -460,7 +460,7 @@ service: booking_id: booking_id key: key headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: custom_attribute: {} response: @@ -534,7 +534,7 @@ service: booking_id: booking_id key: key headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/bookings/locationProfiles.yml b/.mock/definition/bookings/locationProfiles.yml index 7455845a..ec98e941 100644 --- a/.mock/definition/bookings/locationProfiles.yml +++ b/.mock/definition/bookings/locationProfiles.yml @@ -34,7 +34,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: location_booking_profiles: diff --git a/.mock/definition/bookings/teamMemberProfiles.yml b/.mock/definition/bookings/teamMemberProfiles.yml index 3e00df86..a0b2db62 100644 --- a/.mock/definition/bookings/teamMemberProfiles.yml +++ b/.mock/definition/bookings/teamMemberProfiles.yml @@ -45,7 +45,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: team_member_booking_profiles: @@ -87,7 +87,7 @@ service: - path-parameters: team_member_id: team_member_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: team_member_booking_profile: diff --git a/.mock/definition/cards.yml b/.mock/definition/cards.yml index b8ed07f2..ac9f5a31 100644 --- a/.mock/definition/cards.yml +++ b/.mock/definition/cards.yml @@ -60,7 +60,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -159,7 +159,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: idempotency_key: 4935a656-a929-4792-b97c-8848be85c27c source_id: cnon:uIbfJXhXETSP197M3GB @@ -239,7 +239,7 @@ service: - path-parameters: card_id: card_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -307,7 +307,7 @@ service: - path-parameters: card_id: card_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/cashDrawers/shifts.yml b/.mock/definition/cashDrawers/shifts.yml index eb17d5ba..cadfdc28 100644 --- a/.mock/definition/cashDrawers/shifts.yml +++ b/.mock/definition/cashDrawers/shifts.yml @@ -55,7 +55,7 @@ service: - query-parameters: location_id: location_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: cursor: cursor @@ -115,7 +115,7 @@ service: query-parameters: location_id: location_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: cash_drawer_shift: @@ -202,7 +202,7 @@ service: query-parameters: location_id: location_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: cursor: cursor diff --git a/.mock/definition/catalog.yml b/.mock/definition/catalog.yml index 2d7de942..61824634 100644 --- a/.mock/definition/catalog.yml +++ b/.mock/definition/catalog.yml @@ -65,7 +65,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: object_ids: - W62UWFY35CWMYGVWK6TWJDNI @@ -190,7 +190,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: object_ids: - W62UWFY35CWMYGVWK6TWJDNI @@ -418,7 +418,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: idempotency_key: 789ff020-f723-43a9-b4b5-43b5dc1fa3dc batches: @@ -583,7 +583,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -702,7 +702,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -921,7 +921,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: object_types: - ITEM @@ -1125,7 +1125,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: text_filter: red category_ids: @@ -1245,7 +1245,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: item_ids: - H42BRLUJ5KTZTTMPVSLFAACQ @@ -1306,7 +1306,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: item_ids: - H42BRLUJ5KTZTTMPVSLFAACQ diff --git a/.mock/definition/catalog/images.yml b/.mock/definition/catalog/images.yml index 3b1c0f83..09b8ebf0 100644 --- a/.mock/definition/catalog/images.yml +++ b/.mock/definition/catalog/images.yml @@ -43,7 +43,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: {} response: body: @@ -114,7 +114,7 @@ service: - path-parameters: image_id: image_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: {} response: body: diff --git a/.mock/definition/catalog/object.yml b/.mock/definition/catalog/object.yml index 86eec851..6c78c72d 100644 --- a/.mock/definition/catalog/object.yml +++ b/.mock/definition/catalog/object.yml @@ -70,7 +70,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: idempotency_key: af3d1afc-7212-4300-b463-0bfc5314a5ae object: @@ -239,7 +239,7 @@ service: - path-parameters: object_id: object_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -383,7 +383,7 @@ service: - path-parameters: object_id: object_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/checkout.yml b/.mock/definition/checkout.yml index 068007e2..e5127ba0 100644 --- a/.mock/definition/checkout.yml +++ b/.mock/definition/checkout.yml @@ -26,7 +26,7 @@ service: - path-parameters: location_id: location_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -87,7 +87,7 @@ service: - path-parameters: location_id: location_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: location_settings: {} response: @@ -137,7 +137,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -192,7 +192,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: merchant_settings: {} response: diff --git a/.mock/definition/checkout/paymentLinks.yml b/.mock/definition/checkout/paymentLinks.yml index 8eb945be..4d4a98ac 100644 --- a/.mock/definition/checkout/paymentLinks.yml +++ b/.mock/definition/checkout/paymentLinks.yml @@ -51,7 +51,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -169,7 +169,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: idempotency_key: cd9e25dc-d9f2-4430-aedb-61605070e95f quick_pay: @@ -303,7 +303,7 @@ service: - path-parameters: id: id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -374,7 +374,7 @@ service: - path-parameters: id: id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: payment_link: version: 1 @@ -434,7 +434,7 @@ service: - path-parameters: id: id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/customers.yml b/.mock/definition/customers.yml index 0352c81e..dce06dbb 100644 --- a/.mock/definition/customers.yml +++ b/.mock/definition/customers.yml @@ -86,7 +86,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -254,7 +254,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: given_name: Amelia family_name: Earhart @@ -369,7 +369,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: customers: 8bb76c4f-e35d-4c5b-90de-1194cd9179f0: @@ -485,7 +485,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: customer_ids: - 8DDA5NZVBZFGAX0V3HPF81HHE0 @@ -539,7 +539,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: customer_ids: - 8DDA5NZVBZFGAX0V3HPF81HHE0 @@ -634,7 +634,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: customers: 8DDA5NZVBZFGAX0V3HPF81HHE0: @@ -763,7 +763,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: limit: 2 query: @@ -869,7 +869,7 @@ service: - path-parameters: customer_id: customer_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -1051,7 +1051,7 @@ service: - path-parameters: customer_id: customer_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: email_address: New.Amelia.Earhart@example.com note: updated customer note @@ -1140,7 +1140,7 @@ service: - path-parameters: customer_id: customer_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/customers/cards.yml b/.mock/definition/customers/cards.yml index 733e3be5..85375126 100644 --- a/.mock/definition/customers/cards.yml +++ b/.mock/definition/customers/cards.yml @@ -85,7 +85,7 @@ service: - path-parameters: customer_id: customer_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: card_nonce: YOUR_CARD_NONCE billing_address: @@ -165,7 +165,7 @@ service: customer_id: customer_id card_id: card_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/customers/customAttributeDefinitions.yml b/.mock/definition/customers/customAttributeDefinitions.yml index efc70840..70406e04 100644 --- a/.mock/definition/customers/customAttributeDefinitions.yml +++ b/.mock/definition/customers/customAttributeDefinitions.yml @@ -63,13 +63,13 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: 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. @@ -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. @@ -169,12 +169,12 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: 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. @@ -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. @@ -252,13 +252,13 @@ service: - path-parameters: key: key headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: 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. @@ -357,7 +357,7 @@ service: - path-parameters: key: key headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: custom_attribute_definition: description: Update the description as desired. @@ -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. @@ -414,7 +414,7 @@ service: - path-parameters: key: key headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -488,7 +488,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: values: id1: diff --git a/.mock/definition/customers/customAttributes.yml b/.mock/definition/customers/customAttributes.yml index 306c5d63..4001f3fb 100644 --- a/.mock/definition/customers/customAttributes.yml +++ b/.mock/definition/customers/customAttributes.yml @@ -83,7 +83,7 @@ service: - path-parameters: customer_id: customer_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: custom_attributes: @@ -184,7 +184,7 @@ service: customer_id: customer_id key: key headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: custom_attribute: @@ -299,7 +299,7 @@ service: customer_id: customer_id key: key headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: custom_attribute: value: Dune @@ -372,7 +372,7 @@ service: customer_id: customer_id key: key headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/customers/groups.yml b/.mock/definition/customers/groups.yml index eef6fca7..e9621acb 100644 --- a/.mock/definition/customers/groups.yml +++ b/.mock/definition/customers/groups.yml @@ -50,7 +50,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -98,7 +98,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: group: name: Loyal Customers @@ -138,7 +138,7 @@ service: - path-parameters: group_id: group_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -181,7 +181,7 @@ service: - path-parameters: group_id: group_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: group: name: Loyal Customers @@ -219,7 +219,7 @@ service: - path-parameters: group_id: group_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -257,7 +257,7 @@ service: customer_id: customer_id group_id: group_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -295,7 +295,7 @@ service: customer_id: customer_id group_id: group_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/customers/segments.yml b/.mock/definition/customers/segments.yml index d86fea43..15d2291d 100644 --- a/.mock/definition/customers/segments.yml +++ b/.mock/definition/customers/segments.yml @@ -50,7 +50,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -100,7 +100,7 @@ service: - path-parameters: segment_id: segment_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/devices.yml b/.mock/definition/devices.yml index bf4f3a03..bfd81a6a 100644 --- a/.mock/definition/devices.yml +++ b/.mock/definition/devices.yml @@ -50,7 +50,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -154,7 +154,7 @@ service: - path-parameters: device_id: device_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/devices/codes.yml b/.mock/definition/devices/codes.yml index ea819916..f819420a 100644 --- a/.mock/definition/devices/codes.yml +++ b/.mock/definition/devices/codes.yml @@ -54,7 +54,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -128,7 +128,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: idempotency_key: 01bb00a6-0c86-4770-94ed-f5fca973cd56 device_code: @@ -176,7 +176,7 @@ service: - path-parameters: id: id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/disputes.yml b/.mock/definition/disputes.yml index 506e05ad..23866135 100644 --- a/.mock/definition/disputes.yml +++ b/.mock/definition/disputes.yml @@ -47,7 +47,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -119,7 +119,7 @@ service: - path-parameters: dispute_id: dispute_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -181,7 +181,7 @@ service: - path-parameters: dispute_id: dispute_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -246,7 +246,7 @@ service: - path-parameters: dispute_id: dispute_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: {} response: body: @@ -311,7 +311,7 @@ service: - path-parameters: dispute_id: dispute_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: idempotency_key: ed3ee3933d946f1514d505d173c82648 evidence_type: TRACKING_NUMBER @@ -373,7 +373,7 @@ service: - path-parameters: dispute_id: dispute_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/disputes/evidence.yml b/.mock/definition/disputes/evidence.yml index 70ab4161..370886c0 100644 --- a/.mock/definition/disputes/evidence.yml +++ b/.mock/definition/disputes/evidence.yml @@ -41,7 +41,7 @@ service: - path-parameters: dispute_id: dispute_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: evidence: @@ -102,7 +102,7 @@ service: dispute_id: dispute_id evidence_id: evidence_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -148,7 +148,7 @@ service: dispute_id: dispute_id evidence_id: evidence_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/employees.yml b/.mock/definition/employees.yml index 7a686473..71d271ba 100644 --- a/.mock/definition/employees.yml +++ b/.mock/definition/employees.yml @@ -38,7 +38,7 @@ service: availability: deprecated examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: employees: @@ -82,7 +82,7 @@ service: - path-parameters: id: id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: employee: diff --git a/.mock/definition/events.yml b/.mock/definition/events.yml index 54b157dc..b97f7af6 100644 --- a/.mock/definition/events.yml +++ b/.mock/definition/events.yml @@ -57,7 +57,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: {} response: body: @@ -118,7 +118,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -142,7 +142,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -174,7 +174,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/giftCards.yml b/.mock/definition/giftCards.yml index 0613ec05..4dd5426e 100644 --- a/.mock/definition/giftCards.yml +++ b/.mock/definition/giftCards.yml @@ -71,7 +71,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -196,7 +196,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: idempotency_key: NC9Tm69EjbjtConu location_id: 81FN9BNFZTKS4 @@ -252,7 +252,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: gan: '7783320001001635' response: @@ -304,7 +304,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: nonce: cnon:7783322135245171 response: @@ -359,7 +359,7 @@ service: - path-parameters: gift_card_id: gift_card_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: customer_id: GKY0FZ3V717AH8Q2D821PNT2ZW response: @@ -414,7 +414,7 @@ service: - path-parameters: gift_card_id: gift_card_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: customer_id: GKY0FZ3V717AH8Q2D821PNT2ZW response: @@ -458,7 +458,7 @@ service: - path-parameters: id: id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/giftCards/activities.yml b/.mock/definition/giftCards/activities.yml index a4457bc6..5b541806 100644 --- a/.mock/definition/giftCards/activities.yml +++ b/.mock/definition/giftCards/activities.yml @@ -108,7 +108,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -241,7 +241,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: idempotency_key: U16kfr-kA70er-q4Rsym-7U7NnY gift_card_activity: diff --git a/.mock/definition/inventory.yml b/.mock/definition/inventory.yml index 7aa982a3..2012c9c7 100644 --- a/.mock/definition/inventory.yml +++ b/.mock/definition/inventory.yml @@ -34,7 +34,7 @@ service: - path-parameters: adjustment_id: adjustment_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -97,7 +97,7 @@ service: - path-parameters: adjustment_id: adjustment_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -157,7 +157,7 @@ service: availability: deprecated examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: idempotency_key: 8fc6a5b0-9fe8-4b46-b46b-2ef95793abbe changes: @@ -212,7 +212,7 @@ service: availability: deprecated examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: catalog_object_ids: - W62UWFY35CWMYGVWK6TWJDNI @@ -273,7 +273,7 @@ service: availability: deprecated examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: catalog_object_ids: - W62UWFY35CWMYGVWK6TWJDNI @@ -318,7 +318,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: idempotency_key: 8fc6a5b0-9fe8-4b46-b46b-2ef95793abbe changes: @@ -379,7 +379,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: catalog_object_ids: - W62UWFY35CWMYGVWK6TWJDNI @@ -458,7 +458,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: catalog_object_ids: - W62UWFY35CWMYGVWK6TWJDNI @@ -513,7 +513,7 @@ service: - path-parameters: physical_count_id: physical_count_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -565,7 +565,7 @@ service: - path-parameters: physical_count_id: physical_count_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -615,7 +615,7 @@ service: - path-parameters: transfer_id: transfer_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -690,7 +690,7 @@ service: - path-parameters: catalog_object_id: catalog_object_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -779,7 +779,7 @@ service: - path-parameters: catalog_object_id: catalog_object_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/invoices.yml b/.mock/definition/invoices.yml index c3a31966..3a07e10e 100644 --- a/.mock/definition/invoices.yml +++ b/.mock/definition/invoices.yml @@ -54,7 +54,7 @@ service: - query-parameters: location_id: location_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: invoices: @@ -239,7 +239,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: invoice: location_id: ES0RJRZYEC39A @@ -402,7 +402,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: query: filter: @@ -567,7 +567,7 @@ service: - path-parameters: invoice_id: invoice_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: invoice: @@ -713,7 +713,7 @@ service: - path-parameters: invoice_id: invoice_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: invoice: version: 1 @@ -824,7 +824,7 @@ service: - path-parameters: invoice_id: invoice_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -880,7 +880,7 @@ service: - path-parameters: invoice_id: invoice_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: {} response: body: @@ -930,7 +930,7 @@ service: invoice_id: invoice_id attachment_id: attachment_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -979,7 +979,7 @@ service: - path-parameters: invoice_id: invoice_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: version: 0 response: @@ -1129,7 +1129,7 @@ service: - path-parameters: invoice_id: invoice_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: version: 1 idempotency_key: 32da42d0-1997-41b0-826b-f09464fc2c2e diff --git a/.mock/definition/labor.yml b/.mock/definition/labor.yml index e259a438..937022ec 100644 --- a/.mock/definition/labor.yml +++ b/.mock/definition/labor.yml @@ -69,7 +69,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: idempotency_key: HIDSNG5KS478L scheduled_shift: @@ -172,7 +172,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: scheduled_shifts: key: {} @@ -263,7 +263,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: query: filter: @@ -317,7 +317,7 @@ service: - path-parameters: id: id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: scheduled_shift: @@ -432,7 +432,7 @@ service: - path-parameters: id: id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: scheduled_shift: draft_shift_details: @@ -540,7 +540,7 @@ service: - path-parameters: id: id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: idempotency_key: HIDSNG5KS478L version: 2 @@ -639,7 +639,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: idempotency_key: HIDSNG5KS478L timecard: @@ -744,7 +744,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: query: filter: @@ -849,7 +849,7 @@ service: - path-parameters: id: id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: timecard: @@ -927,7 +927,7 @@ service: - path-parameters: id: id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: timecard: location_id: PAA1RJZZKXBFG @@ -1011,7 +1011,7 @@ service: - path-parameters: id: id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/labor/breakTypes.yml b/.mock/definition/labor/breakTypes.yml index 9caa5ef1..4e137188 100644 --- a/.mock/definition/labor/breakTypes.yml +++ b/.mock/definition/labor/breakTypes.yml @@ -42,7 +42,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: break_types: @@ -123,7 +123,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: idempotency_key: PAD3NG5KSN2GL break_type: @@ -169,7 +169,7 @@ service: - path-parameters: id: id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: break_type: @@ -214,7 +214,7 @@ service: - path-parameters: id: id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: break_type: location_id: 26M7H24AZ9N6R @@ -263,7 +263,7 @@ service: - path-parameters: id: id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/labor/employeeWages.yml b/.mock/definition/labor/employeeWages.yml index 3fdb171f..c3c2caf1 100644 --- a/.mock/definition/labor/employeeWages.yml +++ b/.mock/definition/labor/employeeWages.yml @@ -41,7 +41,7 @@ service: availability: deprecated examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: employee_wages: @@ -98,7 +98,7 @@ service: - path-parameters: id: id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: employee_wage: diff --git a/.mock/definition/labor/shifts.yml b/.mock/definition/labor/shifts.yml index 38b3737c..ffb1e45e 100644 --- a/.mock/definition/labor/shifts.yml +++ b/.mock/definition/labor/shifts.yml @@ -69,7 +69,7 @@ service: availability: deprecated examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: idempotency_key: HIDSNG5KS478L shift: @@ -176,7 +176,7 @@ service: availability: deprecated examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: query: filter: @@ -284,7 +284,7 @@ service: - path-parameters: id: id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: shift: @@ -364,7 +364,7 @@ service: - path-parameters: id: id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: shift: location_id: PAA1RJZZKXBFG @@ -449,7 +449,7 @@ service: - path-parameters: id: id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/labor/teamMemberWages.yml b/.mock/definition/labor/teamMemberWages.yml index 97dcbc13..8274cf54 100644 --- a/.mock/definition/labor/teamMemberWages.yml +++ b/.mock/definition/labor/teamMemberWages.yml @@ -42,7 +42,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: team_member_wages: @@ -106,7 +106,7 @@ service: - path-parameters: id: id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: team_member_wage: diff --git a/.mock/definition/labor/workweekConfigs.yml b/.mock/definition/labor/workweekConfigs.yml index a41b195e..e05375e1 100644 --- a/.mock/definition/labor/workweekConfigs.yml +++ b/.mock/definition/labor/workweekConfigs.yml @@ -33,7 +33,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: workweek_configs: @@ -77,7 +77,7 @@ service: - path-parameters: id: id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: workweek_config: start_of_week: MON diff --git a/.mock/definition/locations.yml b/.mock/definition/locations.yml index 77c4ebf3..8a841608 100644 --- a/.mock/definition/locations.yml +++ b/.mock/definition/locations.yml @@ -23,7 +23,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -143,7 +143,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: location: name: Midtown @@ -240,7 +240,7 @@ service: - path-parameters: location_id: location_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -328,7 +328,7 @@ service: - path-parameters: location_id: location_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: location: business_hours: @@ -602,7 +602,7 @@ service: - path-parameters: location_id: location_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: idempotency_key: 86ae1696-b1e3-4328-af6d-f1e04d947ad6 order: diff --git a/.mock/definition/locations/customAttributeDefinitions.yml b/.mock/definition/locations/customAttributeDefinitions.yml index a8562303..3afbaf42 100644 --- a/.mock/definition/locations/customAttributeDefinitions.yml +++ b/.mock/definition/locations/customAttributeDefinitions.yml @@ -64,13 +64,13 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: 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 @@ -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 @@ -158,12 +158,12 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: 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 @@ -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 @@ -236,13 +236,13 @@ service: - path-parameters: key: key headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: 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 @@ -336,7 +336,7 @@ service: - path-parameters: key: key headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: custom_attribute_definition: description: Update the description as desired. @@ -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. @@ -391,7 +391,7 @@ service: - path-parameters: key: key headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/locations/customAttributes.yml b/.mock/definition/locations/customAttributes.yml index 2436421e..98a97200 100644 --- a/.mock/definition/locations/customAttributes.yml +++ b/.mock/definition/locations/customAttributes.yml @@ -39,7 +39,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: values: id1: @@ -130,7 +130,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: values: id1: @@ -274,7 +274,7 @@ service: - path-parameters: location_id: location_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: custom_attributes: @@ -369,7 +369,7 @@ service: location_id: location_id key: key headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: custom_attribute: @@ -477,7 +477,7 @@ service: location_id: location_id key: key headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: custom_attribute: value: hot cocoa @@ -545,7 +545,7 @@ service: location_id: location_id key: key headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/locations/transactions.yml b/.mock/definition/locations/transactions.yml index 35d612ba..70b94419 100644 --- a/.mock/definition/locations/transactions.yml +++ b/.mock/definition/locations/transactions.yml @@ -84,7 +84,7 @@ service: - path-parameters: location_id: location_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -173,7 +173,7 @@ service: location_id: location_id transaction_id: transaction_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -273,7 +273,7 @@ service: location_id: location_id transaction_id: transaction_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -319,7 +319,7 @@ service: location_id: location_id transaction_id: transaction_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/loyalty.yml b/.mock/definition/loyalty.yml index 1e81d71c..14ab7001 100644 --- a/.mock/definition/loyalty.yml +++ b/.mock/definition/loyalty.yml @@ -69,7 +69,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: query: filter: diff --git a/.mock/definition/loyalty/accounts.yml b/.mock/definition/loyalty/accounts.yml index c52772f0..a637e93c 100644 --- a/.mock/definition/loyalty/accounts.yml +++ b/.mock/definition/loyalty/accounts.yml @@ -39,7 +39,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: loyalty_account: program_id: d619f755-2d17-41f3-990d-c04ecedd64dd @@ -122,7 +122,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: query: mappings: @@ -176,7 +176,7 @@ service: - path-parameters: account_id: account_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -286,7 +286,7 @@ service: - path-parameters: account_id: account_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: accumulate_points: order_id: RFZfrdtm3mhO1oGzf5Cx7fEMsmGZY @@ -417,7 +417,7 @@ service: - path-parameters: account_id: account_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: idempotency_key: bc29a517-3dc9-450e-aa76-fae39ee849d1 adjust_points: diff --git a/.mock/definition/loyalty/programs.yml b/.mock/definition/loyalty/programs.yml index 741a44a5..a78c1840 100644 --- a/.mock/definition/loyalty/programs.yml +++ b/.mock/definition/loyalty/programs.yml @@ -32,7 +32,7 @@ service: availability: deprecated examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -108,7 +108,7 @@ service: - path-parameters: program_id: program_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -257,7 +257,7 @@ service: - path-parameters: program_id: program_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: order_id: RFZfrdtm3mhO1oGzf5Cx7fEMsmGZY loyalty_account_id: 79b807d2-d786-46a9-933b-918028d7a8c5 diff --git a/.mock/definition/loyalty/programs/promotions.yml b/.mock/definition/loyalty/programs/promotions.yml index 9e478716..1b1431eb 100644 --- a/.mock/definition/loyalty/programs/promotions.yml +++ b/.mock/definition/loyalty/programs/promotions.yml @@ -74,7 +74,7 @@ service: - path-parameters: program_id: program_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -229,7 +229,7 @@ service: - path-parameters: program_id: program_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: loyalty_promotion: name: Tuesday Happy Hour Promo @@ -330,7 +330,7 @@ service: promotion_id: promotion_id program_id: program_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -417,7 +417,7 @@ service: promotion_id: promotion_id program_id: program_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/loyalty/rewards.yml b/.mock/definition/loyalty/rewards.yml index 93b92c44..30ec146d 100644 --- a/.mock/definition/loyalty/rewards.yml +++ b/.mock/definition/loyalty/rewards.yml @@ -52,7 +52,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: reward: loyalty_account_id: 5adcb100-07f1-4ee7-b8c6-6bb9ebc474bd @@ -137,7 +137,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: query: loyalty_account_id: 5adcb100-07f1-4ee7-b8c6-6bb9ebc474bd @@ -209,7 +209,7 @@ service: - path-parameters: reward_id: reward_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -265,7 +265,7 @@ service: - path-parameters: reward_id: reward_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -327,7 +327,7 @@ service: - path-parameters: reward_id: reward_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: idempotency_key: 98adc7f7-6963-473b-b29c-f3c9cdd7d994 location_id: P034NEENMD09F diff --git a/.mock/definition/merchants.yml b/.mock/definition/merchants.yml index f44b1510..498e214a 100644 --- a/.mock/definition/merchants.yml +++ b/.mock/definition/merchants.yml @@ -50,7 +50,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -95,7 +95,7 @@ service: - path-parameters: merchant_id: merchant_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/merchants/customAttributeDefinitions.yml b/.mock/definition/merchants/customAttributeDefinitions.yml index e452d3ba..18f1e390 100644 --- a/.mock/definition/merchants/customAttributeDefinitions.yml +++ b/.mock/definition/merchants/customAttributeDefinitions.yml @@ -64,13 +64,13 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: 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: >- @@ -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. @@ -160,12 +160,12 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: 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. @@ -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. @@ -238,13 +238,13 @@ service: - path-parameters: key: key headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: 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. @@ -338,7 +338,7 @@ service: - path-parameters: key: key headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: custom_attribute_definition: description: Update the description as desired. @@ -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. @@ -393,7 +393,7 @@ service: - path-parameters: key: key headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/merchants/customAttributes.yml b/.mock/definition/merchants/customAttributes.yml index 72c2fce7..bbbf2da0 100644 --- a/.mock/definition/merchants/customAttributes.yml +++ b/.mock/definition/merchants/customAttributes.yml @@ -39,7 +39,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: values: id1: @@ -121,7 +121,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: values: id1: @@ -248,7 +248,7 @@ service: - path-parameters: merchant_id: merchant_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: custom_attributes: @@ -343,7 +343,7 @@ service: merchant_id: merchant_id key: key headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: custom_attribute: @@ -452,7 +452,7 @@ service: merchant_id: merchant_id key: key headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: custom_attribute: value: Ultimate Sneaker Store @@ -520,7 +520,7 @@ service: merchant_id: merchant_id key: key headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/mobile.yml b/.mock/definition/mobile.yml index 18a595bf..5622acff 100644 --- a/.mock/definition/mobile.yml +++ b/.mock/definition/mobile.yml @@ -62,7 +62,7 @@ service: availability: deprecated examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: location_id: YOUR_LOCATION_ID response: diff --git a/.mock/definition/oAuth.yml b/.mock/definition/oAuth.yml index b7c6391f..19cd34b9 100644 --- a/.mock/definition/oAuth.yml +++ b/.mock/definition/oAuth.yml @@ -81,7 +81,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: client_id: CLIENT_ID access_token: ACCESS_TOKEN @@ -312,7 +312,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: client_id: sq0idp-uaPHILoPzWZk3tlJqlML0g client_secret: sq0csp-30a-4C_tVOnTh14Piza2BfTPBXyLafLPWSzY1qAjeBfM @@ -349,7 +349,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: scopes: @@ -371,6 +371,6 @@ service: openapi: openapi/openapi.json examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' source: openapi: openapi/openapi.json diff --git a/.mock/definition/orders.yml b/.mock/definition/orders.yml index 4dc1424f..607a184e 100644 --- a/.mock/definition/orders.yml +++ b/.mock/definition/orders.yml @@ -35,7 +35,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: order: location_id: 057P5VYJ4A5X1 @@ -325,7 +325,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: location_id: 057P5VYJ4A5X1 order_ids: @@ -432,7 +432,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: order: location_id: D7AVYMEAPJ3A3 @@ -657,7 +657,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: order_id: ZAISEM52YcpmcWAzERDOyiWS123 version: 3 @@ -976,7 +976,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: location_ids: - 057P5VYJ4A5X1 @@ -1069,7 +1069,7 @@ service: - path-parameters: order_id: order_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: order: @@ -1317,7 +1317,7 @@ service: - path-parameters: order_id: order_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: order: location_id: location_id @@ -1545,7 +1545,7 @@ service: - path-parameters: order_id: order_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: idempotency_key: c043a359-7ad9-4136-82a9-c3f1d66dcbff payment_ids: diff --git a/.mock/definition/orders/customAttributeDefinitions.yml b/.mock/definition/orders/customAttributeDefinitions.yml index db1cec64..0c803ca8 100644 --- a/.mock/definition/orders/customAttributeDefinitions.yml +++ b/.mock/definition/orders/customAttributeDefinitions.yml @@ -70,13 +70,13 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: 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 @@ -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 @@ -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 @@ -170,12 +170,12 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: 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 @@ -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 @@ -244,13 +244,13 @@ service: - path-parameters: key: key headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: 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 @@ -323,7 +323,7 @@ service: - path-parameters: key: key headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: custom_attribute_definition: key: cover-count @@ -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 @@ -376,7 +376,7 @@ service: - path-parameters: key: key headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/orders/customAttributes.yml b/.mock/definition/orders/customAttributes.yml index a626c622..72d42206 100644 --- a/.mock/definition/orders/customAttributes.yml +++ b/.mock/definition/orders/customAttributes.yml @@ -65,7 +65,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: values: cover-count: @@ -151,7 +151,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: values: cover-count: @@ -280,7 +280,7 @@ service: - path-parameters: order_id: order_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: custom_attributes: @@ -366,7 +366,7 @@ service: order_id: order_id custom_attribute_key: custom_attribute_key headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: custom_attribute: @@ -477,7 +477,7 @@ service: order_id: order_id custom_attribute_key: custom_attribute_key headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: custom_attribute: key: table-number @@ -549,7 +549,7 @@ service: order_id: order_id custom_attribute_key: custom_attribute_key headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/payments.yml b/.mock/definition/payments.yml index b2d02f6c..5ae2fb84 100644 --- a/.mock/definition/payments.yml +++ b/.mock/definition/payments.yml @@ -161,7 +161,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -620,7 +620,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: source_id: ccof:GaJGNaZa8x4OgDJn4GB idempotency_key: 7b0f3ec5-086a-4871-8f13-3c81b3875218 @@ -837,7 +837,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: idempotency_key: a7e36d40-d24b-11e8-b568-0800200c9a66 response: @@ -869,7 +869,7 @@ service: - path-parameters: payment_id: payment_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -1070,7 +1070,7 @@ service: - path-parameters: payment_id: payment_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: payment: amount_money: @@ -1260,7 +1260,7 @@ service: - path-parameters: payment_id: payment_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -1456,7 +1456,7 @@ service: - path-parameters: payment_id: payment_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: {} response: body: diff --git a/.mock/definition/payouts.yml b/.mock/definition/payouts.yml index c404acb3..e2b68e67 100644 --- a/.mock/definition/payouts.yml +++ b/.mock/definition/payouts.yml @@ -86,7 +86,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: payouts: @@ -156,7 +156,7 @@ service: - path-parameters: payout_id: payout_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: payout: @@ -242,7 +242,7 @@ service: - path-parameters: payout_id: payout_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: payout_entries: diff --git a/.mock/definition/refunds.yml b/.mock/definition/refunds.yml index c267c592..20d49dd4 100644 --- a/.mock/definition/refunds.yml +++ b/.mock/definition/refunds.yml @@ -152,7 +152,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -377,7 +377,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: idempotency_key: 9b7f2dcf-49da-4411-b23e-a2d6af21333a amount_money: @@ -445,7 +445,7 @@ service: - path-parameters: refund_id: refund_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/sites.yml b/.mock/definition/sites.yml index 91dc19f5..0897fadd 100644 --- a/.mock/definition/sites.yml +++ b/.mock/definition/sites.yml @@ -27,7 +27,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/snippets.yml b/.mock/definition/snippets.yml index 95732fcc..1de5f095 100644 --- a/.mock/definition/snippets.yml +++ b/.mock/definition/snippets.yml @@ -40,7 +40,7 @@ service: - path-parameters: site_id: site_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -99,7 +99,7 @@ service: - path-parameters: site_id: site_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: snippet: content: @@ -150,7 +150,7 @@ service: - path-parameters: site_id: site_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/subscriptions.yml b/.mock/definition/subscriptions.yml index e66a6e8a..0c29e714 100644 --- a/.mock/definition/subscriptions.yml +++ b/.mock/definition/subscriptions.yml @@ -160,7 +160,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: idempotency_key: 8193148c-9586-11e6-99f9-28cfe92138cf location_id: S8GWD5R9QB376 @@ -261,7 +261,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: new_plan_variation_id: FQ7CDXXWSLUJRPM3GFJSJGZ7 old_plan_variation_id: 6JHXF3B2CW3YKHDV4XEM674H @@ -361,7 +361,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: query: filter: @@ -488,7 +488,7 @@ service: - path-parameters: subscription_id: subscription_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -562,7 +562,7 @@ service: - path-parameters: subscription_id: subscription_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: subscription: card_id: '{NEW CARD ID}' @@ -626,7 +626,7 @@ service: subscription_id: subscription_id action_id: action_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -709,7 +709,7 @@ service: - path-parameters: subscription_id: subscription_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: monthly_billing_anchor_date: 1 response: @@ -784,7 +784,7 @@ service: - path-parameters: subscription_id: subscription_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -877,7 +877,7 @@ service: - path-parameters: subscription_id: subscription_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -1013,7 +1013,7 @@ service: - path-parameters: subscription_id: subscription_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: {} response: body: @@ -1097,7 +1097,7 @@ service: - path-parameters: subscription_id: subscription_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: {} response: body: @@ -1184,7 +1184,7 @@ service: - path-parameters: subscription_id: subscription_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: new_plan_variation_id: FQ7CDXXWSLUJRPM3GFJSJGZ7 phases: diff --git a/.mock/definition/team.yml b/.mock/definition/team.yml index 9b12d852..aa90d17f 100644 --- a/.mock/definition/team.yml +++ b/.mock/definition/team.yml @@ -34,7 +34,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: jobs: @@ -97,7 +97,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: job: title: Cashier @@ -139,7 +139,7 @@ service: - path-parameters: job_id: job_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: job: @@ -195,7 +195,7 @@ service: - path-parameters: job_id: job_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: job: title: Cashier 1 diff --git a/.mock/definition/teamMembers.yml b/.mock/definition/teamMembers.yml index cfef0122..d947fac6 100644 --- a/.mock/definition/teamMembers.yml +++ b/.mock/definition/teamMembers.yml @@ -33,7 +33,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: idempotency_key: idempotency-key-0 team_member: @@ -155,7 +155,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: team_members: idempotency-key-1: @@ -269,7 +269,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: team_members: AFMwA08kR-MIF-3Vs0OE: @@ -385,7 +385,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: query: filter: @@ -623,7 +623,7 @@ service: - path-parameters: team_member_id: team_member_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: team_member: @@ -699,7 +699,7 @@ service: - path-parameters: team_member_id: team_member_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: team_member: reference_id: reference_id_1 diff --git a/.mock/definition/teamMembers/wageSetting.yml b/.mock/definition/teamMembers/wageSetting.yml index 7bded52e..3036e43c 100644 --- a/.mock/definition/teamMembers/wageSetting.yml +++ b/.mock/definition/teamMembers/wageSetting.yml @@ -40,7 +40,7 @@ service: - path-parameters: team_member_id: team_member_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: wage_setting: @@ -126,7 +126,7 @@ service: - path-parameters: team_member_id: team_member_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: wage_setting: job_assignments: diff --git a/.mock/definition/terminal.yml b/.mock/definition/terminal.yml index 263becab..1a2a6158 100644 --- a/.mock/definition/terminal.yml +++ b/.mock/definition/terminal.yml @@ -35,7 +35,7 @@ service: - path-parameters: action_id: action_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -134,7 +134,7 @@ service: - path-parameters: checkout_id: checkout_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -209,7 +209,7 @@ service: - path-parameters: terminal_refund_id: terminal_refund_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/terminal/actions.yml b/.mock/definition/terminal/actions.yml index e777c121..f4a4181b 100644 --- a/.mock/definition/terminal/actions.yml +++ b/.mock/definition/terminal/actions.yml @@ -43,7 +43,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: idempotency_key: thahn-70e75c10-47f7-4ab6-88cc-aaa4076d065e action: @@ -171,7 +171,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: query: filter: @@ -290,7 +290,7 @@ service: - path-parameters: action_id: action_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -383,7 +383,7 @@ service: - path-parameters: action_id: action_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/terminal/checkouts.yml b/.mock/definition/terminal/checkouts.yml index f9840a9d..fb288b24 100644 --- a/.mock/definition/terminal/checkouts.yml +++ b/.mock/definition/terminal/checkouts.yml @@ -45,7 +45,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: idempotency_key: 28a0c3bc-7839-11ea-bc55-0242ac130003 checkout: @@ -151,7 +151,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: query: filter: @@ -240,7 +240,7 @@ service: - path-parameters: checkout_id: checkout_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -311,7 +311,7 @@ service: - path-parameters: checkout_id: checkout_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/terminal/refunds.yml b/.mock/definition/terminal/refunds.yml index 9ab41737..c85863d1 100644 --- a/.mock/definition/terminal/refunds.yml +++ b/.mock/definition/terminal/refunds.yml @@ -46,7 +46,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: idempotency_key: 402a640b-b26f-401f-b406-46f839590c04 refund: @@ -126,7 +126,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: query: filter: @@ -182,7 +182,7 @@ service: - path-parameters: terminal_refund_id: terminal_refund_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -232,7 +232,7 @@ service: - path-parameters: terminal_refund_id: terminal_refund_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/v1Transactions.yml b/.mock/definition/v1Transactions.yml index b4d2cb62..69f1fdf0 100644 --- a/.mock/definition/v1Transactions.yml +++ b/.mock/definition/v1Transactions.yml @@ -41,7 +41,7 @@ service: - path-parameters: location_id: location_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: - errors: @@ -139,7 +139,7 @@ service: location_id: location_id order_id: order_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -284,7 +284,7 @@ service: location_id: location_id order_id: order_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: action: COMPLETE response: diff --git a/.mock/definition/vendors.yml b/.mock/definition/vendors.yml index b05ad2df..8076526f 100644 --- a/.mock/definition/vendors.yml +++ b/.mock/definition/vendors.yml @@ -31,7 +31,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: vendors: 8fc6a5b0-9fe8-4b46-b46b-2ef95793abbe: @@ -106,7 +106,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: vendor_ids: - INV_V_JDKYHBWT1D4F8MFH63DBMEN8Y4 @@ -173,7 +173,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: vendors: FMCYHBWT1TPL8MFH52PBMEN92A: @@ -281,7 +281,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: idempotency_key: 8fc6a5b0-9fe8-4b46-b46b-2ef95793abbe vendor: @@ -377,7 +377,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: {} response: body: @@ -431,7 +431,7 @@ service: - path-parameters: vendor_id: vendor_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -495,7 +495,7 @@ service: - path-parameters: vendor_id: vendor_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: idempotency_key: 8fc6a5b0-9fe8-4b46-b46b-2ef95793abbe vendor: diff --git a/.mock/definition/webhooks/eventTypes.yml b/.mock/definition/webhooks/eventTypes.yml index 620f2033..49a17740 100644 --- a/.mock/definition/webhooks/eventTypes.yml +++ b/.mock/definition/webhooks/eventTypes.yml @@ -26,7 +26,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: diff --git a/.mock/definition/webhooks/subscriptions.yml b/.mock/definition/webhooks/subscriptions.yml index 8282c610..89cdc082 100644 --- a/.mock/definition/webhooks/subscriptions.yml +++ b/.mock/definition/webhooks/subscriptions.yml @@ -64,7 +64,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -115,7 +115,7 @@ service: status-code: 200 examples: - headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: idempotency_key: 63f84c6c-2200-4c99-846c-2670a1311fbf subscription: @@ -168,7 +168,7 @@ service: - path-parameters: subscription_id: subscription_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -218,7 +218,7 @@ service: - path-parameters: subscription_id: subscription_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: subscription: name: Updated Example Webhook Subscription @@ -266,7 +266,7 @@ service: - path-parameters: subscription_id: subscription_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' response: body: errors: @@ -311,7 +311,7 @@ service: - path-parameters: subscription_id: subscription_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: idempotency_key: ed80ae6b-0654-473b-bbab-a39aee89a60d response: @@ -360,7 +360,7 @@ service: - path-parameters: subscription_id: subscription_id headers: - Square-Version: '2025-07-16' + Square-Version: '2025-08-20' request: event_type: payment.created response: diff --git a/.mock/fern.config.json b/.mock/fern.config.json index 47de4c7d..fbf60629 100644 --- a/.mock/fern.config.json +++ b/.mock/fern.config.json @@ -1,4 +1,4 @@ { "organization" : "square", - "version" : "0.64.23" + "version" : "0.66.19" } \ No newline at end of file diff --git a/.mock/openapi/openapi.json b/.mock/openapi/openapi.json index 33c6c40f..347d808f 100644 --- a/.mock/openapi/openapi.json +++ b/.mock/openapi/openapi.json @@ -146,7 +146,7 @@ "name": "Square-Version", "description": "Square Connect API versions", "schema": { - "default": "2025-07-16" + "default": "2025-08-20" } } ], @@ -76794,7 +76794,7 @@ "name": "version", "optional": true, "env": "VERSION", - "type": "literal\u003c\"2025-07-16\"\u003e" + "type": "literal\u003c\"2025-08-20\"\u003e" } ] } \ No newline at end of file diff --git a/poetry.lock b/poetry.lock index 7f8488fc..c2ddd863 100644 --- a/poetry.lock +++ b/poetry.lock @@ -547,4 +547,4 @@ files = [ [metadata] lock-version = "2.0" python-versions = "^3.8" -content-hash = "9c462a453d491f6c13e77f216c114935f5785c9e0c2288839fb0862ea2551003" +content-hash = "8551b871abee465e23fb0966d51f2c155fd257b55bdcb0c02d095de19f92f358" diff --git a/pyproject.toml b/pyproject.toml index a0346d67..c1284570 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "squareup" [tool.poetry] name = "squareup" -version = "43.0.1.20250716" +version = "43.0.2.20250820" description = "" readme = "README.md" authors = [] @@ -38,7 +38,7 @@ Repository = 'https://github.com/square/square-python-sdk' python = "^3.8" httpx = ">=0.21.2" pydantic = ">= 1.9.2" -pydantic-core = "^2.18.2" +pydantic-core = ">=2.18.2" typing_extensions = ">= 4.0.0" [tool.poetry.group.dev.dependencies] diff --git a/reference.md b/reference.md index 48d280b2..eb69a77d 100644 --- a/reference.md +++ b/reference.md @@ -19935,7 +19935,7 @@ client.customers.custom_attribute_definitions.create( custom_attribute_definition={ "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.", @@ -24072,7 +24072,7 @@ client.locations.custom_attribute_definitions.create( custom_attribute_definition={ "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", @@ -27136,7 +27136,7 @@ client.merchants.custom_attribute_definitions.create( custom_attribute_definition={ "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.", @@ -28226,7 +28226,7 @@ client.orders.custom_attribute_definitions.create( custom_attribute_definition={ "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", diff --git a/requirements.txt b/requirements.txt index 170f5122..e80f640a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ httpx>=0.21.2 pydantic>= 1.9.2 -pydantic-core==2.18.2 +pydantic-core>=2.18.2 typing_extensions>= 4.0.0 diff --git a/src/square/core/client_wrapper.py b/src/square/core/client_wrapper.py index 2a749183..66236d6f 100644 --- a/src/square/core/client_wrapper.py +++ b/src/square/core/client_wrapper.py @@ -24,16 +24,16 @@ def __init__( def get_headers(self) -> typing.Dict[str, str]: headers: typing.Dict[str, str] = { - "User-Agent": "squareup/43.0.1.20250716", + "User-Agent": "squareup/43.0.2.20250820", "X-Fern-Language": "Python", "X-Fern-SDK-Name": "squareup", - "X-Fern-SDK-Version": "43.0.1.20250716", + "X-Fern-SDK-Version": "43.0.2.20250820", **(self.get_custom_headers() or {}), } token = self._get_token() if token is not None: headers["Authorization"] = f"Bearer {token}" - headers["Square-Version"] = self._version if self._version is not None else "2025-07-16" + headers["Square-Version"] = self._version if self._version is not None else "2025-08-20" return headers def _get_token(self) -> typing.Optional[str]: diff --git a/src/square/core/unchecked_base_model.py b/src/square/core/unchecked_base_model.py index 2c2d92a7..e04a6f81 100644 --- a/src/square/core/unchecked_base_model.py +++ b/src/square/core/unchecked_base_model.py @@ -124,12 +124,50 @@ def construct( return m +def _validate_collection_items_compatible(collection: typing.Any, target_type: typing.Type[typing.Any]) -> bool: + """ + Validate that all items in a collection are compatible with the target type. + + Args: + collection: The collection to validate (list, set, or dict values) + target_type: The target type to validate against + + Returns: + True if all items are compatible, False otherwise + """ + if inspect.isclass(target_type) and issubclass(target_type, pydantic.BaseModel): + for item in collection: + try: + # Try to validate the item against the target type + if isinstance(item, dict): + parse_obj_as(target_type, item) + else: + # If it's not a dict, it might already be the right type + if not isinstance(item, target_type): + return False + except Exception: + return False + return True + + def _convert_undiscriminated_union_type(union_type: typing.Type[typing.Any], object_: typing.Any) -> typing.Any: inner_types = get_args(union_type) if typing.Any in inner_types: return object_ for inner_type in inner_types: + # Handle lists of objects that need parsing + if get_origin(inner_type) is list and isinstance(object_, list): + list_inner_type = get_args(inner_type)[0] + try: + if inspect.isclass(list_inner_type) and issubclass(list_inner_type, pydantic.BaseModel): + # Validate that all items in the list are compatible with the target type + if _validate_collection_items_compatible(object_, list_inner_type): + parsed_list = [parse_obj_as(object_=item, type_=list_inner_type) for item in object_] + return parsed_list + except Exception: + pass + try: if inspect.isclass(inner_type) and issubclass(inner_type, pydantic.BaseModel): # Attempt a validated parse until one works diff --git a/src/square/customers/client.py b/src/square/customers/client.py index f341df40..3dd78b43 100644 --- a/src/square/customers/client.py +++ b/src/square/customers/client.py @@ -167,7 +167,7 @@ def create( Parameters ---------- idempotency_key : typing.Optional[str] - The idempotency key for the request. For more information, see + The idempotency key for the request. For more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency). given_name : typing.Optional[str] @@ -918,7 +918,7 @@ async def create( Parameters ---------- idempotency_key : typing.Optional[str] - The idempotency key for the request. For more information, see + The idempotency key for the request. For more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency). given_name : typing.Optional[str] diff --git a/src/square/customers/custom_attribute_definitions/client.py b/src/square/customers/custom_attribute_definitions/client.py index 6410ee95..c0a66ac6 100644 --- a/src/square/customers/custom_attribute_definitions/client.py +++ b/src/square/customers/custom_attribute_definitions/client.py @@ -146,7 +146,7 @@ def create( custom_attribute_definition={ "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.", @@ -529,7 +529,7 @@ async def main() -> None: custom_attribute_definition={ "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.", diff --git a/src/square/customers/raw_client.py b/src/square/customers/raw_client.py index c7503ec2..e46f9920 100644 --- a/src/square/customers/raw_client.py +++ b/src/square/customers/raw_client.py @@ -165,7 +165,7 @@ def create( Parameters ---------- idempotency_key : typing.Optional[str] - The idempotency key for the request. For more information, see + The idempotency key for the request. For more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency). given_name : typing.Optional[str] @@ -943,7 +943,7 @@ async def create( Parameters ---------- idempotency_key : typing.Optional[str] - The idempotency key for the request. For more information, see + The idempotency key for the request. For more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency). given_name : typing.Optional[str] diff --git a/src/square/locations/custom_attribute_definitions/client.py b/src/square/locations/custom_attribute_definitions/client.py index bf13c626..fd590c32 100644 --- a/src/square/locations/custom_attribute_definitions/client.py +++ b/src/square/locations/custom_attribute_definitions/client.py @@ -144,7 +144,7 @@ def create( custom_attribute_definition={ "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", @@ -440,7 +440,7 @@ async def main() -> None: custom_attribute_definition={ "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", diff --git a/src/square/merchants/custom_attribute_definitions/client.py b/src/square/merchants/custom_attribute_definitions/client.py index afe807cf..e77bee35 100644 --- a/src/square/merchants/custom_attribute_definitions/client.py +++ b/src/square/merchants/custom_attribute_definitions/client.py @@ -144,7 +144,7 @@ def create( custom_attribute_definition={ "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.", @@ -439,7 +439,7 @@ async def main() -> None: custom_attribute_definition={ "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.", diff --git a/src/square/orders/custom_attribute_definitions/client.py b/src/square/orders/custom_attribute_definitions/client.py index 3251c782..ea8986fc 100644 --- a/src/square/orders/custom_attribute_definitions/client.py +++ b/src/square/orders/custom_attribute_definitions/client.py @@ -138,7 +138,7 @@ def create( custom_attribute_definition={ "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", @@ -427,7 +427,7 @@ async def main() -> None: custom_attribute_definition={ "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",