From f444b2d0080c0819c18e0029eadb3d5f15f6c640 Mon Sep 17 00:00:00 2001
From: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
Date: Wed, 19 Feb 2025 00:33:58 +0000
Subject: [PATCH] SDK regeneration
---
package.json | 4 +-
reference.md | 317 +++++++++---------
src/Client.ts | 4 +-
src/api/resources/applePay/client/Client.ts | 10 +-
.../resources/bankAccounts/client/Client.ts | 36 +-
...etRequest.ts => GetBankAccountsRequest.ts} | 2 +-
...est.ts => GetByV1IdBankAccountsRequest.ts} | 2 +-
...tRequest.ts => ListBankAccountsRequest.ts} | 2 +-
.../bankAccounts/client/requests/index.ts | 6 +-
src/api/resources/bookings/client/Client.ts | 74 ++--
...ngsGetRequest.ts => GetBookingsRequest.ts} | 2 +-
...sListRequest.ts => ListBookingsRequest.ts} | 2 +-
.../bookings/client/requests/index.ts | 4 +-
.../client/Client.ts | 48 +--
...eleteCustomAttributeDefinitionsRequest.ts} | 2 +-
.../GetCustomAttributeDefinitionsRequest.ts} | 2 +-
... ListCustomAttributeDefinitionsRequest.ts} | 2 +-
.../client/requests/index.ts | 6 +-
.../customAttributes/client/Client.ts | 54 +--
...st.ts => DeleteCustomAttributesRequest.ts} | 2 +-
...quest.ts => GetCustomAttributesRequest.ts} | 2 +-
...uest.ts => ListCustomAttributesRequest.ts} | 2 +-
.../customAttributes/client/requests/index.ts | 6 +-
.../locationProfiles/client/Client.ts | 16 +-
...uest.ts => ListLocationProfilesRequest.ts} | 2 +-
.../locationProfiles/client/requests/index.ts | 2 +-
.../teamMemberProfiles/client/Client.ts | 26 +-
...est.ts => GetTeamMemberProfilesRequest.ts} | 2 +-
...st.ts => ListTeamMemberProfilesRequest.ts} | 2 +-
.../client/requests/index.ts | 4 +-
src/api/resources/cards/client/Client.ts | 42 +--
...sableRequest.ts => DisableCardsRequest.ts} | 2 +-
...{CardsGetRequest.ts => GetCardsRequest.ts} | 2 +-
...ardsListRequest.ts => ListCardsRequest.ts} | 2 +-
.../resources/cards/client/requests/index.ts | 6 +-
.../resources/cashDrawers/client/Client.ts | 4 +-
.../resources/shifts/client/Client.ts | 38 +--
...hiftsGetRequest.ts => GetShiftsRequest.ts} | 2 +-
...sRequest.ts => ListEventsShiftsRequest.ts} | 2 +-
...ftsListRequest.ts => ListShiftsRequest.ts} | 2 +-
.../resources/shifts/client/requests/index.ts | 6 +-
src/api/resources/catalog/client/Client.ts | 84 +++--
.../BatchUpsertCatalogObjectsRequest.ts | 20 +-
...ogListRequest.ts => ListCatalogRequest.ts} | 2 +-
.../catalog/client/requests/index.ts | 2 +-
.../catalog/resources/images/client/Client.ts | 24 +-
...reateRequest.ts => CreateImagesRequest.ts} | 2 +-
...pdateRequest.ts => UpdateImagesRequest.ts} | 2 +-
.../resources/images/client/requests/index.ts | 4 +-
.../catalog/resources/object/client/Client.ts | 34 +-
...eleteRequest.ts => DeleteObjectRequest.ts} | 2 +-
...bjectGetRequest.ts => GetObjectRequest.ts} | 2 +-
.../requests/UpsertCatalogObjectRequest.ts | 4 +-
.../resources/object/client/requests/index.ts | 4 +-
src/api/resources/checkout/client/Client.ts | 28 +-
.../resources/paymentLinks/client/Client.ts | 48 +--
...equest.ts => DeletePaymentLinksRequest.ts} | 2 +-
...etRequest.ts => GetPaymentLinksRequest.ts} | 2 +-
...tRequest.ts => ListPaymentLinksRequest.ts} | 2 +-
.../paymentLinks/client/requests/index.ts | 6 +-
src/api/resources/customers/client/Client.ts | 78 ++---
...teRequest.ts => DeleteCustomersRequest.ts} | 2 +-
...rsGetRequest.ts => GetCustomersRequest.ts} | 2 +-
...ListRequest.ts => ListCustomersRequest.ts} | 2 +-
.../customers/client/requests/index.ts | 6 +-
.../resources/cards/client/Client.ts | 20 +-
...DeleteRequest.ts => DeleteCardsRequest.ts} | 2 +-
.../resources/cards/client/requests/index.ts | 2 +-
.../client/Client.ts | 54 +--
...eleteCustomAttributeDefinitionsRequest.ts} | 2 +-
.../GetCustomAttributeDefinitionsRequest.ts} | 2 +-
... ListCustomAttributeDefinitionsRequest.ts} | 2 +-
.../client/requests/index.ts | 6 +-
.../customAttributes/client/Client.ts | 42 +--
...st.ts => DeleteCustomAttributesRequest.ts} | 2 +-
...quest.ts => GetCustomAttributesRequest.ts} | 2 +-
...uest.ts => ListCustomAttributesRequest.ts} | 2 +-
.../customAttributes/client/requests/index.ts | 6 +-
.../resources/groups/client/Client.ts | 68 ++--
...roupsAddRequest.ts => AddGroupsRequest.ts} | 2 +-
...eleteRequest.ts => DeleteGroupsRequest.ts} | 2 +-
...roupsGetRequest.ts => GetGroupsRequest.ts} | 2 +-
...upsListRequest.ts => ListGroupsRequest.ts} | 2 +-
...emoveRequest.ts => RemoveGroupsRequest.ts} | 2 +-
.../resources/groups/client/requests/index.ts | 10 +-
.../resources/segments/client/Client.ts | 26 +-
...ntsGetRequest.ts => GetSegmentsRequest.ts} | 2 +-
...sListRequest.ts => ListSegmentsRequest.ts} | 2 +-
.../segments/client/requests/index.ts | 4 +-
src/api/resources/devices/client/Client.ts | 26 +-
...icesGetRequest.ts => GetDevicesRequest.ts} | 2 +-
...esListRequest.ts => ListDevicesRequest.ts} | 2 +-
.../devices/client/requests/index.ts | 4 +-
.../devices/resources/codes/client/Client.ts | 32 +-
...{CodesGetRequest.ts => GetCodesRequest.ts} | 2 +-
...odesListRequest.ts => ListCodesRequest.ts} | 2 +-
.../resources/codes/client/requests/index.ts | 4 +-
src/api/resources/disputes/client/Client.ts | 62 ++--
...eptRequest.ts => AcceptDisputesRequest.ts} | 2 +-
...s => CreateEvidenceFileDisputesRequest.ts} | 2 +-
...tesGetRequest.ts => GetDisputesRequest.ts} | 2 +-
...sListRequest.ts => ListDisputesRequest.ts} | 2 +-
...st.ts => SubmitEvidenceDisputesRequest.ts} | 2 +-
.../disputes/client/requests/index.ts | 10 +-
.../resources/evidence/client/Client.ts | 36 +-
...eteRequest.ts => DeleteEvidenceRequest.ts} | 2 +-
...nceGetRequest.ts => GetEvidenceRequest.ts} | 2 +-
...eListRequest.ts => ListEvidenceRequest.ts} | 2 +-
.../evidence/client/requests/index.ts | 6 +-
src/api/resources/employees/client/Client.ts | 26 +-
...esGetRequest.ts => GetEmployeesRequest.ts} | 2 +-
...ListRequest.ts => ListEmployeesRequest.ts} | 2 +-
.../employees/client/requests/index.ts | 4 +-
src/api/resources/events/client/Client.ts | 28 +-
src/api/resources/giftCards/client/Client.ts | 56 ++--
...dsGetRequest.ts => GetGiftCardsRequest.ts} | 2 +-
...ListRequest.ts => ListGiftCardsRequest.ts} | 2 +-
.../giftCards/client/requests/index.ts | 4 +-
.../resources/activities/client/Client.ts | 22 +-
...istRequest.ts => ListActivitiesRequest.ts} | 2 +-
.../activities/client/requests/index.ts | 2 +-
src/api/resources/inventory/client/Client.ts | 114 +++----
...sRequest.ts => ChangesInventoryRequest.ts} | 2 +-
...eprecatedGetAdjustmentInventoryRequest.ts} | 2 +-
...ecatedGetPhysicalCountInventoryRequest.ts} | 2 +-
...st.ts => GetAdjustmentInventoryRequest.ts} | 2 +-
...ryGetRequest.ts => GetInventoryRequest.ts} | 2 +-
...ts => GetPhysicalCountInventoryRequest.ts} | 2 +-
...uest.ts => GetTransferInventoryRequest.ts} | 2 +-
.../inventory/client/requests/index.ts | 14 +-
src/api/resources/invoices/client/Client.ts | 78 ++---
...eteRequest.ts => DeleteInvoicesRequest.ts} | 2 +-
...cesGetRequest.ts => GetInvoicesRequest.ts} | 2 +-
...sListRequest.ts => ListInvoicesRequest.ts} | 2 +-
.../invoices/client/requests/index.ts | 6 +-
src/api/resources/labor/client/Client.ts | 4 +-
.../resources/breakTypes/client/Client.ts | 48 +--
...eRequest.ts => DeleteBreakTypesRequest.ts} | 2 +-
...sGetRequest.ts => GetBreakTypesRequest.ts} | 2 +-
...istRequest.ts => ListBreakTypesRequest.ts} | 2 +-
.../breakTypes/client/requests/index.ts | 6 +-
.../resources/employeeWages/client/Client.ts | 26 +-
...tRequest.ts => GetEmployeeWagesRequest.ts} | 2 +-
...Request.ts => ListEmployeeWagesRequest.ts} | 2 +-
.../employeeWages/client/requests/index.ts | 4 +-
.../labor/resources/shifts/client/Client.ts | 42 +--
...eleteRequest.ts => DeleteShiftsRequest.ts} | 2 +-
...hiftsGetRequest.ts => GetShiftsRequest.ts} | 2 +-
.../resources/shifts/client/requests/index.ts | 4 +-
.../teamMemberWages/client/Client.ts | 26 +-
...equest.ts => GetTeamMemberWagesRequest.ts} | 2 +-
...quest.ts => ListTeamMemberWagesRequest.ts} | 2 +-
.../teamMemberWages/client/requests/index.ts | 4 +-
.../workweekConfigs/client/Client.ts | 22 +-
...quest.ts => ListWorkweekConfigsRequest.ts} | 2 +-
.../workweekConfigs/client/requests/index.ts | 2 +-
src/api/resources/locations/client/Client.ts | 38 +--
...nsGetRequest.ts => GetLocationsRequest.ts} | 2 +-
.../locations/client/requests/index.ts | 2 +-
.../client/Client.ts | 48 +--
...eleteCustomAttributeDefinitionsRequest.ts} | 2 +-
.../GetCustomAttributeDefinitionsRequest.ts} | 2 +-
... ListCustomAttributeDefinitionsRequest.ts} | 2 +-
.../client/requests/index.ts | 6 +-
.../customAttributes/client/Client.ts | 54 +--
...st.ts => DeleteCustomAttributesRequest.ts} | 2 +-
...quest.ts => GetCustomAttributesRequest.ts} | 2 +-
...uest.ts => ListCustomAttributesRequest.ts} | 2 +-
.../customAttributes/client/requests/index.ts | 6 +-
.../resources/transactions/client/Client.ts | 44 +--
...quest.ts => CaptureTransactionsRequest.ts} | 2 +-
...etRequest.ts => GetTransactionsRequest.ts} | 2 +-
...tRequest.ts => ListTransactionsRequest.ts} | 2 +-
...dRequest.ts => VoidTransactionsRequest.ts} | 2 +-
.../transactions/client/requests/index.ts | 8 +-
src/api/resources/loyalty/client/Client.ts | 10 +-
.../resources/accounts/client/Client.ts | 38 +--
...ntsGetRequest.ts => GetAccountsRequest.ts} | 2 +-
.../accounts/client/requests/index.ts | 2 +-
.../resources/programs/client/Client.ts | 26 +-
...amsGetRequest.ts => GetProgramsRequest.ts} | 2 +-
.../programs/client/requests/index.ts | 2 +-
.../resources/promotions/client/Client.ts | 42 +--
...lRequest.ts => CancelPromotionsRequest.ts} | 2 +-
...sGetRequest.ts => GetPromotionsRequest.ts} | 2 +-
...istRequest.ts => ListPromotionsRequest.ts} | 2 +-
.../promotions/client/requests/index.ts | 6 +-
.../resources/rewards/client/Client.ts | 42 +--
...leteRequest.ts => DeleteRewardsRequest.ts} | 2 +-
...ardsGetRequest.ts => GetRewardsRequest.ts} | 2 +-
.../rewards/client/requests/index.ts | 4 +-
src/api/resources/merchants/client/Client.ts | 26 +-
...tsGetRequest.ts => GetMerchantsRequest.ts} | 2 +-
...ListRequest.ts => ListMerchantsRequest.ts} | 2 +-
.../merchants/client/requests/index.ts | 4 +-
.../client/Client.ts | 48 +--
...eleteCustomAttributeDefinitionsRequest.ts} | 2 +-
.../GetCustomAttributeDefinitionsRequest.ts} | 2 +-
... ListCustomAttributeDefinitionsRequest.ts} | 2 +-
.../client/requests/index.ts | 6 +-
.../customAttributes/client/Client.ts | 54 +--
...st.ts => DeleteCustomAttributesRequest.ts} | 2 +-
...quest.ts => GetCustomAttributesRequest.ts} | 2 +-
...uest.ts => ListCustomAttributesRequest.ts} | 2 +-
.../customAttributes/client/requests/index.ts | 6 +-
src/api/resources/mobile/client/Client.ts | 15 +-
src/api/resources/oAuth/client/Client.ts | 28 +-
src/api/resources/orders/client/Client.ts | 56 ++--
...rdersGetRequest.ts => GetOrdersRequest.ts} | 2 +-
.../resources/orders/client/requests/index.ts | 2 +-
.../client/Client.ts | 48 +--
...CustomAttributeDefinitionsDeleteRequest.ts | 16 -
...DeleteCustomAttributeDefinitionsRequest.ts | 16 +
...> GetCustomAttributeDefinitionsRequest.ts} | 2 +-
... ListCustomAttributeDefinitionsRequest.ts} | 2 +-
.../client/requests/index.ts | 6 +-
.../customAttributes/client/Client.ts | 54 +--
...st.ts => DeleteCustomAttributesRequest.ts} | 2 +-
...quest.ts => GetCustomAttributesRequest.ts} | 2 +-
...uest.ts => ListCustomAttributesRequest.ts} | 2 +-
.../customAttributes/client/requests/index.ts | 6 +-
src/api/resources/payments/client/Client.ts | 62 ++--
...celRequest.ts => CancelPaymentsRequest.ts} | 2 +-
...ntsGetRequest.ts => GetPaymentsRequest.ts} | 2 +-
...sListRequest.ts => ListPaymentsRequest.ts} | 4 +-
.../payments/client/requests/index.ts | 6 +-
src/api/resources/payouts/client/Client.ts | 38 +--
...outsGetRequest.ts => GetPayoutsRequest.ts} | 2 +-
...equest.ts => ListEntriesPayoutsRequest.ts} | 2 +-
...tsListRequest.ts => ListPayoutsRequest.ts} | 2 +-
.../payouts/client/requests/index.ts | 6 +-
src/api/resources/refunds/client/Client.ts | 60 +++-
...undsGetRequest.ts => GetRefundsRequest.ts} | 2 +-
...dsListRequest.ts => ListRefundsRequest.ts} | 22 +-
.../refunds/client/requests/index.ts | 4 +-
src/api/resources/sites/client/Client.ts | 10 +-
src/api/resources/snippets/client/Client.ts | 30 +-
...eteRequest.ts => DeleteSnippetsRequest.ts} | 2 +-
...etsGetRequest.ts => GetSnippetsRequest.ts} | 2 +-
.../snippets/client/requests/index.ts | 4 +-
.../resources/subscriptions/client/Client.ts | 94 +++---
...quest.ts => CancelSubscriptionsRequest.ts} | 2 +-
...ts => DeleteActionSubscriptionsRequest.ts} | 2 +-
...tRequest.ts => GetSubscriptionsRequest.ts} | 2 +-
...t.ts => ListEventsSubscriptionsRequest.ts} | 2 +-
.../subscriptions/client/requests/index.ts | 8 +-
src/api/resources/team/client/Client.ts | 28 +-
.../resources/teamMembers/client/Client.ts | 48 +--
...GetRequest.ts => GetTeamMembersRequest.ts} | 2 +-
...Request.ts => UpdateTeamMembersRequest.ts} | 2 +-
.../teamMembers/client/requests/index.ts | 4 +-
.../resources/wageSetting/client/Client.ts | 20 +-
...GetRequest.ts => GetWageSettingRequest.ts} | 2 +-
.../wageSetting/client/requests/index.ts | 2 +-
src/api/resources/terminal/client/Client.ts | 22 +-
.../resources/actions/client/Client.ts | 36 +-
...ncelRequest.ts => CancelActionsRequest.ts} | 2 +-
...ionsGetRequest.ts => GetActionsRequest.ts} | 2 +-
.../actions/client/requests/index.ts | 4 +-
.../resources/checkouts/client/Client.ts | 36 +-
...elRequest.ts => CancelCheckoutsRequest.ts} | 2 +-
...tsGetRequest.ts => GetCheckoutsRequest.ts} | 2 +-
.../checkouts/client/requests/index.ts | 4 +-
.../resources/refunds/client/Client.ts | 36 +-
...ncelRequest.ts => CancelRefundsRequest.ts} | 2 +-
...undsGetRequest.ts => GetRefundsRequest.ts} | 2 +-
.../refunds/client/requests/index.ts | 4 +-
.../resources/v1Transactions/client/Client.ts | 22 +-
src/api/resources/vendors/client/Client.ts | 54 +--
...dorsGetRequest.ts => GetVendorsRequest.ts} | 2 +-
...dateRequest.ts => UpdateVendorsRequest.ts} | 2 +-
.../vendors/client/requests/index.ts | 4 +-
src/api/resources/webhooks/client/Client.ts | 4 +-
.../resources/eventTypes/client/Client.ts | 14 +-
...istRequest.ts => ListEventTypesRequest.ts} | 2 +-
.../eventTypes/client/requests/index.ts | 2 +-
.../resources/subscriptions/client/Client.ts | 60 ++--
...quest.ts => DeleteSubscriptionsRequest.ts} | 2 +-
...tRequest.ts => GetSubscriptionsRequest.ts} | 2 +-
...Request.ts => ListSubscriptionsRequest.ts} | 2 +-
.../subscriptions/client/requests/index.ts | 6 +-
src/api/types/ErrorCode.ts | 4 +
.../ListPaymentRefundsRequestSortField.ts | 9 +
...eld.ts => ListPaymentsRequestSortField.ts} | 4 +-
src/api/types/TerminalCheckout.ts | 2 +-
src/api/types/index.ts | 3 +-
src/serialization/types/ErrorCode.ts | 4 +
.../ListPaymentRefundsRequestSortField.ts | 16 +
...eld.ts => ListPaymentsRequestSortField.ts} | 8 +-
src/serialization/types/index.ts | 3 +-
src/version.ts | 2 +-
yarn.lock | 258 +++++++-------
292 files changed, 2097 insertions(+), 2040 deletions(-)
rename src/api/resources/bankAccounts/client/requests/{BankAccountsGetRequest.ts => GetBankAccountsRequest.ts} (85%)
rename src/api/resources/bankAccounts/client/requests/{BankAccountsGetByV1IdRequest.ts => GetByV1IdBankAccountsRequest.ts} (91%)
rename src/api/resources/bankAccounts/client/requests/{BankAccountsListRequest.ts => ListBankAccountsRequest.ts} (95%)
rename src/api/resources/bookings/client/requests/{BookingsGetRequest.ts => GetBookingsRequest.ts} (88%)
rename src/api/resources/bookings/client/requests/{BookingsListRequest.ts => ListBookingsRequest.ts} (97%)
rename src/api/resources/{customers/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsDeleteRequest.ts => bookings/resources/customAttributeDefinitions/client/requests/DeleteCustomAttributeDefinitionsRequest.ts} (79%)
rename src/api/resources/{customers/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsGetRequest.ts => bookings/resources/customAttributeDefinitions/client/requests/GetCustomAttributeDefinitionsRequest.ts} (93%)
rename src/api/resources/bookings/resources/customAttributeDefinitions/client/requests/{CustomAttributeDefinitionsListRequest.ts => ListCustomAttributeDefinitionsRequest.ts} (93%)
rename src/api/resources/bookings/resources/customAttributes/client/requests/{CustomAttributesDeleteRequest.ts => DeleteCustomAttributesRequest.ts} (91%)
rename src/api/resources/bookings/resources/customAttributes/client/requests/{CustomAttributesGetRequest.ts => GetCustomAttributesRequest.ts} (96%)
rename src/api/resources/bookings/resources/customAttributes/client/requests/{CustomAttributesListRequest.ts => ListCustomAttributesRequest.ts} (96%)
rename src/api/resources/bookings/resources/locationProfiles/client/requests/{LocationProfilesListRequest.ts => ListLocationProfilesRequest.ts} (89%)
rename src/api/resources/bookings/resources/teamMemberProfiles/client/requests/{TeamMemberProfilesGetRequest.ts => GetTeamMemberProfilesRequest.ts} (83%)
rename src/api/resources/bookings/resources/teamMemberProfiles/client/requests/{TeamMemberProfilesListRequest.ts => ListTeamMemberProfilesRequest.ts} (93%)
rename src/api/resources/cards/client/requests/{CardsDisableRequest.ts => DisableCardsRequest.ts} (84%)
rename src/api/resources/cards/client/requests/{CardsGetRequest.ts => GetCardsRequest.ts} (86%)
rename src/api/resources/cards/client/requests/{CardsListRequest.ts => ListCardsRequest.ts} (96%)
rename src/api/resources/cashDrawers/resources/shifts/client/requests/{ShiftsGetRequest.ts => GetShiftsRequest.ts} (90%)
rename src/api/resources/cashDrawers/resources/shifts/client/requests/{ShiftsListEventsRequest.ts => ListEventsShiftsRequest.ts} (93%)
rename src/api/resources/cashDrawers/resources/shifts/client/requests/{ShiftsListRequest.ts => ListShiftsRequest.ts} (96%)
rename src/api/resources/catalog/client/requests/{CatalogListRequest.ts => ListCatalogRequest.ts} (97%)
rename src/api/resources/catalog/resources/images/client/requests/{ImagesCreateRequest.ts => CreateImagesRequest.ts} (88%)
rename src/api/resources/catalog/resources/images/client/requests/{ImagesUpdateRequest.ts => UpdateImagesRequest.ts} (91%)
rename src/api/resources/catalog/resources/object/client/requests/{ObjectDeleteRequest.ts => DeleteObjectRequest.ts} (91%)
rename src/api/resources/catalog/resources/object/client/requests/{ObjectGetRequest.ts => GetObjectRequest.ts} (98%)
rename src/api/resources/checkout/resources/paymentLinks/client/requests/{PaymentLinksDeleteRequest.ts => DeletePaymentLinksRequest.ts} (82%)
rename src/api/resources/checkout/resources/paymentLinks/client/requests/{PaymentLinksGetRequest.ts => GetPaymentLinksRequest.ts} (82%)
rename src/api/resources/checkout/resources/paymentLinks/client/requests/{PaymentLinksListRequest.ts => ListPaymentLinksRequest.ts} (95%)
rename src/api/resources/customers/client/requests/{CustomersDeleteRequest.ts => DeleteCustomersRequest.ts} (94%)
rename src/api/resources/customers/client/requests/{CustomersGetRequest.ts => GetCustomersRequest.ts} (85%)
rename src/api/resources/customers/client/requests/{CustomersListRequest.ts => ListCustomersRequest.ts} (97%)
rename src/api/resources/customers/resources/cards/client/requests/{CardsDeleteRequest.ts => DeleteCardsRequest.ts} (90%)
rename src/api/resources/{locations/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsDeleteRequest.ts => customers/resources/customAttributeDefinitions/client/requests/DeleteCustomAttributeDefinitionsRequest.ts} (79%)
rename src/api/resources/{locations/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsGetRequest.ts => customers/resources/customAttributeDefinitions/client/requests/GetCustomAttributeDefinitionsRequest.ts} (93%)
rename src/api/resources/customers/resources/customAttributeDefinitions/client/requests/{CustomAttributeDefinitionsListRequest.ts => ListCustomAttributeDefinitionsRequest.ts} (93%)
rename src/api/resources/customers/resources/customAttributes/client/requests/{CustomAttributesDeleteRequest.ts => DeleteCustomAttributesRequest.ts} (91%)
rename src/api/resources/customers/resources/customAttributes/client/requests/{CustomAttributesGetRequest.ts => GetCustomAttributesRequest.ts} (96%)
rename src/api/resources/customers/resources/customAttributes/client/requests/{CustomAttributesListRequest.ts => ListCustomAttributesRequest.ts} (96%)
rename src/api/resources/customers/resources/groups/client/requests/{GroupsAddRequest.ts => AddGroupsRequest.ts} (91%)
rename src/api/resources/customers/resources/groups/client/requests/{GroupsDeleteRequest.ts => DeleteGroupsRequest.ts} (85%)
rename src/api/resources/customers/resources/groups/client/requests/{GroupsGetRequest.ts => GetGroupsRequest.ts} (86%)
rename src/api/resources/customers/resources/groups/client/requests/{GroupsListRequest.ts => ListGroupsRequest.ts} (96%)
rename src/api/resources/customers/resources/groups/client/requests/{GroupsRemoveRequest.ts => RemoveGroupsRequest.ts} (90%)
rename src/api/resources/customers/resources/segments/client/requests/{SegmentsGetRequest.ts => GetSegmentsRequest.ts} (86%)
rename src/api/resources/customers/resources/segments/client/requests/{SegmentsListRequest.ts => ListSegmentsRequest.ts} (95%)
rename src/api/resources/devices/client/requests/{DevicesGetRequest.ts => GetDevicesRequest.ts} (86%)
rename src/api/resources/devices/client/requests/{DevicesListRequest.ts => ListDevicesRequest.ts} (95%)
rename src/api/resources/devices/resources/codes/client/requests/{CodesGetRequest.ts => GetCodesRequest.ts} (86%)
rename src/api/resources/devices/resources/codes/client/requests/{CodesListRequest.ts => ListCodesRequest.ts} (96%)
rename src/api/resources/disputes/client/requests/{DisputesAcceptRequest.ts => AcceptDisputesRequest.ts} (85%)
rename src/api/resources/disputes/client/requests/{DisputesCreateEvidenceFileRequest.ts => CreateEvidenceFileDisputesRequest.ts} (89%)
rename src/api/resources/disputes/client/requests/{DisputesGetRequest.ts => GetDisputesRequest.ts} (86%)
rename src/api/resources/disputes/client/requests/{DisputesListRequest.ts => ListDisputesRequest.ts} (95%)
rename src/api/resources/disputes/client/requests/{DisputesSubmitEvidenceRequest.ts => SubmitEvidenceDisputesRequest.ts} (83%)
rename src/api/resources/disputes/resources/evidence/client/requests/{EvidenceDeleteRequest.ts => DeleteEvidenceRequest.ts} (90%)
rename src/api/resources/disputes/resources/evidence/client/requests/{EvidenceGetRequest.ts => GetEvidenceRequest.ts} (91%)
rename src/api/resources/disputes/resources/evidence/client/requests/{EvidenceListRequest.ts => ListEvidenceRequest.ts} (93%)
rename src/api/resources/employees/client/requests/{EmployeesGetRequest.ts => GetEmployeesRequest.ts} (84%)
rename src/api/resources/employees/client/requests/{EmployeesListRequest.ts => ListEmployeesRequest.ts} (93%)
rename src/api/resources/giftCards/client/requests/{GiftCardsGetRequest.ts => GetGiftCardsRequest.ts} (84%)
rename src/api/resources/giftCards/client/requests/{GiftCardsListRequest.ts => ListGiftCardsRequest.ts} (97%)
rename src/api/resources/giftCards/resources/activities/client/requests/{ActivitiesListRequest.ts => ListActivitiesRequest.ts} (98%)
rename src/api/resources/inventory/client/requests/{InventoryChangesRequest.ts => ChangesInventoryRequest.ts} (94%)
rename src/api/resources/inventory/client/requests/{InventoryDeprecatedGetAdjustmentRequest.ts => DeprecatedGetAdjustmentInventoryRequest.ts} (82%)
rename src/api/resources/inventory/client/requests/{InventoryDeprecatedGetPhysicalCountRequest.ts => DeprecatedGetPhysicalCountInventoryRequest.ts} (82%)
rename src/api/resources/inventory/client/requests/{InventoryGetAdjustmentRequest.ts => GetAdjustmentInventoryRequest.ts} (84%)
rename src/api/resources/inventory/client/requests/{InventoryGetRequest.ts => GetInventoryRequest.ts} (95%)
rename src/api/resources/inventory/client/requests/{InventoryGetPhysicalCountRequest.ts => GetPhysicalCountInventoryRequest.ts} (85%)
rename src/api/resources/inventory/client/requests/{InventoryGetTransferRequest.ts => GetTransferInventoryRequest.ts} (85%)
rename src/api/resources/invoices/client/requests/{InvoicesDeleteRequest.ts => DeleteInvoicesRequest.ts} (92%)
rename src/api/resources/invoices/client/requests/{InvoicesGetRequest.ts => GetInvoicesRequest.ts} (85%)
rename src/api/resources/invoices/client/requests/{InvoicesListRequest.ts => ListInvoicesRequest.ts} (95%)
rename src/api/resources/labor/resources/breakTypes/client/requests/{BreakTypesDeleteRequest.ts => DeleteBreakTypesRequest.ts} (83%)
rename src/api/resources/labor/resources/breakTypes/client/requests/{BreakTypesGetRequest.ts => GetBreakTypesRequest.ts} (84%)
rename src/api/resources/labor/resources/breakTypes/client/requests/{BreakTypesListRequest.ts => ListBreakTypesRequest.ts} (93%)
rename src/api/resources/labor/resources/employeeWages/client/requests/{EmployeeWagesGetRequest.ts => GetEmployeeWagesRequest.ts} (83%)
rename src/api/resources/labor/resources/employeeWages/client/requests/{EmployeeWagesListRequest.ts => ListEmployeeWagesRequest.ts} (92%)
rename src/api/resources/labor/resources/shifts/client/requests/{ShiftsDeleteRequest.ts => DeleteShiftsRequest.ts} (84%)
rename src/api/resources/labor/resources/shifts/client/requests/{ShiftsGetRequest.ts => GetShiftsRequest.ts} (85%)
rename src/api/resources/labor/resources/teamMemberWages/client/requests/{TeamMemberWagesGetRequest.ts => GetTeamMemberWagesRequest.ts} (83%)
rename src/api/resources/labor/resources/teamMemberWages/client/requests/{TeamMemberWagesListRequest.ts => ListTeamMemberWagesRequest.ts} (92%)
rename src/api/resources/labor/resources/workweekConfigs/client/requests/{WorkweekConfigsListRequest.ts => ListWorkweekConfigsRequest.ts} (88%)
rename src/api/resources/locations/client/requests/{LocationsGetRequest.ts => GetLocationsRequest.ts} (88%)
rename src/api/resources/{bookings/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsDeleteRequest.ts => locations/resources/customAttributeDefinitions/client/requests/DeleteCustomAttributeDefinitionsRequest.ts} (79%)
rename src/api/resources/{merchants/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsGetRequest.ts => locations/resources/customAttributeDefinitions/client/requests/GetCustomAttributeDefinitionsRequest.ts} (93%)
rename src/api/resources/locations/resources/customAttributeDefinitions/client/requests/{CustomAttributeDefinitionsListRequest.ts => ListCustomAttributeDefinitionsRequest.ts} (94%)
rename src/api/resources/locations/resources/customAttributes/client/requests/{CustomAttributesDeleteRequest.ts => DeleteCustomAttributesRequest.ts} (91%)
rename src/api/resources/locations/resources/customAttributes/client/requests/{CustomAttributesGetRequest.ts => GetCustomAttributesRequest.ts} (96%)
rename src/api/resources/locations/resources/customAttributes/client/requests/{CustomAttributesListRequest.ts => ListCustomAttributesRequest.ts} (97%)
rename src/api/resources/locations/resources/transactions/client/requests/{TransactionsCaptureRequest.ts => CaptureTransactionsRequest.ts} (86%)
rename src/api/resources/locations/resources/transactions/client/requests/{TransactionsGetRequest.ts => GetTransactionsRequest.ts} (90%)
rename src/api/resources/locations/resources/transactions/client/requests/{TransactionsListRequest.ts => ListTransactionsRequest.ts} (97%)
rename src/api/resources/locations/resources/transactions/client/requests/{TransactionsVoidRequest.ts => VoidTransactionsRequest.ts} (87%)
rename src/api/resources/loyalty/resources/accounts/client/requests/{AccountsGetRequest.ts => GetAccountsRequest.ts} (87%)
rename src/api/resources/loyalty/resources/programs/client/requests/{ProgramsGetRequest.ts => GetProgramsRequest.ts} (89%)
rename src/api/resources/loyalty/resources/programs/resources/promotions/client/requests/{PromotionsCancelRequest.ts => CancelPromotionsRequest.ts} (91%)
rename src/api/resources/loyalty/resources/programs/resources/promotions/client/requests/{PromotionsGetRequest.ts => GetPromotionsRequest.ts} (93%)
rename src/api/resources/loyalty/resources/programs/resources/promotions/client/requests/{PromotionsListRequest.ts => ListPromotionsRequest.ts} (97%)
rename src/api/resources/loyalty/resources/rewards/client/requests/{RewardsDeleteRequest.ts => DeleteRewardsRequest.ts} (86%)
rename src/api/resources/loyalty/resources/rewards/client/requests/{RewardsGetRequest.ts => GetRewardsRequest.ts} (87%)
rename src/api/resources/merchants/client/requests/{MerchantsGetRequest.ts => GetMerchantsRequest.ts} (90%)
rename src/api/resources/merchants/client/requests/{MerchantsListRequest.ts => ListMerchantsRequest.ts} (83%)
rename src/api/resources/merchants/resources/customAttributeDefinitions/client/requests/{CustomAttributeDefinitionsDeleteRequest.ts => DeleteCustomAttributeDefinitionsRequest.ts} (79%)
rename src/api/resources/{bookings/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsGetRequest.ts => merchants/resources/customAttributeDefinitions/client/requests/GetCustomAttributeDefinitionsRequest.ts} (93%)
rename src/api/resources/merchants/resources/customAttributeDefinitions/client/requests/{CustomAttributeDefinitionsListRequest.ts => ListCustomAttributeDefinitionsRequest.ts} (94%)
rename src/api/resources/merchants/resources/customAttributes/client/requests/{CustomAttributesDeleteRequest.ts => DeleteCustomAttributesRequest.ts} (91%)
rename src/api/resources/merchants/resources/customAttributes/client/requests/{CustomAttributesGetRequest.ts => GetCustomAttributesRequest.ts} (96%)
rename src/api/resources/merchants/resources/customAttributes/client/requests/{CustomAttributesListRequest.ts => ListCustomAttributesRequest.ts} (97%)
rename src/api/resources/orders/client/requests/{OrdersGetRequest.ts => GetOrdersRequest.ts} (86%)
delete mode 100644 src/api/resources/orders/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsDeleteRequest.ts
create mode 100644 src/api/resources/orders/resources/customAttributeDefinitions/client/requests/DeleteCustomAttributeDefinitionsRequest.ts
rename src/api/resources/orders/resources/customAttributeDefinitions/client/requests/{CustomAttributeDefinitionsGetRequest.ts => GetCustomAttributeDefinitionsRequest.ts} (90%)
rename src/api/resources/orders/resources/customAttributeDefinitions/client/requests/{CustomAttributeDefinitionsListRequest.ts => ListCustomAttributeDefinitionsRequest.ts} (94%)
rename src/api/resources/orders/resources/customAttributes/client/requests/{CustomAttributesDeleteRequest.ts => DeleteCustomAttributesRequest.ts} (90%)
rename src/api/resources/orders/resources/customAttributes/client/requests/{CustomAttributesGetRequest.ts => GetCustomAttributesRequest.ts} (96%)
rename src/api/resources/orders/resources/customAttributes/client/requests/{CustomAttributesListRequest.ts => ListCustomAttributesRequest.ts} (97%)
rename src/api/resources/payments/client/requests/{PaymentsCancelRequest.ts => CancelPaymentsRequest.ts} (84%)
rename src/api/resources/payments/client/requests/{PaymentsGetRequest.ts => GetPaymentsRequest.ts} (85%)
rename src/api/resources/payments/client/requests/{PaymentsListRequest.ts => ListPaymentsRequest.ts} (97%)
rename src/api/resources/payouts/client/requests/{PayoutsGetRequest.ts => GetPayoutsRequest.ts} (86%)
rename src/api/resources/payouts/client/requests/{PayoutsListEntriesRequest.ts => ListEntriesPayoutsRequest.ts} (96%)
rename src/api/resources/payouts/client/requests/{PayoutsListRequest.ts => ListPayoutsRequest.ts} (97%)
rename src/api/resources/refunds/client/requests/{RefundsGetRequest.ts => GetRefundsRequest.ts} (86%)
rename src/api/resources/refunds/client/requests/{RefundsListRequest.ts => ListRefundsRequest.ts} (74%)
rename src/api/resources/snippets/client/requests/{SnippetsDeleteRequest.ts => DeleteSnippetsRequest.ts} (84%)
rename src/api/resources/snippets/client/requests/{SnippetsGetRequest.ts => GetSnippetsRequest.ts} (85%)
rename src/api/resources/subscriptions/client/requests/{SubscriptionsCancelRequest.ts => CancelSubscriptionsRequest.ts} (84%)
rename src/api/resources/subscriptions/client/requests/{SubscriptionsDeleteActionRequest.ts => DeleteActionSubscriptionsRequest.ts} (88%)
rename src/api/resources/subscriptions/client/requests/{SubscriptionsGetRequest.ts => GetSubscriptionsRequest.ts} (92%)
rename src/api/resources/subscriptions/client/requests/{SubscriptionsListEventsRequest.ts => ListEventsSubscriptionsRequest.ts} (94%)
rename src/api/resources/teamMembers/client/requests/{TeamMembersGetRequest.ts => GetTeamMembersRequest.ts} (85%)
rename src/api/resources/teamMembers/client/requests/{TeamMembersUpdateRequest.ts => UpdateTeamMembersRequest.ts} (95%)
rename src/api/resources/teamMembers/resources/wageSetting/client/requests/{WageSettingGetRequest.ts => GetWageSettingRequest.ts} (86%)
rename src/api/resources/terminal/resources/actions/client/requests/{ActionsCancelRequest.ts => CancelActionsRequest.ts} (85%)
rename src/api/resources/terminal/resources/actions/client/requests/{ActionsGetRequest.ts => GetActionsRequest.ts} (86%)
rename src/api/resources/terminal/resources/checkouts/client/requests/{CheckoutsCancelRequest.ts => CancelCheckoutsRequest.ts} (85%)
rename src/api/resources/terminal/resources/checkouts/client/requests/{CheckoutsGetRequest.ts => GetCheckoutsRequest.ts} (86%)
rename src/api/resources/terminal/resources/refunds/client/requests/{RefundsCancelRequest.ts => CancelRefundsRequest.ts} (86%)
rename src/api/resources/terminal/resources/refunds/client/requests/{RefundsGetRequest.ts => GetRefundsRequest.ts} (87%)
rename src/api/resources/vendors/client/requests/{VendorsGetRequest.ts => GetVendorsRequest.ts} (86%)
rename src/api/resources/vendors/client/requests/{VendorsUpdateRequest.ts => UpdateVendorsRequest.ts} (94%)
rename src/api/resources/webhooks/resources/eventTypes/client/requests/{EventTypesListRequest.ts => ListEventTypesRequest.ts} (87%)
rename src/api/resources/webhooks/resources/subscriptions/client/requests/{SubscriptionsDeleteRequest.ts => DeleteSubscriptionsRequest.ts} (86%)
rename src/api/resources/webhooks/resources/subscriptions/client/requests/{SubscriptionsGetRequest.ts => GetSubscriptionsRequest.ts} (87%)
rename src/api/resources/webhooks/resources/subscriptions/client/requests/{SubscriptionsListRequest.ts => ListSubscriptionsRequest.ts} (96%)
create mode 100644 src/api/types/ListPaymentRefundsRequestSortField.ts
rename src/api/types/{PaymentSortField.ts => ListPaymentsRequestSortField.ts} (57%)
create mode 100644 src/serialization/types/ListPaymentRefundsRequestSortField.ts
rename src/serialization/types/{PaymentSortField.ts => ListPaymentsRequestSortField.ts} (50%)
diff --git a/package.json b/package.json
index 51ed007af..708c66e1b 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "square",
- "version": "40.0.0",
+ "version": "41.0.0",
"private": false,
"repository": "https://github.com/square/square-nodejs-sdk",
"license": "MIT",
@@ -12,7 +12,7 @@
"prepack": "cp -rv dist/. .",
"test": "yarn test:unit",
"test:unit": "jest --testPathPattern=tests/unit",
- "test:integration": "jest '.*tests\\/integration\\/(?!.*\\.serial\\.test\\.ts$).*\\.test\\.ts$'; jest '.*tests\\/integration\\/.*\\.serial\\.test\\.ts$' --runInBand"
+ "test:integration": "jest --testPathPattern=tests/integration"
},
"dependencies": {
"url-join": "4.0.1",
diff --git a/reference.md b/reference.md
index 89c7026ad..50195b2fe 100644
--- a/reference.md
+++ b/reference.md
@@ -14,11 +14,14 @@
-
+**Note:** This endpoint is used by the deprecated Reader SDK.
+Developers should update their integration to use the [Mobile Payments SDK](https://developer.squareup.com/docs/mobile-payments-sdk), which includes its own authorization methods.
+
Generates code to authorize a mobile application to connect to a Square card reader.
Authorization codes are one-time-use codes and expire 60 minutes after being issued.
-**Important:** The `Authorization` header you provide to this endpoint must have the following format:
+The `Authorization` header you provide to this endpoint must have the following format:
```
Authorization: Bearer ACCESS_TOKEN
@@ -686,7 +689,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.BankAccountsListRequest`
+**request:** `Square.ListBankAccountsRequest`
@@ -751,7 +754,7 @@ await client.bankAccounts.getByV1Id({
-
-**request:** `Square.BankAccountsGetByV1IdRequest`
+**request:** `Square.GetByV1IdBankAccountsRequest`
@@ -817,7 +820,7 @@ await client.bankAccounts.get({
-
-**request:** `Square.BankAccountsGetRequest`
+**request:** `Square.GetBankAccountsRequest`
@@ -894,7 +897,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.BookingsListRequest`
+**request:** `Square.ListBookingsRequest`
@@ -1366,7 +1369,7 @@ await client.bookings.get({
-
-**request:** `Square.BookingsGetRequest`
+**request:** `Square.GetBookingsRequest`
@@ -1584,7 +1587,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.CardsListRequest`
+**request:** `Square.ListCardsRequest`
@@ -1728,7 +1731,7 @@ await client.cards.get({
-
-**request:** `Square.CardsGetRequest`
+**request:** `Square.GetCardsRequest`
@@ -1794,7 +1797,7 @@ await client.cards.disable({
-
-**request:** `Square.CardsDisableRequest`
+**request:** `Square.DisableCardsRequest`
@@ -2010,24 +2013,20 @@ await client.catalog.batchUpsert({
{
objects: [
{
- type: "SUBSCRIPTION_PRODUCT",
- id: "#Tea",
- presentAtAllLocations: true,
+ type: "ITEM",
+ id: "id",
},
{
- type: "SUBSCRIPTION_PRODUCT",
- id: "#Coffee",
- presentAtAllLocations: true,
+ type: "ITEM",
+ id: "id",
},
{
- type: "SUBSCRIPTION_PRODUCT",
- id: "#Beverages",
- presentAtAllLocations: true,
+ type: "ITEM",
+ id: "id",
},
{
- type: "SUBSCRIPTION_PRODUCT",
- id: "#SalesTax",
- presentAtAllLocations: true,
+ type: "TAX",
+ id: "id",
},
],
},
@@ -2183,7 +2182,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.CatalogListRequest`
+**request:** `Square.ListCatalogRequest`
@@ -2578,7 +2577,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.CustomersListRequest`
+**request:** `Square.ListCustomersRequest`
@@ -3143,7 +3142,7 @@ await client.customers.get({
-
-**request:** `Square.CustomersGetRequest`
+**request:** `Square.GetCustomersRequest`
@@ -3281,7 +3280,7 @@ await client.customers.delete({
-
-**request:** `Square.CustomersDeleteRequest`
+**request:** `Square.DeleteCustomersRequest`
@@ -3356,7 +3355,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.DevicesListRequest`
+**request:** `Square.ListDevicesRequest`
@@ -3421,7 +3420,7 @@ await client.devices.get({
-
-**request:** `Square.DevicesGetRequest`
+**request:** `Square.GetDevicesRequest`
@@ -3495,7 +3494,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.DisputesListRequest`
+**request:** `Square.ListDisputesRequest`
@@ -3560,7 +3559,7 @@ await client.disputes.get({
-
-**request:** `Square.DisputesGetRequest`
+**request:** `Square.GetDisputesRequest`
@@ -3629,7 +3628,7 @@ await client.disputes.accept({
-
-**request:** `Square.DisputesAcceptRequest`
+**request:** `Square.AcceptDisputesRequest`
@@ -3695,7 +3694,7 @@ await client.disputes.createEvidenceFile({
-
-**request:** `Square.DisputesCreateEvidenceFileRequest`
+**request:** `Square.CreateEvidenceFileDisputesRequest`
@@ -3834,7 +3833,7 @@ await client.disputes.submitEvidence({
-
-**request:** `Square.DisputesSubmitEvidenceRequest`
+**request:** `Square.SubmitEvidenceDisputesRequest`
@@ -3906,7 +3905,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.EmployeesListRequest`
+**request:** `Square.ListEmployeesRequest`
@@ -3969,7 +3968,7 @@ await client.employees.get({
-
-**request:** `Square.EmployeesGetRequest`
+**request:** `Square.GetEmployeesRequest`
@@ -4284,7 +4283,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.GiftCardsListRequest`
+**request:** `Square.ListGiftCardsRequest`
@@ -4684,7 +4683,7 @@ await client.giftCards.get({
-
-**request:** `Square.GiftCardsGetRequest`
+**request:** `Square.GetGiftCardsRequest`
@@ -4752,7 +4751,7 @@ await client.inventory.deprecatedGetAdjustment({
-
-**request:** `Square.InventoryDeprecatedGetAdjustmentRequest`
+**request:** `Square.DeprecatedGetAdjustmentInventoryRequest`
@@ -4818,7 +4817,7 @@ await client.inventory.getAdjustment({
-
-**request:** `Square.InventoryGetAdjustmentRequest`
+**request:** `Square.GetAdjustmentInventoryRequest`
@@ -5371,7 +5370,7 @@ await client.inventory.deprecatedGetPhysicalCount({
-
-**request:** `Square.InventoryDeprecatedGetPhysicalCountRequest`
+**request:** `Square.DeprecatedGetPhysicalCountInventoryRequest`
@@ -5437,7 +5436,7 @@ await client.inventory.getPhysicalCount({
-
-**request:** `Square.InventoryGetPhysicalCountRequest`
+**request:** `Square.GetPhysicalCountInventoryRequest`
@@ -5503,7 +5502,7 @@ await client.inventory.getTransfer({
-
-**request:** `Square.InventoryGetTransferRequest`
+**request:** `Square.GetTransferInventoryRequest`
@@ -5582,7 +5581,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.InventoryGetRequest`
+**request:** `Square.GetInventoryRequest`
@@ -5670,7 +5669,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.InventoryChangesRequest`
+**request:** `Square.ChangesInventoryRequest`
@@ -5750,7 +5749,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.InvoicesListRequest`
+**request:** `Square.ListInvoicesRequest`
@@ -6011,7 +6010,7 @@ await client.invoices.get({
-
-**request:** `Square.InvoicesGetRequest`
+**request:** `Square.GetInvoicesRequest`
@@ -6156,7 +6155,7 @@ await client.invoices.delete({
-
-**request:** `Square.InvoicesDeleteRequest`
+**request:** `Square.DeleteInvoicesRequest`
@@ -6646,7 +6645,7 @@ await client.locations.get({
-
-**request:** `Square.LocationsGetRequest`
+**request:** `Square.GetLocationsRequest`
@@ -7055,7 +7054,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.MerchantsListRequest`
+**request:** `Square.ListMerchantsRequest`
@@ -7120,7 +7119,7 @@ await client.merchants.get({
-
-**request:** `Square.MerchantsGetRequest`
+**request:** `Square.GetMerchantsRequest`
@@ -7897,7 +7896,7 @@ await client.orders.get({
-
-**request:** `Square.OrdersGetRequest`
+**request:** `Square.GetOrdersRequest`
@@ -8151,7 +8150,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.PaymentsListRequest`
+**request:** `Square.ListPaymentsRequest`
@@ -8377,7 +8376,7 @@ await client.payments.get({
-
-**request:** `Square.PaymentsGetRequest`
+**request:** `Square.GetPaymentsRequest`
@@ -8521,7 +8520,7 @@ await client.payments.cancel({
-
-**request:** `Square.PaymentsCancelRequest`
+**request:** `Square.CancelPaymentsRequest`
@@ -8665,7 +8664,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.PayoutsListRequest`
+**request:** `Square.ListPayoutsRequest`
@@ -8731,7 +8730,7 @@ await client.payouts.get({
-
-**request:** `Square.PayoutsGetRequest`
+**request:** `Square.GetPayoutsRequest`
@@ -8808,7 +8807,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.PayoutsListEntriesRequest`
+**request:** `Square.ListEntriesPayoutsRequest`
@@ -8887,7 +8886,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.RefundsListRequest`
+**request:** `Square.ListRefundsRequest`
@@ -9030,7 +9029,7 @@ await client.refunds.get({
-
-**request:** `Square.RefundsGetRequest`
+**request:** `Square.GetRefundsRequest`
@@ -9160,7 +9159,7 @@ await client.snippets.get({
-
-**request:** `Square.SnippetsGetRequest`
+**request:** `Square.GetSnippetsRequest`
@@ -9302,7 +9301,7 @@ await client.snippets.delete({
-
-**request:** `Square.SnippetsDeleteRequest`
+**request:** `Square.DeleteSnippetsRequest`
@@ -9608,7 +9607,7 @@ await client.subscriptions.get({
-
-**request:** `Square.SubscriptionsGetRequest`
+**request:** `Square.GetSubscriptionsRequest`
@@ -9743,7 +9742,7 @@ await client.subscriptions.deleteAction({
-
-**request:** `Square.SubscriptionsDeleteActionRequest`
+**request:** `Square.DeleteActionSubscriptionsRequest`
@@ -9877,7 +9876,7 @@ await client.subscriptions.cancel({
-
-**request:** `Square.SubscriptionsCancelRequest`
+**request:** `Square.CancelSubscriptionsRequest`
@@ -9953,7 +9952,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.SubscriptionsListEventsRequest`
+**request:** `Square.ListEventsSubscriptionsRequest`
@@ -10597,7 +10596,7 @@ await client.teamMembers.get({
-
-**request:** `Square.TeamMembersGetRequest`
+**request:** `Square.GetTeamMembersRequest`
@@ -10677,7 +10676,7 @@ await client.teamMembers.update({
-
-**request:** `Square.TeamMembersUpdateRequest`
+**request:** `Square.UpdateTeamMembersRequest`
@@ -11587,7 +11586,7 @@ await client.vendors.get({
-
-**request:** `Square.VendorsGetRequest`
+**request:** `Square.GetVendorsRequest`
@@ -11661,7 +11660,7 @@ await client.vendors.update({
-
-**request:** `Square.VendorsUpdateRequest`
+**request:** `Square.UpdateVendorsRequest`
@@ -11738,7 +11737,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.bookings.CustomAttributeDefinitionsListRequest`
+**request:** `Square.bookings.ListCustomAttributeDefinitionsRequest`
@@ -11877,7 +11876,7 @@ await client.bookings.customAttributeDefinitions.get({
-
-**request:** `Square.bookings.CustomAttributeDefinitionsGetRequest`
+**request:** `Square.bookings.GetCustomAttributeDefinitionsRequest`
@@ -12020,7 +12019,7 @@ await client.bookings.customAttributeDefinitions.delete({
-
-**request:** `Square.bookings.CustomAttributeDefinitionsDeleteRequest`
+**request:** `Square.bookings.DeleteCustomAttributeDefinitionsRequest`
@@ -12253,7 +12252,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.bookings.CustomAttributesListRequest`
+**request:** `Square.bookings.ListCustomAttributesRequest`
@@ -12322,7 +12321,7 @@ await client.bookings.customAttributes.get({
-
-**request:** `Square.bookings.CustomAttributesGetRequest`
+**request:** `Square.bookings.GetCustomAttributesRequest`
@@ -12467,7 +12466,7 @@ await client.bookings.customAttributes.delete({
-
-**request:** `Square.bookings.CustomAttributesDeleteRequest`
+**request:** `Square.bookings.DeleteCustomAttributesRequest`
@@ -12541,7 +12540,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.bookings.LocationProfilesListRequest`
+**request:** `Square.bookings.ListLocationProfilesRequest`
@@ -12615,7 +12614,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.bookings.TeamMemberProfilesListRequest`
+**request:** `Square.bookings.ListTeamMemberProfilesRequest`
@@ -12680,7 +12679,7 @@ await client.bookings.teamMemberProfiles.get({
-
-**request:** `Square.bookings.TeamMemberProfilesGetRequest`
+**request:** `Square.bookings.GetTeamMemberProfilesRequest`
@@ -12759,7 +12758,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.cashDrawers.ShiftsListRequest`
+**request:** `Square.cashDrawers.ListShiftsRequest`
@@ -12826,7 +12825,7 @@ await client.cashDrawers.shifts.get({
-
-**request:** `Square.cashDrawers.ShiftsGetRequest`
+**request:** `Square.cashDrawers.GetShiftsRequest`
@@ -12904,7 +12903,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.cashDrawers.ShiftsListEventsRequest`
+**request:** `Square.cashDrawers.ListEventsShiftsRequest`
@@ -12974,7 +12973,7 @@ await client.catalog.images.create({});
-
-**request:** `Square.catalog.ImagesCreateRequest`
+**request:** `Square.catalog.CreateImagesRequest`
@@ -13042,7 +13041,7 @@ await client.catalog.images.update({
-
-**request:** `Square.catalog.ImagesUpdateRequest`
+**request:** `Square.catalog.UpdateImagesRequest`
@@ -13098,8 +13097,8 @@ update requests are rejected with the `429` error code.
await client.catalog.object.upsert({
idempotencyKey: "af3d1afc-7212-4300-b463-0bfc5314a5ae",
object: {
- type: "SUBSCRIPTION_PRODUCT",
- id: "#Cocoa",
+ type: "ITEM",
+ id: "id",
},
});
```
@@ -13188,7 +13187,7 @@ await client.catalog.object.get({
-
-**request:** `Square.catalog.ObjectGetRequest`
+**request:** `Square.catalog.GetObjectRequest`
@@ -13262,7 +13261,7 @@ await client.catalog.object.delete({
-
-**request:** `Square.catalog.ObjectDeleteRequest`
+**request:** `Square.catalog.DeleteObjectRequest`
@@ -13336,7 +13335,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.checkout.PaymentLinksListRequest`
+**request:** `Square.checkout.ListPaymentLinksRequest`
@@ -13474,7 +13473,7 @@ await client.checkout.paymentLinks.get({
-
-**request:** `Square.checkout.PaymentLinksGetRequest`
+**request:** `Square.checkout.GetPaymentLinksRequest`
@@ -13612,7 +13611,7 @@ await client.checkout.paymentLinks.delete({
-
-**request:** `Square.checkout.PaymentLinksDeleteRequest`
+**request:** `Square.checkout.DeletePaymentLinksRequest`
@@ -13691,7 +13690,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.customers.CustomAttributeDefinitionsListRequest`
+**request:** `Square.customers.ListCustomAttributeDefinitionsRequest`
@@ -13843,7 +13842,7 @@ await client.customers.customAttributeDefinitions.get({
-
-**request:** `Square.customers.CustomAttributeDefinitionsGetRequest`
+**request:** `Square.customers.GetCustomAttributeDefinitionsRequest`
@@ -13988,7 +13987,7 @@ await client.customers.customAttributeDefinitions.delete({
-
-**request:** `Square.customers.CustomAttributeDefinitionsDeleteRequest`
+**request:** `Square.customers.DeleteCustomAttributeDefinitionsRequest`
@@ -14176,7 +14175,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.customers.GroupsListRequest`
+**request:** `Square.customers.ListGroupsRequest`
@@ -14310,7 +14309,7 @@ await client.customers.groups.get({
-
-**request:** `Square.customers.GroupsGetRequest`
+**request:** `Square.customers.GetGroupsRequest`
@@ -14443,7 +14442,7 @@ await client.customers.groups.delete({
-
-**request:** `Square.customers.GroupsDeleteRequest`
+**request:** `Square.customers.DeleteGroupsRequest`
@@ -14512,7 +14511,7 @@ await client.customers.groups.add({
-
-**request:** `Square.customers.GroupsAddRequest`
+**request:** `Square.customers.AddGroupsRequest`
@@ -14581,7 +14580,7 @@ await client.customers.groups.remove({
-
-**request:** `Square.customers.GroupsRemoveRequest`
+**request:** `Square.customers.RemoveGroupsRequest`
@@ -14655,7 +14654,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.customers.SegmentsListRequest`
+**request:** `Square.customers.ListSegmentsRequest`
@@ -14720,7 +14719,7 @@ await client.customers.segments.get({
-
-**request:** `Square.customers.SegmentsGetRequest`
+**request:** `Square.customers.GetSegmentsRequest`
@@ -14867,7 +14866,7 @@ await client.customers.cards.delete({
-
-**request:** `Square.customers.CardsDeleteRequest`
+**request:** `Square.customers.DeleteCardsRequest`
@@ -14952,7 +14951,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.customers.CustomAttributesListRequest`
+**request:** `Square.customers.ListCustomAttributesRequest`
@@ -15025,7 +15024,7 @@ await client.customers.customAttributes.get({
-
-**request:** `Square.customers.CustomAttributesGetRequest`
+**request:** `Square.customers.GetCustomAttributesRequest`
@@ -15172,7 +15171,7 @@ await client.customers.customAttributes.delete({
-
-**request:** `Square.customers.CustomAttributesDeleteRequest`
+**request:** `Square.customers.DeleteCustomAttributesRequest`
@@ -15246,7 +15245,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.devices.CodesListRequest`
+**request:** `Square.devices.ListCodesRequest`
@@ -15382,7 +15381,7 @@ await client.devices.codes.get({
-
-**request:** `Square.devices.CodesGetRequest`
+**request:** `Square.devices.GetCodesRequest`
@@ -15460,7 +15459,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.disputes.EvidenceListRequest`
+**request:** `Square.disputes.ListEvidenceRequest`
@@ -15528,7 +15527,7 @@ await client.disputes.evidence.get({
-
-**request:** `Square.disputes.EvidenceGetRequest`
+**request:** `Square.disputes.GetEvidenceRequest`
@@ -15595,7 +15594,7 @@ await client.disputes.evidence.delete({
-
-**request:** `Square.disputes.EvidenceDeleteRequest`
+**request:** `Square.disputes.DeleteEvidenceRequest`
@@ -15672,7 +15671,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.giftCards.ActivitiesListRequest`
+**request:** `Square.giftCards.ListActivitiesRequest`
@@ -15821,7 +15820,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.labor.BreakTypesListRequest`
+**request:** `Square.labor.ListBreakTypesRequest`
@@ -15970,7 +15969,7 @@ await client.labor.breakTypes.get({
-
-**request:** `Square.labor.BreakTypesGetRequest`
+**request:** `Square.labor.GetBreakTypesRequest`
@@ -16109,7 +16108,7 @@ await client.labor.breakTypes.delete({
-
-**request:** `Square.labor.BreakTypesDeleteRequest`
+**request:** `Square.labor.DeleteBreakTypesRequest`
@@ -16183,7 +16182,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.labor.EmployeeWagesListRequest`
+**request:** `Square.labor.ListEmployeeWagesRequest`
@@ -16248,7 +16247,7 @@ await client.labor.employeeWages.get({
-
-**request:** `Square.labor.EmployeeWagesGetRequest`
+**request:** `Square.labor.GetEmployeeWagesRequest`
@@ -16516,7 +16515,7 @@ await client.labor.shifts.get({
-
-**request:** `Square.labor.ShiftsGetRequest`
+**request:** `Square.labor.GetShiftsRequest`
@@ -16682,7 +16681,7 @@ await client.labor.shifts.delete({
-
-**request:** `Square.labor.ShiftsDeleteRequest`
+**request:** `Square.labor.DeleteShiftsRequest`
@@ -16756,7 +16755,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.labor.TeamMemberWagesListRequest`
+**request:** `Square.labor.ListTeamMemberWagesRequest`
@@ -16821,7 +16820,7 @@ await client.labor.teamMemberWages.get({
-
-**request:** `Square.labor.TeamMemberWagesGetRequest`
+**request:** `Square.labor.GetTeamMemberWagesRequest`
@@ -16895,7 +16894,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.labor.WorkweekConfigsListRequest`
+**request:** `Square.labor.ListWorkweekConfigsRequest`
@@ -17042,7 +17041,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.locations.CustomAttributeDefinitionsListRequest`
+**request:** `Square.locations.ListCustomAttributeDefinitionsRequest`
@@ -17188,7 +17187,7 @@ await client.locations.customAttributeDefinitions.get({
-
-**request:** `Square.locations.CustomAttributeDefinitionsGetRequest`
+**request:** `Square.locations.GetCustomAttributeDefinitionsRequest`
@@ -17328,7 +17327,7 @@ await client.locations.customAttributeDefinitions.delete({
-
-**request:** `Square.locations.CustomAttributeDefinitionsDeleteRequest`
+**request:** `Square.locations.DeleteCustomAttributeDefinitionsRequest`
@@ -17584,7 +17583,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.locations.CustomAttributesListRequest`
+**request:** `Square.locations.ListCustomAttributesRequest`
@@ -17654,7 +17653,7 @@ await client.locations.customAttributes.get({
-
-**request:** `Square.locations.CustomAttributesGetRequest`
+**request:** `Square.locations.GetCustomAttributesRequest`
@@ -17796,7 +17795,7 @@ await client.locations.customAttributes.delete({
-
-**request:** `Square.locations.CustomAttributesDeleteRequest`
+**request:** `Square.locations.DeleteCustomAttributesRequest`
@@ -17868,7 +17867,7 @@ await client.locations.transactions.list({
-
-**request:** `Square.locations.TransactionsListRequest`
+**request:** `Square.locations.ListTransactionsRequest`
@@ -17934,7 +17933,7 @@ await client.locations.transactions.get({
-
-**request:** `Square.locations.TransactionsGetRequest`
+**request:** `Square.locations.GetTransactionsRequest`
@@ -18004,7 +18003,7 @@ await client.locations.transactions.capture({
-
-**request:** `Square.locations.TransactionsCaptureRequest`
+**request:** `Square.locations.CaptureTransactionsRequest`
@@ -18074,7 +18073,7 @@ await client.locations.transactions.void({
-
-**request:** `Square.locations.TransactionsVoidRequest`
+**request:** `Square.locations.VoidTransactionsRequest`
@@ -18288,7 +18287,7 @@ await client.loyalty.accounts.get({
-
-**request:** `Square.loyalty.AccountsGetRequest`
+**request:** `Square.loyalty.GetAccountsRequest`
@@ -18571,7 +18570,7 @@ await client.loyalty.programs.get({
-
-**request:** `Square.loyalty.ProgramsGetRequest`
+**request:** `Square.loyalty.GetProgramsRequest`
@@ -18869,7 +18868,7 @@ await client.loyalty.rewards.get({
-
-**request:** `Square.loyalty.RewardsGetRequest`
+**request:** `Square.loyalty.GetRewardsRequest`
@@ -18942,7 +18941,7 @@ await client.loyalty.rewards.delete({
-
-**request:** `Square.loyalty.RewardsDeleteRequest`
+**request:** `Square.loyalty.DeleteRewardsRequest`
@@ -19098,7 +19097,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.loyalty.programs.PromotionsListRequest`
+**request:** `Square.loyalty.programs.ListPromotionsRequest`
@@ -19258,7 +19257,7 @@ await client.loyalty.programs.promotions.get({
-
-**request:** `Square.loyalty.programs.PromotionsGetRequest`
+**request:** `Square.loyalty.programs.GetPromotionsRequest`
@@ -19329,7 +19328,7 @@ await client.loyalty.programs.promotions.cancel({
-
-**request:** `Square.loyalty.programs.PromotionsCancelRequest`
+**request:** `Square.loyalty.programs.CancelPromotionsRequest`
@@ -19406,7 +19405,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.merchants.CustomAttributeDefinitionsListRequest`
+**request:** `Square.merchants.ListCustomAttributeDefinitionsRequest`
@@ -19552,7 +19551,7 @@ await client.merchants.customAttributeDefinitions.get({
-
-**request:** `Square.merchants.CustomAttributeDefinitionsGetRequest`
+**request:** `Square.merchants.GetCustomAttributeDefinitionsRequest`
@@ -19692,7 +19691,7 @@ await client.merchants.customAttributeDefinitions.delete({
-
-**request:** `Square.merchants.CustomAttributeDefinitionsDeleteRequest`
+**request:** `Square.merchants.DeleteCustomAttributeDefinitionsRequest`
@@ -19938,7 +19937,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.merchants.CustomAttributesListRequest`
+**request:** `Square.merchants.ListCustomAttributesRequest`
@@ -20008,7 +20007,7 @@ await client.merchants.customAttributes.get({
-
-**request:** `Square.merchants.CustomAttributesGetRequest`
+**request:** `Square.merchants.GetCustomAttributesRequest`
@@ -20150,7 +20149,7 @@ await client.merchants.customAttributes.delete({
-
-**request:** `Square.merchants.CustomAttributesDeleteRequest`
+**request:** `Square.merchants.DeleteCustomAttributesRequest`
@@ -20229,7 +20228,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.orders.CustomAttributeDefinitionsListRequest`
+**request:** `Square.orders.ListCustomAttributeDefinitionsRequest`
@@ -20376,7 +20375,7 @@ await client.orders.customAttributeDefinitions.get({
-
-**request:** `Square.orders.CustomAttributeDefinitionsGetRequest`
+**request:** `Square.orders.GetCustomAttributeDefinitionsRequest`
@@ -20516,7 +20515,7 @@ await client.orders.customAttributeDefinitions.delete({
-
-**request:** `Square.orders.CustomAttributeDefinitionsDeleteRequest`
+**request:** `Square.orders.DeleteCustomAttributeDefinitionsRequest`
@@ -20783,7 +20782,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.orders.CustomAttributesListRequest`
+**request:** `Square.orders.ListCustomAttributesRequest`
@@ -20856,7 +20855,7 @@ await client.orders.customAttributes.get({
-
-**request:** `Square.orders.CustomAttributesGetRequest`
+**request:** `Square.orders.GetCustomAttributesRequest`
@@ -21005,7 +21004,7 @@ await client.orders.customAttributes.delete({
-
-**request:** `Square.orders.CustomAttributesDeleteRequest`
+**request:** `Square.orders.DeleteCustomAttributesRequest`
@@ -21077,7 +21076,7 @@ await client.teamMembers.wageSetting.get({
-
-**request:** `Square.teamMembers.WageSettingGetRequest`
+**request:** `Square.teamMembers.GetWageSettingRequest`
@@ -21387,7 +21386,7 @@ await client.terminal.actions.get({
-
-**request:** `Square.terminal.ActionsGetRequest`
+**request:** `Square.terminal.GetActionsRequest`
@@ -21452,7 +21451,7 @@ await client.terminal.actions.cancel({
-
-**request:** `Square.terminal.ActionsCancelRequest`
+**request:** `Square.terminal.CancelActionsRequest`
@@ -21666,7 +21665,7 @@ await client.terminal.checkouts.get({
-
-**request:** `Square.terminal.CheckoutsGetRequest`
+**request:** `Square.terminal.GetCheckoutsRequest`
@@ -21731,7 +21730,7 @@ await client.terminal.checkouts.cancel({
-
-**request:** `Square.terminal.CheckoutsCancelRequest`
+**request:** `Square.terminal.CancelCheckoutsRequest`
@@ -21942,7 +21941,7 @@ await client.terminal.refunds.get({
-
-**request:** `Square.terminal.RefundsGetRequest`
+**request:** `Square.terminal.GetRefundsRequest`
@@ -22007,7 +22006,7 @@ await client.terminal.refunds.cancel({
-
-**request:** `Square.terminal.RefundsCancelRequest`
+**request:** `Square.terminal.CancelRefundsRequest`
@@ -22072,7 +22071,7 @@ await client.webhooks.eventTypes.list();
-
-**request:** `Square.webhooks.EventTypesListRequest`
+**request:** `Square.webhooks.ListEventTypesRequest`
@@ -22146,7 +22145,7 @@ while (page.hasNextPage()) {
-
-**request:** `Square.webhooks.SubscriptionsListRequest`
+**request:** `Square.webhooks.ListSubscriptionsRequest`
@@ -22282,7 +22281,7 @@ await client.webhooks.subscriptions.get({
-
-**request:** `Square.webhooks.SubscriptionsGetRequest`
+**request:** `Square.webhooks.GetSubscriptionsRequest`
@@ -22416,7 +22415,7 @@ await client.webhooks.subscriptions.delete({
-
-**request:** `Square.webhooks.SubscriptionsDeleteRequest`
+**request:** `Square.webhooks.DeleteSubscriptionsRequest`
diff --git a/src/Client.ts b/src/Client.ts
index c3bdd20ca..5b8862d3f 100644
--- a/src/Client.ts
+++ b/src/Client.ts
@@ -46,7 +46,7 @@ export declare namespace SquareClient {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -58,7 +58,7 @@ export declare namespace SquareClient {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
diff --git a/src/api/resources/applePay/client/Client.ts b/src/api/resources/applePay/client/Client.ts
index 4c642535f..b45bc8c40 100644
--- a/src/api/resources/applePay/client/Client.ts
+++ b/src/api/resources/applePay/client/Client.ts
@@ -16,7 +16,7 @@ export declare namespace ApplePay {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -28,7 +28,7 @@ export declare namespace ApplePay {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -75,11 +75,11 @@ export class ApplePay {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/bankAccounts/client/Client.ts b/src/api/resources/bankAccounts/client/Client.ts
index 6f91ce9e7..e54986cb6 100644
--- a/src/api/resources/bankAccounts/client/Client.ts
+++ b/src/api/resources/bankAccounts/client/Client.ts
@@ -16,7 +16,7 @@ export declare namespace BankAccounts {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -28,7 +28,7 @@ export declare namespace BankAccounts {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -40,17 +40,17 @@ export class BankAccounts {
/**
* Returns a list of [BankAccount](entity:BankAccount) objects linked to a Square account.
*
- * @param {Square.BankAccountsListRequest} request
+ * @param {Square.ListBankAccountsRequest} request
* @param {BankAccounts.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
* await client.bankAccounts.list()
*/
public async list(
- request: Square.BankAccountsListRequest = {},
+ request: Square.ListBankAccountsRequest = {},
requestOptions?: BankAccounts.RequestOptions,
): Promise> {
- const list = async (request: Square.BankAccountsListRequest): Promise => {
+ const list = async (request: Square.ListBankAccountsRequest): Promise => {
const { cursor, limit, locationId } = request;
const _queryParams: Record = {};
if (cursor !== undefined) {
@@ -72,11 +72,11 @@ export class BankAccounts {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -130,7 +130,7 @@ export class BankAccounts {
/**
* Returns details of a [BankAccount](entity:BankAccount) identified by V1 bank account ID.
*
- * @param {Square.BankAccountsGetByV1IdRequest} request
+ * @param {Square.GetByV1IdBankAccountsRequest} request
* @param {BankAccounts.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -139,7 +139,7 @@ export class BankAccounts {
* })
*/
public async getByV1Id(
- request: Square.BankAccountsGetByV1IdRequest,
+ request: Square.GetByV1IdBankAccountsRequest,
requestOptions?: BankAccounts.RequestOptions,
): Promise {
const { v1BankAccountId } = request;
@@ -153,11 +153,11 @@ export class BankAccounts {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -206,7 +206,7 @@ export class BankAccounts {
* Returns details of a [BankAccount](entity:BankAccount)
* linked to a Square account.
*
- * @param {Square.BankAccountsGetRequest} request
+ * @param {Square.GetBankAccountsRequest} request
* @param {BankAccounts.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -215,7 +215,7 @@ export class BankAccounts {
* })
*/
public async get(
- request: Square.BankAccountsGetRequest,
+ request: Square.GetBankAccountsRequest,
requestOptions?: BankAccounts.RequestOptions,
): Promise {
const { bankAccountId } = request;
@@ -229,11 +229,11 @@ export class BankAccounts {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/bankAccounts/client/requests/BankAccountsGetRequest.ts b/src/api/resources/bankAccounts/client/requests/GetBankAccountsRequest.ts
similarity index 85%
rename from src/api/resources/bankAccounts/client/requests/BankAccountsGetRequest.ts
rename to src/api/resources/bankAccounts/client/requests/GetBankAccountsRequest.ts
index 9417e230b..2e0fe1f5c 100644
--- a/src/api/resources/bankAccounts/client/requests/BankAccountsGetRequest.ts
+++ b/src/api/resources/bankAccounts/client/requests/GetBankAccountsRequest.ts
@@ -8,7 +8,7 @@
* bankAccountId: "bank_account_id"
* }
*/
-export interface BankAccountsGetRequest {
+export interface GetBankAccountsRequest {
/**
* Square-issued ID of the desired `BankAccount`.
*/
diff --git a/src/api/resources/bankAccounts/client/requests/BankAccountsGetByV1IdRequest.ts b/src/api/resources/bankAccounts/client/requests/GetByV1IdBankAccountsRequest.ts
similarity index 91%
rename from src/api/resources/bankAccounts/client/requests/BankAccountsGetByV1IdRequest.ts
rename to src/api/resources/bankAccounts/client/requests/GetByV1IdBankAccountsRequest.ts
index eb068077d..f567ca2bf 100644
--- a/src/api/resources/bankAccounts/client/requests/BankAccountsGetByV1IdRequest.ts
+++ b/src/api/resources/bankAccounts/client/requests/GetByV1IdBankAccountsRequest.ts
@@ -8,7 +8,7 @@
* v1BankAccountId: "v1_bank_account_id"
* }
*/
-export interface BankAccountsGetByV1IdRequest {
+export interface GetByV1IdBankAccountsRequest {
/**
* Connect V1 ID of the desired `BankAccount`. For more information, see
* [Retrieve a bank account by using an ID issued by V1 Bank Accounts API](https://developer.squareup.com/docs/bank-accounts-api#retrieve-a-bank-account-by-using-an-id-issued-by-v1-bank-accounts-api).
diff --git a/src/api/resources/bankAccounts/client/requests/BankAccountsListRequest.ts b/src/api/resources/bankAccounts/client/requests/ListBankAccountsRequest.ts
similarity index 95%
rename from src/api/resources/bankAccounts/client/requests/BankAccountsListRequest.ts
rename to src/api/resources/bankAccounts/client/requests/ListBankAccountsRequest.ts
index 68c2eb8ad..b5ffadfe8 100644
--- a/src/api/resources/bankAccounts/client/requests/BankAccountsListRequest.ts
+++ b/src/api/resources/bankAccounts/client/requests/ListBankAccountsRequest.ts
@@ -6,7 +6,7 @@
* @example
* {}
*/
-export interface BankAccountsListRequest {
+export interface ListBankAccountsRequest {
/**
* The pagination cursor returned by a previous call to this endpoint.
* Use it in the next `ListBankAccounts` request to retrieve the next set
diff --git a/src/api/resources/bankAccounts/client/requests/index.ts b/src/api/resources/bankAccounts/client/requests/index.ts
index 46d9d9987..15a87c836 100644
--- a/src/api/resources/bankAccounts/client/requests/index.ts
+++ b/src/api/resources/bankAccounts/client/requests/index.ts
@@ -1,3 +1,3 @@
-export { type BankAccountsListRequest } from "./BankAccountsListRequest";
-export { type BankAccountsGetByV1IdRequest } from "./BankAccountsGetByV1IdRequest";
-export { type BankAccountsGetRequest } from "./BankAccountsGetRequest";
+export { type ListBankAccountsRequest } from "./ListBankAccountsRequest";
+export { type GetByV1IdBankAccountsRequest } from "./GetByV1IdBankAccountsRequest";
+export { type GetBankAccountsRequest } from "./GetBankAccountsRequest";
diff --git a/src/api/resources/bookings/client/Client.ts b/src/api/resources/bookings/client/Client.ts
index 2993da360..5764a639e 100644
--- a/src/api/resources/bookings/client/Client.ts
+++ b/src/api/resources/bookings/client/Client.ts
@@ -20,7 +20,7 @@ export declare namespace Bookings {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -32,7 +32,7 @@ export declare namespace Bookings {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -68,17 +68,17 @@ export class Bookings {
* To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope.
* To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.
*
- * @param {Square.BookingsListRequest} request
+ * @param {Square.ListBookingsRequest} request
* @param {Bookings.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
* await client.bookings.list()
*/
public async list(
- request: Square.BookingsListRequest = {},
+ request: Square.ListBookingsRequest = {},
requestOptions?: Bookings.RequestOptions,
): Promise> {
- const list = async (request: Square.BookingsListRequest): Promise => {
+ const list = async (request: Square.ListBookingsRequest): Promise => {
const { limit, cursor, customerId, teamMemberId, locationId, startAtMin, startAtMax } = request;
const _queryParams: Record = {};
if (limit !== undefined) {
@@ -112,11 +112,11 @@ export class Bookings {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -205,11 +205,11 @@ export class Bookings {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -288,11 +288,11 @@ export class Bookings {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -369,11 +369,11 @@ export class Bookings {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -441,11 +441,11 @@ export class Bookings {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -516,11 +516,11 @@ export class Bookings {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -590,11 +590,11 @@ export class Bookings {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -649,7 +649,7 @@ export class Bookings {
* To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope.
* To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.
*
- * @param {Square.BookingsGetRequest} request
+ * @param {Square.GetBookingsRequest} request
* @param {Bookings.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -658,7 +658,7 @@ export class Bookings {
* })
*/
public async get(
- request: Square.BookingsGetRequest,
+ request: Square.GetBookingsRequest,
requestOptions?: Bookings.RequestOptions,
): Promise {
const { bookingId } = request;
@@ -672,11 +672,11 @@ export class Bookings {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -752,11 +752,11 @@ export class Bookings {
method: "PUT",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -835,11 +835,11 @@ export class Bookings {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/bookings/client/requests/BookingsGetRequest.ts b/src/api/resources/bookings/client/requests/GetBookingsRequest.ts
similarity index 88%
rename from src/api/resources/bookings/client/requests/BookingsGetRequest.ts
rename to src/api/resources/bookings/client/requests/GetBookingsRequest.ts
index e151a50b9..f30022de8 100644
--- a/src/api/resources/bookings/client/requests/BookingsGetRequest.ts
+++ b/src/api/resources/bookings/client/requests/GetBookingsRequest.ts
@@ -8,7 +8,7 @@
* bookingId: "booking_id"
* }
*/
-export interface BookingsGetRequest {
+export interface GetBookingsRequest {
/**
* The ID of the [Booking](entity:Booking) object representing the to-be-retrieved booking.
*/
diff --git a/src/api/resources/bookings/client/requests/BookingsListRequest.ts b/src/api/resources/bookings/client/requests/ListBookingsRequest.ts
similarity index 97%
rename from src/api/resources/bookings/client/requests/BookingsListRequest.ts
rename to src/api/resources/bookings/client/requests/ListBookingsRequest.ts
index c20fdb2ed..e57f99b22 100644
--- a/src/api/resources/bookings/client/requests/BookingsListRequest.ts
+++ b/src/api/resources/bookings/client/requests/ListBookingsRequest.ts
@@ -6,7 +6,7 @@
* @example
* {}
*/
-export interface BookingsListRequest {
+export interface ListBookingsRequest {
/**
* The maximum number of results per page to return in a paged response.
*/
diff --git a/src/api/resources/bookings/client/requests/index.ts b/src/api/resources/bookings/client/requests/index.ts
index 95d0a1c13..3c416a42f 100644
--- a/src/api/resources/bookings/client/requests/index.ts
+++ b/src/api/resources/bookings/client/requests/index.ts
@@ -1,9 +1,9 @@
-export { type BookingsListRequest } from "./BookingsListRequest";
+export { type ListBookingsRequest } from "./ListBookingsRequest";
export { type CreateBookingRequest } from "./CreateBookingRequest";
export { type SearchAvailabilityRequest } from "./SearchAvailabilityRequest";
export { type BulkRetrieveBookingsRequest } from "./BulkRetrieveBookingsRequest";
export { type RetrieveLocationBookingProfileRequest } from "./RetrieveLocationBookingProfileRequest";
export { type BulkRetrieveTeamMemberBookingProfilesRequest } from "./BulkRetrieveTeamMemberBookingProfilesRequest";
-export { type BookingsGetRequest } from "./BookingsGetRequest";
+export { type GetBookingsRequest } from "./GetBookingsRequest";
export { type UpdateBookingRequest } from "./UpdateBookingRequest";
export { type CancelBookingRequest } from "./CancelBookingRequest";
diff --git a/src/api/resources/bookings/resources/customAttributeDefinitions/client/Client.ts b/src/api/resources/bookings/resources/customAttributeDefinitions/client/Client.ts
index bcbf0c3f4..38e030ad6 100644
--- a/src/api/resources/bookings/resources/customAttributeDefinitions/client/Client.ts
+++ b/src/api/resources/bookings/resources/customAttributeDefinitions/client/Client.ts
@@ -16,7 +16,7 @@ export declare namespace CustomAttributeDefinitions {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -28,7 +28,7 @@ export declare namespace CustomAttributeDefinitions {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -43,18 +43,18 @@ export class CustomAttributeDefinitions {
* To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope.
* To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.
*
- * @param {Square.bookings.CustomAttributeDefinitionsListRequest} request
+ * @param {Square.bookings.ListCustomAttributeDefinitionsRequest} request
* @param {CustomAttributeDefinitions.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
* await client.bookings.customAttributeDefinitions.list()
*/
public async list(
- request: Square.bookings.CustomAttributeDefinitionsListRequest = {},
+ request: Square.bookings.ListCustomAttributeDefinitionsRequest = {},
requestOptions?: CustomAttributeDefinitions.RequestOptions,
): Promise> {
const list = async (
- request: Square.bookings.CustomAttributeDefinitionsListRequest,
+ request: Square.bookings.ListCustomAttributeDefinitionsRequest,
): Promise => {
const { limit, cursor } = request;
const _queryParams: Record = {};
@@ -74,11 +74,11 @@ export class CustomAttributeDefinitions {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -165,11 +165,11 @@ export class CustomAttributeDefinitions {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -224,7 +224,7 @@ export class CustomAttributeDefinitions {
* To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope.
* To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.
*
- * @param {Square.bookings.CustomAttributeDefinitionsGetRequest} request
+ * @param {Square.bookings.GetCustomAttributeDefinitionsRequest} request
* @param {CustomAttributeDefinitions.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -233,7 +233,7 @@ export class CustomAttributeDefinitions {
* })
*/
public async get(
- request: Square.bookings.CustomAttributeDefinitionsGetRequest,
+ request: Square.bookings.GetCustomAttributeDefinitionsRequest,
requestOptions?: CustomAttributeDefinitions.RequestOptions,
): Promise {
const { key, version } = request;
@@ -252,11 +252,11 @@ export class CustomAttributeDefinitions {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -335,11 +335,11 @@ export class CustomAttributeDefinitions {
method: "PUT",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -397,7 +397,7 @@ export class CustomAttributeDefinitions {
* For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to *Appointments Plus*
* or *Appointments Premium*.
*
- * @param {Square.bookings.CustomAttributeDefinitionsDeleteRequest} request
+ * @param {Square.bookings.DeleteCustomAttributeDefinitionsRequest} request
* @param {CustomAttributeDefinitions.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -406,7 +406,7 @@ export class CustomAttributeDefinitions {
* })
*/
public async delete(
- request: Square.bookings.CustomAttributeDefinitionsDeleteRequest,
+ request: Square.bookings.DeleteCustomAttributeDefinitionsRequest,
requestOptions?: CustomAttributeDefinitions.RequestOptions,
): Promise {
const { key } = request;
@@ -420,11 +420,11 @@ export class CustomAttributeDefinitions {
method: "DELETE",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/customers/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsDeleteRequest.ts b/src/api/resources/bookings/resources/customAttributeDefinitions/client/requests/DeleteCustomAttributeDefinitionsRequest.ts
similarity index 79%
rename from src/api/resources/customers/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsDeleteRequest.ts
rename to src/api/resources/bookings/resources/customAttributeDefinitions/client/requests/DeleteCustomAttributeDefinitionsRequest.ts
index 860f57efe..6a1b34cf1 100644
--- a/src/api/resources/customers/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsDeleteRequest.ts
+++ b/src/api/resources/bookings/resources/customAttributeDefinitions/client/requests/DeleteCustomAttributeDefinitionsRequest.ts
@@ -8,7 +8,7 @@
* key: "key"
* }
*/
-export interface CustomAttributeDefinitionsDeleteRequest {
+export interface DeleteCustomAttributeDefinitionsRequest {
/**
* The key of the custom attribute definition to delete.
*/
diff --git a/src/api/resources/customers/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsGetRequest.ts b/src/api/resources/bookings/resources/customAttributeDefinitions/client/requests/GetCustomAttributeDefinitionsRequest.ts
similarity index 93%
rename from src/api/resources/customers/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsGetRequest.ts
rename to src/api/resources/bookings/resources/customAttributeDefinitions/client/requests/GetCustomAttributeDefinitionsRequest.ts
index 4fe9ca10a..9b086bfb6 100644
--- a/src/api/resources/customers/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsGetRequest.ts
+++ b/src/api/resources/bookings/resources/customAttributeDefinitions/client/requests/GetCustomAttributeDefinitionsRequest.ts
@@ -8,7 +8,7 @@
* key: "key"
* }
*/
-export interface CustomAttributeDefinitionsGetRequest {
+export interface GetCustomAttributeDefinitionsRequest {
/**
* The key of the custom attribute definition to retrieve. If the requesting application
* is not the definition owner, you must use the qualified key.
diff --git a/src/api/resources/bookings/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsListRequest.ts b/src/api/resources/bookings/resources/customAttributeDefinitions/client/requests/ListCustomAttributeDefinitionsRequest.ts
similarity index 93%
rename from src/api/resources/bookings/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsListRequest.ts
rename to src/api/resources/bookings/resources/customAttributeDefinitions/client/requests/ListCustomAttributeDefinitionsRequest.ts
index 932817271..ebdc049cc 100644
--- a/src/api/resources/bookings/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsListRequest.ts
+++ b/src/api/resources/bookings/resources/customAttributeDefinitions/client/requests/ListCustomAttributeDefinitionsRequest.ts
@@ -6,7 +6,7 @@
* @example
* {}
*/
-export interface CustomAttributeDefinitionsListRequest {
+export interface ListCustomAttributeDefinitionsRequest {
/**
* The maximum number of results to return in a single paged response. This limit is advisory.
* The response might contain more or fewer results. The minimum value is 1 and the maximum value is 100.
diff --git a/src/api/resources/bookings/resources/customAttributeDefinitions/client/requests/index.ts b/src/api/resources/bookings/resources/customAttributeDefinitions/client/requests/index.ts
index 5275388bc..0dd526820 100644
--- a/src/api/resources/bookings/resources/customAttributeDefinitions/client/requests/index.ts
+++ b/src/api/resources/bookings/resources/customAttributeDefinitions/client/requests/index.ts
@@ -1,5 +1,5 @@
-export { type CustomAttributeDefinitionsListRequest } from "./CustomAttributeDefinitionsListRequest";
+export { type ListCustomAttributeDefinitionsRequest } from "./ListCustomAttributeDefinitionsRequest";
export { type CreateBookingCustomAttributeDefinitionRequest } from "./CreateBookingCustomAttributeDefinitionRequest";
-export { type CustomAttributeDefinitionsGetRequest } from "./CustomAttributeDefinitionsGetRequest";
+export { type GetCustomAttributeDefinitionsRequest } from "./GetCustomAttributeDefinitionsRequest";
export { type UpdateBookingCustomAttributeDefinitionRequest } from "./UpdateBookingCustomAttributeDefinitionRequest";
-export { type CustomAttributeDefinitionsDeleteRequest } from "./CustomAttributeDefinitionsDeleteRequest";
+export { type DeleteCustomAttributeDefinitionsRequest } from "./DeleteCustomAttributeDefinitionsRequest";
diff --git a/src/api/resources/bookings/resources/customAttributes/client/Client.ts b/src/api/resources/bookings/resources/customAttributes/client/Client.ts
index 8421b274c..e1ef36c5c 100644
--- a/src/api/resources/bookings/resources/customAttributes/client/Client.ts
+++ b/src/api/resources/bookings/resources/customAttributes/client/Client.ts
@@ -16,7 +16,7 @@ export declare namespace CustomAttributes {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -28,7 +28,7 @@ export declare namespace CustomAttributes {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -73,11 +73,11 @@ export class CustomAttributes {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -162,11 +162,11 @@ export class CustomAttributes {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -221,7 +221,7 @@ export class CustomAttributes {
* To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope.
* To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.
*
- * @param {Square.bookings.CustomAttributesListRequest} request
+ * @param {Square.bookings.ListCustomAttributesRequest} request
* @param {CustomAttributes.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -230,11 +230,11 @@ export class CustomAttributes {
* })
*/
public async list(
- request: Square.bookings.CustomAttributesListRequest,
+ request: Square.bookings.ListCustomAttributesRequest,
requestOptions?: CustomAttributes.RequestOptions,
): Promise> {
const list = async (
- request: Square.bookings.CustomAttributesListRequest,
+ request: Square.bookings.ListCustomAttributesRequest,
): Promise => {
const { bookingId, limit, cursor, withDefinitions } = request;
const _queryParams: Record = {};
@@ -257,11 +257,11 @@ export class CustomAttributes {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -320,7 +320,7 @@ export class CustomAttributes {
* To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope.
* To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.
*
- * @param {Square.bookings.CustomAttributesGetRequest} request
+ * @param {Square.bookings.GetCustomAttributesRequest} request
* @param {CustomAttributes.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -330,7 +330,7 @@ export class CustomAttributes {
* })
*/
public async get(
- request: Square.bookings.CustomAttributesGetRequest,
+ request: Square.bookings.GetCustomAttributesRequest,
requestOptions?: CustomAttributes.RequestOptions,
): Promise {
const { bookingId, key, withDefinition, version } = request;
@@ -353,11 +353,11 @@ export class CustomAttributes {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -437,11 +437,11 @@ export class CustomAttributes {
method: "PUT",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -499,7 +499,7 @@ export class CustomAttributes {
* For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to *Appointments Plus*
* or *Appointments Premium*.
*
- * @param {Square.bookings.CustomAttributesDeleteRequest} request
+ * @param {Square.bookings.DeleteCustomAttributesRequest} request
* @param {CustomAttributes.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -509,7 +509,7 @@ export class CustomAttributes {
* })
*/
public async delete(
- request: Square.bookings.CustomAttributesDeleteRequest,
+ request: Square.bookings.DeleteCustomAttributesRequest,
requestOptions?: CustomAttributes.RequestOptions,
): Promise {
const { bookingId, key } = request;
@@ -523,11 +523,11 @@ export class CustomAttributes {
method: "DELETE",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/bookings/resources/customAttributes/client/requests/CustomAttributesDeleteRequest.ts b/src/api/resources/bookings/resources/customAttributes/client/requests/DeleteCustomAttributesRequest.ts
similarity index 91%
rename from src/api/resources/bookings/resources/customAttributes/client/requests/CustomAttributesDeleteRequest.ts
rename to src/api/resources/bookings/resources/customAttributes/client/requests/DeleteCustomAttributesRequest.ts
index 4ac85246b..1e6be8d91 100644
--- a/src/api/resources/bookings/resources/customAttributes/client/requests/CustomAttributesDeleteRequest.ts
+++ b/src/api/resources/bookings/resources/customAttributes/client/requests/DeleteCustomAttributesRequest.ts
@@ -9,7 +9,7 @@
* key: "key"
* }
*/
-export interface CustomAttributesDeleteRequest {
+export interface DeleteCustomAttributesRequest {
/**
* The ID of the target [booking](entity:Booking).
*/
diff --git a/src/api/resources/bookings/resources/customAttributes/client/requests/CustomAttributesGetRequest.ts b/src/api/resources/bookings/resources/customAttributes/client/requests/GetCustomAttributesRequest.ts
similarity index 96%
rename from src/api/resources/bookings/resources/customAttributes/client/requests/CustomAttributesGetRequest.ts
rename to src/api/resources/bookings/resources/customAttributes/client/requests/GetCustomAttributesRequest.ts
index af68d8e29..540eb8c10 100644
--- a/src/api/resources/bookings/resources/customAttributes/client/requests/CustomAttributesGetRequest.ts
+++ b/src/api/resources/bookings/resources/customAttributes/client/requests/GetCustomAttributesRequest.ts
@@ -9,7 +9,7 @@
* key: "key"
* }
*/
-export interface CustomAttributesGetRequest {
+export interface GetCustomAttributesRequest {
/**
* The ID of the target [booking](entity:Booking).
*/
diff --git a/src/api/resources/bookings/resources/customAttributes/client/requests/CustomAttributesListRequest.ts b/src/api/resources/bookings/resources/customAttributes/client/requests/ListCustomAttributesRequest.ts
similarity index 96%
rename from src/api/resources/bookings/resources/customAttributes/client/requests/CustomAttributesListRequest.ts
rename to src/api/resources/bookings/resources/customAttributes/client/requests/ListCustomAttributesRequest.ts
index 00bec62ce..ec23db686 100644
--- a/src/api/resources/bookings/resources/customAttributes/client/requests/CustomAttributesListRequest.ts
+++ b/src/api/resources/bookings/resources/customAttributes/client/requests/ListCustomAttributesRequest.ts
@@ -8,7 +8,7 @@
* bookingId: "booking_id"
* }
*/
-export interface CustomAttributesListRequest {
+export interface ListCustomAttributesRequest {
/**
* The ID of the target [booking](entity:Booking).
*/
diff --git a/src/api/resources/bookings/resources/customAttributes/client/requests/index.ts b/src/api/resources/bookings/resources/customAttributes/client/requests/index.ts
index 1029078b3..3e49e8cbc 100644
--- a/src/api/resources/bookings/resources/customAttributes/client/requests/index.ts
+++ b/src/api/resources/bookings/resources/customAttributes/client/requests/index.ts
@@ -1,6 +1,6 @@
export { type BulkDeleteBookingCustomAttributesRequest } from "./BulkDeleteBookingCustomAttributesRequest";
export { type BulkUpsertBookingCustomAttributesRequest } from "./BulkUpsertBookingCustomAttributesRequest";
-export { type CustomAttributesListRequest } from "./CustomAttributesListRequest";
-export { type CustomAttributesGetRequest } from "./CustomAttributesGetRequest";
+export { type ListCustomAttributesRequest } from "./ListCustomAttributesRequest";
+export { type GetCustomAttributesRequest } from "./GetCustomAttributesRequest";
export { type UpsertBookingCustomAttributeRequest } from "./UpsertBookingCustomAttributeRequest";
-export { type CustomAttributesDeleteRequest } from "./CustomAttributesDeleteRequest";
+export { type DeleteCustomAttributesRequest } from "./DeleteCustomAttributesRequest";
diff --git a/src/api/resources/bookings/resources/locationProfiles/client/Client.ts b/src/api/resources/bookings/resources/locationProfiles/client/Client.ts
index 4dbaf7ab6..6ca6470f4 100644
--- a/src/api/resources/bookings/resources/locationProfiles/client/Client.ts
+++ b/src/api/resources/bookings/resources/locationProfiles/client/Client.ts
@@ -16,7 +16,7 @@ export declare namespace LocationProfiles {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -28,7 +28,7 @@ export declare namespace LocationProfiles {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -40,18 +40,18 @@ export class LocationProfiles {
/**
* Lists location booking profiles of a seller.
*
- * @param {Square.bookings.LocationProfilesListRequest} request
+ * @param {Square.bookings.ListLocationProfilesRequest} request
* @param {LocationProfiles.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
* await client.bookings.locationProfiles.list()
*/
public async list(
- request: Square.bookings.LocationProfilesListRequest = {},
+ request: Square.bookings.ListLocationProfilesRequest = {},
requestOptions?: LocationProfiles.RequestOptions,
): Promise> {
const list = async (
- request: Square.bookings.LocationProfilesListRequest,
+ request: Square.bookings.ListLocationProfilesRequest,
): Promise => {
const { limit, cursor } = request;
const _queryParams: Record = {};
@@ -71,11 +71,11 @@ export class LocationProfiles {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/bookings/resources/locationProfiles/client/requests/LocationProfilesListRequest.ts b/src/api/resources/bookings/resources/locationProfiles/client/requests/ListLocationProfilesRequest.ts
similarity index 89%
rename from src/api/resources/bookings/resources/locationProfiles/client/requests/LocationProfilesListRequest.ts
rename to src/api/resources/bookings/resources/locationProfiles/client/requests/ListLocationProfilesRequest.ts
index f9007e56e..1cc29a3f2 100644
--- a/src/api/resources/bookings/resources/locationProfiles/client/requests/LocationProfilesListRequest.ts
+++ b/src/api/resources/bookings/resources/locationProfiles/client/requests/ListLocationProfilesRequest.ts
@@ -6,7 +6,7 @@
* @example
* {}
*/
-export interface LocationProfilesListRequest {
+export interface ListLocationProfilesRequest {
/**
* The maximum number of results to return in a paged response.
*/
diff --git a/src/api/resources/bookings/resources/locationProfiles/client/requests/index.ts b/src/api/resources/bookings/resources/locationProfiles/client/requests/index.ts
index ab79a72d5..f3f432a40 100644
--- a/src/api/resources/bookings/resources/locationProfiles/client/requests/index.ts
+++ b/src/api/resources/bookings/resources/locationProfiles/client/requests/index.ts
@@ -1 +1 @@
-export { type LocationProfilesListRequest } from "./LocationProfilesListRequest";
+export { type ListLocationProfilesRequest } from "./ListLocationProfilesRequest";
diff --git a/src/api/resources/bookings/resources/teamMemberProfiles/client/Client.ts b/src/api/resources/bookings/resources/teamMemberProfiles/client/Client.ts
index 4e2131902..d083c405a 100644
--- a/src/api/resources/bookings/resources/teamMemberProfiles/client/Client.ts
+++ b/src/api/resources/bookings/resources/teamMemberProfiles/client/Client.ts
@@ -16,7 +16,7 @@ export declare namespace TeamMemberProfiles {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -28,7 +28,7 @@ export declare namespace TeamMemberProfiles {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -40,18 +40,18 @@ export class TeamMemberProfiles {
/**
* Lists booking profiles for team members.
*
- * @param {Square.bookings.TeamMemberProfilesListRequest} request
+ * @param {Square.bookings.ListTeamMemberProfilesRequest} request
* @param {TeamMemberProfiles.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
* await client.bookings.teamMemberProfiles.list()
*/
public async list(
- request: Square.bookings.TeamMemberProfilesListRequest = {},
+ request: Square.bookings.ListTeamMemberProfilesRequest = {},
requestOptions?: TeamMemberProfiles.RequestOptions,
): Promise> {
const list = async (
- request: Square.bookings.TeamMemberProfilesListRequest,
+ request: Square.bookings.ListTeamMemberProfilesRequest,
): Promise => {
const { bookableOnly, limit, cursor, locationId } = request;
const _queryParams: Record = {};
@@ -77,11 +77,11 @@ export class TeamMemberProfiles {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -137,7 +137,7 @@ export class TeamMemberProfiles {
/**
* Retrieves a team member's booking profile.
*
- * @param {Square.bookings.TeamMemberProfilesGetRequest} request
+ * @param {Square.bookings.GetTeamMemberProfilesRequest} request
* @param {TeamMemberProfiles.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -146,7 +146,7 @@ export class TeamMemberProfiles {
* })
*/
public async get(
- request: Square.bookings.TeamMemberProfilesGetRequest,
+ request: Square.bookings.GetTeamMemberProfilesRequest,
requestOptions?: TeamMemberProfiles.RequestOptions,
): Promise {
const { teamMemberId } = request;
@@ -160,11 +160,11 @@ export class TeamMemberProfiles {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/bookings/resources/teamMemberProfiles/client/requests/TeamMemberProfilesGetRequest.ts b/src/api/resources/bookings/resources/teamMemberProfiles/client/requests/GetTeamMemberProfilesRequest.ts
similarity index 83%
rename from src/api/resources/bookings/resources/teamMemberProfiles/client/requests/TeamMemberProfilesGetRequest.ts
rename to src/api/resources/bookings/resources/teamMemberProfiles/client/requests/GetTeamMemberProfilesRequest.ts
index 14f1f396a..8c0e22128 100644
--- a/src/api/resources/bookings/resources/teamMemberProfiles/client/requests/TeamMemberProfilesGetRequest.ts
+++ b/src/api/resources/bookings/resources/teamMemberProfiles/client/requests/GetTeamMemberProfilesRequest.ts
@@ -8,7 +8,7 @@
* teamMemberId: "team_member_id"
* }
*/
-export interface TeamMemberProfilesGetRequest {
+export interface GetTeamMemberProfilesRequest {
/**
* The ID of the team member to retrieve.
*/
diff --git a/src/api/resources/bookings/resources/teamMemberProfiles/client/requests/TeamMemberProfilesListRequest.ts b/src/api/resources/bookings/resources/teamMemberProfiles/client/requests/ListTeamMemberProfilesRequest.ts
similarity index 93%
rename from src/api/resources/bookings/resources/teamMemberProfiles/client/requests/TeamMemberProfilesListRequest.ts
rename to src/api/resources/bookings/resources/teamMemberProfiles/client/requests/ListTeamMemberProfilesRequest.ts
index de5548b2e..126643f74 100644
--- a/src/api/resources/bookings/resources/teamMemberProfiles/client/requests/TeamMemberProfilesListRequest.ts
+++ b/src/api/resources/bookings/resources/teamMemberProfiles/client/requests/ListTeamMemberProfilesRequest.ts
@@ -6,7 +6,7 @@
* @example
* {}
*/
-export interface TeamMemberProfilesListRequest {
+export interface ListTeamMemberProfilesRequest {
/**
* Indicates whether to include only bookable team members in the returned result (`true`) or not (`false`).
*/
diff --git a/src/api/resources/bookings/resources/teamMemberProfiles/client/requests/index.ts b/src/api/resources/bookings/resources/teamMemberProfiles/client/requests/index.ts
index 2ba9f214d..4a2788242 100644
--- a/src/api/resources/bookings/resources/teamMemberProfiles/client/requests/index.ts
+++ b/src/api/resources/bookings/resources/teamMemberProfiles/client/requests/index.ts
@@ -1,2 +1,2 @@
-export { type TeamMemberProfilesListRequest } from "./TeamMemberProfilesListRequest";
-export { type TeamMemberProfilesGetRequest } from "./TeamMemberProfilesGetRequest";
+export { type ListTeamMemberProfilesRequest } from "./ListTeamMemberProfilesRequest";
+export { type GetTeamMemberProfilesRequest } from "./GetTeamMemberProfilesRequest";
diff --git a/src/api/resources/cards/client/Client.ts b/src/api/resources/cards/client/Client.ts
index 0f86f3151..99a6d1ab9 100644
--- a/src/api/resources/cards/client/Client.ts
+++ b/src/api/resources/cards/client/Client.ts
@@ -16,7 +16,7 @@ export declare namespace Cards {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -28,7 +28,7 @@ export declare namespace Cards {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -41,17 +41,17 @@ export class Cards {
* Retrieves a list of cards owned by the account making the request.
* A max of 25 cards will be returned.
*
- * @param {Square.CardsListRequest} request
+ * @param {Square.ListCardsRequest} request
* @param {Cards.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
* await client.cards.list()
*/
public async list(
- request: Square.CardsListRequest = {},
+ request: Square.ListCardsRequest = {},
requestOptions?: Cards.RequestOptions,
): Promise> {
- const list = async (request: Square.CardsListRequest): Promise => {
+ const list = async (request: Square.ListCardsRequest): Promise => {
const { cursor, customerId, includeDisabled, referenceId, sortOrder } = request;
const _queryParams: Record = {};
if (cursor !== undefined) {
@@ -82,11 +82,11 @@ export class Cards {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -176,11 +176,11 @@ export class Cards {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -230,7 +230,7 @@ export class Cards {
/**
* Retrieves details for a specific Card.
*
- * @param {Square.CardsGetRequest} request
+ * @param {Square.GetCardsRequest} request
* @param {Cards.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -239,7 +239,7 @@ export class Cards {
* })
*/
public async get(
- request: Square.CardsGetRequest,
+ request: Square.GetCardsRequest,
requestOptions?: Cards.RequestOptions,
): Promise {
const { cardId } = request;
@@ -253,11 +253,11 @@ export class Cards {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -304,7 +304,7 @@ export class Cards {
* Disables the card, preventing any further updates or charges.
* Disabling an already disabled card is allowed but has no effect.
*
- * @param {Square.CardsDisableRequest} request
+ * @param {Square.DisableCardsRequest} request
* @param {Cards.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -313,7 +313,7 @@ export class Cards {
* })
*/
public async disable(
- request: Square.CardsDisableRequest,
+ request: Square.DisableCardsRequest,
requestOptions?: Cards.RequestOptions,
): Promise {
const { cardId } = request;
@@ -327,11 +327,11 @@ export class Cards {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/cards/client/requests/CardsDisableRequest.ts b/src/api/resources/cards/client/requests/DisableCardsRequest.ts
similarity index 84%
rename from src/api/resources/cards/client/requests/CardsDisableRequest.ts
rename to src/api/resources/cards/client/requests/DisableCardsRequest.ts
index 326233436..7a96d92d9 100644
--- a/src/api/resources/cards/client/requests/CardsDisableRequest.ts
+++ b/src/api/resources/cards/client/requests/DisableCardsRequest.ts
@@ -8,7 +8,7 @@
* cardId: "card_id"
* }
*/
-export interface CardsDisableRequest {
+export interface DisableCardsRequest {
/**
* Unique ID for the desired Card.
*/
diff --git a/src/api/resources/cards/client/requests/CardsGetRequest.ts b/src/api/resources/cards/client/requests/GetCardsRequest.ts
similarity index 86%
rename from src/api/resources/cards/client/requests/CardsGetRequest.ts
rename to src/api/resources/cards/client/requests/GetCardsRequest.ts
index a36c6148f..c5d067993 100644
--- a/src/api/resources/cards/client/requests/CardsGetRequest.ts
+++ b/src/api/resources/cards/client/requests/GetCardsRequest.ts
@@ -8,7 +8,7 @@
* cardId: "card_id"
* }
*/
-export interface CardsGetRequest {
+export interface GetCardsRequest {
/**
* Unique ID for the desired Card.
*/
diff --git a/src/api/resources/cards/client/requests/CardsListRequest.ts b/src/api/resources/cards/client/requests/ListCardsRequest.ts
similarity index 96%
rename from src/api/resources/cards/client/requests/CardsListRequest.ts
rename to src/api/resources/cards/client/requests/ListCardsRequest.ts
index d5b157d91..44df40e49 100644
--- a/src/api/resources/cards/client/requests/CardsListRequest.ts
+++ b/src/api/resources/cards/client/requests/ListCardsRequest.ts
@@ -8,7 +8,7 @@ import * as Square from "../../../../index";
* @example
* {}
*/
-export interface CardsListRequest {
+export interface ListCardsRequest {
/**
* A pagination cursor returned by a previous call to this endpoint.
* Provide this to retrieve the next set of results for your original query.
diff --git a/src/api/resources/cards/client/requests/index.ts b/src/api/resources/cards/client/requests/index.ts
index 68e9d706b..5fb9592cd 100644
--- a/src/api/resources/cards/client/requests/index.ts
+++ b/src/api/resources/cards/client/requests/index.ts
@@ -1,4 +1,4 @@
-export { type CardsListRequest } from "./CardsListRequest";
+export { type ListCardsRequest } from "./ListCardsRequest";
export { type CreateCardRequest } from "./CreateCardRequest";
-export { type CardsGetRequest } from "./CardsGetRequest";
-export { type CardsDisableRequest } from "./CardsDisableRequest";
+export { type GetCardsRequest } from "./GetCardsRequest";
+export { type DisableCardsRequest } from "./DisableCardsRequest";
diff --git a/src/api/resources/cashDrawers/client/Client.ts b/src/api/resources/cashDrawers/client/Client.ts
index 66343f1c7..7d3340ff6 100644
--- a/src/api/resources/cashDrawers/client/Client.ts
+++ b/src/api/resources/cashDrawers/client/Client.ts
@@ -13,7 +13,7 @@ export declare namespace CashDrawers {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -25,7 +25,7 @@ export declare namespace CashDrawers {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
diff --git a/src/api/resources/cashDrawers/resources/shifts/client/Client.ts b/src/api/resources/cashDrawers/resources/shifts/client/Client.ts
index 11b911a6f..eac9a3b58 100644
--- a/src/api/resources/cashDrawers/resources/shifts/client/Client.ts
+++ b/src/api/resources/cashDrawers/resources/shifts/client/Client.ts
@@ -16,7 +16,7 @@ export declare namespace Shifts {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -28,7 +28,7 @@ export declare namespace Shifts {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -41,7 +41,7 @@ export class Shifts {
* Provides the details for all of the cash drawer shifts for a location
* in a date range.
*
- * @param {Square.cashDrawers.ShiftsListRequest} request
+ * @param {Square.cashDrawers.ListShiftsRequest} request
* @param {Shifts.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -50,11 +50,11 @@ export class Shifts {
* })
*/
public async list(
- request: Square.cashDrawers.ShiftsListRequest,
+ request: Square.cashDrawers.ListShiftsRequest,
requestOptions?: Shifts.RequestOptions,
): Promise> {
const list = async (
- request: Square.cashDrawers.ShiftsListRequest,
+ request: Square.cashDrawers.ListShiftsRequest,
): Promise => {
const { locationId, sortOrder, beginTime, endTime, limit, cursor } = request;
const _queryParams: Record = {};
@@ -87,11 +87,11 @@ export class Shifts {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -146,7 +146,7 @@ export class Shifts {
* Provides the summary details for a single cash drawer shift. See
* [ListCashDrawerShiftEvents](api-endpoint:CashDrawers-ListCashDrawerShiftEvents) for a list of cash drawer shift events.
*
- * @param {Square.cashDrawers.ShiftsGetRequest} request
+ * @param {Square.cashDrawers.GetShiftsRequest} request
* @param {Shifts.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -156,7 +156,7 @@ export class Shifts {
* })
*/
public async get(
- request: Square.cashDrawers.ShiftsGetRequest,
+ request: Square.cashDrawers.GetShiftsRequest,
requestOptions?: Shifts.RequestOptions,
): Promise {
const { shiftId, locationId } = request;
@@ -172,11 +172,11 @@ export class Shifts {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -225,7 +225,7 @@ export class Shifts {
/**
* Provides a paginated list of events for a single cash drawer shift.
*
- * @param {Square.cashDrawers.ShiftsListEventsRequest} request
+ * @param {Square.cashDrawers.ListEventsShiftsRequest} request
* @param {Shifts.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -235,11 +235,11 @@ export class Shifts {
* })
*/
public async listEvents(
- request: Square.cashDrawers.ShiftsListEventsRequest,
+ request: Square.cashDrawers.ListEventsShiftsRequest,
requestOptions?: Shifts.RequestOptions,
): Promise> {
const list = async (
- request: Square.cashDrawers.ShiftsListEventsRequest,
+ request: Square.cashDrawers.ListEventsShiftsRequest,
): Promise => {
const { shiftId, locationId, limit, cursor } = request;
const _queryParams: Record = {};
@@ -260,11 +260,11 @@ export class Shifts {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/cashDrawers/resources/shifts/client/requests/ShiftsGetRequest.ts b/src/api/resources/cashDrawers/resources/shifts/client/requests/GetShiftsRequest.ts
similarity index 90%
rename from src/api/resources/cashDrawers/resources/shifts/client/requests/ShiftsGetRequest.ts
rename to src/api/resources/cashDrawers/resources/shifts/client/requests/GetShiftsRequest.ts
index 6c512eb3b..3f84d4aac 100644
--- a/src/api/resources/cashDrawers/resources/shifts/client/requests/ShiftsGetRequest.ts
+++ b/src/api/resources/cashDrawers/resources/shifts/client/requests/GetShiftsRequest.ts
@@ -9,7 +9,7 @@
* locationId: "location_id"
* }
*/
-export interface ShiftsGetRequest {
+export interface GetShiftsRequest {
/**
* The shift ID.
*/
diff --git a/src/api/resources/cashDrawers/resources/shifts/client/requests/ShiftsListEventsRequest.ts b/src/api/resources/cashDrawers/resources/shifts/client/requests/ListEventsShiftsRequest.ts
similarity index 93%
rename from src/api/resources/cashDrawers/resources/shifts/client/requests/ShiftsListEventsRequest.ts
rename to src/api/resources/cashDrawers/resources/shifts/client/requests/ListEventsShiftsRequest.ts
index d4cd42352..33d092715 100644
--- a/src/api/resources/cashDrawers/resources/shifts/client/requests/ShiftsListEventsRequest.ts
+++ b/src/api/resources/cashDrawers/resources/shifts/client/requests/ListEventsShiftsRequest.ts
@@ -9,7 +9,7 @@
* locationId: "location_id"
* }
*/
-export interface ShiftsListEventsRequest {
+export interface ListEventsShiftsRequest {
/**
* The shift ID.
*/
diff --git a/src/api/resources/cashDrawers/resources/shifts/client/requests/ShiftsListRequest.ts b/src/api/resources/cashDrawers/resources/shifts/client/requests/ListShiftsRequest.ts
similarity index 96%
rename from src/api/resources/cashDrawers/resources/shifts/client/requests/ShiftsListRequest.ts
rename to src/api/resources/cashDrawers/resources/shifts/client/requests/ListShiftsRequest.ts
index 98531357b..a7ef994f1 100644
--- a/src/api/resources/cashDrawers/resources/shifts/client/requests/ShiftsListRequest.ts
+++ b/src/api/resources/cashDrawers/resources/shifts/client/requests/ListShiftsRequest.ts
@@ -10,7 +10,7 @@ import * as Square from "../../../../../../index";
* locationId: "location_id"
* }
*/
-export interface ShiftsListRequest {
+export interface ListShiftsRequest {
/**
* The ID of the location to query for a list of cash drawer shifts.
*/
diff --git a/src/api/resources/cashDrawers/resources/shifts/client/requests/index.ts b/src/api/resources/cashDrawers/resources/shifts/client/requests/index.ts
index fe57b25b5..c69b4133d 100644
--- a/src/api/resources/cashDrawers/resources/shifts/client/requests/index.ts
+++ b/src/api/resources/cashDrawers/resources/shifts/client/requests/index.ts
@@ -1,3 +1,3 @@
-export { type ShiftsListRequest } from "./ShiftsListRequest";
-export { type ShiftsGetRequest } from "./ShiftsGetRequest";
-export { type ShiftsListEventsRequest } from "./ShiftsListEventsRequest";
+export { type ListShiftsRequest } from "./ListShiftsRequest";
+export { type GetShiftsRequest } from "./GetShiftsRequest";
+export { type ListEventsShiftsRequest } from "./ListEventsShiftsRequest";
diff --git a/src/api/resources/catalog/client/Client.ts b/src/api/resources/catalog/client/Client.ts
index aaeefea40..c89942b03 100644
--- a/src/api/resources/catalog/client/Client.ts
+++ b/src/api/resources/catalog/client/Client.ts
@@ -18,7 +18,7 @@ export declare namespace Catalog {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -30,7 +30,7 @@ export declare namespace Catalog {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -88,11 +88,11 @@ export class Catalog {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -170,11 +170,11 @@ export class Catalog {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -244,21 +244,17 @@ export class Catalog {
* idempotencyKey: "789ff020-f723-43a9-b4b5-43b5dc1fa3dc",
* batches: [{
* objects: [{
- * type: "SUBSCRIPTION_PRODUCT",
- * id: "#Tea",
- * presentAtAllLocations: true
+ * type: "ITEM",
+ * id: "id"
* }, {
- * type: "SUBSCRIPTION_PRODUCT",
- * id: "#Coffee",
- * presentAtAllLocations: true
+ * type: "ITEM",
+ * id: "id"
* }, {
- * type: "SUBSCRIPTION_PRODUCT",
- * id: "#Beverages",
- * presentAtAllLocations: true
+ * type: "ITEM",
+ * id: "id"
* }, {
- * type: "SUBSCRIPTION_PRODUCT",
- * id: "#SalesTax",
- * presentAtAllLocations: true
+ * type: "TAX",
+ * id: "id"
* }]
* }]
* })
@@ -277,11 +273,11 @@ export class Catalog {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -348,11 +344,11 @@ export class Catalog {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -405,17 +401,17 @@ export class Catalog {
* deleted catalog items, use [SearchCatalogObjects](api-endpoint:Catalog-SearchCatalogObjects)
* and set the `include_deleted_objects` attribute value to `true`.
*
- * @param {Square.CatalogListRequest} request
+ * @param {Square.ListCatalogRequest} request
* @param {Catalog.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
* await client.catalog.list()
*/
public async list(
- request: Square.CatalogListRequest = {},
+ request: Square.ListCatalogRequest = {},
requestOptions?: Catalog.RequestOptions,
): Promise> {
- const list = async (request: Square.CatalogListRequest): Promise => {
+ const list = async (request: Square.ListCatalogRequest): Promise => {
const { cursor, types, catalogVersion } = request;
const _queryParams: Record = {};
if (cursor !== undefined) {
@@ -437,11 +433,11 @@ export class Catalog {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -533,11 +529,11 @@ export class Catalog {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -639,11 +635,11 @@ export class Catalog {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -721,11 +717,11 @@ export class Catalog {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -803,11 +799,11 @@ export class Catalog {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/catalog/client/requests/BatchUpsertCatalogObjectsRequest.ts b/src/api/resources/catalog/client/requests/BatchUpsertCatalogObjectsRequest.ts
index 939d61c18..07bb27415 100644
--- a/src/api/resources/catalog/client/requests/BatchUpsertCatalogObjectsRequest.ts
+++ b/src/api/resources/catalog/client/requests/BatchUpsertCatalogObjectsRequest.ts
@@ -10,21 +10,17 @@ import * as Square from "../../../../index";
* idempotencyKey: "789ff020-f723-43a9-b4b5-43b5dc1fa3dc",
* batches: [{
* objects: [{
- * type: "SUBSCRIPTION_PRODUCT",
- * id: "#Tea",
- * presentAtAllLocations: true
+ * type: "ITEM",
+ * id: "id"
* }, {
- * type: "SUBSCRIPTION_PRODUCT",
- * id: "#Coffee",
- * presentAtAllLocations: true
+ * type: "ITEM",
+ * id: "id"
* }, {
- * type: "SUBSCRIPTION_PRODUCT",
- * id: "#Beverages",
- * presentAtAllLocations: true
+ * type: "ITEM",
+ * id: "id"
* }, {
- * type: "SUBSCRIPTION_PRODUCT",
- * id: "#SalesTax",
- * presentAtAllLocations: true
+ * type: "TAX",
+ * id: "id"
* }]
* }]
* }
diff --git a/src/api/resources/catalog/client/requests/CatalogListRequest.ts b/src/api/resources/catalog/client/requests/ListCatalogRequest.ts
similarity index 97%
rename from src/api/resources/catalog/client/requests/CatalogListRequest.ts
rename to src/api/resources/catalog/client/requests/ListCatalogRequest.ts
index 7b1fbf316..5a2363cda 100644
--- a/src/api/resources/catalog/client/requests/CatalogListRequest.ts
+++ b/src/api/resources/catalog/client/requests/ListCatalogRequest.ts
@@ -6,7 +6,7 @@
* @example
* {}
*/
-export interface CatalogListRequest {
+export interface ListCatalogRequest {
/**
* The pagination cursor returned in the previous response. Leave unset for an initial request.
* The page size is currently set to be 100.
diff --git a/src/api/resources/catalog/client/requests/index.ts b/src/api/resources/catalog/client/requests/index.ts
index 1308442f1..14d4621a0 100644
--- a/src/api/resources/catalog/client/requests/index.ts
+++ b/src/api/resources/catalog/client/requests/index.ts
@@ -1,7 +1,7 @@
export { type BatchDeleteCatalogObjectsRequest } from "./BatchDeleteCatalogObjectsRequest";
export { type BatchGetCatalogObjectsRequest } from "./BatchGetCatalogObjectsRequest";
export { type BatchUpsertCatalogObjectsRequest } from "./BatchUpsertCatalogObjectsRequest";
-export { type CatalogListRequest } from "./CatalogListRequest";
+export { type ListCatalogRequest } from "./ListCatalogRequest";
export { type SearchCatalogObjectsRequest } from "./SearchCatalogObjectsRequest";
export { type SearchCatalogItemsRequest } from "./SearchCatalogItemsRequest";
export { type UpdateItemModifierListsRequest } from "./UpdateItemModifierListsRequest";
diff --git a/src/api/resources/catalog/resources/images/client/Client.ts b/src/api/resources/catalog/resources/images/client/Client.ts
index ae7892ee0..c63dee0fd 100644
--- a/src/api/resources/catalog/resources/images/client/Client.ts
+++ b/src/api/resources/catalog/resources/images/client/Client.ts
@@ -17,7 +17,7 @@ export declare namespace Images {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -29,7 +29,7 @@ export declare namespace Images {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -46,14 +46,14 @@ export class Images {
* This `CreateCatalogImage` endpoint accepts HTTP multipart/form-data requests with a JSON part and an image file part in
* JPEG, PJPEG, PNG, or GIF format. The maximum file size is 15MB.
*
- * @param {Square.catalog.ImagesCreateRequest} request
+ * @param {Square.catalog.CreateImagesRequest} request
* @param {Images.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
* await client.catalog.images.create({})
*/
public async create(
- request: Square.catalog.ImagesCreateRequest,
+ request: Square.catalog.CreateImagesRequest,
requestOptions?: Images.RequestOptions,
): Promise {
const _request = await core.newFormData();
@@ -84,11 +84,11 @@ export class Images {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
..._maybeEncodedRequest.headers,
@@ -139,7 +139,7 @@ export class Images {
* This `UpdateCatalogImage` endpoint accepts HTTP multipart/form-data requests with a JSON part and an image file part in
* JPEG, PJPEG, PNG, or GIF format. The maximum file size is 15MB.
*
- * @param {Square.catalog.ImagesUpdateRequest} request
+ * @param {Square.catalog.UpdateImagesRequest} request
* @param {Images.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -148,7 +148,7 @@ export class Images {
* })
*/
public async update(
- request: Square.catalog.ImagesUpdateRequest,
+ request: Square.catalog.UpdateImagesRequest,
requestOptions?: Images.RequestOptions,
): Promise {
const _request = await core.newFormData();
@@ -179,11 +179,11 @@ export class Images {
method: "PUT",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
..._maybeEncodedRequest.headers,
diff --git a/src/api/resources/catalog/resources/images/client/requests/ImagesCreateRequest.ts b/src/api/resources/catalog/resources/images/client/requests/CreateImagesRequest.ts
similarity index 88%
rename from src/api/resources/catalog/resources/images/client/requests/ImagesCreateRequest.ts
rename to src/api/resources/catalog/resources/images/client/requests/CreateImagesRequest.ts
index bae33b4aa..50d490319 100644
--- a/src/api/resources/catalog/resources/images/client/requests/ImagesCreateRequest.ts
+++ b/src/api/resources/catalog/resources/images/client/requests/CreateImagesRequest.ts
@@ -9,7 +9,7 @@ import * as fs from "fs";
* @example
* {}
*/
-export interface ImagesCreateRequest {
+export interface CreateImagesRequest {
request?: Square.CreateCatalogImageRequest;
imageFile?: File | fs.ReadStream | Blob | undefined;
}
diff --git a/src/api/resources/catalog/resources/images/client/requests/ImagesUpdateRequest.ts b/src/api/resources/catalog/resources/images/client/requests/UpdateImagesRequest.ts
similarity index 91%
rename from src/api/resources/catalog/resources/images/client/requests/ImagesUpdateRequest.ts
rename to src/api/resources/catalog/resources/images/client/requests/UpdateImagesRequest.ts
index fdd5a6e11..ad56e6e59 100644
--- a/src/api/resources/catalog/resources/images/client/requests/ImagesUpdateRequest.ts
+++ b/src/api/resources/catalog/resources/images/client/requests/UpdateImagesRequest.ts
@@ -11,7 +11,7 @@ import * as fs from "fs";
* imageId: "image_id"
* }
*/
-export interface ImagesUpdateRequest {
+export interface UpdateImagesRequest {
/**
* The ID of the `CatalogImage` object to update the encapsulated image file.
*/
diff --git a/src/api/resources/catalog/resources/images/client/requests/index.ts b/src/api/resources/catalog/resources/images/client/requests/index.ts
index a33746277..ebbd407bb 100644
--- a/src/api/resources/catalog/resources/images/client/requests/index.ts
+++ b/src/api/resources/catalog/resources/images/client/requests/index.ts
@@ -1,2 +1,2 @@
-export { type ImagesCreateRequest } from "./ImagesCreateRequest";
-export { type ImagesUpdateRequest } from "./ImagesUpdateRequest";
+export { type CreateImagesRequest } from "./CreateImagesRequest";
+export { type UpdateImagesRequest } from "./UpdateImagesRequest";
diff --git a/src/api/resources/catalog/resources/object/client/Client.ts b/src/api/resources/catalog/resources/object/client/Client.ts
index bdca1770c..4d4c47d06 100644
--- a/src/api/resources/catalog/resources/object/client/Client.ts
+++ b/src/api/resources/catalog/resources/object/client/Client.ts
@@ -16,7 +16,7 @@ export declare namespace Object_ {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -28,7 +28,7 @@ export declare namespace Object_ {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -51,8 +51,8 @@ export class Object_ {
* await client.catalog.object.upsert({
* idempotencyKey: "af3d1afc-7212-4300-b463-0bfc5314a5ae",
* object: {
- * type: "SUBSCRIPTION_PRODUCT",
- * id: "#Cocoa"
+ * type: "ITEM",
+ * id: "id"
* }
* })
*/
@@ -70,11 +70,11 @@ export class Object_ {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -130,7 +130,7 @@ export class Object_ {
* [CatalogModifierList](entity:CatalogModifierList) objects, and the ids of
* any [CatalogTax](entity:CatalogTax) objects that apply to it.
*
- * @param {Square.catalog.ObjectGetRequest} request
+ * @param {Square.catalog.GetObjectRequest} request
* @param {Object_.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -139,7 +139,7 @@ export class Object_ {
* })
*/
public async get(
- request: Square.catalog.ObjectGetRequest,
+ request: Square.catalog.GetObjectRequest,
requestOptions?: Object_.RequestOptions,
): Promise {
const { objectId, includeRelatedObjects, catalogVersion, includeCategoryPathToRoot } = request;
@@ -166,11 +166,11 @@ export class Object_ {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -228,7 +228,7 @@ export class Object_ {
* While one (batch or non-batch) delete request is being processed, other (batched and non-batched)
* delete requests are rejected with the `429` error code.
*
- * @param {Square.catalog.ObjectDeleteRequest} request
+ * @param {Square.catalog.DeleteObjectRequest} request
* @param {Object_.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -237,7 +237,7 @@ export class Object_ {
* })
*/
public async delete(
- request: Square.catalog.ObjectDeleteRequest,
+ request: Square.catalog.DeleteObjectRequest,
requestOptions?: Object_.RequestOptions,
): Promise {
const { objectId } = request;
@@ -251,11 +251,11 @@ export class Object_ {
method: "DELETE",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/catalog/resources/object/client/requests/ObjectDeleteRequest.ts b/src/api/resources/catalog/resources/object/client/requests/DeleteObjectRequest.ts
similarity index 91%
rename from src/api/resources/catalog/resources/object/client/requests/ObjectDeleteRequest.ts
rename to src/api/resources/catalog/resources/object/client/requests/DeleteObjectRequest.ts
index 437309e27..5553a8a35 100644
--- a/src/api/resources/catalog/resources/object/client/requests/ObjectDeleteRequest.ts
+++ b/src/api/resources/catalog/resources/object/client/requests/DeleteObjectRequest.ts
@@ -8,7 +8,7 @@
* objectId: "object_id"
* }
*/
-export interface ObjectDeleteRequest {
+export interface DeleteObjectRequest {
/**
* The ID of the catalog object to be deleted. When an object is deleted, other
* objects in the graph that depend on that object will be deleted as well (for example, deleting a
diff --git a/src/api/resources/catalog/resources/object/client/requests/ObjectGetRequest.ts b/src/api/resources/catalog/resources/object/client/requests/GetObjectRequest.ts
similarity index 98%
rename from src/api/resources/catalog/resources/object/client/requests/ObjectGetRequest.ts
rename to src/api/resources/catalog/resources/object/client/requests/GetObjectRequest.ts
index d0f1434c8..0a008fb87 100644
--- a/src/api/resources/catalog/resources/object/client/requests/ObjectGetRequest.ts
+++ b/src/api/resources/catalog/resources/object/client/requests/GetObjectRequest.ts
@@ -8,7 +8,7 @@
* objectId: "object_id"
* }
*/
-export interface ObjectGetRequest {
+export interface GetObjectRequest {
/**
* The object ID of any type of catalog objects to be retrieved.
*/
diff --git a/src/api/resources/catalog/resources/object/client/requests/UpsertCatalogObjectRequest.ts b/src/api/resources/catalog/resources/object/client/requests/UpsertCatalogObjectRequest.ts
index 86c3645b4..071efb170 100644
--- a/src/api/resources/catalog/resources/object/client/requests/UpsertCatalogObjectRequest.ts
+++ b/src/api/resources/catalog/resources/object/client/requests/UpsertCatalogObjectRequest.ts
@@ -9,8 +9,8 @@ import * as Square from "../../../../../../index";
* {
* idempotencyKey: "af3d1afc-7212-4300-b463-0bfc5314a5ae",
* object: {
- * type: "SUBSCRIPTION_PRODUCT",
- * id: "#Cocoa"
+ * type: "ITEM",
+ * id: "id"
* }
* }
*/
diff --git a/src/api/resources/catalog/resources/object/client/requests/index.ts b/src/api/resources/catalog/resources/object/client/requests/index.ts
index fa3afc988..a974f1464 100644
--- a/src/api/resources/catalog/resources/object/client/requests/index.ts
+++ b/src/api/resources/catalog/resources/object/client/requests/index.ts
@@ -1,3 +1,3 @@
export { type UpsertCatalogObjectRequest } from "./UpsertCatalogObjectRequest";
-export { type ObjectGetRequest } from "./ObjectGetRequest";
-export { type ObjectDeleteRequest } from "./ObjectDeleteRequest";
+export { type GetObjectRequest } from "./GetObjectRequest";
+export { type DeleteObjectRequest } from "./DeleteObjectRequest";
diff --git a/src/api/resources/checkout/client/Client.ts b/src/api/resources/checkout/client/Client.ts
index ad34faa07..4974b6162 100644
--- a/src/api/resources/checkout/client/Client.ts
+++ b/src/api/resources/checkout/client/Client.ts
@@ -17,7 +17,7 @@ export declare namespace Checkout {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -29,7 +29,7 @@ export declare namespace Checkout {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -70,11 +70,11 @@ export class Checkout {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -146,11 +146,11 @@ export class Checkout {
method: "PUT",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -220,11 +220,11 @@ export class Checkout {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -294,11 +294,11 @@ export class Checkout {
method: "PUT",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/checkout/resources/paymentLinks/client/Client.ts b/src/api/resources/checkout/resources/paymentLinks/client/Client.ts
index eb94a6f56..2c6872629 100644
--- a/src/api/resources/checkout/resources/paymentLinks/client/Client.ts
+++ b/src/api/resources/checkout/resources/paymentLinks/client/Client.ts
@@ -16,7 +16,7 @@ export declare namespace PaymentLinks {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -28,7 +28,7 @@ export declare namespace PaymentLinks {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -40,18 +40,18 @@ export class PaymentLinks {
/**
* Lists all payment links.
*
- * @param {Square.checkout.PaymentLinksListRequest} request
+ * @param {Square.checkout.ListPaymentLinksRequest} request
* @param {PaymentLinks.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
* await client.checkout.paymentLinks.list()
*/
public async list(
- request: Square.checkout.PaymentLinksListRequest = {},
+ request: Square.checkout.ListPaymentLinksRequest = {},
requestOptions?: PaymentLinks.RequestOptions,
): Promise> {
const list = async (
- request: Square.checkout.PaymentLinksListRequest,
+ request: Square.checkout.ListPaymentLinksRequest,
): Promise => {
const { cursor, limit } = request;
const _queryParams: Record = {};
@@ -71,11 +71,11 @@ export class PaymentLinks {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -161,11 +161,11 @@ export class PaymentLinks {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -217,7 +217,7 @@ export class PaymentLinks {
/**
* Retrieves a payment link.
*
- * @param {Square.checkout.PaymentLinksGetRequest} request
+ * @param {Square.checkout.GetPaymentLinksRequest} request
* @param {PaymentLinks.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -226,7 +226,7 @@ export class PaymentLinks {
* })
*/
public async get(
- request: Square.checkout.PaymentLinksGetRequest,
+ request: Square.checkout.GetPaymentLinksRequest,
requestOptions?: PaymentLinks.RequestOptions,
): Promise {
const { id } = request;
@@ -240,11 +240,11 @@ export class PaymentLinks {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -323,11 +323,11 @@ export class PaymentLinks {
method: "PUT",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -379,7 +379,7 @@ export class PaymentLinks {
/**
* Deletes a payment link.
*
- * @param {Square.checkout.PaymentLinksDeleteRequest} request
+ * @param {Square.checkout.DeletePaymentLinksRequest} request
* @param {PaymentLinks.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -388,7 +388,7 @@ export class PaymentLinks {
* })
*/
public async delete(
- request: Square.checkout.PaymentLinksDeleteRequest,
+ request: Square.checkout.DeletePaymentLinksRequest,
requestOptions?: PaymentLinks.RequestOptions,
): Promise {
const { id } = request;
@@ -402,11 +402,11 @@ export class PaymentLinks {
method: "DELETE",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/checkout/resources/paymentLinks/client/requests/PaymentLinksDeleteRequest.ts b/src/api/resources/checkout/resources/paymentLinks/client/requests/DeletePaymentLinksRequest.ts
similarity index 82%
rename from src/api/resources/checkout/resources/paymentLinks/client/requests/PaymentLinksDeleteRequest.ts
rename to src/api/resources/checkout/resources/paymentLinks/client/requests/DeletePaymentLinksRequest.ts
index 84b9692fa..97f225007 100644
--- a/src/api/resources/checkout/resources/paymentLinks/client/requests/PaymentLinksDeleteRequest.ts
+++ b/src/api/resources/checkout/resources/paymentLinks/client/requests/DeletePaymentLinksRequest.ts
@@ -8,7 +8,7 @@
* id: "id"
* }
*/
-export interface PaymentLinksDeleteRequest {
+export interface DeletePaymentLinksRequest {
/**
* The ID of the payment link to delete.
*/
diff --git a/src/api/resources/checkout/resources/paymentLinks/client/requests/PaymentLinksGetRequest.ts b/src/api/resources/checkout/resources/paymentLinks/client/requests/GetPaymentLinksRequest.ts
similarity index 82%
rename from src/api/resources/checkout/resources/paymentLinks/client/requests/PaymentLinksGetRequest.ts
rename to src/api/resources/checkout/resources/paymentLinks/client/requests/GetPaymentLinksRequest.ts
index 4f69bff20..d25d871be 100644
--- a/src/api/resources/checkout/resources/paymentLinks/client/requests/PaymentLinksGetRequest.ts
+++ b/src/api/resources/checkout/resources/paymentLinks/client/requests/GetPaymentLinksRequest.ts
@@ -8,7 +8,7 @@
* id: "id"
* }
*/
-export interface PaymentLinksGetRequest {
+export interface GetPaymentLinksRequest {
/**
* The ID of link to retrieve.
*/
diff --git a/src/api/resources/checkout/resources/paymentLinks/client/requests/PaymentLinksListRequest.ts b/src/api/resources/checkout/resources/paymentLinks/client/requests/ListPaymentLinksRequest.ts
similarity index 95%
rename from src/api/resources/checkout/resources/paymentLinks/client/requests/PaymentLinksListRequest.ts
rename to src/api/resources/checkout/resources/paymentLinks/client/requests/ListPaymentLinksRequest.ts
index f015095ff..eda441448 100644
--- a/src/api/resources/checkout/resources/paymentLinks/client/requests/PaymentLinksListRequest.ts
+++ b/src/api/resources/checkout/resources/paymentLinks/client/requests/ListPaymentLinksRequest.ts
@@ -6,7 +6,7 @@
* @example
* {}
*/
-export interface PaymentLinksListRequest {
+export interface ListPaymentLinksRequest {
/**
* A pagination cursor returned by a previous call to this endpoint.
* Provide this cursor to retrieve the next set of results for the original query.
diff --git a/src/api/resources/checkout/resources/paymentLinks/client/requests/index.ts b/src/api/resources/checkout/resources/paymentLinks/client/requests/index.ts
index 8189ad7b7..f201fa065 100644
--- a/src/api/resources/checkout/resources/paymentLinks/client/requests/index.ts
+++ b/src/api/resources/checkout/resources/paymentLinks/client/requests/index.ts
@@ -1,5 +1,5 @@
-export { type PaymentLinksListRequest } from "./PaymentLinksListRequest";
+export { type ListPaymentLinksRequest } from "./ListPaymentLinksRequest";
export { type CreatePaymentLinkRequest } from "./CreatePaymentLinkRequest";
-export { type PaymentLinksGetRequest } from "./PaymentLinksGetRequest";
+export { type GetPaymentLinksRequest } from "./GetPaymentLinksRequest";
export { type UpdatePaymentLinkRequest } from "./UpdatePaymentLinkRequest";
-export { type PaymentLinksDeleteRequest } from "./PaymentLinksDeleteRequest";
+export { type DeletePaymentLinksRequest } from "./DeletePaymentLinksRequest";
diff --git a/src/api/resources/customers/client/Client.ts b/src/api/resources/customers/client/Client.ts
index b9642e305..2fa2ed129 100644
--- a/src/api/resources/customers/client/Client.ts
+++ b/src/api/resources/customers/client/Client.ts
@@ -21,7 +21,7 @@ export declare namespace Customers {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -33,7 +33,7 @@ export declare namespace Customers {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -75,17 +75,17 @@ export class Customers {
* for the listing operation in well under 30 seconds. Occasionally, propagation of the new or updated
* profiles can take closer to one minute or longer, especially during network incidents and outages.
*
- * @param {Square.CustomersListRequest} request
+ * @param {Square.ListCustomersRequest} request
* @param {Customers.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
* await client.customers.list()
*/
public async list(
- request: Square.CustomersListRequest = {},
+ request: Square.ListCustomersRequest = {},
requestOptions?: Customers.RequestOptions,
): Promise> {
- const list = async (request: Square.CustomersListRequest): Promise => {
+ const list = async (request: Square.ListCustomersRequest): Promise => {
const { cursor, limit, sortField, sortOrder, count } = request;
const _queryParams: Record = {};
if (cursor !== undefined) {
@@ -119,11 +119,11 @@ export class Customers {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -221,11 +221,11 @@ export class Customers {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -340,11 +340,11 @@ export class Customers {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -418,11 +418,11 @@ export class Customers {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -496,11 +496,11 @@ export class Customers {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -585,11 +585,11 @@ export class Customers {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -691,11 +691,11 @@ export class Customers {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -745,7 +745,7 @@ export class Customers {
/**
* Returns details for a single customer.
*
- * @param {Square.CustomersGetRequest} request
+ * @param {Square.GetCustomersRequest} request
* @param {Customers.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -754,7 +754,7 @@ export class Customers {
* })
*/
public async get(
- request: Square.CustomersGetRequest,
+ request: Square.GetCustomersRequest,
requestOptions?: Customers.RequestOptions,
): Promise {
const { customerId } = request;
@@ -768,11 +768,11 @@ export class Customers {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -847,11 +847,11 @@ export class Customers {
method: "PUT",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -903,7 +903,7 @@ export class Customers {
*
* To delete a customer profile that was created by merging existing profiles, you must use the ID of the newly created profile.
*
- * @param {Square.CustomersDeleteRequest} request
+ * @param {Square.DeleteCustomersRequest} request
* @param {Customers.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -912,7 +912,7 @@ export class Customers {
* })
*/
public async delete(
- request: Square.CustomersDeleteRequest,
+ request: Square.DeleteCustomersRequest,
requestOptions?: Customers.RequestOptions,
): Promise {
const { customerId, version } = request;
@@ -931,11 +931,11 @@ export class Customers {
method: "DELETE",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/customers/client/requests/CustomersDeleteRequest.ts b/src/api/resources/customers/client/requests/DeleteCustomersRequest.ts
similarity index 94%
rename from src/api/resources/customers/client/requests/CustomersDeleteRequest.ts
rename to src/api/resources/customers/client/requests/DeleteCustomersRequest.ts
index bf66f855b..af3a62bb6 100644
--- a/src/api/resources/customers/client/requests/CustomersDeleteRequest.ts
+++ b/src/api/resources/customers/client/requests/DeleteCustomersRequest.ts
@@ -8,7 +8,7 @@
* customerId: "customer_id"
* }
*/
-export interface CustomersDeleteRequest {
+export interface DeleteCustomersRequest {
/**
* The ID of the customer to delete.
*/
diff --git a/src/api/resources/customers/client/requests/CustomersGetRequest.ts b/src/api/resources/customers/client/requests/GetCustomersRequest.ts
similarity index 85%
rename from src/api/resources/customers/client/requests/CustomersGetRequest.ts
rename to src/api/resources/customers/client/requests/GetCustomersRequest.ts
index 639257bc0..5e5f54091 100644
--- a/src/api/resources/customers/client/requests/CustomersGetRequest.ts
+++ b/src/api/resources/customers/client/requests/GetCustomersRequest.ts
@@ -8,7 +8,7 @@
* customerId: "customer_id"
* }
*/
-export interface CustomersGetRequest {
+export interface GetCustomersRequest {
/**
* The ID of the customer to retrieve.
*/
diff --git a/src/api/resources/customers/client/requests/CustomersListRequest.ts b/src/api/resources/customers/client/requests/ListCustomersRequest.ts
similarity index 97%
rename from src/api/resources/customers/client/requests/CustomersListRequest.ts
rename to src/api/resources/customers/client/requests/ListCustomersRequest.ts
index 859907af8..6d319949c 100644
--- a/src/api/resources/customers/client/requests/CustomersListRequest.ts
+++ b/src/api/resources/customers/client/requests/ListCustomersRequest.ts
@@ -8,7 +8,7 @@ import * as Square from "../../../../index";
* @example
* {}
*/
-export interface CustomersListRequest {
+export interface ListCustomersRequest {
/**
* A pagination cursor returned by a previous call to this endpoint.
* Provide this cursor to retrieve the next set of results for your original query.
diff --git a/src/api/resources/customers/client/requests/index.ts b/src/api/resources/customers/client/requests/index.ts
index 8d677223f..01de7b583 100644
--- a/src/api/resources/customers/client/requests/index.ts
+++ b/src/api/resources/customers/client/requests/index.ts
@@ -1,10 +1,10 @@
-export { type CustomersListRequest } from "./CustomersListRequest";
+export { type ListCustomersRequest } from "./ListCustomersRequest";
export { type CreateCustomerRequest } from "./CreateCustomerRequest";
export { type BulkCreateCustomersRequest } from "./BulkCreateCustomersRequest";
export { type BulkDeleteCustomersRequest } from "./BulkDeleteCustomersRequest";
export { type BulkRetrieveCustomersRequest } from "./BulkRetrieveCustomersRequest";
export { type BulkUpdateCustomersRequest } from "./BulkUpdateCustomersRequest";
export { type SearchCustomersRequest } from "./SearchCustomersRequest";
-export { type CustomersGetRequest } from "./CustomersGetRequest";
+export { type GetCustomersRequest } from "./GetCustomersRequest";
export { type UpdateCustomerRequest } from "./UpdateCustomerRequest";
-export { type CustomersDeleteRequest } from "./CustomersDeleteRequest";
+export { type DeleteCustomersRequest } from "./DeleteCustomersRequest";
diff --git a/src/api/resources/customers/resources/cards/client/Client.ts b/src/api/resources/customers/resources/cards/client/Client.ts
index 5bb41e85e..1473316b2 100644
--- a/src/api/resources/customers/resources/cards/client/Client.ts
+++ b/src/api/resources/customers/resources/cards/client/Client.ts
@@ -16,7 +16,7 @@ export declare namespace Cards {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -28,7 +28,7 @@ export declare namespace Cards {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -77,11 +77,11 @@ export class Cards {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -133,7 +133,7 @@ export class Cards {
/**
* Removes a card on file from a customer.
*
- * @param {Square.customers.CardsDeleteRequest} request
+ * @param {Square.customers.DeleteCardsRequest} request
* @param {Cards.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -143,7 +143,7 @@ export class Cards {
* })
*/
public async delete(
- request: Square.customers.CardsDeleteRequest,
+ request: Square.customers.DeleteCardsRequest,
requestOptions?: Cards.RequestOptions,
): Promise {
const { customerId, cardId } = request;
@@ -157,11 +157,11 @@ export class Cards {
method: "DELETE",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/customers/resources/cards/client/requests/CardsDeleteRequest.ts b/src/api/resources/customers/resources/cards/client/requests/DeleteCardsRequest.ts
similarity index 90%
rename from src/api/resources/customers/resources/cards/client/requests/CardsDeleteRequest.ts
rename to src/api/resources/customers/resources/cards/client/requests/DeleteCardsRequest.ts
index db490c140..b21e54b56 100644
--- a/src/api/resources/customers/resources/cards/client/requests/CardsDeleteRequest.ts
+++ b/src/api/resources/customers/resources/cards/client/requests/DeleteCardsRequest.ts
@@ -9,7 +9,7 @@
* cardId: "card_id"
* }
*/
-export interface CardsDeleteRequest {
+export interface DeleteCardsRequest {
/**
* The ID of the customer that the card on file belongs to.
*/
diff --git a/src/api/resources/customers/resources/cards/client/requests/index.ts b/src/api/resources/customers/resources/cards/client/requests/index.ts
index cd90cda56..f9b2da688 100644
--- a/src/api/resources/customers/resources/cards/client/requests/index.ts
+++ b/src/api/resources/customers/resources/cards/client/requests/index.ts
@@ -1,2 +1,2 @@
export { type CreateCustomerCardRequest } from "./CreateCustomerCardRequest";
-export { type CardsDeleteRequest } from "./CardsDeleteRequest";
+export { type DeleteCardsRequest } from "./DeleteCardsRequest";
diff --git a/src/api/resources/customers/resources/customAttributeDefinitions/client/Client.ts b/src/api/resources/customers/resources/customAttributeDefinitions/client/Client.ts
index 75cc6b732..f4ae07260 100644
--- a/src/api/resources/customers/resources/customAttributeDefinitions/client/Client.ts
+++ b/src/api/resources/customers/resources/customAttributeDefinitions/client/Client.ts
@@ -16,7 +16,7 @@ export declare namespace CustomAttributeDefinitions {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -28,7 +28,7 @@ export declare namespace CustomAttributeDefinitions {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -45,18 +45,18 @@ export class CustomAttributeDefinitions {
* applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note that
* seller-defined custom attributes (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
*
- * @param {Square.customers.CustomAttributeDefinitionsListRequest} request
+ * @param {Square.customers.ListCustomAttributeDefinitionsRequest} request
* @param {CustomAttributeDefinitions.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
* await client.customers.customAttributeDefinitions.list()
*/
public async list(
- request: Square.customers.CustomAttributeDefinitionsListRequest = {},
+ request: Square.customers.ListCustomAttributeDefinitionsRequest = {},
requestOptions?: CustomAttributeDefinitions.RequestOptions,
): Promise> {
const list = async (
- request: Square.customers.CustomAttributeDefinitionsListRequest,
+ request: Square.customers.ListCustomAttributeDefinitionsRequest,
): Promise => {
const { limit, cursor } = request;
const _queryParams: Record = {};
@@ -76,11 +76,11 @@ export class CustomAttributeDefinitions {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -179,11 +179,11 @@ export class CustomAttributeDefinitions {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -239,7 +239,7 @@ export class CustomAttributeDefinitions {
* setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes
* (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
*
- * @param {Square.customers.CustomAttributeDefinitionsGetRequest} request
+ * @param {Square.customers.GetCustomAttributeDefinitionsRequest} request
* @param {CustomAttributeDefinitions.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -248,7 +248,7 @@ export class CustomAttributeDefinitions {
* })
*/
public async get(
- request: Square.customers.CustomAttributeDefinitionsGetRequest,
+ request: Square.customers.GetCustomAttributeDefinitionsRequest,
requestOptions?: CustomAttributeDefinitions.RequestOptions,
): Promise {
const { key, version } = request;
@@ -267,11 +267,11 @@ export class CustomAttributeDefinitions {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -353,11 +353,11 @@ export class CustomAttributeDefinitions {
method: "PUT",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -414,7 +414,7 @@ export class CustomAttributeDefinitions {
*
* Only the definition owner can delete a custom attribute definition.
*
- * @param {Square.customers.CustomAttributeDefinitionsDeleteRequest} request
+ * @param {Square.customers.DeleteCustomAttributeDefinitionsRequest} request
* @param {CustomAttributeDefinitions.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -423,7 +423,7 @@ export class CustomAttributeDefinitions {
* })
*/
public async delete(
- request: Square.customers.CustomAttributeDefinitionsDeleteRequest,
+ request: Square.customers.DeleteCustomAttributeDefinitionsRequest,
requestOptions?: CustomAttributeDefinitions.RequestOptions,
): Promise {
const { key } = request;
@@ -437,11 +437,11 @@ export class CustomAttributeDefinitions {
method: "DELETE",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -560,11 +560,11 @@ export class CustomAttributeDefinitions {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/locations/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsDeleteRequest.ts b/src/api/resources/customers/resources/customAttributeDefinitions/client/requests/DeleteCustomAttributeDefinitionsRequest.ts
similarity index 79%
rename from src/api/resources/locations/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsDeleteRequest.ts
rename to src/api/resources/customers/resources/customAttributeDefinitions/client/requests/DeleteCustomAttributeDefinitionsRequest.ts
index 860f57efe..6a1b34cf1 100644
--- a/src/api/resources/locations/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsDeleteRequest.ts
+++ b/src/api/resources/customers/resources/customAttributeDefinitions/client/requests/DeleteCustomAttributeDefinitionsRequest.ts
@@ -8,7 +8,7 @@
* key: "key"
* }
*/
-export interface CustomAttributeDefinitionsDeleteRequest {
+export interface DeleteCustomAttributeDefinitionsRequest {
/**
* The key of the custom attribute definition to delete.
*/
diff --git a/src/api/resources/locations/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsGetRequest.ts b/src/api/resources/customers/resources/customAttributeDefinitions/client/requests/GetCustomAttributeDefinitionsRequest.ts
similarity index 93%
rename from src/api/resources/locations/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsGetRequest.ts
rename to src/api/resources/customers/resources/customAttributeDefinitions/client/requests/GetCustomAttributeDefinitionsRequest.ts
index 4fe9ca10a..9b086bfb6 100644
--- a/src/api/resources/locations/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsGetRequest.ts
+++ b/src/api/resources/customers/resources/customAttributeDefinitions/client/requests/GetCustomAttributeDefinitionsRequest.ts
@@ -8,7 +8,7 @@
* key: "key"
* }
*/
-export interface CustomAttributeDefinitionsGetRequest {
+export interface GetCustomAttributeDefinitionsRequest {
/**
* The key of the custom attribute definition to retrieve. If the requesting application
* is not the definition owner, you must use the qualified key.
diff --git a/src/api/resources/customers/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsListRequest.ts b/src/api/resources/customers/resources/customAttributeDefinitions/client/requests/ListCustomAttributeDefinitionsRequest.ts
similarity index 93%
rename from src/api/resources/customers/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsListRequest.ts
rename to src/api/resources/customers/resources/customAttributeDefinitions/client/requests/ListCustomAttributeDefinitionsRequest.ts
index 932817271..ebdc049cc 100644
--- a/src/api/resources/customers/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsListRequest.ts
+++ b/src/api/resources/customers/resources/customAttributeDefinitions/client/requests/ListCustomAttributeDefinitionsRequest.ts
@@ -6,7 +6,7 @@
* @example
* {}
*/
-export interface CustomAttributeDefinitionsListRequest {
+export interface ListCustomAttributeDefinitionsRequest {
/**
* The maximum number of results to return in a single paged response. This limit is advisory.
* The response might contain more or fewer results. The minimum value is 1 and the maximum value is 100.
diff --git a/src/api/resources/customers/resources/customAttributeDefinitions/client/requests/index.ts b/src/api/resources/customers/resources/customAttributeDefinitions/client/requests/index.ts
index 470e9d196..5ad73b714 100644
--- a/src/api/resources/customers/resources/customAttributeDefinitions/client/requests/index.ts
+++ b/src/api/resources/customers/resources/customAttributeDefinitions/client/requests/index.ts
@@ -1,6 +1,6 @@
-export { type CustomAttributeDefinitionsListRequest } from "./CustomAttributeDefinitionsListRequest";
+export { type ListCustomAttributeDefinitionsRequest } from "./ListCustomAttributeDefinitionsRequest";
export { type CreateCustomerCustomAttributeDefinitionRequest } from "./CreateCustomerCustomAttributeDefinitionRequest";
-export { type CustomAttributeDefinitionsGetRequest } from "./CustomAttributeDefinitionsGetRequest";
+export { type GetCustomAttributeDefinitionsRequest } from "./GetCustomAttributeDefinitionsRequest";
export { type UpdateCustomerCustomAttributeDefinitionRequest } from "./UpdateCustomerCustomAttributeDefinitionRequest";
-export { type CustomAttributeDefinitionsDeleteRequest } from "./CustomAttributeDefinitionsDeleteRequest";
+export { type DeleteCustomAttributeDefinitionsRequest } from "./DeleteCustomAttributeDefinitionsRequest";
export { type BatchUpsertCustomerCustomAttributesRequest } from "./BatchUpsertCustomerCustomAttributesRequest";
diff --git a/src/api/resources/customers/resources/customAttributes/client/Client.ts b/src/api/resources/customers/resources/customAttributes/client/Client.ts
index 4024d330f..7a4bc2a69 100644
--- a/src/api/resources/customers/resources/customAttributes/client/Client.ts
+++ b/src/api/resources/customers/resources/customAttributes/client/Client.ts
@@ -16,7 +16,7 @@ export declare namespace CustomAttributes {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -28,7 +28,7 @@ export declare namespace CustomAttributes {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -47,7 +47,7 @@ export class CustomAttributes {
* visible to the requesting application, including those that are owned by other applications
* and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
*
- * @param {Square.customers.CustomAttributesListRequest} request
+ * @param {Square.customers.ListCustomAttributesRequest} request
* @param {CustomAttributes.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -56,11 +56,11 @@ export class CustomAttributes {
* })
*/
public async list(
- request: Square.customers.CustomAttributesListRequest,
+ request: Square.customers.ListCustomAttributesRequest,
requestOptions?: CustomAttributes.RequestOptions,
): Promise> {
const list = async (
- request: Square.customers.CustomAttributesListRequest,
+ request: Square.customers.ListCustomAttributesRequest,
): Promise => {
const { customerId, limit, cursor, withDefinitions } = request;
const _queryParams: Record = {};
@@ -83,11 +83,11 @@ export class CustomAttributes {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -150,7 +150,7 @@ export class CustomAttributes {
* `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes
* (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
*
- * @param {Square.customers.CustomAttributesGetRequest} request
+ * @param {Square.customers.GetCustomAttributesRequest} request
* @param {CustomAttributes.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -160,7 +160,7 @@ export class CustomAttributes {
* })
*/
public async get(
- request: Square.customers.CustomAttributesGetRequest,
+ request: Square.customers.GetCustomAttributesRequest,
requestOptions?: CustomAttributes.RequestOptions,
): Promise {
const { customerId, key, withDefinition, version } = request;
@@ -183,11 +183,11 @@ export class CustomAttributes {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -271,11 +271,11 @@ export class CustomAttributes {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -331,7 +331,7 @@ export class CustomAttributes {
* `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes
* (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
*
- * @param {Square.customers.CustomAttributesDeleteRequest} request
+ * @param {Square.customers.DeleteCustomAttributesRequest} request
* @param {CustomAttributes.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -341,7 +341,7 @@ export class CustomAttributes {
* })
*/
public async delete(
- request: Square.customers.CustomAttributesDeleteRequest,
+ request: Square.customers.DeleteCustomAttributesRequest,
requestOptions?: CustomAttributes.RequestOptions,
): Promise {
const { customerId, key } = request;
@@ -355,11 +355,11 @@ export class CustomAttributes {
method: "DELETE",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/customers/resources/customAttributes/client/requests/CustomAttributesDeleteRequest.ts b/src/api/resources/customers/resources/customAttributes/client/requests/DeleteCustomAttributesRequest.ts
similarity index 91%
rename from src/api/resources/customers/resources/customAttributes/client/requests/CustomAttributesDeleteRequest.ts
rename to src/api/resources/customers/resources/customAttributes/client/requests/DeleteCustomAttributesRequest.ts
index 7a008b6a1..fd96e16a6 100644
--- a/src/api/resources/customers/resources/customAttributes/client/requests/CustomAttributesDeleteRequest.ts
+++ b/src/api/resources/customers/resources/customAttributes/client/requests/DeleteCustomAttributesRequest.ts
@@ -9,7 +9,7 @@
* key: "key"
* }
*/
-export interface CustomAttributesDeleteRequest {
+export interface DeleteCustomAttributesRequest {
/**
* The ID of the target [customer profile](entity:Customer).
*/
diff --git a/src/api/resources/customers/resources/customAttributes/client/requests/CustomAttributesGetRequest.ts b/src/api/resources/customers/resources/customAttributes/client/requests/GetCustomAttributesRequest.ts
similarity index 96%
rename from src/api/resources/customers/resources/customAttributes/client/requests/CustomAttributesGetRequest.ts
rename to src/api/resources/customers/resources/customAttributes/client/requests/GetCustomAttributesRequest.ts
index 8915993a6..f59d7efa3 100644
--- a/src/api/resources/customers/resources/customAttributes/client/requests/CustomAttributesGetRequest.ts
+++ b/src/api/resources/customers/resources/customAttributes/client/requests/GetCustomAttributesRequest.ts
@@ -9,7 +9,7 @@
* key: "key"
* }
*/
-export interface CustomAttributesGetRequest {
+export interface GetCustomAttributesRequest {
/**
* The ID of the target [customer profile](entity:Customer).
*/
diff --git a/src/api/resources/customers/resources/customAttributes/client/requests/CustomAttributesListRequest.ts b/src/api/resources/customers/resources/customAttributes/client/requests/ListCustomAttributesRequest.ts
similarity index 96%
rename from src/api/resources/customers/resources/customAttributes/client/requests/CustomAttributesListRequest.ts
rename to src/api/resources/customers/resources/customAttributes/client/requests/ListCustomAttributesRequest.ts
index 83009bd83..505056267 100644
--- a/src/api/resources/customers/resources/customAttributes/client/requests/CustomAttributesListRequest.ts
+++ b/src/api/resources/customers/resources/customAttributes/client/requests/ListCustomAttributesRequest.ts
@@ -8,7 +8,7 @@
* customerId: "customer_id"
* }
*/
-export interface CustomAttributesListRequest {
+export interface ListCustomAttributesRequest {
/**
* The ID of the target [customer profile](entity:Customer).
*/
diff --git a/src/api/resources/customers/resources/customAttributes/client/requests/index.ts b/src/api/resources/customers/resources/customAttributes/client/requests/index.ts
index f3278b901..db9a23463 100644
--- a/src/api/resources/customers/resources/customAttributes/client/requests/index.ts
+++ b/src/api/resources/customers/resources/customAttributes/client/requests/index.ts
@@ -1,4 +1,4 @@
-export { type CustomAttributesListRequest } from "./CustomAttributesListRequest";
-export { type CustomAttributesGetRequest } from "./CustomAttributesGetRequest";
+export { type ListCustomAttributesRequest } from "./ListCustomAttributesRequest";
+export { type GetCustomAttributesRequest } from "./GetCustomAttributesRequest";
export { type UpsertCustomerCustomAttributeRequest } from "./UpsertCustomerCustomAttributeRequest";
-export { type CustomAttributesDeleteRequest } from "./CustomAttributesDeleteRequest";
+export { type DeleteCustomAttributesRequest } from "./DeleteCustomAttributesRequest";
diff --git a/src/api/resources/customers/resources/groups/client/Client.ts b/src/api/resources/customers/resources/groups/client/Client.ts
index cc6755597..eb1b48f39 100644
--- a/src/api/resources/customers/resources/groups/client/Client.ts
+++ b/src/api/resources/customers/resources/groups/client/Client.ts
@@ -16,7 +16,7 @@ export declare namespace Groups {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -28,7 +28,7 @@ export declare namespace Groups {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -40,18 +40,18 @@ export class Groups {
/**
* Retrieves the list of customer groups of a business.
*
- * @param {Square.customers.GroupsListRequest} request
+ * @param {Square.customers.ListGroupsRequest} request
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
* await client.customers.groups.list()
*/
public async list(
- request: Square.customers.GroupsListRequest = {},
+ request: Square.customers.ListGroupsRequest = {},
requestOptions?: Groups.RequestOptions,
): Promise> {
const list = async (
- request: Square.customers.GroupsListRequest,
+ request: Square.customers.ListGroupsRequest,
): Promise => {
const { cursor, limit } = request;
const _queryParams: Record = {};
@@ -71,11 +71,11 @@ export class Groups {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -155,11 +155,11 @@ export class Groups {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -209,7 +209,7 @@ export class Groups {
/**
* Retrieves a specific customer group as identified by the `group_id` value.
*
- * @param {Square.customers.GroupsGetRequest} request
+ * @param {Square.customers.GetGroupsRequest} request
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -218,7 +218,7 @@ export class Groups {
* })
*/
public async get(
- request: Square.customers.GroupsGetRequest,
+ request: Square.customers.GetGroupsRequest,
requestOptions?: Groups.RequestOptions,
): Promise {
const { groupId } = request;
@@ -232,11 +232,11 @@ export class Groups {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -310,11 +310,11 @@ export class Groups {
method: "PUT",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -366,7 +366,7 @@ export class Groups {
/**
* Deletes a customer group as identified by the `group_id` value.
*
- * @param {Square.customers.GroupsDeleteRequest} request
+ * @param {Square.customers.DeleteGroupsRequest} request
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -375,7 +375,7 @@ export class Groups {
* })
*/
public async delete(
- request: Square.customers.GroupsDeleteRequest,
+ request: Square.customers.DeleteGroupsRequest,
requestOptions?: Groups.RequestOptions,
): Promise {
const { groupId } = request;
@@ -389,11 +389,11 @@ export class Groups {
method: "DELETE",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -444,7 +444,7 @@ export class Groups {
* The customer is identified by the `customer_id` value
* and the customer group is identified by the `group_id` value.
*
- * @param {Square.customers.GroupsAddRequest} request
+ * @param {Square.customers.AddGroupsRequest} request
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -454,7 +454,7 @@ export class Groups {
* })
*/
public async add(
- request: Square.customers.GroupsAddRequest,
+ request: Square.customers.AddGroupsRequest,
requestOptions?: Groups.RequestOptions,
): Promise {
const { customerId, groupId } = request;
@@ -468,11 +468,11 @@ export class Groups {
method: "PUT",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -523,7 +523,7 @@ export class Groups {
* The customer is identified by the `customer_id` value
* and the customer group is identified by the `group_id` value.
*
- * @param {Square.customers.GroupsRemoveRequest} request
+ * @param {Square.customers.RemoveGroupsRequest} request
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -533,7 +533,7 @@ export class Groups {
* })
*/
public async remove(
- request: Square.customers.GroupsRemoveRequest,
+ request: Square.customers.RemoveGroupsRequest,
requestOptions?: Groups.RequestOptions,
): Promise {
const { customerId, groupId } = request;
@@ -547,11 +547,11 @@ export class Groups {
method: "DELETE",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/customers/resources/groups/client/requests/GroupsAddRequest.ts b/src/api/resources/customers/resources/groups/client/requests/AddGroupsRequest.ts
similarity index 91%
rename from src/api/resources/customers/resources/groups/client/requests/GroupsAddRequest.ts
rename to src/api/resources/customers/resources/groups/client/requests/AddGroupsRequest.ts
index 9032a5ee9..df2f570ea 100644
--- a/src/api/resources/customers/resources/groups/client/requests/GroupsAddRequest.ts
+++ b/src/api/resources/customers/resources/groups/client/requests/AddGroupsRequest.ts
@@ -9,7 +9,7 @@
* groupId: "group_id"
* }
*/
-export interface GroupsAddRequest {
+export interface AddGroupsRequest {
/**
* The ID of the customer to add to a group.
*/
diff --git a/src/api/resources/customers/resources/groups/client/requests/GroupsDeleteRequest.ts b/src/api/resources/customers/resources/groups/client/requests/DeleteGroupsRequest.ts
similarity index 85%
rename from src/api/resources/customers/resources/groups/client/requests/GroupsDeleteRequest.ts
rename to src/api/resources/customers/resources/groups/client/requests/DeleteGroupsRequest.ts
index 1b9f149a1..42f86baa1 100644
--- a/src/api/resources/customers/resources/groups/client/requests/GroupsDeleteRequest.ts
+++ b/src/api/resources/customers/resources/groups/client/requests/DeleteGroupsRequest.ts
@@ -8,7 +8,7 @@
* groupId: "group_id"
* }
*/
-export interface GroupsDeleteRequest {
+export interface DeleteGroupsRequest {
/**
* The ID of the customer group to delete.
*/
diff --git a/src/api/resources/customers/resources/groups/client/requests/GroupsGetRequest.ts b/src/api/resources/customers/resources/groups/client/requests/GetGroupsRequest.ts
similarity index 86%
rename from src/api/resources/customers/resources/groups/client/requests/GroupsGetRequest.ts
rename to src/api/resources/customers/resources/groups/client/requests/GetGroupsRequest.ts
index b67a03f5c..2ee379d62 100644
--- a/src/api/resources/customers/resources/groups/client/requests/GroupsGetRequest.ts
+++ b/src/api/resources/customers/resources/groups/client/requests/GetGroupsRequest.ts
@@ -8,7 +8,7 @@
* groupId: "group_id"
* }
*/
-export interface GroupsGetRequest {
+export interface GetGroupsRequest {
/**
* The ID of the customer group to retrieve.
*/
diff --git a/src/api/resources/customers/resources/groups/client/requests/GroupsListRequest.ts b/src/api/resources/customers/resources/groups/client/requests/ListGroupsRequest.ts
similarity index 96%
rename from src/api/resources/customers/resources/groups/client/requests/GroupsListRequest.ts
rename to src/api/resources/customers/resources/groups/client/requests/ListGroupsRequest.ts
index 8c1b80d2f..f5e1b638e 100644
--- a/src/api/resources/customers/resources/groups/client/requests/GroupsListRequest.ts
+++ b/src/api/resources/customers/resources/groups/client/requests/ListGroupsRequest.ts
@@ -6,7 +6,7 @@
* @example
* {}
*/
-export interface GroupsListRequest {
+export interface ListGroupsRequest {
/**
* A pagination cursor returned by a previous call to this endpoint.
* Provide this cursor to retrieve the next set of results for your original query.
diff --git a/src/api/resources/customers/resources/groups/client/requests/GroupsRemoveRequest.ts b/src/api/resources/customers/resources/groups/client/requests/RemoveGroupsRequest.ts
similarity index 90%
rename from src/api/resources/customers/resources/groups/client/requests/GroupsRemoveRequest.ts
rename to src/api/resources/customers/resources/groups/client/requests/RemoveGroupsRequest.ts
index d1e4c5594..5404edfa6 100644
--- a/src/api/resources/customers/resources/groups/client/requests/GroupsRemoveRequest.ts
+++ b/src/api/resources/customers/resources/groups/client/requests/RemoveGroupsRequest.ts
@@ -9,7 +9,7 @@
* groupId: "group_id"
* }
*/
-export interface GroupsRemoveRequest {
+export interface RemoveGroupsRequest {
/**
* The ID of the customer to remove from the group.
*/
diff --git a/src/api/resources/customers/resources/groups/client/requests/index.ts b/src/api/resources/customers/resources/groups/client/requests/index.ts
index 811df7e11..8b20adcd7 100644
--- a/src/api/resources/customers/resources/groups/client/requests/index.ts
+++ b/src/api/resources/customers/resources/groups/client/requests/index.ts
@@ -1,7 +1,7 @@
-export { type GroupsListRequest } from "./GroupsListRequest";
+export { type ListGroupsRequest } from "./ListGroupsRequest";
export { type CreateCustomerGroupRequest } from "./CreateCustomerGroupRequest";
-export { type GroupsGetRequest } from "./GroupsGetRequest";
+export { type GetGroupsRequest } from "./GetGroupsRequest";
export { type UpdateCustomerGroupRequest } from "./UpdateCustomerGroupRequest";
-export { type GroupsDeleteRequest } from "./GroupsDeleteRequest";
-export { type GroupsAddRequest } from "./GroupsAddRequest";
-export { type GroupsRemoveRequest } from "./GroupsRemoveRequest";
+export { type DeleteGroupsRequest } from "./DeleteGroupsRequest";
+export { type AddGroupsRequest } from "./AddGroupsRequest";
+export { type RemoveGroupsRequest } from "./RemoveGroupsRequest";
diff --git a/src/api/resources/customers/resources/segments/client/Client.ts b/src/api/resources/customers/resources/segments/client/Client.ts
index b1be17876..25c4407a1 100644
--- a/src/api/resources/customers/resources/segments/client/Client.ts
+++ b/src/api/resources/customers/resources/segments/client/Client.ts
@@ -16,7 +16,7 @@ export declare namespace Segments {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -28,7 +28,7 @@ export declare namespace Segments {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -40,18 +40,18 @@ export class Segments {
/**
* Retrieves the list of customer segments of a business.
*
- * @param {Square.customers.SegmentsListRequest} request
+ * @param {Square.customers.ListSegmentsRequest} request
* @param {Segments.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
* await client.customers.segments.list()
*/
public async list(
- request: Square.customers.SegmentsListRequest = {},
+ request: Square.customers.ListSegmentsRequest = {},
requestOptions?: Segments.RequestOptions,
): Promise> {
const list = async (
- request: Square.customers.SegmentsListRequest,
+ request: Square.customers.ListSegmentsRequest,
): Promise => {
const { cursor, limit } = request;
const _queryParams: Record = {};
@@ -71,11 +71,11 @@ export class Segments {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -129,7 +129,7 @@ export class Segments {
/**
* Retrieves a specific customer segment as identified by the `segment_id` value.
*
- * @param {Square.customers.SegmentsGetRequest} request
+ * @param {Square.customers.GetSegmentsRequest} request
* @param {Segments.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -138,7 +138,7 @@ export class Segments {
* })
*/
public async get(
- request: Square.customers.SegmentsGetRequest,
+ request: Square.customers.GetSegmentsRequest,
requestOptions?: Segments.RequestOptions,
): Promise {
const { segmentId } = request;
@@ -152,11 +152,11 @@ export class Segments {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/customers/resources/segments/client/requests/SegmentsGetRequest.ts b/src/api/resources/customers/resources/segments/client/requests/GetSegmentsRequest.ts
similarity index 86%
rename from src/api/resources/customers/resources/segments/client/requests/SegmentsGetRequest.ts
rename to src/api/resources/customers/resources/segments/client/requests/GetSegmentsRequest.ts
index 8aabc79db..e8c325079 100644
--- a/src/api/resources/customers/resources/segments/client/requests/SegmentsGetRequest.ts
+++ b/src/api/resources/customers/resources/segments/client/requests/GetSegmentsRequest.ts
@@ -8,7 +8,7 @@
* segmentId: "segment_id"
* }
*/
-export interface SegmentsGetRequest {
+export interface GetSegmentsRequest {
/**
* The Square-issued ID of the customer segment.
*/
diff --git a/src/api/resources/customers/resources/segments/client/requests/SegmentsListRequest.ts b/src/api/resources/customers/resources/segments/client/requests/ListSegmentsRequest.ts
similarity index 95%
rename from src/api/resources/customers/resources/segments/client/requests/SegmentsListRequest.ts
rename to src/api/resources/customers/resources/segments/client/requests/ListSegmentsRequest.ts
index ba237b49b..259e1b80f 100644
--- a/src/api/resources/customers/resources/segments/client/requests/SegmentsListRequest.ts
+++ b/src/api/resources/customers/resources/segments/client/requests/ListSegmentsRequest.ts
@@ -6,7 +6,7 @@
* @example
* {}
*/
-export interface SegmentsListRequest {
+export interface ListSegmentsRequest {
/**
* A pagination cursor returned by previous calls to `ListCustomerSegments`.
* This cursor is used to retrieve the next set of query results.
diff --git a/src/api/resources/customers/resources/segments/client/requests/index.ts b/src/api/resources/customers/resources/segments/client/requests/index.ts
index e24b0f457..f5fa9bba2 100644
--- a/src/api/resources/customers/resources/segments/client/requests/index.ts
+++ b/src/api/resources/customers/resources/segments/client/requests/index.ts
@@ -1,2 +1,2 @@
-export { type SegmentsListRequest } from "./SegmentsListRequest";
-export { type SegmentsGetRequest } from "./SegmentsGetRequest";
+export { type ListSegmentsRequest } from "./ListSegmentsRequest";
+export { type GetSegmentsRequest } from "./GetSegmentsRequest";
diff --git a/src/api/resources/devices/client/Client.ts b/src/api/resources/devices/client/Client.ts
index 3d644ebf4..1961402ef 100644
--- a/src/api/resources/devices/client/Client.ts
+++ b/src/api/resources/devices/client/Client.ts
@@ -17,7 +17,7 @@ export declare namespace Devices {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -29,7 +29,7 @@ export declare namespace Devices {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -48,17 +48,17 @@ export class Devices {
* List devices associated with the merchant. Currently, only Terminal API
* devices are supported.
*
- * @param {Square.DevicesListRequest} request
+ * @param {Square.ListDevicesRequest} request
* @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
* await client.devices.list()
*/
public async list(
- request: Square.DevicesListRequest = {},
+ request: Square.ListDevicesRequest = {},
requestOptions?: Devices.RequestOptions,
): Promise> {
- const list = async (request: Square.DevicesListRequest): Promise => {
+ const list = async (request: Square.ListDevicesRequest): Promise => {
const { cursor, sortOrder, limit, locationId } = request;
const _queryParams: Record = {};
if (cursor !== undefined) {
@@ -86,11 +86,11 @@ export class Devices {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -144,7 +144,7 @@ export class Devices {
/**
* Retrieves Device with the associated `device_id`.
*
- * @param {Square.DevicesGetRequest} request
+ * @param {Square.GetDevicesRequest} request
* @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -153,7 +153,7 @@ export class Devices {
* })
*/
public async get(
- request: Square.DevicesGetRequest,
+ request: Square.GetDevicesRequest,
requestOptions?: Devices.RequestOptions,
): Promise {
const { deviceId } = request;
@@ -167,11 +167,11 @@ export class Devices {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/devices/client/requests/DevicesGetRequest.ts b/src/api/resources/devices/client/requests/GetDevicesRequest.ts
similarity index 86%
rename from src/api/resources/devices/client/requests/DevicesGetRequest.ts
rename to src/api/resources/devices/client/requests/GetDevicesRequest.ts
index 9d99af239..cce78e0b7 100644
--- a/src/api/resources/devices/client/requests/DevicesGetRequest.ts
+++ b/src/api/resources/devices/client/requests/GetDevicesRequest.ts
@@ -8,7 +8,7 @@
* deviceId: "device_id"
* }
*/
-export interface DevicesGetRequest {
+export interface GetDevicesRequest {
/**
* The unique ID for the desired `Device`.
*/
diff --git a/src/api/resources/devices/client/requests/DevicesListRequest.ts b/src/api/resources/devices/client/requests/ListDevicesRequest.ts
similarity index 95%
rename from src/api/resources/devices/client/requests/DevicesListRequest.ts
rename to src/api/resources/devices/client/requests/ListDevicesRequest.ts
index 3259d6305..323d264f4 100644
--- a/src/api/resources/devices/client/requests/DevicesListRequest.ts
+++ b/src/api/resources/devices/client/requests/ListDevicesRequest.ts
@@ -8,7 +8,7 @@ import * as Square from "../../../../index";
* @example
* {}
*/
-export interface DevicesListRequest {
+export interface ListDevicesRequest {
/**
* A pagination cursor returned by a previous call to this endpoint.
* Provide this cursor to retrieve the next set of results for the original query.
diff --git a/src/api/resources/devices/client/requests/index.ts b/src/api/resources/devices/client/requests/index.ts
index 018ff650a..cb037fcfd 100644
--- a/src/api/resources/devices/client/requests/index.ts
+++ b/src/api/resources/devices/client/requests/index.ts
@@ -1,2 +1,2 @@
-export { type DevicesListRequest } from "./DevicesListRequest";
-export { type DevicesGetRequest } from "./DevicesGetRequest";
+export { type ListDevicesRequest } from "./ListDevicesRequest";
+export { type GetDevicesRequest } from "./GetDevicesRequest";
diff --git a/src/api/resources/devices/resources/codes/client/Client.ts b/src/api/resources/devices/resources/codes/client/Client.ts
index 27ba89425..65a7d16d3 100644
--- a/src/api/resources/devices/resources/codes/client/Client.ts
+++ b/src/api/resources/devices/resources/codes/client/Client.ts
@@ -16,7 +16,7 @@ export declare namespace Codes {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -28,7 +28,7 @@ export declare namespace Codes {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -40,17 +40,17 @@ export class Codes {
/**
* Lists all DeviceCodes associated with the merchant.
*
- * @param {Square.devices.CodesListRequest} request
+ * @param {Square.devices.ListCodesRequest} request
* @param {Codes.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
* await client.devices.codes.list()
*/
public async list(
- request: Square.devices.CodesListRequest = {},
+ request: Square.devices.ListCodesRequest = {},
requestOptions?: Codes.RequestOptions,
): Promise> {
- const list = async (request: Square.devices.CodesListRequest): Promise => {
+ const list = async (request: Square.devices.ListCodesRequest): Promise => {
const { cursor, locationId, productType, status } = request;
const _queryParams: Record = {};
if (cursor !== undefined) {
@@ -81,11 +81,11 @@ export class Codes {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -167,11 +167,11 @@ export class Codes {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -221,7 +221,7 @@ export class Codes {
/**
* Retrieves DeviceCode with the associated ID.
*
- * @param {Square.devices.CodesGetRequest} request
+ * @param {Square.devices.GetCodesRequest} request
* @param {Codes.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -230,7 +230,7 @@ export class Codes {
* })
*/
public async get(
- request: Square.devices.CodesGetRequest,
+ request: Square.devices.GetCodesRequest,
requestOptions?: Codes.RequestOptions,
): Promise {
const { id } = request;
@@ -244,11 +244,11 @@ export class Codes {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/devices/resources/codes/client/requests/CodesGetRequest.ts b/src/api/resources/devices/resources/codes/client/requests/GetCodesRequest.ts
similarity index 86%
rename from src/api/resources/devices/resources/codes/client/requests/CodesGetRequest.ts
rename to src/api/resources/devices/resources/codes/client/requests/GetCodesRequest.ts
index c2eed83b2..9ccf97ae6 100644
--- a/src/api/resources/devices/resources/codes/client/requests/CodesGetRequest.ts
+++ b/src/api/resources/devices/resources/codes/client/requests/GetCodesRequest.ts
@@ -8,7 +8,7 @@
* id: "id"
* }
*/
-export interface CodesGetRequest {
+export interface GetCodesRequest {
/**
* The unique identifier for the device code.
*/
diff --git a/src/api/resources/devices/resources/codes/client/requests/CodesListRequest.ts b/src/api/resources/devices/resources/codes/client/requests/ListCodesRequest.ts
similarity index 96%
rename from src/api/resources/devices/resources/codes/client/requests/CodesListRequest.ts
rename to src/api/resources/devices/resources/codes/client/requests/ListCodesRequest.ts
index 461f654d7..dcb084347 100644
--- a/src/api/resources/devices/resources/codes/client/requests/CodesListRequest.ts
+++ b/src/api/resources/devices/resources/codes/client/requests/ListCodesRequest.ts
@@ -8,7 +8,7 @@ import * as Square from "../../../../../../index";
* @example
* {}
*/
-export interface CodesListRequest {
+export interface ListCodesRequest {
/**
* A pagination cursor returned by a previous call to this endpoint.
* Provide this to retrieve the next set of results for your original query.
diff --git a/src/api/resources/devices/resources/codes/client/requests/index.ts b/src/api/resources/devices/resources/codes/client/requests/index.ts
index 9711bbe82..884d772bf 100644
--- a/src/api/resources/devices/resources/codes/client/requests/index.ts
+++ b/src/api/resources/devices/resources/codes/client/requests/index.ts
@@ -1,3 +1,3 @@
-export { type CodesListRequest } from "./CodesListRequest";
+export { type ListCodesRequest } from "./ListCodesRequest";
export { type CreateDeviceCodeRequest } from "./CreateDeviceCodeRequest";
-export { type CodesGetRequest } from "./CodesGetRequest";
+export { type GetCodesRequest } from "./GetCodesRequest";
diff --git a/src/api/resources/disputes/client/Client.ts b/src/api/resources/disputes/client/Client.ts
index 88c4307a4..d7d42936b 100644
--- a/src/api/resources/disputes/client/Client.ts
+++ b/src/api/resources/disputes/client/Client.ts
@@ -18,7 +18,7 @@ export declare namespace Disputes {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -30,7 +30,7 @@ export declare namespace Disputes {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -48,17 +48,17 @@ export class Disputes {
/**
* Returns a list of disputes associated with a particular account.
*
- * @param {Square.DisputesListRequest} request
+ * @param {Square.ListDisputesRequest} request
* @param {Disputes.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
* await client.disputes.list()
*/
public async list(
- request: Square.DisputesListRequest = {},
+ request: Square.ListDisputesRequest = {},
requestOptions?: Disputes.RequestOptions,
): Promise> {
- const list = async (request: Square.DisputesListRequest): Promise => {
+ const list = async (request: Square.ListDisputesRequest): Promise => {
const { cursor, states, locationId } = request;
const _queryParams: Record = {};
if (cursor !== undefined) {
@@ -83,11 +83,11 @@ export class Disputes {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -141,7 +141,7 @@ export class Disputes {
/**
* Returns details about a specific dispute.
*
- * @param {Square.DisputesGetRequest} request
+ * @param {Square.GetDisputesRequest} request
* @param {Disputes.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -150,7 +150,7 @@ export class Disputes {
* })
*/
public async get(
- request: Square.DisputesGetRequest,
+ request: Square.GetDisputesRequest,
requestOptions?: Disputes.RequestOptions,
): Promise {
const { disputeId } = request;
@@ -164,11 +164,11 @@ export class Disputes {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -218,7 +218,7 @@ export class Disputes {
* Square debits the disputed amount from the seller’s Square account. If the Square account
* does not have sufficient funds, Square debits the associated bank account.
*
- * @param {Square.DisputesAcceptRequest} request
+ * @param {Square.AcceptDisputesRequest} request
* @param {Disputes.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -227,7 +227,7 @@ export class Disputes {
* })
*/
public async accept(
- request: Square.DisputesAcceptRequest,
+ request: Square.AcceptDisputesRequest,
requestOptions?: Disputes.RequestOptions,
): Promise {
const { disputeId } = request;
@@ -241,11 +241,11 @@ export class Disputes {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -294,7 +294,7 @@ export class Disputes {
* Uploads a file to use as evidence in a dispute challenge. The endpoint accepts HTTP
* multipart/form-data file uploads in HEIC, HEIF, JPEG, PDF, PNG, and TIFF formats.
*
- * @param {Square.DisputesCreateEvidenceFileRequest} request
+ * @param {Square.CreateEvidenceFileDisputesRequest} request
* @param {Disputes.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -303,7 +303,7 @@ export class Disputes {
* })
*/
public async createEvidenceFile(
- request: Square.DisputesCreateEvidenceFileRequest,
+ request: Square.CreateEvidenceFileDisputesRequest,
requestOptions?: Disputes.RequestOptions,
): Promise {
const _request = await core.newFormData();
@@ -334,11 +334,11 @@ export class Disputes {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
..._maybeEncodedRequest.headers,
@@ -414,11 +414,11 @@ export class Disputes {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -476,7 +476,7 @@ export class Disputes {
* evidence automatically provided by Square, when available. Evidence cannot be removed from
* a dispute after submission.
*
- * @param {Square.DisputesSubmitEvidenceRequest} request
+ * @param {Square.SubmitEvidenceDisputesRequest} request
* @param {Disputes.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -485,7 +485,7 @@ export class Disputes {
* })
*/
public async submitEvidence(
- request: Square.DisputesSubmitEvidenceRequest,
+ request: Square.SubmitEvidenceDisputesRequest,
requestOptions?: Disputes.RequestOptions,
): Promise {
const { disputeId } = request;
@@ -499,11 +499,11 @@ export class Disputes {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/disputes/client/requests/DisputesAcceptRequest.ts b/src/api/resources/disputes/client/requests/AcceptDisputesRequest.ts
similarity index 85%
rename from src/api/resources/disputes/client/requests/DisputesAcceptRequest.ts
rename to src/api/resources/disputes/client/requests/AcceptDisputesRequest.ts
index 168b18e13..e7b39024c 100644
--- a/src/api/resources/disputes/client/requests/DisputesAcceptRequest.ts
+++ b/src/api/resources/disputes/client/requests/AcceptDisputesRequest.ts
@@ -8,7 +8,7 @@
* disputeId: "dispute_id"
* }
*/
-export interface DisputesAcceptRequest {
+export interface AcceptDisputesRequest {
/**
* The ID of the dispute you want to accept.
*/
diff --git a/src/api/resources/disputes/client/requests/DisputesCreateEvidenceFileRequest.ts b/src/api/resources/disputes/client/requests/CreateEvidenceFileDisputesRequest.ts
similarity index 89%
rename from src/api/resources/disputes/client/requests/DisputesCreateEvidenceFileRequest.ts
rename to src/api/resources/disputes/client/requests/CreateEvidenceFileDisputesRequest.ts
index caef2b466..bd5c4e399 100644
--- a/src/api/resources/disputes/client/requests/DisputesCreateEvidenceFileRequest.ts
+++ b/src/api/resources/disputes/client/requests/CreateEvidenceFileDisputesRequest.ts
@@ -11,7 +11,7 @@ import * as fs from "fs";
* disputeId: "dispute_id"
* }
*/
-export interface DisputesCreateEvidenceFileRequest {
+export interface CreateEvidenceFileDisputesRequest {
/**
* The ID of the dispute for which you want to upload evidence.
*/
diff --git a/src/api/resources/disputes/client/requests/DisputesGetRequest.ts b/src/api/resources/disputes/client/requests/GetDisputesRequest.ts
similarity index 86%
rename from src/api/resources/disputes/client/requests/DisputesGetRequest.ts
rename to src/api/resources/disputes/client/requests/GetDisputesRequest.ts
index 2066f0b6b..8ce67be68 100644
--- a/src/api/resources/disputes/client/requests/DisputesGetRequest.ts
+++ b/src/api/resources/disputes/client/requests/GetDisputesRequest.ts
@@ -8,7 +8,7 @@
* disputeId: "dispute_id"
* }
*/
-export interface DisputesGetRequest {
+export interface GetDisputesRequest {
/**
* The ID of the dispute you want more details about.
*/
diff --git a/src/api/resources/disputes/client/requests/DisputesListRequest.ts b/src/api/resources/disputes/client/requests/ListDisputesRequest.ts
similarity index 95%
rename from src/api/resources/disputes/client/requests/DisputesListRequest.ts
rename to src/api/resources/disputes/client/requests/ListDisputesRequest.ts
index 90c1a5df8..eb1e6a560 100644
--- a/src/api/resources/disputes/client/requests/DisputesListRequest.ts
+++ b/src/api/resources/disputes/client/requests/ListDisputesRequest.ts
@@ -8,7 +8,7 @@ import * as Square from "../../../../index";
* @example
* {}
*/
-export interface DisputesListRequest {
+export interface ListDisputesRequest {
/**
* A pagination cursor returned by a previous call to this endpoint.
* Provide this cursor to retrieve the next set of results for the original query.
diff --git a/src/api/resources/disputes/client/requests/DisputesSubmitEvidenceRequest.ts b/src/api/resources/disputes/client/requests/SubmitEvidenceDisputesRequest.ts
similarity index 83%
rename from src/api/resources/disputes/client/requests/DisputesSubmitEvidenceRequest.ts
rename to src/api/resources/disputes/client/requests/SubmitEvidenceDisputesRequest.ts
index 1f8f67cfa..260395581 100644
--- a/src/api/resources/disputes/client/requests/DisputesSubmitEvidenceRequest.ts
+++ b/src/api/resources/disputes/client/requests/SubmitEvidenceDisputesRequest.ts
@@ -8,7 +8,7 @@
* disputeId: "dispute_id"
* }
*/
-export interface DisputesSubmitEvidenceRequest {
+export interface SubmitEvidenceDisputesRequest {
/**
* The ID of the dispute for which you want to submit evidence.
*/
diff --git a/src/api/resources/disputes/client/requests/index.ts b/src/api/resources/disputes/client/requests/index.ts
index d1b097066..9be21844e 100644
--- a/src/api/resources/disputes/client/requests/index.ts
+++ b/src/api/resources/disputes/client/requests/index.ts
@@ -1,6 +1,6 @@
-export { type DisputesListRequest } from "./DisputesListRequest";
-export { type DisputesGetRequest } from "./DisputesGetRequest";
-export { type DisputesAcceptRequest } from "./DisputesAcceptRequest";
-export { type DisputesCreateEvidenceFileRequest } from "./DisputesCreateEvidenceFileRequest";
+export { type ListDisputesRequest } from "./ListDisputesRequest";
+export { type GetDisputesRequest } from "./GetDisputesRequest";
+export { type AcceptDisputesRequest } from "./AcceptDisputesRequest";
+export { type CreateEvidenceFileDisputesRequest } from "./CreateEvidenceFileDisputesRequest";
export { type CreateDisputeEvidenceTextRequest } from "./CreateDisputeEvidenceTextRequest";
-export { type DisputesSubmitEvidenceRequest } from "./DisputesSubmitEvidenceRequest";
+export { type SubmitEvidenceDisputesRequest } from "./SubmitEvidenceDisputesRequest";
diff --git a/src/api/resources/disputes/resources/evidence/client/Client.ts b/src/api/resources/disputes/resources/evidence/client/Client.ts
index 4da22f1d5..c39db9cf8 100644
--- a/src/api/resources/disputes/resources/evidence/client/Client.ts
+++ b/src/api/resources/disputes/resources/evidence/client/Client.ts
@@ -16,7 +16,7 @@ export declare namespace Evidence {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -28,7 +28,7 @@ export declare namespace Evidence {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -40,7 +40,7 @@ export class Evidence {
/**
* Returns a list of evidence associated with a dispute.
*
- * @param {Square.disputes.EvidenceListRequest} request
+ * @param {Square.disputes.ListEvidenceRequest} request
* @param {Evidence.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -49,11 +49,11 @@ export class Evidence {
* })
*/
public async list(
- request: Square.disputes.EvidenceListRequest,
+ request: Square.disputes.ListEvidenceRequest,
requestOptions?: Evidence.RequestOptions,
): Promise> {
const list = async (
- request: Square.disputes.EvidenceListRequest,
+ request: Square.disputes.ListEvidenceRequest,
): Promise => {
const { disputeId, cursor } = request;
const _queryParams: Record = {};
@@ -70,11 +70,11 @@ export class Evidence {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -132,7 +132,7 @@ export class Evidence {
*
* You must maintain a copy of any evidence uploaded if you want to reference it later. Evidence cannot be downloaded after you upload it.
*
- * @param {Square.disputes.EvidenceGetRequest} request
+ * @param {Square.disputes.GetEvidenceRequest} request
* @param {Evidence.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -142,7 +142,7 @@ export class Evidence {
* })
*/
public async get(
- request: Square.disputes.EvidenceGetRequest,
+ request: Square.disputes.GetEvidenceRequest,
requestOptions?: Evidence.RequestOptions,
): Promise {
const { disputeId, evidenceId } = request;
@@ -156,11 +156,11 @@ export class Evidence {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -209,7 +209,7 @@ export class Evidence {
* Removes specified evidence from a dispute.
* Square does not send the bank any evidence that is removed.
*
- * @param {Square.disputes.EvidenceDeleteRequest} request
+ * @param {Square.disputes.DeleteEvidenceRequest} request
* @param {Evidence.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -219,7 +219,7 @@ export class Evidence {
* })
*/
public async delete(
- request: Square.disputes.EvidenceDeleteRequest,
+ request: Square.disputes.DeleteEvidenceRequest,
requestOptions?: Evidence.RequestOptions,
): Promise {
const { disputeId, evidenceId } = request;
@@ -233,11 +233,11 @@ export class Evidence {
method: "DELETE",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/disputes/resources/evidence/client/requests/EvidenceDeleteRequest.ts b/src/api/resources/disputes/resources/evidence/client/requests/DeleteEvidenceRequest.ts
similarity index 90%
rename from src/api/resources/disputes/resources/evidence/client/requests/EvidenceDeleteRequest.ts
rename to src/api/resources/disputes/resources/evidence/client/requests/DeleteEvidenceRequest.ts
index 08c2293e1..0695d4de6 100644
--- a/src/api/resources/disputes/resources/evidence/client/requests/EvidenceDeleteRequest.ts
+++ b/src/api/resources/disputes/resources/evidence/client/requests/DeleteEvidenceRequest.ts
@@ -9,7 +9,7 @@
* evidenceId: "evidence_id"
* }
*/
-export interface EvidenceDeleteRequest {
+export interface DeleteEvidenceRequest {
/**
* The ID of the dispute from which you want to remove evidence.
*/
diff --git a/src/api/resources/disputes/resources/evidence/client/requests/EvidenceGetRequest.ts b/src/api/resources/disputes/resources/evidence/client/requests/GetEvidenceRequest.ts
similarity index 91%
rename from src/api/resources/disputes/resources/evidence/client/requests/EvidenceGetRequest.ts
rename to src/api/resources/disputes/resources/evidence/client/requests/GetEvidenceRequest.ts
index 696dbe80f..9272744c7 100644
--- a/src/api/resources/disputes/resources/evidence/client/requests/EvidenceGetRequest.ts
+++ b/src/api/resources/disputes/resources/evidence/client/requests/GetEvidenceRequest.ts
@@ -9,7 +9,7 @@
* evidenceId: "evidence_id"
* }
*/
-export interface EvidenceGetRequest {
+export interface GetEvidenceRequest {
/**
* The ID of the dispute from which you want to retrieve evidence metadata.
*/
diff --git a/src/api/resources/disputes/resources/evidence/client/requests/EvidenceListRequest.ts b/src/api/resources/disputes/resources/evidence/client/requests/ListEvidenceRequest.ts
similarity index 93%
rename from src/api/resources/disputes/resources/evidence/client/requests/EvidenceListRequest.ts
rename to src/api/resources/disputes/resources/evidence/client/requests/ListEvidenceRequest.ts
index ec72b3248..2a603aa53 100644
--- a/src/api/resources/disputes/resources/evidence/client/requests/EvidenceListRequest.ts
+++ b/src/api/resources/disputes/resources/evidence/client/requests/ListEvidenceRequest.ts
@@ -8,7 +8,7 @@
* disputeId: "dispute_id"
* }
*/
-export interface EvidenceListRequest {
+export interface ListEvidenceRequest {
/**
* The ID of the dispute.
*/
diff --git a/src/api/resources/disputes/resources/evidence/client/requests/index.ts b/src/api/resources/disputes/resources/evidence/client/requests/index.ts
index a3653481b..854770a17 100644
--- a/src/api/resources/disputes/resources/evidence/client/requests/index.ts
+++ b/src/api/resources/disputes/resources/evidence/client/requests/index.ts
@@ -1,3 +1,3 @@
-export { type EvidenceListRequest } from "./EvidenceListRequest";
-export { type EvidenceGetRequest } from "./EvidenceGetRequest";
-export { type EvidenceDeleteRequest } from "./EvidenceDeleteRequest";
+export { type ListEvidenceRequest } from "./ListEvidenceRequest";
+export { type GetEvidenceRequest } from "./GetEvidenceRequest";
+export { type DeleteEvidenceRequest } from "./DeleteEvidenceRequest";
diff --git a/src/api/resources/employees/client/Client.ts b/src/api/resources/employees/client/Client.ts
index 807e2de95..79dc3487f 100644
--- a/src/api/resources/employees/client/Client.ts
+++ b/src/api/resources/employees/client/Client.ts
@@ -16,7 +16,7 @@ export declare namespace Employees {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -28,7 +28,7 @@ export declare namespace Employees {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -40,17 +40,17 @@ export class Employees {
/**
*
*
- * @param {Square.EmployeesListRequest} request
+ * @param {Square.ListEmployeesRequest} request
* @param {Employees.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
* await client.employees.list()
*/
public async list(
- request: Square.EmployeesListRequest = {},
+ request: Square.ListEmployeesRequest = {},
requestOptions?: Employees.RequestOptions,
): Promise> {
- const list = async (request: Square.EmployeesListRequest): Promise => {
+ const list = async (request: Square.ListEmployeesRequest): Promise => {
const { locationId, status, limit, cursor } = request;
const _queryParams: Record = {};
if (locationId !== undefined) {
@@ -78,11 +78,11 @@ export class Employees {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -136,7 +136,7 @@ export class Employees {
/**
*
*
- * @param {Square.EmployeesGetRequest} request
+ * @param {Square.GetEmployeesRequest} request
* @param {Employees.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -145,7 +145,7 @@ export class Employees {
* })
*/
public async get(
- request: Square.EmployeesGetRequest,
+ request: Square.GetEmployeesRequest,
requestOptions?: Employees.RequestOptions,
): Promise {
const { id } = request;
@@ -159,11 +159,11 @@ export class Employees {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/employees/client/requests/EmployeesGetRequest.ts b/src/api/resources/employees/client/requests/GetEmployeesRequest.ts
similarity index 84%
rename from src/api/resources/employees/client/requests/EmployeesGetRequest.ts
rename to src/api/resources/employees/client/requests/GetEmployeesRequest.ts
index 4a9150d79..3d3796dad 100644
--- a/src/api/resources/employees/client/requests/EmployeesGetRequest.ts
+++ b/src/api/resources/employees/client/requests/GetEmployeesRequest.ts
@@ -8,7 +8,7 @@
* id: "id"
* }
*/
-export interface EmployeesGetRequest {
+export interface GetEmployeesRequest {
/**
* UUID for the employee that was requested.
*/
diff --git a/src/api/resources/employees/client/requests/EmployeesListRequest.ts b/src/api/resources/employees/client/requests/ListEmployeesRequest.ts
similarity index 93%
rename from src/api/resources/employees/client/requests/EmployeesListRequest.ts
rename to src/api/resources/employees/client/requests/ListEmployeesRequest.ts
index 2acb3505a..78453e229 100644
--- a/src/api/resources/employees/client/requests/EmployeesListRequest.ts
+++ b/src/api/resources/employees/client/requests/ListEmployeesRequest.ts
@@ -8,7 +8,7 @@ import * as Square from "../../../../index";
* @example
* {}
*/
-export interface EmployeesListRequest {
+export interface ListEmployeesRequest {
/**
*
*/
diff --git a/src/api/resources/employees/client/requests/index.ts b/src/api/resources/employees/client/requests/index.ts
index 7e25b3508..9557dae81 100644
--- a/src/api/resources/employees/client/requests/index.ts
+++ b/src/api/resources/employees/client/requests/index.ts
@@ -1,2 +1,2 @@
-export { type EmployeesListRequest } from "./EmployeesListRequest";
-export { type EmployeesGetRequest } from "./EmployeesGetRequest";
+export { type ListEmployeesRequest } from "./ListEmployeesRequest";
+export { type GetEmployeesRequest } from "./GetEmployeesRequest";
diff --git a/src/api/resources/events/client/Client.ts b/src/api/resources/events/client/Client.ts
index 7634c09e4..4cebd4aee 100644
--- a/src/api/resources/events/client/Client.ts
+++ b/src/api/resources/events/client/Client.ts
@@ -16,7 +16,7 @@ export declare namespace Events {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -28,7 +28,7 @@ export declare namespace Events {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -60,11 +60,11 @@ export class Events {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -132,11 +132,11 @@ export class Events {
method: "PUT",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -198,11 +198,11 @@ export class Events {
method: "PUT",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -274,11 +274,11 @@ export class Events {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/giftCards/client/Client.ts b/src/api/resources/giftCards/client/Client.ts
index 707234ea1..4b39a8d6c 100644
--- a/src/api/resources/giftCards/client/Client.ts
+++ b/src/api/resources/giftCards/client/Client.ts
@@ -17,7 +17,7 @@ export declare namespace GiftCards {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -29,7 +29,7 @@ export declare namespace GiftCards {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -48,17 +48,17 @@ export class GiftCards {
* Lists all gift cards. You can specify optional filters to retrieve
* a subset of the gift cards. Results are sorted by `created_at` in ascending order.
*
- * @param {Square.GiftCardsListRequest} request
+ * @param {Square.ListGiftCardsRequest} request
* @param {GiftCards.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
* await client.giftCards.list()
*/
public async list(
- request: Square.GiftCardsListRequest = {},
+ request: Square.ListGiftCardsRequest = {},
requestOptions?: GiftCards.RequestOptions,
): Promise> {
- const list = async (request: Square.GiftCardsListRequest): Promise => {
+ const list = async (request: Square.ListGiftCardsRequest): Promise => {
const { type: type_, state, limit, cursor, customerId } = request;
const _queryParams: Record = {};
if (type_ !== undefined) {
@@ -86,11 +86,11 @@ export class GiftCards {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -174,11 +174,11 @@ export class GiftCards {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -250,11 +250,11 @@ export class GiftCards {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -326,11 +326,11 @@ export class GiftCards {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -404,11 +404,11 @@ export class GiftCards {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -484,11 +484,11 @@ export class GiftCards {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -540,7 +540,7 @@ export class GiftCards {
/**
* Retrieves a gift card using the gift card ID.
*
- * @param {Square.GiftCardsGetRequest} request
+ * @param {Square.GetGiftCardsRequest} request
* @param {GiftCards.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -549,7 +549,7 @@ export class GiftCards {
* })
*/
public async get(
- request: Square.GiftCardsGetRequest,
+ request: Square.GetGiftCardsRequest,
requestOptions?: GiftCards.RequestOptions,
): Promise {
const { id } = request;
@@ -563,11 +563,11 @@ export class GiftCards {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/giftCards/client/requests/GiftCardsGetRequest.ts b/src/api/resources/giftCards/client/requests/GetGiftCardsRequest.ts
similarity index 84%
rename from src/api/resources/giftCards/client/requests/GiftCardsGetRequest.ts
rename to src/api/resources/giftCards/client/requests/GetGiftCardsRequest.ts
index 4cf9cebea..7d36ea9f8 100644
--- a/src/api/resources/giftCards/client/requests/GiftCardsGetRequest.ts
+++ b/src/api/resources/giftCards/client/requests/GetGiftCardsRequest.ts
@@ -8,7 +8,7 @@
* id: "id"
* }
*/
-export interface GiftCardsGetRequest {
+export interface GetGiftCardsRequest {
/**
* The ID of the gift card to retrieve.
*/
diff --git a/src/api/resources/giftCards/client/requests/GiftCardsListRequest.ts b/src/api/resources/giftCards/client/requests/ListGiftCardsRequest.ts
similarity index 97%
rename from src/api/resources/giftCards/client/requests/GiftCardsListRequest.ts
rename to src/api/resources/giftCards/client/requests/ListGiftCardsRequest.ts
index 5e7a44f7d..2a4b28c88 100644
--- a/src/api/resources/giftCards/client/requests/GiftCardsListRequest.ts
+++ b/src/api/resources/giftCards/client/requests/ListGiftCardsRequest.ts
@@ -6,7 +6,7 @@
* @example
* {}
*/
-export interface GiftCardsListRequest {
+export interface ListGiftCardsRequest {
/**
* If a [type](entity:GiftCardType) is provided, the endpoint returns gift cards of the specified type.
* Otherwise, the endpoint returns gift cards of all types.
diff --git a/src/api/resources/giftCards/client/requests/index.ts b/src/api/resources/giftCards/client/requests/index.ts
index 9e8ca215b..0b6147fc9 100644
--- a/src/api/resources/giftCards/client/requests/index.ts
+++ b/src/api/resources/giftCards/client/requests/index.ts
@@ -1,7 +1,7 @@
-export { type GiftCardsListRequest } from "./GiftCardsListRequest";
+export { type ListGiftCardsRequest } from "./ListGiftCardsRequest";
export { type CreateGiftCardRequest } from "./CreateGiftCardRequest";
export { type GetGiftCardFromGanRequest } from "./GetGiftCardFromGanRequest";
export { type GetGiftCardFromNonceRequest } from "./GetGiftCardFromNonceRequest";
export { type LinkCustomerToGiftCardRequest } from "./LinkCustomerToGiftCardRequest";
export { type UnlinkCustomerFromGiftCardRequest } from "./UnlinkCustomerFromGiftCardRequest";
-export { type GiftCardsGetRequest } from "./GiftCardsGetRequest";
+export { type GetGiftCardsRequest } from "./GetGiftCardsRequest";
diff --git a/src/api/resources/giftCards/resources/activities/client/Client.ts b/src/api/resources/giftCards/resources/activities/client/Client.ts
index d0c4c38d6..27c7e9a95 100644
--- a/src/api/resources/giftCards/resources/activities/client/Client.ts
+++ b/src/api/resources/giftCards/resources/activities/client/Client.ts
@@ -16,7 +16,7 @@ export declare namespace Activities {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -28,7 +28,7 @@ export declare namespace Activities {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -43,18 +43,18 @@ export class Activities {
* filter the list. For example, you can get a list of gift card activities for a gift card,
* for all gift cards in a specific region, or for activities within a time window.
*
- * @param {Square.giftCards.ActivitiesListRequest} request
+ * @param {Square.giftCards.ListActivitiesRequest} request
* @param {Activities.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
* await client.giftCards.activities.list()
*/
public async list(
- request: Square.giftCards.ActivitiesListRequest = {},
+ request: Square.giftCards.ListActivitiesRequest = {},
requestOptions?: Activities.RequestOptions,
): Promise> {
const list = async (
- request: Square.giftCards.ActivitiesListRequest,
+ request: Square.giftCards.ListActivitiesRequest,
): Promise => {
const { giftCardId, type: type_, locationId, beginTime, endTime, limit, cursor, sortOrder } = request;
const _queryParams: Record = {};
@@ -92,11 +92,11 @@ export class Activities {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -182,11 +182,11 @@ export class Activities {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/giftCards/resources/activities/client/requests/ActivitiesListRequest.ts b/src/api/resources/giftCards/resources/activities/client/requests/ListActivitiesRequest.ts
similarity index 98%
rename from src/api/resources/giftCards/resources/activities/client/requests/ActivitiesListRequest.ts
rename to src/api/resources/giftCards/resources/activities/client/requests/ListActivitiesRequest.ts
index d8df99059..ef91964a1 100644
--- a/src/api/resources/giftCards/resources/activities/client/requests/ActivitiesListRequest.ts
+++ b/src/api/resources/giftCards/resources/activities/client/requests/ListActivitiesRequest.ts
@@ -6,7 +6,7 @@
* @example
* {}
*/
-export interface ActivitiesListRequest {
+export interface ListActivitiesRequest {
/**
* If a gift card ID is provided, the endpoint returns activities related
* to the specified gift card. Otherwise, the endpoint returns all gift card activities for
diff --git a/src/api/resources/giftCards/resources/activities/client/requests/index.ts b/src/api/resources/giftCards/resources/activities/client/requests/index.ts
index 32ef89d56..9c2bd6210 100644
--- a/src/api/resources/giftCards/resources/activities/client/requests/index.ts
+++ b/src/api/resources/giftCards/resources/activities/client/requests/index.ts
@@ -1,2 +1,2 @@
-export { type ActivitiesListRequest } from "./ActivitiesListRequest";
+export { type ListActivitiesRequest } from "./ListActivitiesRequest";
export { type CreateGiftCardActivityRequest } from "./CreateGiftCardActivityRequest";
diff --git a/src/api/resources/inventory/client/Client.ts b/src/api/resources/inventory/client/Client.ts
index 6c64104e8..31fb014f0 100644
--- a/src/api/resources/inventory/client/Client.ts
+++ b/src/api/resources/inventory/client/Client.ts
@@ -16,7 +16,7 @@ export declare namespace Inventory {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -28,7 +28,7 @@ export declare namespace Inventory {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -41,7 +41,7 @@ export class Inventory {
* Deprecated version of [RetrieveInventoryAdjustment](api-endpoint:Inventory-RetrieveInventoryAdjustment) after the endpoint URL
* is updated to conform to the standard convention.
*
- * @param {Square.InventoryDeprecatedGetAdjustmentRequest} request
+ * @param {Square.DeprecatedGetAdjustmentInventoryRequest} request
* @param {Inventory.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -50,7 +50,7 @@ export class Inventory {
* })
*/
public async deprecatedGetAdjustment(
- request: Square.InventoryDeprecatedGetAdjustmentRequest,
+ request: Square.DeprecatedGetAdjustmentInventoryRequest,
requestOptions?: Inventory.RequestOptions,
): Promise {
const { adjustmentId } = request;
@@ -64,11 +64,11 @@ export class Inventory {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -117,7 +117,7 @@ export class Inventory {
* Returns the [InventoryAdjustment](entity:InventoryAdjustment) object
* with the provided `adjustment_id`.
*
- * @param {Square.InventoryGetAdjustmentRequest} request
+ * @param {Square.GetAdjustmentInventoryRequest} request
* @param {Inventory.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -126,7 +126,7 @@ export class Inventory {
* })
*/
public async getAdjustment(
- request: Square.InventoryGetAdjustmentRequest,
+ request: Square.GetAdjustmentInventoryRequest,
requestOptions?: Inventory.RequestOptions,
): Promise {
const { adjustmentId } = request;
@@ -140,11 +140,11 @@ export class Inventory {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -228,11 +228,11 @@ export class Inventory {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -310,11 +310,11 @@ export class Inventory {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -391,11 +391,11 @@ export class Inventory {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -486,11 +486,11 @@ export class Inventory {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -579,11 +579,11 @@ export class Inventory {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -679,11 +679,11 @@ export class Inventory {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -743,7 +743,7 @@ export class Inventory {
* Deprecated version of [RetrieveInventoryPhysicalCount](api-endpoint:Inventory-RetrieveInventoryPhysicalCount) after the endpoint URL
* is updated to conform to the standard convention.
*
- * @param {Square.InventoryDeprecatedGetPhysicalCountRequest} request
+ * @param {Square.DeprecatedGetPhysicalCountInventoryRequest} request
* @param {Inventory.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -752,7 +752,7 @@ export class Inventory {
* })
*/
public async deprecatedGetPhysicalCount(
- request: Square.InventoryDeprecatedGetPhysicalCountRequest,
+ request: Square.DeprecatedGetPhysicalCountInventoryRequest,
requestOptions?: Inventory.RequestOptions,
): Promise {
const { physicalCountId } = request;
@@ -766,11 +766,11 @@ export class Inventory {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -819,7 +819,7 @@ export class Inventory {
* Returns the [InventoryPhysicalCount](entity:InventoryPhysicalCount)
* object with the provided `physical_count_id`.
*
- * @param {Square.InventoryGetPhysicalCountRequest} request
+ * @param {Square.GetPhysicalCountInventoryRequest} request
* @param {Inventory.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -828,7 +828,7 @@ export class Inventory {
* })
*/
public async getPhysicalCount(
- request: Square.InventoryGetPhysicalCountRequest,
+ request: Square.GetPhysicalCountInventoryRequest,
requestOptions?: Inventory.RequestOptions,
): Promise {
const { physicalCountId } = request;
@@ -842,11 +842,11 @@ export class Inventory {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -895,7 +895,7 @@ export class Inventory {
* Returns the [InventoryTransfer](entity:InventoryTransfer) object
* with the provided `transfer_id`.
*
- * @param {Square.InventoryGetTransferRequest} request
+ * @param {Square.GetTransferInventoryRequest} request
* @param {Inventory.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -904,7 +904,7 @@ export class Inventory {
* })
*/
public async getTransfer(
- request: Square.InventoryGetTransferRequest,
+ request: Square.GetTransferInventoryRequest,
requestOptions?: Inventory.RequestOptions,
): Promise {
const { transferId } = request;
@@ -918,11 +918,11 @@ export class Inventory {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -973,7 +973,7 @@ export class Inventory {
* [Location](entity:Location)s. Responses are paginated and unsorted.
* For more sophisticated queries, use a batch endpoint.
*
- * @param {Square.InventoryGetRequest} request
+ * @param {Square.GetInventoryRequest} request
* @param {Inventory.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -982,10 +982,10 @@ export class Inventory {
* })
*/
public async get(
- request: Square.InventoryGetRequest,
+ request: Square.GetInventoryRequest,
requestOptions?: Inventory.RequestOptions,
): Promise> {
- const list = async (request: Square.InventoryGetRequest): Promise => {
+ const list = async (request: Square.GetInventoryRequest): Promise => {
const { catalogObjectId, locationIds, cursor } = request;
const _queryParams: Record = {};
if (locationIds !== undefined) {
@@ -1004,11 +1004,11 @@ export class Inventory {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -1076,7 +1076,7 @@ export class Inventory {
* used to display recent changes for a specific item. For more
* sophisticated queries, use a batch endpoint.
*
- * @param {Square.InventoryChangesRequest} request
+ * @param {Square.ChangesInventoryRequest} request
* @param {Inventory.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -1085,10 +1085,10 @@ export class Inventory {
* })
*/
public async changes(
- request: Square.InventoryChangesRequest,
+ request: Square.ChangesInventoryRequest,
requestOptions?: Inventory.RequestOptions,
): Promise> {
- const list = async (request: Square.InventoryChangesRequest): Promise => {
+ const list = async (request: Square.ChangesInventoryRequest): Promise => {
const { catalogObjectId, locationIds, cursor } = request;
const _queryParams: Record = {};
if (locationIds !== undefined) {
@@ -1107,11 +1107,11 @@ export class Inventory {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/inventory/client/requests/InventoryChangesRequest.ts b/src/api/resources/inventory/client/requests/ChangesInventoryRequest.ts
similarity index 94%
rename from src/api/resources/inventory/client/requests/InventoryChangesRequest.ts
rename to src/api/resources/inventory/client/requests/ChangesInventoryRequest.ts
index 227258082..0ecaff2d6 100644
--- a/src/api/resources/inventory/client/requests/InventoryChangesRequest.ts
+++ b/src/api/resources/inventory/client/requests/ChangesInventoryRequest.ts
@@ -8,7 +8,7 @@
* catalogObjectId: "catalog_object_id"
* }
*/
-export interface InventoryChangesRequest {
+export interface ChangesInventoryRequest {
/**
* ID of the [CatalogObject](entity:CatalogObject) to retrieve.
*/
diff --git a/src/api/resources/inventory/client/requests/InventoryDeprecatedGetAdjustmentRequest.ts b/src/api/resources/inventory/client/requests/DeprecatedGetAdjustmentInventoryRequest.ts
similarity index 82%
rename from src/api/resources/inventory/client/requests/InventoryDeprecatedGetAdjustmentRequest.ts
rename to src/api/resources/inventory/client/requests/DeprecatedGetAdjustmentInventoryRequest.ts
index 900f35ff5..c9473a53c 100644
--- a/src/api/resources/inventory/client/requests/InventoryDeprecatedGetAdjustmentRequest.ts
+++ b/src/api/resources/inventory/client/requests/DeprecatedGetAdjustmentInventoryRequest.ts
@@ -8,7 +8,7 @@
* adjustmentId: "adjustment_id"
* }
*/
-export interface InventoryDeprecatedGetAdjustmentRequest {
+export interface DeprecatedGetAdjustmentInventoryRequest {
/**
* ID of the [InventoryAdjustment](entity:InventoryAdjustment) to retrieve.
*/
diff --git a/src/api/resources/inventory/client/requests/InventoryDeprecatedGetPhysicalCountRequest.ts b/src/api/resources/inventory/client/requests/DeprecatedGetPhysicalCountInventoryRequest.ts
similarity index 82%
rename from src/api/resources/inventory/client/requests/InventoryDeprecatedGetPhysicalCountRequest.ts
rename to src/api/resources/inventory/client/requests/DeprecatedGetPhysicalCountInventoryRequest.ts
index 9334c8a3b..d9de48c2a 100644
--- a/src/api/resources/inventory/client/requests/InventoryDeprecatedGetPhysicalCountRequest.ts
+++ b/src/api/resources/inventory/client/requests/DeprecatedGetPhysicalCountInventoryRequest.ts
@@ -8,7 +8,7 @@
* physicalCountId: "physical_count_id"
* }
*/
-export interface InventoryDeprecatedGetPhysicalCountRequest {
+export interface DeprecatedGetPhysicalCountInventoryRequest {
/**
* ID of the
* [InventoryPhysicalCount](entity:InventoryPhysicalCount) to retrieve.
diff --git a/src/api/resources/inventory/client/requests/InventoryGetAdjustmentRequest.ts b/src/api/resources/inventory/client/requests/GetAdjustmentInventoryRequest.ts
similarity index 84%
rename from src/api/resources/inventory/client/requests/InventoryGetAdjustmentRequest.ts
rename to src/api/resources/inventory/client/requests/GetAdjustmentInventoryRequest.ts
index 5bbbc9f5e..c65aa9ca8 100644
--- a/src/api/resources/inventory/client/requests/InventoryGetAdjustmentRequest.ts
+++ b/src/api/resources/inventory/client/requests/GetAdjustmentInventoryRequest.ts
@@ -8,7 +8,7 @@
* adjustmentId: "adjustment_id"
* }
*/
-export interface InventoryGetAdjustmentRequest {
+export interface GetAdjustmentInventoryRequest {
/**
* ID of the [InventoryAdjustment](entity:InventoryAdjustment) to retrieve.
*/
diff --git a/src/api/resources/inventory/client/requests/InventoryGetRequest.ts b/src/api/resources/inventory/client/requests/GetInventoryRequest.ts
similarity index 95%
rename from src/api/resources/inventory/client/requests/InventoryGetRequest.ts
rename to src/api/resources/inventory/client/requests/GetInventoryRequest.ts
index b5914e1d0..7d4dab332 100644
--- a/src/api/resources/inventory/client/requests/InventoryGetRequest.ts
+++ b/src/api/resources/inventory/client/requests/GetInventoryRequest.ts
@@ -8,7 +8,7 @@
* catalogObjectId: "catalog_object_id"
* }
*/
-export interface InventoryGetRequest {
+export interface GetInventoryRequest {
/**
* ID of the [CatalogObject](entity:CatalogObject) to retrieve.
*/
diff --git a/src/api/resources/inventory/client/requests/InventoryGetPhysicalCountRequest.ts b/src/api/resources/inventory/client/requests/GetPhysicalCountInventoryRequest.ts
similarity index 85%
rename from src/api/resources/inventory/client/requests/InventoryGetPhysicalCountRequest.ts
rename to src/api/resources/inventory/client/requests/GetPhysicalCountInventoryRequest.ts
index cdfdd5104..cfc96a4c6 100644
--- a/src/api/resources/inventory/client/requests/InventoryGetPhysicalCountRequest.ts
+++ b/src/api/resources/inventory/client/requests/GetPhysicalCountInventoryRequest.ts
@@ -8,7 +8,7 @@
* physicalCountId: "physical_count_id"
* }
*/
-export interface InventoryGetPhysicalCountRequest {
+export interface GetPhysicalCountInventoryRequest {
/**
* ID of the
* [InventoryPhysicalCount](entity:InventoryPhysicalCount) to retrieve.
diff --git a/src/api/resources/inventory/client/requests/InventoryGetTransferRequest.ts b/src/api/resources/inventory/client/requests/GetTransferInventoryRequest.ts
similarity index 85%
rename from src/api/resources/inventory/client/requests/InventoryGetTransferRequest.ts
rename to src/api/resources/inventory/client/requests/GetTransferInventoryRequest.ts
index 463d35ebf..c09664a30 100644
--- a/src/api/resources/inventory/client/requests/InventoryGetTransferRequest.ts
+++ b/src/api/resources/inventory/client/requests/GetTransferInventoryRequest.ts
@@ -8,7 +8,7 @@
* transferId: "transfer_id"
* }
*/
-export interface InventoryGetTransferRequest {
+export interface GetTransferInventoryRequest {
/**
* ID of the [InventoryTransfer](entity:InventoryTransfer) to retrieve.
*/
diff --git a/src/api/resources/inventory/client/requests/index.ts b/src/api/resources/inventory/client/requests/index.ts
index 953b6d7f4..b1ea5cc1f 100644
--- a/src/api/resources/inventory/client/requests/index.ts
+++ b/src/api/resources/inventory/client/requests/index.ts
@@ -1,7 +1,7 @@
-export { type InventoryDeprecatedGetAdjustmentRequest } from "./InventoryDeprecatedGetAdjustmentRequest";
-export { type InventoryGetAdjustmentRequest } from "./InventoryGetAdjustmentRequest";
-export { type InventoryDeprecatedGetPhysicalCountRequest } from "./InventoryDeprecatedGetPhysicalCountRequest";
-export { type InventoryGetPhysicalCountRequest } from "./InventoryGetPhysicalCountRequest";
-export { type InventoryGetTransferRequest } from "./InventoryGetTransferRequest";
-export { type InventoryGetRequest } from "./InventoryGetRequest";
-export { type InventoryChangesRequest } from "./InventoryChangesRequest";
+export { type DeprecatedGetAdjustmentInventoryRequest } from "./DeprecatedGetAdjustmentInventoryRequest";
+export { type GetAdjustmentInventoryRequest } from "./GetAdjustmentInventoryRequest";
+export { type DeprecatedGetPhysicalCountInventoryRequest } from "./DeprecatedGetPhysicalCountInventoryRequest";
+export { type GetPhysicalCountInventoryRequest } from "./GetPhysicalCountInventoryRequest";
+export { type GetTransferInventoryRequest } from "./GetTransferInventoryRequest";
+export { type GetInventoryRequest } from "./GetInventoryRequest";
+export { type ChangesInventoryRequest } from "./ChangesInventoryRequest";
diff --git a/src/api/resources/invoices/client/Client.ts b/src/api/resources/invoices/client/Client.ts
index 75cb37ef8..cd280377a 100644
--- a/src/api/resources/invoices/client/Client.ts
+++ b/src/api/resources/invoices/client/Client.ts
@@ -17,7 +17,7 @@ export declare namespace Invoices {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -29,7 +29,7 @@ export declare namespace Invoices {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -43,7 +43,7 @@ export class Invoices {
* is paginated. If truncated, the response includes a `cursor` that you
* use in a subsequent request to retrieve the next set of invoices.
*
- * @param {Square.InvoicesListRequest} request
+ * @param {Square.ListInvoicesRequest} request
* @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -52,10 +52,10 @@ export class Invoices {
* })
*/
public async list(
- request: Square.InvoicesListRequest,
+ request: Square.ListInvoicesRequest,
requestOptions?: Invoices.RequestOptions,
): Promise> {
- const list = async (request: Square.InvoicesListRequest): Promise => {
+ const list = async (request: Square.ListInvoicesRequest): Promise => {
const { locationId, cursor, limit } = request;
const _queryParams: Record = {};
_queryParams["location_id"] = locationId;
@@ -75,11 +75,11 @@ export class Invoices {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -199,11 +199,11 @@ export class Invoices {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -290,11 +290,11 @@ export class Invoices {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -344,7 +344,7 @@ export class Invoices {
/**
* Retrieves an invoice by invoice ID.
*
- * @param {Square.InvoicesGetRequest} request
+ * @param {Square.GetInvoicesRequest} request
* @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -353,7 +353,7 @@ export class Invoices {
* })
*/
public async get(
- request: Square.InvoicesGetRequest,
+ request: Square.GetInvoicesRequest,
requestOptions?: Invoices.RequestOptions,
): Promise {
const { invoiceId } = request;
@@ -367,11 +367,11 @@ export class Invoices {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -451,11 +451,11 @@ export class Invoices {
method: "PUT",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -507,7 +507,7 @@ export class Invoices {
* associated order status changes to CANCELED. You can only delete a draft
* invoice (you cannot delete a published invoice, including one that is scheduled for processing).
*
- * @param {Square.InvoicesDeleteRequest} request
+ * @param {Square.DeleteInvoicesRequest} request
* @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -516,7 +516,7 @@ export class Invoices {
* })
*/
public async delete(
- request: Square.InvoicesDeleteRequest,
+ request: Square.DeleteInvoicesRequest,
requestOptions?: Invoices.RequestOptions,
): Promise {
const { invoiceId, version } = request;
@@ -535,11 +535,11 @@ export class Invoices {
method: "DELETE",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -626,11 +626,11 @@ export class Invoices {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
..._maybeEncodedRequest.headers,
@@ -705,11 +705,11 @@ export class Invoices {
method: "DELETE",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -784,11 +784,11 @@ export class Invoices {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -878,11 +878,11 @@ export class Invoices {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/invoices/client/requests/InvoicesDeleteRequest.ts b/src/api/resources/invoices/client/requests/DeleteInvoicesRequest.ts
similarity index 92%
rename from src/api/resources/invoices/client/requests/InvoicesDeleteRequest.ts
rename to src/api/resources/invoices/client/requests/DeleteInvoicesRequest.ts
index c69f37327..2cf9546a6 100644
--- a/src/api/resources/invoices/client/requests/InvoicesDeleteRequest.ts
+++ b/src/api/resources/invoices/client/requests/DeleteInvoicesRequest.ts
@@ -8,7 +8,7 @@
* invoiceId: "invoice_id"
* }
*/
-export interface InvoicesDeleteRequest {
+export interface DeleteInvoicesRequest {
/**
* The ID of the invoice to delete.
*/
diff --git a/src/api/resources/invoices/client/requests/InvoicesGetRequest.ts b/src/api/resources/invoices/client/requests/GetInvoicesRequest.ts
similarity index 85%
rename from src/api/resources/invoices/client/requests/InvoicesGetRequest.ts
rename to src/api/resources/invoices/client/requests/GetInvoicesRequest.ts
index 48e334616..8f288b53f 100644
--- a/src/api/resources/invoices/client/requests/InvoicesGetRequest.ts
+++ b/src/api/resources/invoices/client/requests/GetInvoicesRequest.ts
@@ -8,7 +8,7 @@
* invoiceId: "invoice_id"
* }
*/
-export interface InvoicesGetRequest {
+export interface GetInvoicesRequest {
/**
* The ID of the invoice to retrieve.
*/
diff --git a/src/api/resources/invoices/client/requests/InvoicesListRequest.ts b/src/api/resources/invoices/client/requests/ListInvoicesRequest.ts
similarity index 95%
rename from src/api/resources/invoices/client/requests/InvoicesListRequest.ts
rename to src/api/resources/invoices/client/requests/ListInvoicesRequest.ts
index 2a43702e9..d38f8f30a 100644
--- a/src/api/resources/invoices/client/requests/InvoicesListRequest.ts
+++ b/src/api/resources/invoices/client/requests/ListInvoicesRequest.ts
@@ -8,7 +8,7 @@
* locationId: "location_id"
* }
*/
-export interface InvoicesListRequest {
+export interface ListInvoicesRequest {
/**
* The ID of the location for which to list invoices.
*/
diff --git a/src/api/resources/invoices/client/requests/index.ts b/src/api/resources/invoices/client/requests/index.ts
index 48ce322ea..d6b0b4452 100644
--- a/src/api/resources/invoices/client/requests/index.ts
+++ b/src/api/resources/invoices/client/requests/index.ts
@@ -1,9 +1,9 @@
-export { type InvoicesListRequest } from "./InvoicesListRequest";
+export { type ListInvoicesRequest } from "./ListInvoicesRequest";
export { type CreateInvoiceRequest } from "./CreateInvoiceRequest";
export { type SearchInvoicesRequest } from "./SearchInvoicesRequest";
-export { type InvoicesGetRequest } from "./InvoicesGetRequest";
+export { type GetInvoicesRequest } from "./GetInvoicesRequest";
export { type UpdateInvoiceRequest } from "./UpdateInvoiceRequest";
-export { type InvoicesDeleteRequest } from "./InvoicesDeleteRequest";
+export { type DeleteInvoicesRequest } from "./DeleteInvoicesRequest";
export { type CreateInvoiceAttachmentRequest } from "./CreateInvoiceAttachmentRequest";
export { type DeleteInvoiceAttachmentRequest } from "./DeleteInvoiceAttachmentRequest";
export { type CancelInvoiceRequest } from "./CancelInvoiceRequest";
diff --git a/src/api/resources/labor/client/Client.ts b/src/api/resources/labor/client/Client.ts
index aa7902632..ea97a13ca 100644
--- a/src/api/resources/labor/client/Client.ts
+++ b/src/api/resources/labor/client/Client.ts
@@ -17,7 +17,7 @@ export declare namespace Labor {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -29,7 +29,7 @@ export declare namespace Labor {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
diff --git a/src/api/resources/labor/resources/breakTypes/client/Client.ts b/src/api/resources/labor/resources/breakTypes/client/Client.ts
index c22c48db2..2a56b3c8b 100644
--- a/src/api/resources/labor/resources/breakTypes/client/Client.ts
+++ b/src/api/resources/labor/resources/breakTypes/client/Client.ts
@@ -16,7 +16,7 @@ export declare namespace BreakTypes {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -28,7 +28,7 @@ export declare namespace BreakTypes {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -40,17 +40,17 @@ export class BreakTypes {
/**
* Returns a paginated list of `BreakType` instances for a business.
*
- * @param {Square.labor.BreakTypesListRequest} request
+ * @param {Square.labor.ListBreakTypesRequest} request
* @param {BreakTypes.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
* await client.labor.breakTypes.list()
*/
public async list(
- request: Square.labor.BreakTypesListRequest = {},
+ request: Square.labor.ListBreakTypesRequest = {},
requestOptions?: BreakTypes.RequestOptions,
): Promise> {
- const list = async (request: Square.labor.BreakTypesListRequest): Promise => {
+ const list = async (request: Square.labor.ListBreakTypesRequest): Promise => {
const { locationId, limit, cursor } = request;
const _queryParams: Record = {};
if (locationId !== undefined) {
@@ -72,11 +72,11 @@ export class BreakTypes {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -171,11 +171,11 @@ export class BreakTypes {
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -225,7 +225,7 @@ export class BreakTypes {
/**
* Returns a single `BreakType` specified by `id`.
*
- * @param {Square.labor.BreakTypesGetRequest} request
+ * @param {Square.labor.GetBreakTypesRequest} request
* @param {BreakTypes.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -234,7 +234,7 @@ export class BreakTypes {
* })
*/
public async get(
- request: Square.labor.BreakTypesGetRequest,
+ request: Square.labor.GetBreakTypesRequest,
requestOptions?: BreakTypes.RequestOptions,
): Promise {
const { id } = request;
@@ -248,11 +248,11 @@ export class BreakTypes {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -328,11 +328,11 @@ export class BreakTypes {
method: "PUT",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -384,7 +384,7 @@ export class BreakTypes {
*
* A `BreakType` can be deleted even if it is referenced from a `Shift`.
*
- * @param {Square.labor.BreakTypesDeleteRequest} request
+ * @param {Square.labor.DeleteBreakTypesRequest} request
* @param {BreakTypes.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -393,7 +393,7 @@ export class BreakTypes {
* })
*/
public async delete(
- request: Square.labor.BreakTypesDeleteRequest,
+ request: Square.labor.DeleteBreakTypesRequest,
requestOptions?: BreakTypes.RequestOptions,
): Promise {
const { id } = request;
@@ -407,11 +407,11 @@ export class BreakTypes {
method: "DELETE",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
diff --git a/src/api/resources/labor/resources/breakTypes/client/requests/BreakTypesDeleteRequest.ts b/src/api/resources/labor/resources/breakTypes/client/requests/DeleteBreakTypesRequest.ts
similarity index 83%
rename from src/api/resources/labor/resources/breakTypes/client/requests/BreakTypesDeleteRequest.ts
rename to src/api/resources/labor/resources/breakTypes/client/requests/DeleteBreakTypesRequest.ts
index d2f8ad72c..43a446e81 100644
--- a/src/api/resources/labor/resources/breakTypes/client/requests/BreakTypesDeleteRequest.ts
+++ b/src/api/resources/labor/resources/breakTypes/client/requests/DeleteBreakTypesRequest.ts
@@ -8,7 +8,7 @@
* id: "id"
* }
*/
-export interface BreakTypesDeleteRequest {
+export interface DeleteBreakTypesRequest {
/**
* The UUID for the `BreakType` being deleted.
*/
diff --git a/src/api/resources/labor/resources/breakTypes/client/requests/BreakTypesGetRequest.ts b/src/api/resources/labor/resources/breakTypes/client/requests/GetBreakTypesRequest.ts
similarity index 84%
rename from src/api/resources/labor/resources/breakTypes/client/requests/BreakTypesGetRequest.ts
rename to src/api/resources/labor/resources/breakTypes/client/requests/GetBreakTypesRequest.ts
index 0099e7731..b3151b750 100644
--- a/src/api/resources/labor/resources/breakTypes/client/requests/BreakTypesGetRequest.ts
+++ b/src/api/resources/labor/resources/breakTypes/client/requests/GetBreakTypesRequest.ts
@@ -8,7 +8,7 @@
* id: "id"
* }
*/
-export interface BreakTypesGetRequest {
+export interface GetBreakTypesRequest {
/**
* The UUID for the `BreakType` being retrieved.
*/
diff --git a/src/api/resources/labor/resources/breakTypes/client/requests/BreakTypesListRequest.ts b/src/api/resources/labor/resources/breakTypes/client/requests/ListBreakTypesRequest.ts
similarity index 93%
rename from src/api/resources/labor/resources/breakTypes/client/requests/BreakTypesListRequest.ts
rename to src/api/resources/labor/resources/breakTypes/client/requests/ListBreakTypesRequest.ts
index b6f89a58e..8786dd752 100644
--- a/src/api/resources/labor/resources/breakTypes/client/requests/BreakTypesListRequest.ts
+++ b/src/api/resources/labor/resources/breakTypes/client/requests/ListBreakTypesRequest.ts
@@ -6,7 +6,7 @@
* @example
* {}
*/
-export interface BreakTypesListRequest {
+export interface ListBreakTypesRequest {
/**
* Filter the returned `BreakType` results to only those that are associated with the
* specified location.
diff --git a/src/api/resources/labor/resources/breakTypes/client/requests/index.ts b/src/api/resources/labor/resources/breakTypes/client/requests/index.ts
index 494b7cccf..12addd0f2 100644
--- a/src/api/resources/labor/resources/breakTypes/client/requests/index.ts
+++ b/src/api/resources/labor/resources/breakTypes/client/requests/index.ts
@@ -1,5 +1,5 @@
-export { type BreakTypesListRequest } from "./BreakTypesListRequest";
+export { type ListBreakTypesRequest } from "./ListBreakTypesRequest";
export { type CreateBreakTypeRequest } from "./CreateBreakTypeRequest";
-export { type BreakTypesGetRequest } from "./BreakTypesGetRequest";
+export { type GetBreakTypesRequest } from "./GetBreakTypesRequest";
export { type UpdateBreakTypeRequest } from "./UpdateBreakTypeRequest";
-export { type BreakTypesDeleteRequest } from "./BreakTypesDeleteRequest";
+export { type DeleteBreakTypesRequest } from "./DeleteBreakTypesRequest";
diff --git a/src/api/resources/labor/resources/employeeWages/client/Client.ts b/src/api/resources/labor/resources/employeeWages/client/Client.ts
index 30fe89bf4..deaef32a8 100644
--- a/src/api/resources/labor/resources/employeeWages/client/Client.ts
+++ b/src/api/resources/labor/resources/employeeWages/client/Client.ts
@@ -16,7 +16,7 @@ export declare namespace EmployeeWages {
baseUrl?: core.Supplier;
token?: core.Supplier;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
fetcher?: core.FetchFunction;
}
@@ -28,7 +28,7 @@ export declare namespace EmployeeWages {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Square-Version header */
- version?: "2025-01-23";
+ version?: "2025-02-20";
/** Additional headers to include in the request. */
headers?: Record;
}
@@ -40,18 +40,18 @@ export class EmployeeWages {
/**
* Returns a paginated list of `EmployeeWage` instances for a business.
*
- * @param {Square.labor.EmployeeWagesListRequest} request
+ * @param {Square.labor.ListEmployeeWagesRequest} request
* @param {EmployeeWages.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
* await client.labor.employeeWages.list()
*/
public async list(
- request: Square.labor.EmployeeWagesListRequest = {},
+ request: Square.labor.ListEmployeeWagesRequest = {},
requestOptions?: EmployeeWages.RequestOptions,
): Promise> {
const list = async (
- request: Square.labor.EmployeeWagesListRequest,
+ request: Square.labor.ListEmployeeWagesRequest,
): Promise => {
const { employeeId, limit, cursor } = request;
const _queryParams: Record = {};
@@ -74,11 +74,11 @@ export class EmployeeWages {
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
- "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-02-20",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "square",
- "X-Fern-SDK-Version": "40.0.0",
- "User-Agent": "square/40.0.0",
+ "X-Fern-SDK-Version": "41.0.0",
+ "User-Agent": "square/41.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
@@ -132,7 +132,7 @@ export class EmployeeWages {
/**
* Returns a single `EmployeeWage` specified by `id`.
*
- * @param {Square.labor.EmployeeWagesGetRequest} request
+ * @param {Square.labor.GetEmployeeWagesRequest} request
* @param {EmployeeWages.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
@@ -141,7 +141,7 @@ export class EmployeeWages {
* })
*/
public async get(
- request: Square.labor.EmployeeWagesGetRequest,
+ request: Square.labor.GetEmployeeWagesRequest,
requestOptions?: EmployeeWages.RequestOptions,
): Promise