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 { const { id } = request; @@ -155,11 +155,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, diff --git a/src/api/resources/labor/resources/employeeWages/client/requests/EmployeeWagesGetRequest.ts b/src/api/resources/labor/resources/employeeWages/client/requests/GetEmployeeWagesRequest.ts similarity index 83% rename from src/api/resources/labor/resources/employeeWages/client/requests/EmployeeWagesGetRequest.ts rename to src/api/resources/labor/resources/employeeWages/client/requests/GetEmployeeWagesRequest.ts index 61b3cbe5e..9e73a6b6a 100644 --- a/src/api/resources/labor/resources/employeeWages/client/requests/EmployeeWagesGetRequest.ts +++ b/src/api/resources/labor/resources/employeeWages/client/requests/GetEmployeeWagesRequest.ts @@ -8,7 +8,7 @@ * id: "id" * } */ -export interface EmployeeWagesGetRequest { +export interface GetEmployeeWagesRequest { /** * The UUID for the `EmployeeWage` being retrieved. */ diff --git a/src/api/resources/labor/resources/employeeWages/client/requests/EmployeeWagesListRequest.ts b/src/api/resources/labor/resources/employeeWages/client/requests/ListEmployeeWagesRequest.ts similarity index 92% rename from src/api/resources/labor/resources/employeeWages/client/requests/EmployeeWagesListRequest.ts rename to src/api/resources/labor/resources/employeeWages/client/requests/ListEmployeeWagesRequest.ts index 540ebd20e..cf1e2232d 100644 --- a/src/api/resources/labor/resources/employeeWages/client/requests/EmployeeWagesListRequest.ts +++ b/src/api/resources/labor/resources/employeeWages/client/requests/ListEmployeeWagesRequest.ts @@ -6,7 +6,7 @@ * @example * {} */ -export interface EmployeeWagesListRequest { +export interface ListEmployeeWagesRequest { /** * Filter the returned wages to only those that are associated with the specified employee. */ diff --git a/src/api/resources/labor/resources/employeeWages/client/requests/index.ts b/src/api/resources/labor/resources/employeeWages/client/requests/index.ts index ec6a50af7..eb9a9e67e 100644 --- a/src/api/resources/labor/resources/employeeWages/client/requests/index.ts +++ b/src/api/resources/labor/resources/employeeWages/client/requests/index.ts @@ -1,2 +1,2 @@ -export { type EmployeeWagesListRequest } from "./EmployeeWagesListRequest"; -export { type EmployeeWagesGetRequest } from "./EmployeeWagesGetRequest"; +export { type ListEmployeeWagesRequest } from "./ListEmployeeWagesRequest"; +export { type GetEmployeeWagesRequest } from "./GetEmployeeWagesRequest"; diff --git a/src/api/resources/labor/resources/shifts/client/Client.ts b/src/api/resources/labor/resources/shifts/client/Client.ts index 6437f2c42..71634e939 100644 --- a/src/api/resources/labor/resources/shifts/client/Client.ts +++ b/src/api/resources/labor/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; } @@ -105,11 +105,11 @@ export class Shifts { 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, @@ -206,11 +206,11 @@ export class Shifts { 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, @@ -260,7 +260,7 @@ export class Shifts { /** * Returns a single `Shift` specified by `id`. * - * @param {Square.labor.ShiftsGetRequest} request + * @param {Square.labor.GetShiftsRequest} request * @param {Shifts.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -269,7 +269,7 @@ export class Shifts { * }) */ public async get( - request: Square.labor.ShiftsGetRequest, + request: Square.labor.GetShiftsRequest, requestOptions?: Shifts.RequestOptions, ): Promise { const { id } = request; @@ -283,11 +283,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, @@ -390,11 +390,11 @@ export class Shifts { 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, @@ -444,7 +444,7 @@ export class Shifts { /** * Deletes a `Shift`. * - * @param {Square.labor.ShiftsDeleteRequest} request + * @param {Square.labor.DeleteShiftsRequest} request * @param {Shifts.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -453,7 +453,7 @@ export class Shifts { * }) */ public async delete( - request: Square.labor.ShiftsDeleteRequest, + request: Square.labor.DeleteShiftsRequest, requestOptions?: Shifts.RequestOptions, ): Promise { const { id } = request; @@ -467,11 +467,11 @@ export class Shifts { 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/shifts/client/requests/ShiftsDeleteRequest.ts b/src/api/resources/labor/resources/shifts/client/requests/DeleteShiftsRequest.ts similarity index 84% rename from src/api/resources/labor/resources/shifts/client/requests/ShiftsDeleteRequest.ts rename to src/api/resources/labor/resources/shifts/client/requests/DeleteShiftsRequest.ts index ee98ee53e..9a05ba1f5 100644 --- a/src/api/resources/labor/resources/shifts/client/requests/ShiftsDeleteRequest.ts +++ b/src/api/resources/labor/resources/shifts/client/requests/DeleteShiftsRequest.ts @@ -8,7 +8,7 @@ * id: "id" * } */ -export interface ShiftsDeleteRequest { +export interface DeleteShiftsRequest { /** * The UUID for the `Shift` being deleted. */ diff --git a/src/api/resources/labor/resources/shifts/client/requests/ShiftsGetRequest.ts b/src/api/resources/labor/resources/shifts/client/requests/GetShiftsRequest.ts similarity index 85% rename from src/api/resources/labor/resources/shifts/client/requests/ShiftsGetRequest.ts rename to src/api/resources/labor/resources/shifts/client/requests/GetShiftsRequest.ts index f81d8a17b..eca608527 100644 --- a/src/api/resources/labor/resources/shifts/client/requests/ShiftsGetRequest.ts +++ b/src/api/resources/labor/resources/shifts/client/requests/GetShiftsRequest.ts @@ -8,7 +8,7 @@ * id: "id" * } */ -export interface ShiftsGetRequest { +export interface GetShiftsRequest { /** * The UUID for the `Shift` being retrieved. */ diff --git a/src/api/resources/labor/resources/shifts/client/requests/index.ts b/src/api/resources/labor/resources/shifts/client/requests/index.ts index a55928072..49df3318e 100644 --- a/src/api/resources/labor/resources/shifts/client/requests/index.ts +++ b/src/api/resources/labor/resources/shifts/client/requests/index.ts @@ -1,5 +1,5 @@ export { type CreateShiftRequest } from "./CreateShiftRequest"; export { type SearchShiftsRequest } from "./SearchShiftsRequest"; -export { type ShiftsGetRequest } from "./ShiftsGetRequest"; +export { type GetShiftsRequest } from "./GetShiftsRequest"; export { type UpdateShiftRequest } from "./UpdateShiftRequest"; -export { type ShiftsDeleteRequest } from "./ShiftsDeleteRequest"; +export { type DeleteShiftsRequest } from "./DeleteShiftsRequest"; diff --git a/src/api/resources/labor/resources/teamMemberWages/client/Client.ts b/src/api/resources/labor/resources/teamMemberWages/client/Client.ts index c02712da6..3b598a466 100644 --- a/src/api/resources/labor/resources/teamMemberWages/client/Client.ts +++ b/src/api/resources/labor/resources/teamMemberWages/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace TeamMemberWages { 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 TeamMemberWages { /** 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 TeamMemberWages { /** * Returns a paginated list of `TeamMemberWage` instances for a business. * - * @param {Square.labor.TeamMemberWagesListRequest} request + * @param {Square.labor.ListTeamMemberWagesRequest} request * @param {TeamMemberWages.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.labor.teamMemberWages.list() */ public async list( - request: Square.labor.TeamMemberWagesListRequest = {}, + request: Square.labor.ListTeamMemberWagesRequest = {}, requestOptions?: TeamMemberWages.RequestOptions, ): Promise> { const list = async ( - request: Square.labor.TeamMemberWagesListRequest, + request: Square.labor.ListTeamMemberWagesRequest, ): Promise => { const { teamMemberId, limit, cursor } = request; const _queryParams: Record = {}; @@ -74,11 +74,11 @@ export class TeamMemberWages { 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, @@ -134,7 +134,7 @@ export class TeamMemberWages { /** * Returns a single `TeamMemberWage` specified by `id`. * - * @param {Square.labor.TeamMemberWagesGetRequest} request + * @param {Square.labor.GetTeamMemberWagesRequest} request * @param {TeamMemberWages.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -143,7 +143,7 @@ export class TeamMemberWages { * }) */ public async get( - request: Square.labor.TeamMemberWagesGetRequest, + request: Square.labor.GetTeamMemberWagesRequest, requestOptions?: TeamMemberWages.RequestOptions, ): Promise { const { id } = request; @@ -157,11 +157,11 @@ export class TeamMemberWages { 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/labor/resources/teamMemberWages/client/requests/TeamMemberWagesGetRequest.ts b/src/api/resources/labor/resources/teamMemberWages/client/requests/GetTeamMemberWagesRequest.ts similarity index 83% rename from src/api/resources/labor/resources/teamMemberWages/client/requests/TeamMemberWagesGetRequest.ts rename to src/api/resources/labor/resources/teamMemberWages/client/requests/GetTeamMemberWagesRequest.ts index ca36db8fd..6e5e5f0ce 100644 --- a/src/api/resources/labor/resources/teamMemberWages/client/requests/TeamMemberWagesGetRequest.ts +++ b/src/api/resources/labor/resources/teamMemberWages/client/requests/GetTeamMemberWagesRequest.ts @@ -8,7 +8,7 @@ * id: "id" * } */ -export interface TeamMemberWagesGetRequest { +export interface GetTeamMemberWagesRequest { /** * The UUID for the `TeamMemberWage` being retrieved. */ diff --git a/src/api/resources/labor/resources/teamMemberWages/client/requests/TeamMemberWagesListRequest.ts b/src/api/resources/labor/resources/teamMemberWages/client/requests/ListTeamMemberWagesRequest.ts similarity index 92% rename from src/api/resources/labor/resources/teamMemberWages/client/requests/TeamMemberWagesListRequest.ts rename to src/api/resources/labor/resources/teamMemberWages/client/requests/ListTeamMemberWagesRequest.ts index 28adc36d6..df32649b6 100644 --- a/src/api/resources/labor/resources/teamMemberWages/client/requests/TeamMemberWagesListRequest.ts +++ b/src/api/resources/labor/resources/teamMemberWages/client/requests/ListTeamMemberWagesRequest.ts @@ -6,7 +6,7 @@ * @example * {} */ -export interface TeamMemberWagesListRequest { +export interface ListTeamMemberWagesRequest { /** * Filter the returned wages to only those that are associated with the * specified team member. diff --git a/src/api/resources/labor/resources/teamMemberWages/client/requests/index.ts b/src/api/resources/labor/resources/teamMemberWages/client/requests/index.ts index 110fe587e..97313ff47 100644 --- a/src/api/resources/labor/resources/teamMemberWages/client/requests/index.ts +++ b/src/api/resources/labor/resources/teamMemberWages/client/requests/index.ts @@ -1,2 +1,2 @@ -export { type TeamMemberWagesListRequest } from "./TeamMemberWagesListRequest"; -export { type TeamMemberWagesGetRequest } from "./TeamMemberWagesGetRequest"; +export { type ListTeamMemberWagesRequest } from "./ListTeamMemberWagesRequest"; +export { type GetTeamMemberWagesRequest } from "./GetTeamMemberWagesRequest"; diff --git a/src/api/resources/labor/resources/workweekConfigs/client/Client.ts b/src/api/resources/labor/resources/workweekConfigs/client/Client.ts index a8f35748e..226403e96 100644 --- a/src/api/resources/labor/resources/workweekConfigs/client/Client.ts +++ b/src/api/resources/labor/resources/workweekConfigs/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace WorkweekConfigs { 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 WorkweekConfigs { /** 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 WorkweekConfigs { /** * Returns a list of `WorkweekConfig` instances for a business. * - * @param {Square.labor.WorkweekConfigsListRequest} request + * @param {Square.labor.ListWorkweekConfigsRequest} request * @param {WorkweekConfigs.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.labor.workweekConfigs.list() */ public async list( - request: Square.labor.WorkweekConfigsListRequest = {}, + request: Square.labor.ListWorkweekConfigsRequest = {}, requestOptions?: WorkweekConfigs.RequestOptions, ): Promise> { const list = async ( - request: Square.labor.WorkweekConfigsListRequest, + request: Square.labor.ListWorkweekConfigsRequest, ): Promise => { const { limit, cursor } = request; const _queryParams: Record = {}; @@ -71,11 +71,11 @@ export class WorkweekConfigs { 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, @@ -159,11 +159,11 @@ export class WorkweekConfigs { 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/labor/resources/workweekConfigs/client/requests/WorkweekConfigsListRequest.ts b/src/api/resources/labor/resources/workweekConfigs/client/requests/ListWorkweekConfigsRequest.ts similarity index 88% rename from src/api/resources/labor/resources/workweekConfigs/client/requests/WorkweekConfigsListRequest.ts rename to src/api/resources/labor/resources/workweekConfigs/client/requests/ListWorkweekConfigsRequest.ts index 1be6c5828..606f88dfa 100644 --- a/src/api/resources/labor/resources/workweekConfigs/client/requests/WorkweekConfigsListRequest.ts +++ b/src/api/resources/labor/resources/workweekConfigs/client/requests/ListWorkweekConfigsRequest.ts @@ -6,7 +6,7 @@ * @example * {} */ -export interface WorkweekConfigsListRequest { +export interface ListWorkweekConfigsRequest { /** * The maximum number of `WorkweekConfigs` results to return per page. */ diff --git a/src/api/resources/labor/resources/workweekConfigs/client/requests/index.ts b/src/api/resources/labor/resources/workweekConfigs/client/requests/index.ts index 0e7c19353..04fe60b23 100644 --- a/src/api/resources/labor/resources/workweekConfigs/client/requests/index.ts +++ b/src/api/resources/labor/resources/workweekConfigs/client/requests/index.ts @@ -1,2 +1,2 @@ -export { type WorkweekConfigsListRequest } from "./WorkweekConfigsListRequest"; +export { type ListWorkweekConfigsRequest } from "./ListWorkweekConfigsRequest"; export { type UpdateWorkweekConfigRequest } from "./UpdateWorkweekConfigRequest"; diff --git a/src/api/resources/locations/client/Client.ts b/src/api/resources/locations/client/Client.ts index 215c43fd6..abf51148f 100644 --- a/src/api/resources/locations/client/Client.ts +++ b/src/api/resources/locations/client/Client.ts @@ -19,7 +19,7 @@ export declare namespace Locations { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-01-23"; + version?: "2025-02-20"; fetcher?: core.FetchFunction; } @@ -31,7 +31,7 @@ export declare namespace Locations { /** 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; } @@ -76,11 +76,11 @@ export class Locations { 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, @@ -163,11 +163,11 @@ export class Locations { 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, @@ -218,7 +218,7 @@ export class Locations { * Retrieves details of a single location. Specify "main" * as the location ID to retrieve details of the [main location](https://developer.squareup.com/docs/locations-api#about-the-main-location). * - * @param {Square.LocationsGetRequest} request + * @param {Square.GetLocationsRequest} request * @param {Locations.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -227,7 +227,7 @@ export class Locations { * }) */ public async get( - request: Square.LocationsGetRequest, + request: Square.GetLocationsRequest, requestOptions?: Locations.RequestOptions, ): Promise { const { locationId } = request; @@ -241,11 +241,11 @@ export class Locations { 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, @@ -332,11 +332,11 @@ export class Locations { 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, @@ -489,11 +489,11 @@ export class Locations { 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/client/requests/LocationsGetRequest.ts b/src/api/resources/locations/client/requests/GetLocationsRequest.ts similarity index 88% rename from src/api/resources/locations/client/requests/LocationsGetRequest.ts rename to src/api/resources/locations/client/requests/GetLocationsRequest.ts index 8b7e59a51..06f3a0e38 100644 --- a/src/api/resources/locations/client/requests/LocationsGetRequest.ts +++ b/src/api/resources/locations/client/requests/GetLocationsRequest.ts @@ -8,7 +8,7 @@ * locationId: "location_id" * } */ -export interface LocationsGetRequest { +export interface GetLocationsRequest { /** * The ID of the location to retrieve. Specify the string * "main" to return the main location. diff --git a/src/api/resources/locations/client/requests/index.ts b/src/api/resources/locations/client/requests/index.ts index c23c0b004..4b7f7c91c 100644 --- a/src/api/resources/locations/client/requests/index.ts +++ b/src/api/resources/locations/client/requests/index.ts @@ -1,4 +1,4 @@ export { type CreateLocationRequest } from "./CreateLocationRequest"; -export { type LocationsGetRequest } from "./LocationsGetRequest"; +export { type GetLocationsRequest } from "./GetLocationsRequest"; export { type UpdateLocationRequest } from "./UpdateLocationRequest"; export { type CreateCheckoutRequest } from "./CreateCheckoutRequest"; diff --git a/src/api/resources/locations/resources/customAttributeDefinitions/client/Client.ts b/src/api/resources/locations/resources/customAttributeDefinitions/client/Client.ts index b0b9d8d2a..c1f2b9cc1 100644 --- a/src/api/resources/locations/resources/customAttributeDefinitions/client/Client.ts +++ b/src/api/resources/locations/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 { * that are visible to the requesting application, including those that are created by other * applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. * - * @param {Square.locations.CustomAttributeDefinitionsListRequest} request + * @param {Square.locations.ListCustomAttributeDefinitionsRequest} request * @param {CustomAttributeDefinitions.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.locations.customAttributeDefinitions.list() */ public async list( - request: Square.locations.CustomAttributeDefinitionsListRequest = {}, + request: Square.locations.ListCustomAttributeDefinitionsRequest = {}, requestOptions?: CustomAttributeDefinitions.RequestOptions, ): Promise> { const list = async ( - request: Square.locations.CustomAttributeDefinitionsListRequest, + request: Square.locations.ListCustomAttributeDefinitionsRequest, ): Promise => { const { visibilityFilter, limit, cursor } = request; const _queryParams: Record = {}; @@ -80,11 +80,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, @@ -237,7 +237,7 @@ export class CustomAttributeDefinitions { * To retrieve a custom attribute definition created by another application, the `visibility` * setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. * - * @param {Square.locations.CustomAttributeDefinitionsGetRequest} request + * @param {Square.locations.GetCustomAttributeDefinitionsRequest} request * @param {CustomAttributeDefinitions.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -246,7 +246,7 @@ export class CustomAttributeDefinitions { * }) */ public async get( - request: Square.locations.CustomAttributeDefinitionsGetRequest, + request: Square.locations.GetCustomAttributeDefinitionsRequest, requestOptions?: CustomAttributeDefinitions.RequestOptions, ): Promise { const { key, version } = request; @@ -265,11 +265,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, @@ -348,11 +348,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, @@ -407,7 +407,7 @@ export class CustomAttributeDefinitions { * all locations. * Only the definition owner can delete a custom attribute definition. * - * @param {Square.locations.CustomAttributeDefinitionsDeleteRequest} request + * @param {Square.locations.DeleteCustomAttributeDefinitionsRequest} request * @param {CustomAttributeDefinitions.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -416,7 +416,7 @@ export class CustomAttributeDefinitions { * }) */ public async delete( - request: Square.locations.CustomAttributeDefinitionsDeleteRequest, + request: Square.locations.DeleteCustomAttributeDefinitionsRequest, requestOptions?: CustomAttributeDefinitions.RequestOptions, ): Promise { const { key } = request; @@ -430,11 +430,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/bookings/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsDeleteRequest.ts b/src/api/resources/locations/resources/customAttributeDefinitions/client/requests/DeleteCustomAttributeDefinitionsRequest.ts similarity index 79% rename from src/api/resources/bookings/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsDeleteRequest.ts rename to src/api/resources/locations/resources/customAttributeDefinitions/client/requests/DeleteCustomAttributeDefinitionsRequest.ts index 860f57efe..6a1b34cf1 100644 --- a/src/api/resources/bookings/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsDeleteRequest.ts +++ b/src/api/resources/locations/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/merchants/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsGetRequest.ts b/src/api/resources/locations/resources/customAttributeDefinitions/client/requests/GetCustomAttributeDefinitionsRequest.ts similarity index 93% rename from src/api/resources/merchants/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsGetRequest.ts rename to src/api/resources/locations/resources/customAttributeDefinitions/client/requests/GetCustomAttributeDefinitionsRequest.ts index 4fe9ca10a..9b086bfb6 100644 --- a/src/api/resources/merchants/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsGetRequest.ts +++ b/src/api/resources/locations/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/locations/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsListRequest.ts b/src/api/resources/locations/resources/customAttributeDefinitions/client/requests/ListCustomAttributeDefinitionsRequest.ts similarity index 94% rename from src/api/resources/locations/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsListRequest.ts rename to src/api/resources/locations/resources/customAttributeDefinitions/client/requests/ListCustomAttributeDefinitionsRequest.ts index 1f6083094..313ea4854 100644 --- a/src/api/resources/locations/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsListRequest.ts +++ b/src/api/resources/locations/resources/customAttributeDefinitions/client/requests/ListCustomAttributeDefinitionsRequest.ts @@ -8,7 +8,7 @@ import * as Square from "../../../../../../index"; * @example * {} */ -export interface CustomAttributeDefinitionsListRequest { +export interface ListCustomAttributeDefinitionsRequest { /** * Filters the `CustomAttributeDefinition` results by their `visibility` values. */ diff --git a/src/api/resources/locations/resources/customAttributeDefinitions/client/requests/index.ts b/src/api/resources/locations/resources/customAttributeDefinitions/client/requests/index.ts index 107727fcf..04a383e3e 100644 --- a/src/api/resources/locations/resources/customAttributeDefinitions/client/requests/index.ts +++ b/src/api/resources/locations/resources/customAttributeDefinitions/client/requests/index.ts @@ -1,5 +1,5 @@ -export { type CustomAttributeDefinitionsListRequest } from "./CustomAttributeDefinitionsListRequest"; +export { type ListCustomAttributeDefinitionsRequest } from "./ListCustomAttributeDefinitionsRequest"; export { type CreateLocationCustomAttributeDefinitionRequest } from "./CreateLocationCustomAttributeDefinitionRequest"; -export { type CustomAttributeDefinitionsGetRequest } from "./CustomAttributeDefinitionsGetRequest"; +export { type GetCustomAttributeDefinitionsRequest } from "./GetCustomAttributeDefinitionsRequest"; export { type UpdateLocationCustomAttributeDefinitionRequest } from "./UpdateLocationCustomAttributeDefinitionRequest"; -export { type CustomAttributeDefinitionsDeleteRequest } from "./CustomAttributeDefinitionsDeleteRequest"; +export { type DeleteCustomAttributeDefinitionsRequest } from "./DeleteCustomAttributeDefinitionsRequest"; diff --git a/src/api/resources/locations/resources/customAttributes/client/Client.ts b/src/api/resources/locations/resources/customAttributes/client/Client.ts index de9d83cfc..b4fd82ce3 100644 --- a/src/api/resources/locations/resources/customAttributes/client/Client.ts +++ b/src/api/resources/locations/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; } @@ -74,11 +74,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, @@ -183,11 +183,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, @@ -244,7 +244,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.locations.CustomAttributesListRequest} request + * @param {Square.locations.ListCustomAttributesRequest} request * @param {CustomAttributes.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -253,11 +253,11 @@ export class CustomAttributes { * }) */ public async list( - request: Square.locations.CustomAttributesListRequest, + request: Square.locations.ListCustomAttributesRequest, requestOptions?: CustomAttributes.RequestOptions, ): Promise> { const list = async ( - request: Square.locations.CustomAttributesListRequest, + request: Square.locations.ListCustomAttributesRequest, ): Promise => { const { locationId, visibilityFilter, limit, cursor, withDefinitions } = request; const _queryParams: Record = {}; @@ -286,11 +286,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, @@ -350,7 +350,7 @@ export class CustomAttributes { * To retrieve a custom attribute owned by another application, the `visibility` setting must be * `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. * - * @param {Square.locations.CustomAttributesGetRequest} request + * @param {Square.locations.GetCustomAttributesRequest} request * @param {CustomAttributes.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -360,7 +360,7 @@ export class CustomAttributes { * }) */ public async get( - request: Square.locations.CustomAttributesGetRequest, + request: Square.locations.GetCustomAttributesRequest, requestOptions?: CustomAttributes.RequestOptions, ): Promise { const { locationId, key, withDefinition, version } = request; @@ -383,11 +383,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, @@ -468,11 +468,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, @@ -526,7 +526,7 @@ export class CustomAttributes { * To delete a custom attribute owned by another application, the `visibility` setting must be * `VISIBILITY_READ_WRITE_VALUES`. * - * @param {Square.locations.CustomAttributesDeleteRequest} request + * @param {Square.locations.DeleteCustomAttributesRequest} request * @param {CustomAttributes.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -536,7 +536,7 @@ export class CustomAttributes { * }) */ public async delete( - request: Square.locations.CustomAttributesDeleteRequest, + request: Square.locations.DeleteCustomAttributesRequest, requestOptions?: CustomAttributes.RequestOptions, ): Promise { const { locationId, key } = request; @@ -550,11 +550,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/locations/resources/customAttributes/client/requests/CustomAttributesDeleteRequest.ts b/src/api/resources/locations/resources/customAttributes/client/requests/DeleteCustomAttributesRequest.ts similarity index 91% rename from src/api/resources/locations/resources/customAttributes/client/requests/CustomAttributesDeleteRequest.ts rename to src/api/resources/locations/resources/customAttributes/client/requests/DeleteCustomAttributesRequest.ts index 1d0e7bf77..466967e90 100644 --- a/src/api/resources/locations/resources/customAttributes/client/requests/CustomAttributesDeleteRequest.ts +++ b/src/api/resources/locations/resources/customAttributes/client/requests/DeleteCustomAttributesRequest.ts @@ -9,7 +9,7 @@ * key: "key" * } */ -export interface CustomAttributesDeleteRequest { +export interface DeleteCustomAttributesRequest { /** * The ID of the target [location](entity:Location). */ diff --git a/src/api/resources/locations/resources/customAttributes/client/requests/CustomAttributesGetRequest.ts b/src/api/resources/locations/resources/customAttributes/client/requests/GetCustomAttributesRequest.ts similarity index 96% rename from src/api/resources/locations/resources/customAttributes/client/requests/CustomAttributesGetRequest.ts rename to src/api/resources/locations/resources/customAttributes/client/requests/GetCustomAttributesRequest.ts index 6947693b8..da1c7c505 100644 --- a/src/api/resources/locations/resources/customAttributes/client/requests/CustomAttributesGetRequest.ts +++ b/src/api/resources/locations/resources/customAttributes/client/requests/GetCustomAttributesRequest.ts @@ -9,7 +9,7 @@ * key: "key" * } */ -export interface CustomAttributesGetRequest { +export interface GetCustomAttributesRequest { /** * The ID of the target [location](entity:Location). */ diff --git a/src/api/resources/locations/resources/customAttributes/client/requests/CustomAttributesListRequest.ts b/src/api/resources/locations/resources/customAttributes/client/requests/ListCustomAttributesRequest.ts similarity index 97% rename from src/api/resources/locations/resources/customAttributes/client/requests/CustomAttributesListRequest.ts rename to src/api/resources/locations/resources/customAttributes/client/requests/ListCustomAttributesRequest.ts index fd3958b1b..f573b8c2e 100644 --- a/src/api/resources/locations/resources/customAttributes/client/requests/CustomAttributesListRequest.ts +++ b/src/api/resources/locations/resources/customAttributes/client/requests/ListCustomAttributesRequest.ts @@ -10,7 +10,7 @@ import * as Square from "../../../../../../index"; * locationId: "location_id" * } */ -export interface CustomAttributesListRequest { +export interface ListCustomAttributesRequest { /** * The ID of the target [location](entity:Location). */ diff --git a/src/api/resources/locations/resources/customAttributes/client/requests/index.ts b/src/api/resources/locations/resources/customAttributes/client/requests/index.ts index 3684e1fcf..5fa631d1f 100644 --- a/src/api/resources/locations/resources/customAttributes/client/requests/index.ts +++ b/src/api/resources/locations/resources/customAttributes/client/requests/index.ts @@ -1,6 +1,6 @@ export { type BulkDeleteLocationCustomAttributesRequest } from "./BulkDeleteLocationCustomAttributesRequest"; export { type BulkUpsertLocationCustomAttributesRequest } from "./BulkUpsertLocationCustomAttributesRequest"; -export { type CustomAttributesListRequest } from "./CustomAttributesListRequest"; -export { type CustomAttributesGetRequest } from "./CustomAttributesGetRequest"; +export { type ListCustomAttributesRequest } from "./ListCustomAttributesRequest"; +export { type GetCustomAttributesRequest } from "./GetCustomAttributesRequest"; export { type UpsertLocationCustomAttributeRequest } from "./UpsertLocationCustomAttributeRequest"; -export { type CustomAttributesDeleteRequest } from "./CustomAttributesDeleteRequest"; +export { type DeleteCustomAttributesRequest } from "./DeleteCustomAttributesRequest"; diff --git a/src/api/resources/locations/resources/transactions/client/Client.ts b/src/api/resources/locations/resources/transactions/client/Client.ts index d573c4b09..f0be0b3ba 100644 --- a/src/api/resources/locations/resources/transactions/client/Client.ts +++ b/src/api/resources/locations/resources/transactions/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Transactions { 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 Transactions { /** 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,7 +45,7 @@ export class Transactions { * * Max results per [page](https://developer.squareup.com/docs/working-with-apis/pagination): 50 * - * @param {Square.locations.TransactionsListRequest} request + * @param {Square.locations.ListTransactionsRequest} request * @param {Transactions.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -54,7 +54,7 @@ export class Transactions { * }) */ public async list( - request: Square.locations.TransactionsListRequest, + request: Square.locations.ListTransactionsRequest, requestOptions?: Transactions.RequestOptions, ): Promise { const { locationId, beginTime, endTime, sortOrder, cursor } = request; @@ -88,11 +88,11 @@ export class Transactions { 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 Transactions { /** * Retrieves details for a single transaction. * - * @param {Square.locations.TransactionsGetRequest} request + * @param {Square.locations.GetTransactionsRequest} request * @param {Transactions.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -151,7 +151,7 @@ export class Transactions { * }) */ public async get( - request: Square.locations.TransactionsGetRequest, + request: Square.locations.GetTransactionsRequest, requestOptions?: Transactions.RequestOptions, ): Promise { const { locationId, transactionId } = request; @@ -165,11 +165,11 @@ export class Transactions { 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, @@ -222,7 +222,7 @@ export class Transactions { * See [Delayed capture transactions](https://developer.squareup.com/docs/payments/transactions/overview#delayed-capture) * for more information. * - * @param {Square.locations.TransactionsCaptureRequest} request + * @param {Square.locations.CaptureTransactionsRequest} request * @param {Transactions.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -232,7 +232,7 @@ export class Transactions { * }) */ public async capture( - request: Square.locations.TransactionsCaptureRequest, + request: Square.locations.CaptureTransactionsRequest, requestOptions?: Transactions.RequestOptions, ): Promise { const { locationId, transactionId } = request; @@ -246,11 +246,11 @@ export class Transactions { 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, @@ -303,7 +303,7 @@ export class Transactions { * See [Delayed capture transactions](https://developer.squareup.com/docs/payments/transactions/overview#delayed-capture) * for more information. * - * @param {Square.locations.TransactionsVoidRequest} request + * @param {Square.locations.VoidTransactionsRequest} request * @param {Transactions.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -313,7 +313,7 @@ export class Transactions { * }) */ public async void( - request: Square.locations.TransactionsVoidRequest, + request: Square.locations.VoidTransactionsRequest, requestOptions?: Transactions.RequestOptions, ): Promise { const { locationId, transactionId } = request; @@ -327,11 +327,11 @@ export class Transactions { 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/transactions/client/requests/TransactionsCaptureRequest.ts b/src/api/resources/locations/resources/transactions/client/requests/CaptureTransactionsRequest.ts similarity index 86% rename from src/api/resources/locations/resources/transactions/client/requests/TransactionsCaptureRequest.ts rename to src/api/resources/locations/resources/transactions/client/requests/CaptureTransactionsRequest.ts index c62553fd8..cf21b4087 100644 --- a/src/api/resources/locations/resources/transactions/client/requests/TransactionsCaptureRequest.ts +++ b/src/api/resources/locations/resources/transactions/client/requests/CaptureTransactionsRequest.ts @@ -9,7 +9,7 @@ * transactionId: "transaction_id" * } */ -export interface TransactionsCaptureRequest { +export interface CaptureTransactionsRequest { /** * */ diff --git a/src/api/resources/locations/resources/transactions/client/requests/TransactionsGetRequest.ts b/src/api/resources/locations/resources/transactions/client/requests/GetTransactionsRequest.ts similarity index 90% rename from src/api/resources/locations/resources/transactions/client/requests/TransactionsGetRequest.ts rename to src/api/resources/locations/resources/transactions/client/requests/GetTransactionsRequest.ts index a572a42f2..fb2c20d13 100644 --- a/src/api/resources/locations/resources/transactions/client/requests/TransactionsGetRequest.ts +++ b/src/api/resources/locations/resources/transactions/client/requests/GetTransactionsRequest.ts @@ -9,7 +9,7 @@ * transactionId: "transaction_id" * } */ -export interface TransactionsGetRequest { +export interface GetTransactionsRequest { /** * The ID of the transaction's associated location. */ diff --git a/src/api/resources/locations/resources/transactions/client/requests/TransactionsListRequest.ts b/src/api/resources/locations/resources/transactions/client/requests/ListTransactionsRequest.ts similarity index 97% rename from src/api/resources/locations/resources/transactions/client/requests/TransactionsListRequest.ts rename to src/api/resources/locations/resources/transactions/client/requests/ListTransactionsRequest.ts index e613a1bfb..db18e708a 100644 --- a/src/api/resources/locations/resources/transactions/client/requests/TransactionsListRequest.ts +++ b/src/api/resources/locations/resources/transactions/client/requests/ListTransactionsRequest.ts @@ -10,7 +10,7 @@ import * as Square from "../../../../../../index"; * locationId: "location_id" * } */ -export interface TransactionsListRequest { +export interface ListTransactionsRequest { /** * The ID of the location to list transactions for. */ diff --git a/src/api/resources/locations/resources/transactions/client/requests/TransactionsVoidRequest.ts b/src/api/resources/locations/resources/transactions/client/requests/VoidTransactionsRequest.ts similarity index 87% rename from src/api/resources/locations/resources/transactions/client/requests/TransactionsVoidRequest.ts rename to src/api/resources/locations/resources/transactions/client/requests/VoidTransactionsRequest.ts index 4196a49e9..6c73f8655 100644 --- a/src/api/resources/locations/resources/transactions/client/requests/TransactionsVoidRequest.ts +++ b/src/api/resources/locations/resources/transactions/client/requests/VoidTransactionsRequest.ts @@ -9,7 +9,7 @@ * transactionId: "transaction_id" * } */ -export interface TransactionsVoidRequest { +export interface VoidTransactionsRequest { /** * */ diff --git a/src/api/resources/locations/resources/transactions/client/requests/index.ts b/src/api/resources/locations/resources/transactions/client/requests/index.ts index 1449259d8..71ae1bc2c 100644 --- a/src/api/resources/locations/resources/transactions/client/requests/index.ts +++ b/src/api/resources/locations/resources/transactions/client/requests/index.ts @@ -1,4 +1,4 @@ -export { type TransactionsListRequest } from "./TransactionsListRequest"; -export { type TransactionsGetRequest } from "./TransactionsGetRequest"; -export { type TransactionsCaptureRequest } from "./TransactionsCaptureRequest"; -export { type TransactionsVoidRequest } from "./TransactionsVoidRequest"; +export { type ListTransactionsRequest } from "./ListTransactionsRequest"; +export { type GetTransactionsRequest } from "./GetTransactionsRequest"; +export { type CaptureTransactionsRequest } from "./CaptureTransactionsRequest"; +export { type VoidTransactionsRequest } from "./VoidTransactionsRequest"; diff --git a/src/api/resources/loyalty/client/Client.ts b/src/api/resources/loyalty/client/Client.ts index 3572ba555..7b8e9f89e 100644 --- a/src/api/resources/loyalty/client/Client.ts +++ b/src/api/resources/loyalty/client/Client.ts @@ -19,7 +19,7 @@ export declare namespace Loyalty { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-01-23"; + version?: "2025-02-20"; fetcher?: core.FetchFunction; } @@ -31,7 +31,7 @@ export declare namespace Loyalty { /** 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; } @@ -95,11 +95,11 @@ export class Loyalty { 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/loyalty/resources/accounts/client/Client.ts b/src/api/resources/loyalty/resources/accounts/client/Client.ts index ae1d7e732..4168c3dbf 100644 --- a/src/api/resources/loyalty/resources/accounts/client/Client.ts +++ b/src/api/resources/loyalty/resources/accounts/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Accounts { 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 Accounts { /** 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,11 +68,11 @@ export class Accounts { 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, @@ -153,11 +153,11 @@ export class Accounts { 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, @@ -207,7 +207,7 @@ export class Accounts { /** * Retrieves a loyalty account. * - * @param {Square.loyalty.AccountsGetRequest} request + * @param {Square.loyalty.GetAccountsRequest} request * @param {Accounts.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -216,7 +216,7 @@ export class Accounts { * }) */ public async get( - request: Square.loyalty.AccountsGetRequest, + request: Square.loyalty.GetAccountsRequest, requestOptions?: Accounts.RequestOptions, ): Promise { const { accountId } = request; @@ -230,11 +230,11 @@ export class Accounts { 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 Accounts { 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, @@ -411,11 +411,11 @@ export class Accounts { 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/loyalty/resources/accounts/client/requests/AccountsGetRequest.ts b/src/api/resources/loyalty/resources/accounts/client/requests/GetAccountsRequest.ts similarity index 87% rename from src/api/resources/loyalty/resources/accounts/client/requests/AccountsGetRequest.ts rename to src/api/resources/loyalty/resources/accounts/client/requests/GetAccountsRequest.ts index a7c912899..1037dbb90 100644 --- a/src/api/resources/loyalty/resources/accounts/client/requests/AccountsGetRequest.ts +++ b/src/api/resources/loyalty/resources/accounts/client/requests/GetAccountsRequest.ts @@ -8,7 +8,7 @@ * accountId: "account_id" * } */ -export interface AccountsGetRequest { +export interface GetAccountsRequest { /** * The ID of the [loyalty account](entity:LoyaltyAccount) to retrieve. */ diff --git a/src/api/resources/loyalty/resources/accounts/client/requests/index.ts b/src/api/resources/loyalty/resources/accounts/client/requests/index.ts index a8bc01bf8..d6efd2ba6 100644 --- a/src/api/resources/loyalty/resources/accounts/client/requests/index.ts +++ b/src/api/resources/loyalty/resources/accounts/client/requests/index.ts @@ -1,5 +1,5 @@ export { type CreateLoyaltyAccountRequest } from "./CreateLoyaltyAccountRequest"; export { type SearchLoyaltyAccountsRequest } from "./SearchLoyaltyAccountsRequest"; -export { type AccountsGetRequest } from "./AccountsGetRequest"; +export { type GetAccountsRequest } from "./GetAccountsRequest"; export { type AccumulateLoyaltyPointsRequest } from "./AccumulateLoyaltyPointsRequest"; export { type AdjustLoyaltyPointsRequest } from "./AdjustLoyaltyPointsRequest"; diff --git a/src/api/resources/loyalty/resources/programs/client/Client.ts b/src/api/resources/loyalty/resources/programs/client/Client.ts index e2a605eaf..a37b252aa 100644 --- a/src/api/resources/loyalty/resources/programs/client/Client.ts +++ b/src/api/resources/loyalty/resources/programs/client/Client.ts @@ -17,7 +17,7 @@ export declare namespace Programs { 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 Programs { /** 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; } @@ -67,11 +67,11 @@ export class Programs { 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, @@ -119,7 +119,7 @@ export class Programs { * * Loyalty programs define how buyers can earn points and redeem points for rewards. Square sellers can have only one loyalty program, which is created and managed from the Seller Dashboard. For more information, see [Loyalty Program Overview](https://developer.squareup.com/docs/loyalty/overview). * - * @param {Square.loyalty.ProgramsGetRequest} request + * @param {Square.loyalty.GetProgramsRequest} request * @param {Programs.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -128,7 +128,7 @@ export class Programs { * }) */ public async get( - request: Square.loyalty.ProgramsGetRequest, + request: Square.loyalty.GetProgramsRequest, requestOptions?: Programs.RequestOptions, ): Promise { const { programId } = request; @@ -142,11 +142,11 @@ export class Programs { 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, @@ -233,11 +233,11 @@ export class Programs { 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/loyalty/resources/programs/client/requests/ProgramsGetRequest.ts b/src/api/resources/loyalty/resources/programs/client/requests/GetProgramsRequest.ts similarity index 89% rename from src/api/resources/loyalty/resources/programs/client/requests/ProgramsGetRequest.ts rename to src/api/resources/loyalty/resources/programs/client/requests/GetProgramsRequest.ts index 491ca17ec..21b4fcc20 100644 --- a/src/api/resources/loyalty/resources/programs/client/requests/ProgramsGetRequest.ts +++ b/src/api/resources/loyalty/resources/programs/client/requests/GetProgramsRequest.ts @@ -8,7 +8,7 @@ * programId: "program_id" * } */ -export interface ProgramsGetRequest { +export interface GetProgramsRequest { /** * The ID of the loyalty program or the keyword `main`. Either value can be used to retrieve the single loyalty program that belongs to the seller. */ diff --git a/src/api/resources/loyalty/resources/programs/client/requests/index.ts b/src/api/resources/loyalty/resources/programs/client/requests/index.ts index 1aad00224..c6b8d4f6f 100644 --- a/src/api/resources/loyalty/resources/programs/client/requests/index.ts +++ b/src/api/resources/loyalty/resources/programs/client/requests/index.ts @@ -1,2 +1,2 @@ -export { type ProgramsGetRequest } from "./ProgramsGetRequest"; +export { type GetProgramsRequest } from "./GetProgramsRequest"; export { type CalculateLoyaltyPointsRequest } from "./CalculateLoyaltyPointsRequest"; diff --git a/src/api/resources/loyalty/resources/programs/resources/promotions/client/Client.ts b/src/api/resources/loyalty/resources/programs/resources/promotions/client/Client.ts index b91fb9c81..8bfbff959 100644 --- a/src/api/resources/loyalty/resources/programs/resources/promotions/client/Client.ts +++ b/src/api/resources/loyalty/resources/programs/resources/promotions/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Promotions { 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 Promotions { /** 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 Promotions { * Lists the loyalty promotions associated with a [loyalty program](entity:LoyaltyProgram). * Results are sorted by the `created_at` date in descending order (newest to oldest). * - * @param {Square.loyalty.programs.PromotionsListRequest} request + * @param {Square.loyalty.programs.ListPromotionsRequest} request * @param {Promotions.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -50,11 +50,11 @@ export class Promotions { * }) */ public async list( - request: Square.loyalty.programs.PromotionsListRequest, + request: Square.loyalty.programs.ListPromotionsRequest, requestOptions?: Promotions.RequestOptions, ): Promise> { const list = async ( - request: Square.loyalty.programs.PromotionsListRequest, + request: Square.loyalty.programs.ListPromotionsRequest, ): Promise => { const { programId, status, cursor, limit } = request; const _queryParams: Record = {}; @@ -80,11 +80,11 @@ export class Promotions { 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, @@ -190,11 +190,11 @@ export class Promotions { 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, @@ -246,7 +246,7 @@ export class Promotions { /** * Retrieves a loyalty promotion. * - * @param {Square.loyalty.programs.PromotionsGetRequest} request + * @param {Square.loyalty.programs.GetPromotionsRequest} request * @param {Promotions.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -256,7 +256,7 @@ export class Promotions { * }) */ public async get( - request: Square.loyalty.programs.PromotionsGetRequest, + request: Square.loyalty.programs.GetPromotionsRequest, requestOptions?: Promotions.RequestOptions, ): Promise { const { promotionId, programId } = request; @@ -270,11 +270,11 @@ export class Promotions { 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, @@ -327,7 +327,7 @@ export class Promotions { * * This endpoint sets the loyalty promotion to the `CANCELED` state * - * @param {Square.loyalty.programs.PromotionsCancelRequest} request + * @param {Square.loyalty.programs.CancelPromotionsRequest} request * @param {Promotions.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -337,7 +337,7 @@ export class Promotions { * }) */ public async cancel( - request: Square.loyalty.programs.PromotionsCancelRequest, + request: Square.loyalty.programs.CancelPromotionsRequest, requestOptions?: Promotions.RequestOptions, ): Promise { const { promotionId, programId } = request; @@ -351,11 +351,11 @@ export class Promotions { 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/loyalty/resources/programs/resources/promotions/client/requests/PromotionsCancelRequest.ts b/src/api/resources/loyalty/resources/programs/resources/promotions/client/requests/CancelPromotionsRequest.ts similarity index 91% rename from src/api/resources/loyalty/resources/programs/resources/promotions/client/requests/PromotionsCancelRequest.ts rename to src/api/resources/loyalty/resources/programs/resources/promotions/client/requests/CancelPromotionsRequest.ts index 72b2af3c8..691ada4c3 100644 --- a/src/api/resources/loyalty/resources/programs/resources/promotions/client/requests/PromotionsCancelRequest.ts +++ b/src/api/resources/loyalty/resources/programs/resources/promotions/client/requests/CancelPromotionsRequest.ts @@ -9,7 +9,7 @@ * programId: "program_id" * } */ -export interface PromotionsCancelRequest { +export interface CancelPromotionsRequest { /** * The ID of the [loyalty promotion](entity:LoyaltyPromotion) to cancel. You can cancel a * promotion that has an `ACTIVE` or `SCHEDULED` status. diff --git a/src/api/resources/loyalty/resources/programs/resources/promotions/client/requests/PromotionsGetRequest.ts b/src/api/resources/loyalty/resources/programs/resources/promotions/client/requests/GetPromotionsRequest.ts similarity index 93% rename from src/api/resources/loyalty/resources/programs/resources/promotions/client/requests/PromotionsGetRequest.ts rename to src/api/resources/loyalty/resources/programs/resources/promotions/client/requests/GetPromotionsRequest.ts index 562330e9a..5138a2719 100644 --- a/src/api/resources/loyalty/resources/programs/resources/promotions/client/requests/PromotionsGetRequest.ts +++ b/src/api/resources/loyalty/resources/programs/resources/promotions/client/requests/GetPromotionsRequest.ts @@ -9,7 +9,7 @@ * programId: "program_id" * } */ -export interface PromotionsGetRequest { +export interface GetPromotionsRequest { /** * The ID of the [loyalty promotion](entity:LoyaltyPromotion) to retrieve. */ diff --git a/src/api/resources/loyalty/resources/programs/resources/promotions/client/requests/PromotionsListRequest.ts b/src/api/resources/loyalty/resources/programs/resources/promotions/client/requests/ListPromotionsRequest.ts similarity index 97% rename from src/api/resources/loyalty/resources/programs/resources/promotions/client/requests/PromotionsListRequest.ts rename to src/api/resources/loyalty/resources/programs/resources/promotions/client/requests/ListPromotionsRequest.ts index d9483060d..d1ec23846 100644 --- a/src/api/resources/loyalty/resources/programs/resources/promotions/client/requests/PromotionsListRequest.ts +++ b/src/api/resources/loyalty/resources/programs/resources/promotions/client/requests/ListPromotionsRequest.ts @@ -10,7 +10,7 @@ import * as Square from "../../../../../../../../index"; * programId: "program_id" * } */ -export interface PromotionsListRequest { +export interface ListPromotionsRequest { /** * The ID of the base [loyalty program](entity:LoyaltyProgram). To get the program ID, * call [RetrieveLoyaltyProgram](api-endpoint:Loyalty-RetrieveLoyaltyProgram) using the `main` keyword. diff --git a/src/api/resources/loyalty/resources/programs/resources/promotions/client/requests/index.ts b/src/api/resources/loyalty/resources/programs/resources/promotions/client/requests/index.ts index c14fc7a0b..123564dd0 100644 --- a/src/api/resources/loyalty/resources/programs/resources/promotions/client/requests/index.ts +++ b/src/api/resources/loyalty/resources/programs/resources/promotions/client/requests/index.ts @@ -1,4 +1,4 @@ -export { type PromotionsListRequest } from "./PromotionsListRequest"; +export { type ListPromotionsRequest } from "./ListPromotionsRequest"; export { type CreateLoyaltyPromotionRequest } from "./CreateLoyaltyPromotionRequest"; -export { type PromotionsGetRequest } from "./PromotionsGetRequest"; -export { type PromotionsCancelRequest } from "./PromotionsCancelRequest"; +export { type GetPromotionsRequest } from "./GetPromotionsRequest"; +export { type CancelPromotionsRequest } from "./CancelPromotionsRequest"; diff --git a/src/api/resources/loyalty/resources/rewards/client/Client.ts b/src/api/resources/loyalty/resources/rewards/client/Client.ts index e222dfa70..f2e6282eb 100644 --- a/src/api/resources/loyalty/resources/rewards/client/Client.ts +++ b/src/api/resources/loyalty/resources/rewards/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Rewards { 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 Rewards { /** 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; } @@ -74,11 +74,11 @@ export class Rewards { 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, @@ -159,11 +159,11 @@ export class Rewards { 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, @@ -213,7 +213,7 @@ export class Rewards { /** * Retrieves a loyalty reward. * - * @param {Square.loyalty.RewardsGetRequest} request + * @param {Square.loyalty.GetRewardsRequest} request * @param {Rewards.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -222,7 +222,7 @@ export class Rewards { * }) */ public async get( - request: Square.loyalty.RewardsGetRequest, + request: Square.loyalty.GetRewardsRequest, requestOptions?: Rewards.RequestOptions, ): Promise { const { rewardId } = request; @@ -236,11 +236,11 @@ export class Rewards { 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, @@ -296,7 +296,7 @@ export class Rewards { * * You cannot delete a reward that has reached the terminal state (REDEEMED). * - * @param {Square.loyalty.RewardsDeleteRequest} request + * @param {Square.loyalty.DeleteRewardsRequest} request * @param {Rewards.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -305,7 +305,7 @@ export class Rewards { * }) */ public async delete( - request: Square.loyalty.RewardsDeleteRequest, + request: Square.loyalty.DeleteRewardsRequest, requestOptions?: Rewards.RequestOptions, ): Promise { const { rewardId } = request; @@ -319,11 +319,11 @@ export class Rewards { 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, @@ -406,11 +406,11 @@ export class Rewards { 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/loyalty/resources/rewards/client/requests/RewardsDeleteRequest.ts b/src/api/resources/loyalty/resources/rewards/client/requests/DeleteRewardsRequest.ts similarity index 86% rename from src/api/resources/loyalty/resources/rewards/client/requests/RewardsDeleteRequest.ts rename to src/api/resources/loyalty/resources/rewards/client/requests/DeleteRewardsRequest.ts index bc2de971b..4d0f60bd3 100644 --- a/src/api/resources/loyalty/resources/rewards/client/requests/RewardsDeleteRequest.ts +++ b/src/api/resources/loyalty/resources/rewards/client/requests/DeleteRewardsRequest.ts @@ -8,7 +8,7 @@ * rewardId: "reward_id" * } */ -export interface RewardsDeleteRequest { +export interface DeleteRewardsRequest { /** * The ID of the [loyalty reward](entity:LoyaltyReward) to delete. */ diff --git a/src/api/resources/loyalty/resources/rewards/client/requests/RewardsGetRequest.ts b/src/api/resources/loyalty/resources/rewards/client/requests/GetRewardsRequest.ts similarity index 87% rename from src/api/resources/loyalty/resources/rewards/client/requests/RewardsGetRequest.ts rename to src/api/resources/loyalty/resources/rewards/client/requests/GetRewardsRequest.ts index 51321c2a3..4eaaed693 100644 --- a/src/api/resources/loyalty/resources/rewards/client/requests/RewardsGetRequest.ts +++ b/src/api/resources/loyalty/resources/rewards/client/requests/GetRewardsRequest.ts @@ -8,7 +8,7 @@ * rewardId: "reward_id" * } */ -export interface RewardsGetRequest { +export interface GetRewardsRequest { /** * The ID of the [loyalty reward](entity:LoyaltyReward) to retrieve. */ diff --git a/src/api/resources/loyalty/resources/rewards/client/requests/index.ts b/src/api/resources/loyalty/resources/rewards/client/requests/index.ts index a56a6b75b..387da86cf 100644 --- a/src/api/resources/loyalty/resources/rewards/client/requests/index.ts +++ b/src/api/resources/loyalty/resources/rewards/client/requests/index.ts @@ -1,5 +1,5 @@ export { type CreateLoyaltyRewardRequest } from "./CreateLoyaltyRewardRequest"; export { type SearchLoyaltyRewardsRequest } from "./SearchLoyaltyRewardsRequest"; -export { type RewardsGetRequest } from "./RewardsGetRequest"; -export { type RewardsDeleteRequest } from "./RewardsDeleteRequest"; +export { type GetRewardsRequest } from "./GetRewardsRequest"; +export { type DeleteRewardsRequest } from "./DeleteRewardsRequest"; export { type RedeemLoyaltyRewardRequest } from "./RedeemLoyaltyRewardRequest"; diff --git a/src/api/resources/merchants/client/Client.ts b/src/api/resources/merchants/client/Client.ts index 5c80b93a4..347ee65e9 100644 --- a/src/api/resources/merchants/client/Client.ts +++ b/src/api/resources/merchants/client/Client.ts @@ -18,7 +18,7 @@ export declare namespace Merchants { 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 Merchants { /** 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; } @@ -62,17 +62,17 @@ export class Merchants { * If you know the merchant ID, you can also use the [RetrieveMerchant](api-endpoint:Merchants-RetrieveMerchant) * endpoint to retrieve the merchant information. * - * @param {Square.MerchantsListRequest} request + * @param {Square.ListMerchantsRequest} request * @param {Merchants.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.merchants.list() */ public async list( - request: Square.MerchantsListRequest = {}, + request: Square.ListMerchantsRequest = {}, requestOptions?: Merchants.RequestOptions, ): Promise> { - const list = async (request: Square.MerchantsListRequest): Promise => { + const list = async (request: Square.ListMerchantsRequest): Promise => { const { cursor } = request; const _queryParams: Record = {}; if (cursor !== undefined) { @@ -88,11 +88,11 @@ export class Merchants { 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 Merchants { /** * Retrieves the `Merchant` object for the given `merchant_id`. * - * @param {Square.MerchantsGetRequest} request + * @param {Square.GetMerchantsRequest} request * @param {Merchants.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -155,7 +155,7 @@ export class Merchants { * }) */ public async get( - request: Square.MerchantsGetRequest, + request: Square.GetMerchantsRequest, requestOptions?: Merchants.RequestOptions, ): Promise { const { merchantId } = request; @@ -169,11 +169,11 @@ export class Merchants { 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/merchants/client/requests/MerchantsGetRequest.ts b/src/api/resources/merchants/client/requests/GetMerchantsRequest.ts similarity index 90% rename from src/api/resources/merchants/client/requests/MerchantsGetRequest.ts rename to src/api/resources/merchants/client/requests/GetMerchantsRequest.ts index fb486ff9e..9c1ccaa5d 100644 --- a/src/api/resources/merchants/client/requests/MerchantsGetRequest.ts +++ b/src/api/resources/merchants/client/requests/GetMerchantsRequest.ts @@ -8,7 +8,7 @@ * merchantId: "merchant_id" * } */ -export interface MerchantsGetRequest { +export interface GetMerchantsRequest { /** * The ID of the merchant to retrieve. If the string "me" is supplied as the ID, * then retrieve the merchant that is currently accessible to this call. diff --git a/src/api/resources/merchants/client/requests/MerchantsListRequest.ts b/src/api/resources/merchants/client/requests/ListMerchantsRequest.ts similarity index 83% rename from src/api/resources/merchants/client/requests/MerchantsListRequest.ts rename to src/api/resources/merchants/client/requests/ListMerchantsRequest.ts index 314d8b267..30bb590cc 100644 --- a/src/api/resources/merchants/client/requests/MerchantsListRequest.ts +++ b/src/api/resources/merchants/client/requests/ListMerchantsRequest.ts @@ -6,7 +6,7 @@ * @example * {} */ -export interface MerchantsListRequest { +export interface ListMerchantsRequest { /** * The cursor generated by the previous response. */ diff --git a/src/api/resources/merchants/client/requests/index.ts b/src/api/resources/merchants/client/requests/index.ts index 6240d56ff..0569efc51 100644 --- a/src/api/resources/merchants/client/requests/index.ts +++ b/src/api/resources/merchants/client/requests/index.ts @@ -1,2 +1,2 @@ -export { type MerchantsListRequest } from "./MerchantsListRequest"; -export { type MerchantsGetRequest } from "./MerchantsGetRequest"; +export { type ListMerchantsRequest } from "./ListMerchantsRequest"; +export { type GetMerchantsRequest } from "./GetMerchantsRequest"; diff --git a/src/api/resources/merchants/resources/customAttributeDefinitions/client/Client.ts b/src/api/resources/merchants/resources/customAttributeDefinitions/client/Client.ts index 317b5cf6a..14d016559 100644 --- a/src/api/resources/merchants/resources/customAttributeDefinitions/client/Client.ts +++ b/src/api/resources/merchants/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 { * that are visible to the requesting application, including those that are created by other * applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. * - * @param {Square.merchants.CustomAttributeDefinitionsListRequest} request + * @param {Square.merchants.ListCustomAttributeDefinitionsRequest} request * @param {CustomAttributeDefinitions.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.merchants.customAttributeDefinitions.list() */ public async list( - request: Square.merchants.CustomAttributeDefinitionsListRequest = {}, + request: Square.merchants.ListCustomAttributeDefinitionsRequest = {}, requestOptions?: CustomAttributeDefinitions.RequestOptions, ): Promise> { const list = async ( - request: Square.merchants.CustomAttributeDefinitionsListRequest, + request: Square.merchants.ListCustomAttributeDefinitionsRequest, ): Promise => { const { visibilityFilter, limit, cursor } = request; const _queryParams: Record = {}; @@ -80,11 +80,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, @@ -237,7 +237,7 @@ export class CustomAttributeDefinitions { * To retrieve a custom attribute definition created by another application, the `visibility` * setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. * - * @param {Square.merchants.CustomAttributeDefinitionsGetRequest} request + * @param {Square.merchants.GetCustomAttributeDefinitionsRequest} request * @param {CustomAttributeDefinitions.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -246,7 +246,7 @@ export class CustomAttributeDefinitions { * }) */ public async get( - request: Square.merchants.CustomAttributeDefinitionsGetRequest, + request: Square.merchants.GetCustomAttributeDefinitionsRequest, requestOptions?: CustomAttributeDefinitions.RequestOptions, ): Promise { const { key, version } = request; @@ -265,11 +265,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, @@ -348,11 +348,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, @@ -407,7 +407,7 @@ export class CustomAttributeDefinitions { * the merchant. * Only the definition owner can delete a custom attribute definition. * - * @param {Square.merchants.CustomAttributeDefinitionsDeleteRequest} request + * @param {Square.merchants.DeleteCustomAttributeDefinitionsRequest} request * @param {CustomAttributeDefinitions.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -416,7 +416,7 @@ export class CustomAttributeDefinitions { * }) */ public async delete( - request: Square.merchants.CustomAttributeDefinitionsDeleteRequest, + request: Square.merchants.DeleteCustomAttributeDefinitionsRequest, requestOptions?: CustomAttributeDefinitions.RequestOptions, ): Promise { const { key } = request; @@ -430,11 +430,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/merchants/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsDeleteRequest.ts b/src/api/resources/merchants/resources/customAttributeDefinitions/client/requests/DeleteCustomAttributeDefinitionsRequest.ts similarity index 79% rename from src/api/resources/merchants/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsDeleteRequest.ts rename to src/api/resources/merchants/resources/customAttributeDefinitions/client/requests/DeleteCustomAttributeDefinitionsRequest.ts index 860f57efe..6a1b34cf1 100644 --- a/src/api/resources/merchants/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsDeleteRequest.ts +++ b/src/api/resources/merchants/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/bookings/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsGetRequest.ts b/src/api/resources/merchants/resources/customAttributeDefinitions/client/requests/GetCustomAttributeDefinitionsRequest.ts similarity index 93% rename from src/api/resources/bookings/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsGetRequest.ts rename to src/api/resources/merchants/resources/customAttributeDefinitions/client/requests/GetCustomAttributeDefinitionsRequest.ts index 4fe9ca10a..9b086bfb6 100644 --- a/src/api/resources/bookings/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsGetRequest.ts +++ b/src/api/resources/merchants/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/merchants/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsListRequest.ts b/src/api/resources/merchants/resources/customAttributeDefinitions/client/requests/ListCustomAttributeDefinitionsRequest.ts similarity index 94% rename from src/api/resources/merchants/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsListRequest.ts rename to src/api/resources/merchants/resources/customAttributeDefinitions/client/requests/ListCustomAttributeDefinitionsRequest.ts index 1f6083094..313ea4854 100644 --- a/src/api/resources/merchants/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsListRequest.ts +++ b/src/api/resources/merchants/resources/customAttributeDefinitions/client/requests/ListCustomAttributeDefinitionsRequest.ts @@ -8,7 +8,7 @@ import * as Square from "../../../../../../index"; * @example * {} */ -export interface CustomAttributeDefinitionsListRequest { +export interface ListCustomAttributeDefinitionsRequest { /** * Filters the `CustomAttributeDefinition` results by their `visibility` values. */ diff --git a/src/api/resources/merchants/resources/customAttributeDefinitions/client/requests/index.ts b/src/api/resources/merchants/resources/customAttributeDefinitions/client/requests/index.ts index 4215d30fd..eb8078803 100644 --- a/src/api/resources/merchants/resources/customAttributeDefinitions/client/requests/index.ts +++ b/src/api/resources/merchants/resources/customAttributeDefinitions/client/requests/index.ts @@ -1,5 +1,5 @@ -export { type CustomAttributeDefinitionsListRequest } from "./CustomAttributeDefinitionsListRequest"; +export { type ListCustomAttributeDefinitionsRequest } from "./ListCustomAttributeDefinitionsRequest"; export { type CreateMerchantCustomAttributeDefinitionRequest } from "./CreateMerchantCustomAttributeDefinitionRequest"; -export { type CustomAttributeDefinitionsGetRequest } from "./CustomAttributeDefinitionsGetRequest"; +export { type GetCustomAttributeDefinitionsRequest } from "./GetCustomAttributeDefinitionsRequest"; export { type UpdateMerchantCustomAttributeDefinitionRequest } from "./UpdateMerchantCustomAttributeDefinitionRequest"; -export { type CustomAttributeDefinitionsDeleteRequest } from "./CustomAttributeDefinitionsDeleteRequest"; +export { type DeleteCustomAttributeDefinitionsRequest } from "./DeleteCustomAttributeDefinitionsRequest"; diff --git a/src/api/resources/merchants/resources/customAttributes/client/Client.ts b/src/api/resources/merchants/resources/customAttributes/client/Client.ts index 41049fb44..eda1ce8ab 100644 --- a/src/api/resources/merchants/resources/customAttributes/client/Client.ts +++ b/src/api/resources/merchants/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; } @@ -71,11 +71,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, @@ -173,11 +173,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, @@ -234,7 +234,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.merchants.CustomAttributesListRequest} request + * @param {Square.merchants.ListCustomAttributesRequest} request * @param {CustomAttributes.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -243,11 +243,11 @@ export class CustomAttributes { * }) */ public async list( - request: Square.merchants.CustomAttributesListRequest, + request: Square.merchants.ListCustomAttributesRequest, requestOptions?: CustomAttributes.RequestOptions, ): Promise> { const list = async ( - request: Square.merchants.CustomAttributesListRequest, + request: Square.merchants.ListCustomAttributesRequest, ): Promise => { const { merchantId, visibilityFilter, limit, cursor, withDefinitions } = request; const _queryParams: Record = {}; @@ -276,11 +276,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, @@ -340,7 +340,7 @@ export class CustomAttributes { * To retrieve a custom attribute owned by another application, the `visibility` setting must be * `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. * - * @param {Square.merchants.CustomAttributesGetRequest} request + * @param {Square.merchants.GetCustomAttributesRequest} request * @param {CustomAttributes.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -350,7 +350,7 @@ export class CustomAttributes { * }) */ public async get( - request: Square.merchants.CustomAttributesGetRequest, + request: Square.merchants.GetCustomAttributesRequest, requestOptions?: CustomAttributes.RequestOptions, ): Promise { const { merchantId, key, withDefinition, version } = request; @@ -373,11 +373,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, @@ -458,11 +458,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, @@ -516,7 +516,7 @@ export class CustomAttributes { * To delete a custom attribute owned by another application, the `visibility` setting must be * `VISIBILITY_READ_WRITE_VALUES`. * - * @param {Square.merchants.CustomAttributesDeleteRequest} request + * @param {Square.merchants.DeleteCustomAttributesRequest} request * @param {CustomAttributes.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -526,7 +526,7 @@ export class CustomAttributes { * }) */ public async delete( - request: Square.merchants.CustomAttributesDeleteRequest, + request: Square.merchants.DeleteCustomAttributesRequest, requestOptions?: CustomAttributes.RequestOptions, ): Promise { const { merchantId, key } = request; @@ -540,11 +540,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/merchants/resources/customAttributes/client/requests/CustomAttributesDeleteRequest.ts b/src/api/resources/merchants/resources/customAttributes/client/requests/DeleteCustomAttributesRequest.ts similarity index 91% rename from src/api/resources/merchants/resources/customAttributes/client/requests/CustomAttributesDeleteRequest.ts rename to src/api/resources/merchants/resources/customAttributes/client/requests/DeleteCustomAttributesRequest.ts index bc585a3c3..ad30e0e56 100644 --- a/src/api/resources/merchants/resources/customAttributes/client/requests/CustomAttributesDeleteRequest.ts +++ b/src/api/resources/merchants/resources/customAttributes/client/requests/DeleteCustomAttributesRequest.ts @@ -9,7 +9,7 @@ * key: "key" * } */ -export interface CustomAttributesDeleteRequest { +export interface DeleteCustomAttributesRequest { /** * The ID of the target [merchant](entity:Merchant). */ diff --git a/src/api/resources/merchants/resources/customAttributes/client/requests/CustomAttributesGetRequest.ts b/src/api/resources/merchants/resources/customAttributes/client/requests/GetCustomAttributesRequest.ts similarity index 96% rename from src/api/resources/merchants/resources/customAttributes/client/requests/CustomAttributesGetRequest.ts rename to src/api/resources/merchants/resources/customAttributes/client/requests/GetCustomAttributesRequest.ts index b17b638ac..b2a5f6471 100644 --- a/src/api/resources/merchants/resources/customAttributes/client/requests/CustomAttributesGetRequest.ts +++ b/src/api/resources/merchants/resources/customAttributes/client/requests/GetCustomAttributesRequest.ts @@ -9,7 +9,7 @@ * key: "key" * } */ -export interface CustomAttributesGetRequest { +export interface GetCustomAttributesRequest { /** * The ID of the target [merchant](entity:Merchant). */ diff --git a/src/api/resources/merchants/resources/customAttributes/client/requests/CustomAttributesListRequest.ts b/src/api/resources/merchants/resources/customAttributes/client/requests/ListCustomAttributesRequest.ts similarity index 97% rename from src/api/resources/merchants/resources/customAttributes/client/requests/CustomAttributesListRequest.ts rename to src/api/resources/merchants/resources/customAttributes/client/requests/ListCustomAttributesRequest.ts index a7e1de2f3..0a4615f85 100644 --- a/src/api/resources/merchants/resources/customAttributes/client/requests/CustomAttributesListRequest.ts +++ b/src/api/resources/merchants/resources/customAttributes/client/requests/ListCustomAttributesRequest.ts @@ -10,7 +10,7 @@ import * as Square from "../../../../../../index"; * merchantId: "merchant_id" * } */ -export interface CustomAttributesListRequest { +export interface ListCustomAttributesRequest { /** * The ID of the target [merchant](entity:Merchant). */ diff --git a/src/api/resources/merchants/resources/customAttributes/client/requests/index.ts b/src/api/resources/merchants/resources/customAttributes/client/requests/index.ts index 243a69bfe..0f91a2b02 100644 --- a/src/api/resources/merchants/resources/customAttributes/client/requests/index.ts +++ b/src/api/resources/merchants/resources/customAttributes/client/requests/index.ts @@ -1,6 +1,6 @@ export { type BulkDeleteMerchantCustomAttributesRequest } from "./BulkDeleteMerchantCustomAttributesRequest"; export { type BulkUpsertMerchantCustomAttributesRequest } from "./BulkUpsertMerchantCustomAttributesRequest"; -export { type CustomAttributesListRequest } from "./CustomAttributesListRequest"; -export { type CustomAttributesGetRequest } from "./CustomAttributesGetRequest"; +export { type ListCustomAttributesRequest } from "./ListCustomAttributesRequest"; +export { type GetCustomAttributesRequest } from "./GetCustomAttributesRequest"; export { type UpsertMerchantCustomAttributeRequest } from "./UpsertMerchantCustomAttributeRequest"; -export { type CustomAttributesDeleteRequest } from "./CustomAttributesDeleteRequest"; +export { type DeleteCustomAttributesRequest } from "./DeleteCustomAttributesRequest"; diff --git a/src/api/resources/mobile/client/Client.ts b/src/api/resources/mobile/client/Client.ts index df253d6cd..92ccbcfb3 100644 --- a/src/api/resources/mobile/client/Client.ts +++ b/src/api/resources/mobile/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Mobile { 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 Mobile { /** 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; } @@ -38,11 +38,14 @@ export class Mobile { constructor(protected readonly _options: Mobile.Options = {}) {} /** + * __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 @@ -73,11 +76,11 @@ export class Mobile { 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/oAuth/client/Client.ts b/src/api/resources/oAuth/client/Client.ts index 5c21f9b5b..f56b33b7e 100644 --- a/src/api/resources/oAuth/client/Client.ts +++ b/src/api/resources/oAuth/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace OAuth { 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 OAuth { /** 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; } @@ -76,11 +76,11 @@ export class OAuth { 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, @@ -171,11 +171,11 @@ export class OAuth { 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, @@ -256,11 +256,11 @@ export class OAuth { 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, @@ -320,11 +320,11 @@ export class OAuth { 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/orders/client/Client.ts b/src/api/resources/orders/client/Client.ts index e9da0425a..3673ff56d 100644 --- a/src/api/resources/orders/client/Client.ts +++ b/src/api/resources/orders/client/Client.ts @@ -18,7 +18,7 @@ export declare namespace Orders { 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 Orders { /** 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; } @@ -126,11 +126,11 @@ export class Orders { 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, @@ -205,11 +205,11 @@ export class Orders { 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, @@ -303,11 +303,11 @@ export class Orders { 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, @@ -382,11 +382,11 @@ export class Orders { 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, @@ -493,11 +493,11 @@ export class Orders { 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, @@ -547,7 +547,7 @@ export class Orders { /** * Retrieves an [Order](entity:Order) by ID. * - * @param {Square.OrdersGetRequest} request + * @param {Square.GetOrdersRequest} request * @param {Orders.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -556,7 +556,7 @@ export class Orders { * }) */ public async get( - request: Square.OrdersGetRequest, + request: Square.GetOrdersRequest, requestOptions?: Orders.RequestOptions, ): Promise { const { orderId } = request; @@ -570,11 +570,11 @@ export class Orders { 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, @@ -672,11 +672,11 @@ export class Orders { 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, @@ -764,11 +764,11 @@ export class Orders { 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/orders/client/requests/OrdersGetRequest.ts b/src/api/resources/orders/client/requests/GetOrdersRequest.ts similarity index 86% rename from src/api/resources/orders/client/requests/OrdersGetRequest.ts rename to src/api/resources/orders/client/requests/GetOrdersRequest.ts index 0812c48f4..9d225211b 100644 --- a/src/api/resources/orders/client/requests/OrdersGetRequest.ts +++ b/src/api/resources/orders/client/requests/GetOrdersRequest.ts @@ -8,7 +8,7 @@ * orderId: "order_id" * } */ -export interface OrdersGetRequest { +export interface GetOrdersRequest { /** * The ID of the order to retrieve. */ diff --git a/src/api/resources/orders/client/requests/index.ts b/src/api/resources/orders/client/requests/index.ts index 5d728a480..f9f9976ef 100644 --- a/src/api/resources/orders/client/requests/index.ts +++ b/src/api/resources/orders/client/requests/index.ts @@ -2,6 +2,6 @@ export { type BatchGetOrdersRequest } from "./BatchGetOrdersRequest"; export { type CalculateOrderRequest } from "./CalculateOrderRequest"; export { type CloneOrderRequest } from "./CloneOrderRequest"; export { type SearchOrdersRequest } from "./SearchOrdersRequest"; -export { type OrdersGetRequest } from "./OrdersGetRequest"; +export { type GetOrdersRequest } from "./GetOrdersRequest"; export { type UpdateOrderRequest } from "./UpdateOrderRequest"; export { type PayOrderRequest } from "./PayOrderRequest"; diff --git a/src/api/resources/orders/resources/customAttributeDefinitions/client/Client.ts b/src/api/resources/orders/resources/customAttributeDefinitions/client/Client.ts index 16e0a236a..005a113c1 100644 --- a/src/api/resources/orders/resources/customAttributeDefinitions/client/Client.ts +++ b/src/api/resources/orders/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.orders.CustomAttributeDefinitionsListRequest} request + * @param {Square.orders.ListCustomAttributeDefinitionsRequest} request * @param {CustomAttributeDefinitions.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.orders.customAttributeDefinitions.list() */ public async list( - request: Square.orders.CustomAttributeDefinitionsListRequest = {}, + request: Square.orders.ListCustomAttributeDefinitionsRequest = {}, requestOptions?: CustomAttributeDefinitions.RequestOptions, ): Promise> { const list = async ( - request: Square.orders.CustomAttributeDefinitionsListRequest, + request: Square.orders.ListCustomAttributeDefinitionsRequest, ): Promise => { const { visibilityFilter, cursor, limit } = request; const _queryParams: Record = {}; @@ -82,11 +82,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, @@ -177,11 +177,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, @@ -237,7 +237,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.orders.CustomAttributeDefinitionsGetRequest} request + * @param {Square.orders.GetCustomAttributeDefinitionsRequest} request * @param {CustomAttributeDefinitions.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -246,7 +246,7 @@ export class CustomAttributeDefinitions { * }) */ public async get( - request: Square.orders.CustomAttributeDefinitionsGetRequest, + request: Square.orders.GetCustomAttributeDefinitionsRequest, requestOptions?: CustomAttributeDefinitions.RequestOptions, ): Promise { const { key, version } = request; @@ -265,11 +265,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, @@ -349,11 +349,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, @@ -407,7 +407,7 @@ export class CustomAttributeDefinitions { * * Only the definition owner can delete a custom attribute definition. * - * @param {Square.orders.CustomAttributeDefinitionsDeleteRequest} request + * @param {Square.orders.DeleteCustomAttributeDefinitionsRequest} request * @param {CustomAttributeDefinitions.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -416,7 +416,7 @@ export class CustomAttributeDefinitions { * }) */ public async delete( - request: Square.orders.CustomAttributeDefinitionsDeleteRequest, + request: Square.orders.DeleteCustomAttributeDefinitionsRequest, requestOptions?: CustomAttributeDefinitions.RequestOptions, ): Promise { const { key } = request; @@ -430,11 +430,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/orders/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsDeleteRequest.ts b/src/api/resources/orders/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsDeleteRequest.ts deleted file mode 100644 index 860f57efe..000000000 --- a/src/api/resources/orders/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsDeleteRequest.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * key: "key" - * } - */ -export interface CustomAttributeDefinitionsDeleteRequest { - /** - * The key of the custom attribute definition to delete. - */ - key: string; -} diff --git a/src/api/resources/orders/resources/customAttributeDefinitions/client/requests/DeleteCustomAttributeDefinitionsRequest.ts b/src/api/resources/orders/resources/customAttributeDefinitions/client/requests/DeleteCustomAttributeDefinitionsRequest.ts new file mode 100644 index 000000000..6a1b34cf1 --- /dev/null +++ b/src/api/resources/orders/resources/customAttributeDefinitions/client/requests/DeleteCustomAttributeDefinitionsRequest.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * { + * key: "key" + * } + */ +export interface DeleteCustomAttributeDefinitionsRequest { + /** + * The key of the custom attribute definition to delete. + */ + key: string; +} diff --git a/src/api/resources/orders/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsGetRequest.ts b/src/api/resources/orders/resources/customAttributeDefinitions/client/requests/GetCustomAttributeDefinitionsRequest.ts similarity index 90% rename from src/api/resources/orders/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsGetRequest.ts rename to src/api/resources/orders/resources/customAttributeDefinitions/client/requests/GetCustomAttributeDefinitionsRequest.ts index 40e7a2e75..f0d58ef27 100644 --- a/src/api/resources/orders/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsGetRequest.ts +++ b/src/api/resources/orders/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. */ diff --git a/src/api/resources/orders/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsListRequest.ts b/src/api/resources/orders/resources/customAttributeDefinitions/client/requests/ListCustomAttributeDefinitionsRequest.ts similarity index 94% rename from src/api/resources/orders/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsListRequest.ts rename to src/api/resources/orders/resources/customAttributeDefinitions/client/requests/ListCustomAttributeDefinitionsRequest.ts index fbe413a4c..e8123e530 100644 --- a/src/api/resources/orders/resources/customAttributeDefinitions/client/requests/CustomAttributeDefinitionsListRequest.ts +++ b/src/api/resources/orders/resources/customAttributeDefinitions/client/requests/ListCustomAttributeDefinitionsRequest.ts @@ -8,7 +8,7 @@ import * as Square from "../../../../../../index"; * @example * {} */ -export interface CustomAttributeDefinitionsListRequest { +export interface ListCustomAttributeDefinitionsRequest { /** * Requests that all of the custom attributes be returned, or only those that are read-only or read-write. */ diff --git a/src/api/resources/orders/resources/customAttributeDefinitions/client/requests/index.ts b/src/api/resources/orders/resources/customAttributeDefinitions/client/requests/index.ts index 8e435f1c5..fbb70badb 100644 --- a/src/api/resources/orders/resources/customAttributeDefinitions/client/requests/index.ts +++ b/src/api/resources/orders/resources/customAttributeDefinitions/client/requests/index.ts @@ -1,5 +1,5 @@ -export { type CustomAttributeDefinitionsListRequest } from "./CustomAttributeDefinitionsListRequest"; +export { type ListCustomAttributeDefinitionsRequest } from "./ListCustomAttributeDefinitionsRequest"; export { type CreateOrderCustomAttributeDefinitionRequest } from "./CreateOrderCustomAttributeDefinitionRequest"; -export { type CustomAttributeDefinitionsGetRequest } from "./CustomAttributeDefinitionsGetRequest"; +export { type GetCustomAttributeDefinitionsRequest } from "./GetCustomAttributeDefinitionsRequest"; export { type UpdateOrderCustomAttributeDefinitionRequest } from "./UpdateOrderCustomAttributeDefinitionRequest"; -export { type CustomAttributeDefinitionsDeleteRequest } from "./CustomAttributeDefinitionsDeleteRequest"; +export { type DeleteCustomAttributeDefinitionsRequest } from "./DeleteCustomAttributeDefinitionsRequest"; diff --git a/src/api/resources/orders/resources/customAttributes/client/Client.ts b/src/api/resources/orders/resources/customAttributes/client/Client.ts index e4c77a528..0a815d6fb 100644 --- a/src/api/resources/orders/resources/customAttributes/client/Client.ts +++ b/src/api/resources/orders/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; } @@ -84,11 +84,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, @@ -192,11 +192,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, @@ -255,7 +255,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.orders.CustomAttributesListRequest} request + * @param {Square.orders.ListCustomAttributesRequest} request * @param {CustomAttributes.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -264,11 +264,11 @@ export class CustomAttributes { * }) */ public async list( - request: Square.orders.CustomAttributesListRequest, + request: Square.orders.ListCustomAttributesRequest, requestOptions?: CustomAttributes.RequestOptions, ): Promise> { const list = async ( - request: Square.orders.CustomAttributesListRequest, + request: Square.orders.ListCustomAttributesRequest, ): Promise => { const { orderId, visibilityFilter, cursor, limit, withDefinitions } = request; const _queryParams: Record = {}; @@ -297,11 +297,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, @@ -364,7 +364,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.orders.CustomAttributesGetRequest} request + * @param {Square.orders.GetCustomAttributesRequest} request * @param {CustomAttributes.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -374,7 +374,7 @@ export class CustomAttributes { * }) */ public async get( - request: Square.orders.CustomAttributesGetRequest, + request: Square.orders.GetCustomAttributesRequest, requestOptions?: CustomAttributes.RequestOptions, ): Promise { const { orderId, customAttributeKey, version, withDefinition } = request; @@ -397,11 +397,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, @@ -487,11 +487,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, @@ -547,7 +547,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.orders.CustomAttributesDeleteRequest} request + * @param {Square.orders.DeleteCustomAttributesRequest} request * @param {CustomAttributes.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -557,7 +557,7 @@ export class CustomAttributes { * }) */ public async delete( - request: Square.orders.CustomAttributesDeleteRequest, + request: Square.orders.DeleteCustomAttributesRequest, requestOptions?: CustomAttributes.RequestOptions, ): Promise { const { orderId, customAttributeKey } = request; @@ -571,11 +571,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/orders/resources/customAttributes/client/requests/CustomAttributesDeleteRequest.ts b/src/api/resources/orders/resources/customAttributes/client/requests/DeleteCustomAttributesRequest.ts similarity index 90% rename from src/api/resources/orders/resources/customAttributes/client/requests/CustomAttributesDeleteRequest.ts rename to src/api/resources/orders/resources/customAttributes/client/requests/DeleteCustomAttributesRequest.ts index 12dbe5054..1ad104438 100644 --- a/src/api/resources/orders/resources/customAttributes/client/requests/CustomAttributesDeleteRequest.ts +++ b/src/api/resources/orders/resources/customAttributes/client/requests/DeleteCustomAttributesRequest.ts @@ -9,7 +9,7 @@ * customAttributeKey: "custom_attribute_key" * } */ -export interface CustomAttributesDeleteRequest { +export interface DeleteCustomAttributesRequest { /** * The ID of the target [order](entity:Order). */ diff --git a/src/api/resources/orders/resources/customAttributes/client/requests/CustomAttributesGetRequest.ts b/src/api/resources/orders/resources/customAttributes/client/requests/GetCustomAttributesRequest.ts similarity index 96% rename from src/api/resources/orders/resources/customAttributes/client/requests/CustomAttributesGetRequest.ts rename to src/api/resources/orders/resources/customAttributes/client/requests/GetCustomAttributesRequest.ts index 30d132916..7c77448f5 100644 --- a/src/api/resources/orders/resources/customAttributes/client/requests/CustomAttributesGetRequest.ts +++ b/src/api/resources/orders/resources/customAttributes/client/requests/GetCustomAttributesRequest.ts @@ -9,7 +9,7 @@ * customAttributeKey: "custom_attribute_key" * } */ -export interface CustomAttributesGetRequest { +export interface GetCustomAttributesRequest { /** * The ID of the target [order](entity:Order). */ diff --git a/src/api/resources/orders/resources/customAttributes/client/requests/CustomAttributesListRequest.ts b/src/api/resources/orders/resources/customAttributes/client/requests/ListCustomAttributesRequest.ts similarity index 97% rename from src/api/resources/orders/resources/customAttributes/client/requests/CustomAttributesListRequest.ts rename to src/api/resources/orders/resources/customAttributes/client/requests/ListCustomAttributesRequest.ts index d4ebafcdb..e91327e97 100644 --- a/src/api/resources/orders/resources/customAttributes/client/requests/CustomAttributesListRequest.ts +++ b/src/api/resources/orders/resources/customAttributes/client/requests/ListCustomAttributesRequest.ts @@ -10,7 +10,7 @@ import * as Square from "../../../../../../index"; * orderId: "order_id" * } */ -export interface CustomAttributesListRequest { +export interface ListCustomAttributesRequest { /** * The ID of the target [order](entity:Order). */ diff --git a/src/api/resources/orders/resources/customAttributes/client/requests/index.ts b/src/api/resources/orders/resources/customAttributes/client/requests/index.ts index c9ebc8356..63278aa3e 100644 --- a/src/api/resources/orders/resources/customAttributes/client/requests/index.ts +++ b/src/api/resources/orders/resources/customAttributes/client/requests/index.ts @@ -1,6 +1,6 @@ export { type BulkDeleteOrderCustomAttributesRequest } from "./BulkDeleteOrderCustomAttributesRequest"; export { type BulkUpsertOrderCustomAttributesRequest } from "./BulkUpsertOrderCustomAttributesRequest"; -export { type CustomAttributesListRequest } from "./CustomAttributesListRequest"; -export { type CustomAttributesGetRequest } from "./CustomAttributesGetRequest"; +export { type ListCustomAttributesRequest } from "./ListCustomAttributesRequest"; +export { type GetCustomAttributesRequest } from "./GetCustomAttributesRequest"; export { type UpsertOrderCustomAttributeRequest } from "./UpsertOrderCustomAttributeRequest"; -export { type CustomAttributesDeleteRequest } from "./CustomAttributesDeleteRequest"; +export { type DeleteCustomAttributesRequest } from "./DeleteCustomAttributesRequest"; diff --git a/src/api/resources/payments/client/Client.ts b/src/api/resources/payments/client/Client.ts index 3400f8798..ac5c3513e 100644 --- a/src/api/resources/payments/client/Client.ts +++ b/src/api/resources/payments/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Payments { 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 Payments { /** 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,17 +45,17 @@ export class Payments { * * The maximum results per page is 100. * - * @param {Square.PaymentsListRequest} request + * @param {Square.ListPaymentsRequest} request * @param {Payments.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.payments.list() */ public async list( - request: Square.PaymentsListRequest = {}, + request: Square.ListPaymentsRequest = {}, requestOptions?: Payments.RequestOptions, ): Promise> { - const list = async (request: Square.PaymentsListRequest): Promise => { + const list = async (request: Square.ListPaymentsRequest): Promise => { const { beginTime, endTime, @@ -117,7 +117,7 @@ export class Payments { _queryParams["updated_at_end_time"] = updatedAtEndTime; } if (sortField !== undefined) { - _queryParams["sort_field"] = serializers.PaymentSortField.jsonOrThrow(sortField, { + _queryParams["sort_field"] = serializers.ListPaymentsRequestSortField.jsonOrThrow(sortField, { unrecognizedObjectKeys: "strip", omitUndefined: true, }); @@ -132,11 +132,11 @@ export class Payments { 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, @@ -233,11 +233,11 @@ export class Payments { 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, @@ -319,11 +319,11 @@ export class Payments { 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, @@ -373,7 +373,7 @@ export class Payments { /** * Retrieves details for a specific payment. * - * @param {Square.PaymentsGetRequest} request + * @param {Square.GetPaymentsRequest} request * @param {Payments.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -382,7 +382,7 @@ export class Payments { * }) */ public async get( - request: Square.PaymentsGetRequest, + request: Square.GetPaymentsRequest, requestOptions?: Payments.RequestOptions, ): Promise { const { paymentId } = request; @@ -396,11 +396,11 @@ export class Payments { 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, @@ -482,11 +482,11 @@ export class Payments { 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, @@ -537,7 +537,7 @@ export class Payments { * Cancels (voids) a payment. You can use this endpoint to cancel a payment with * the APPROVED `status`. * - * @param {Square.PaymentsCancelRequest} request + * @param {Square.CancelPaymentsRequest} request * @param {Payments.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -546,7 +546,7 @@ export class Payments { * }) */ public async cancel( - request: Square.PaymentsCancelRequest, + request: Square.CancelPaymentsRequest, requestOptions?: Payments.RequestOptions, ): Promise { const { paymentId } = request; @@ -560,11 +560,11 @@ export class Payments { 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, @@ -638,11 +638,11 @@ export class Payments { 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/payments/client/requests/PaymentsCancelRequest.ts b/src/api/resources/payments/client/requests/CancelPaymentsRequest.ts similarity index 84% rename from src/api/resources/payments/client/requests/PaymentsCancelRequest.ts rename to src/api/resources/payments/client/requests/CancelPaymentsRequest.ts index 83bc2221c..909ef567d 100644 --- a/src/api/resources/payments/client/requests/PaymentsCancelRequest.ts +++ b/src/api/resources/payments/client/requests/CancelPaymentsRequest.ts @@ -8,7 +8,7 @@ * paymentId: "payment_id" * } */ -export interface PaymentsCancelRequest { +export interface CancelPaymentsRequest { /** * The ID of the payment to cancel. */ diff --git a/src/api/resources/payments/client/requests/PaymentsGetRequest.ts b/src/api/resources/payments/client/requests/GetPaymentsRequest.ts similarity index 85% rename from src/api/resources/payments/client/requests/PaymentsGetRequest.ts rename to src/api/resources/payments/client/requests/GetPaymentsRequest.ts index 52d164480..a012df8cd 100644 --- a/src/api/resources/payments/client/requests/PaymentsGetRequest.ts +++ b/src/api/resources/payments/client/requests/GetPaymentsRequest.ts @@ -8,7 +8,7 @@ * paymentId: "payment_id" * } */ -export interface PaymentsGetRequest { +export interface GetPaymentsRequest { /** * A unique ID for the desired payment. */ diff --git a/src/api/resources/payments/client/requests/PaymentsListRequest.ts b/src/api/resources/payments/client/requests/ListPaymentsRequest.ts similarity index 97% rename from src/api/resources/payments/client/requests/PaymentsListRequest.ts rename to src/api/resources/payments/client/requests/ListPaymentsRequest.ts index f6592df27..686751d03 100644 --- a/src/api/resources/payments/client/requests/PaymentsListRequest.ts +++ b/src/api/resources/payments/client/requests/ListPaymentsRequest.ts @@ -8,7 +8,7 @@ import * as Square from "../../../../index"; * @example * {} */ -export interface PaymentsListRequest { +export interface ListPaymentsRequest { /** * Indicates the start of the time range to retrieve payments for, in RFC 3339 format. * The range is determined using the `created_at` field for each Payment. @@ -97,5 +97,5 @@ export interface PaymentsListRequest { /** * The field used to sort results by. The default is `CREATED_AT`. */ - sortField?: Square.PaymentSortField | null; + sortField?: Square.ListPaymentsRequestSortField | null; } diff --git a/src/api/resources/payments/client/requests/index.ts b/src/api/resources/payments/client/requests/index.ts index 345fd5a5c..3828c6442 100644 --- a/src/api/resources/payments/client/requests/index.ts +++ b/src/api/resources/payments/client/requests/index.ts @@ -1,7 +1,7 @@ -export { type PaymentsListRequest } from "./PaymentsListRequest"; +export { type ListPaymentsRequest } from "./ListPaymentsRequest"; export { type CreatePaymentRequest } from "./CreatePaymentRequest"; export { type CancelPaymentByIdempotencyKeyRequest } from "./CancelPaymentByIdempotencyKeyRequest"; -export { type PaymentsGetRequest } from "./PaymentsGetRequest"; +export { type GetPaymentsRequest } from "./GetPaymentsRequest"; export { type UpdatePaymentRequest } from "./UpdatePaymentRequest"; -export { type PaymentsCancelRequest } from "./PaymentsCancelRequest"; +export { type CancelPaymentsRequest } from "./CancelPaymentsRequest"; export { type CompletePaymentRequest } from "./CompletePaymentRequest"; diff --git a/src/api/resources/payouts/client/Client.ts b/src/api/resources/payouts/client/Client.ts index 47c322a42..4b282cd6f 100644 --- a/src/api/resources/payouts/client/Client.ts +++ b/src/api/resources/payouts/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Payouts { 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 Payouts { /** 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; } @@ -42,17 +42,17 @@ export class Payouts { * You can filter payouts by location ID, status, time range, and order them in ascending or descending order. * To call this endpoint, set `PAYOUTS_READ` for the OAuth scope. * - * @param {Square.PayoutsListRequest} request + * @param {Square.ListPayoutsRequest} request * @param {Payouts.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.payouts.list() */ public async list( - request: Square.PayoutsListRequest = {}, + request: Square.ListPayoutsRequest = {}, requestOptions?: Payouts.RequestOptions, ): Promise> { - const list = async (request: Square.PayoutsListRequest): Promise => { + const list = async (request: Square.ListPayoutsRequest): Promise => { const { locationId, status, beginTime, endTime, sortOrder, cursor, limit } = request; const _queryParams: Record = {}; if (locationId !== undefined) { @@ -92,11 +92,11 @@ export class Payouts { 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, @@ -151,7 +151,7 @@ export class Payouts { * Retrieves details of a specific payout identified by a payout ID. * To call this endpoint, set `PAYOUTS_READ` for the OAuth scope. * - * @param {Square.PayoutsGetRequest} request + * @param {Square.GetPayoutsRequest} request * @param {Payouts.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -160,7 +160,7 @@ export class Payouts { * }) */ public async get( - request: Square.PayoutsGetRequest, + request: Square.GetPayoutsRequest, requestOptions?: Payouts.RequestOptions, ): Promise { const { payoutId } = request; @@ -174,11 +174,11 @@ export class Payouts { 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 Payouts { * Retrieves a list of all payout entries for a specific payout. * To call this endpoint, set `PAYOUTS_READ` for the OAuth scope. * - * @param {Square.PayoutsListEntriesRequest} request + * @param {Square.ListEntriesPayoutsRequest} request * @param {Payouts.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -234,10 +234,10 @@ export class Payouts { * }) */ public async listEntries( - request: Square.PayoutsListEntriesRequest, + request: Square.ListEntriesPayoutsRequest, requestOptions?: Payouts.RequestOptions, ): Promise> { - const list = async (request: Square.PayoutsListEntriesRequest): Promise => { + const list = async (request: Square.ListEntriesPayoutsRequest): Promise => { const { payoutId, sortOrder, cursor, limit } = request; const _queryParams: Record = {}; if (sortOrder !== undefined) { @@ -262,11 +262,11 @@ export class Payouts { 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/payouts/client/requests/PayoutsGetRequest.ts b/src/api/resources/payouts/client/requests/GetPayoutsRequest.ts similarity index 86% rename from src/api/resources/payouts/client/requests/PayoutsGetRequest.ts rename to src/api/resources/payouts/client/requests/GetPayoutsRequest.ts index 07b57b6c1..2a31c8f5b 100644 --- a/src/api/resources/payouts/client/requests/PayoutsGetRequest.ts +++ b/src/api/resources/payouts/client/requests/GetPayoutsRequest.ts @@ -8,7 +8,7 @@ * payoutId: "payout_id" * } */ -export interface PayoutsGetRequest { +export interface GetPayoutsRequest { /** * The ID of the payout to retrieve the information for. */ diff --git a/src/api/resources/payouts/client/requests/PayoutsListEntriesRequest.ts b/src/api/resources/payouts/client/requests/ListEntriesPayoutsRequest.ts similarity index 96% rename from src/api/resources/payouts/client/requests/PayoutsListEntriesRequest.ts rename to src/api/resources/payouts/client/requests/ListEntriesPayoutsRequest.ts index fa7e8c095..e12ee9e59 100644 --- a/src/api/resources/payouts/client/requests/PayoutsListEntriesRequest.ts +++ b/src/api/resources/payouts/client/requests/ListEntriesPayoutsRequest.ts @@ -10,7 +10,7 @@ import * as Square from "../../../../index"; * payoutId: "payout_id" * } */ -export interface PayoutsListEntriesRequest { +export interface ListEntriesPayoutsRequest { /** * The ID of the payout to retrieve the information for. */ diff --git a/src/api/resources/payouts/client/requests/PayoutsListRequest.ts b/src/api/resources/payouts/client/requests/ListPayoutsRequest.ts similarity index 97% rename from src/api/resources/payouts/client/requests/PayoutsListRequest.ts rename to src/api/resources/payouts/client/requests/ListPayoutsRequest.ts index 615c16fa4..c585aace4 100644 --- a/src/api/resources/payouts/client/requests/PayoutsListRequest.ts +++ b/src/api/resources/payouts/client/requests/ListPayoutsRequest.ts @@ -8,7 +8,7 @@ import * as Square from "../../../../index"; * @example * {} */ -export interface PayoutsListRequest { +export interface ListPayoutsRequest { /** * The ID of the location for which to list the payouts. * By default, payouts are returned for the default (main) location associated with the seller. diff --git a/src/api/resources/payouts/client/requests/index.ts b/src/api/resources/payouts/client/requests/index.ts index 1a61bd4b9..73f48e53f 100644 --- a/src/api/resources/payouts/client/requests/index.ts +++ b/src/api/resources/payouts/client/requests/index.ts @@ -1,3 +1,3 @@ -export { type PayoutsListRequest } from "./PayoutsListRequest"; -export { type PayoutsGetRequest } from "./PayoutsGetRequest"; -export { type PayoutsListEntriesRequest } from "./PayoutsListEntriesRequest"; +export { type ListPayoutsRequest } from "./ListPayoutsRequest"; +export { type GetPayoutsRequest } from "./GetPayoutsRequest"; +export { type ListEntriesPayoutsRequest } from "./ListEntriesPayoutsRequest"; diff --git a/src/api/resources/refunds/client/Client.ts b/src/api/resources/refunds/client/Client.ts index 05c8867b8..182b25813 100644 --- a/src/api/resources/refunds/client/Client.ts +++ b/src/api/resources/refunds/client/Client.ts @@ -5,8 +5,8 @@ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as Square from "../../../index"; -import urlJoin from "url-join"; import * as serializers from "../../../../serialization/index"; +import urlJoin from "url-join"; import * as errors from "../../../../errors/index"; export declare namespace Refunds { @@ -16,7 +16,7 @@ export declare namespace Refunds { 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 Refunds { /** 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,30 @@ export class Refunds { * * The maximum results per page is 100. * - * @param {Square.RefundsListRequest} request + * @param {Square.ListRefundsRequest} request * @param {Refunds.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.refunds.list() */ public async list( - request: Square.RefundsListRequest = {}, + request: Square.ListRefundsRequest = {}, requestOptions?: Refunds.RequestOptions, ): Promise> { - const list = async (request: Square.RefundsListRequest): Promise => { - const { beginTime, endTime, sortOrder, cursor, locationId, status, sourceType, limit } = request; + const list = async (request: Square.ListRefundsRequest): Promise => { + const { + beginTime, + endTime, + sortOrder, + cursor, + locationId, + status, + sourceType, + limit, + updatedAtBeginTime, + updatedAtEndTime, + sortField, + } = request; const _queryParams: Record = {}; if (beginTime !== undefined) { _queryParams["begin_time"] = beginTime; @@ -82,6 +94,18 @@ export class Refunds { if (limit !== undefined) { _queryParams["limit"] = limit?.toString() ?? null; } + if (updatedAtBeginTime !== undefined) { + _queryParams["updated_at_begin_time"] = updatedAtBeginTime; + } + if (updatedAtEndTime !== undefined) { + _queryParams["updated_at_end_time"] = updatedAtEndTime; + } + if (sortField !== undefined) { + _queryParams["sort_field"] = serializers.ListPaymentRefundsRequestSortField.jsonOrThrow(sortField, { + unrecognizedObjectKeys: "strip", + omitUndefined: true, + }); + } const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.baseUrl)) ?? @@ -92,11 +116,11 @@ export class Refunds { 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, @@ -185,11 +209,11 @@ export class Refunds { 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 +263,7 @@ export class Refunds { /** * Retrieves a specific refund using the `refund_id`. * - * @param {Square.RefundsGetRequest} request + * @param {Square.GetRefundsRequest} request * @param {Refunds.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -248,7 +272,7 @@ export class Refunds { * }) */ public async get( - request: Square.RefundsGetRequest, + request: Square.GetRefundsRequest, requestOptions?: Refunds.RequestOptions, ): Promise { const { refundId } = request; @@ -262,11 +286,11 @@ export class Refunds { 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/refunds/client/requests/RefundsGetRequest.ts b/src/api/resources/refunds/client/requests/GetRefundsRequest.ts similarity index 86% rename from src/api/resources/refunds/client/requests/RefundsGetRequest.ts rename to src/api/resources/refunds/client/requests/GetRefundsRequest.ts index 3220b90c8..e5935da3f 100644 --- a/src/api/resources/refunds/client/requests/RefundsGetRequest.ts +++ b/src/api/resources/refunds/client/requests/GetRefundsRequest.ts @@ -8,7 +8,7 @@ * refundId: "refund_id" * } */ -export interface RefundsGetRequest { +export interface GetRefundsRequest { /** * The unique ID for the desired `PaymentRefund`. */ diff --git a/src/api/resources/refunds/client/requests/RefundsListRequest.ts b/src/api/resources/refunds/client/requests/ListRefundsRequest.ts similarity index 74% rename from src/api/resources/refunds/client/requests/RefundsListRequest.ts rename to src/api/resources/refunds/client/requests/ListRefundsRequest.ts index 9d3ef913c..f21e73500 100644 --- a/src/api/resources/refunds/client/requests/RefundsListRequest.ts +++ b/src/api/resources/refunds/client/requests/ListRefundsRequest.ts @@ -2,11 +2,13 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Square from "../../../../index"; + /** * @example * {} */ -export interface RefundsListRequest { +export interface ListRefundsRequest { /** * Indicates the start of the time range to retrieve each `PaymentRefund` for, in RFC 3339 * format. The range is determined using the `created_at` field for each `PaymentRefund`. @@ -65,4 +67,22 @@ export interface RefundsListRequest { * Default: 100 */ limit?: number | null; + /** + * Indicates the start of the time range to retrieve each `PaymentRefund` for, in RFC 3339 + * format. The range is determined using the `updated_at` field for each `PaymentRefund`. + * + * Default: If omitted, the time range starts at `begin_time`. + */ + updatedAtBeginTime?: string | null; + /** + * Indicates the end of the time range to retrieve each `PaymentRefund` for, in RFC 3339 + * format. The range is determined using the `updated_at` field for each `PaymentRefund`. + * + * Default: The current time. + */ + updatedAtEndTime?: string | null; + /** + * The field used to sort results by. The default is `CREATED_AT`. + */ + sortField?: Square.ListPaymentRefundsRequestSortField | null; } diff --git a/src/api/resources/refunds/client/requests/index.ts b/src/api/resources/refunds/client/requests/index.ts index 0a56f8ac0..8effc0bce 100644 --- a/src/api/resources/refunds/client/requests/index.ts +++ b/src/api/resources/refunds/client/requests/index.ts @@ -1,3 +1,3 @@ -export { type RefundsListRequest } from "./RefundsListRequest"; +export { type ListRefundsRequest } from "./ListRefundsRequest"; export { type RefundPaymentRequest } from "./RefundPaymentRequest"; -export { type RefundsGetRequest } from "./RefundsGetRequest"; +export { type GetRefundsRequest } from "./GetRefundsRequest"; diff --git a/src/api/resources/sites/client/Client.ts b/src/api/resources/sites/client/Client.ts index 02c8d4c1d..28dbb3d53 100644 --- a/src/api/resources/sites/client/Client.ts +++ b/src/api/resources/sites/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Sites { 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 Sites { /** 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; } @@ -59,11 +59,11 @@ export class Sites { 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/snippets/client/Client.ts b/src/api/resources/snippets/client/Client.ts index 32e8f9e14..f2c89a7e0 100644 --- a/src/api/resources/snippets/client/Client.ts +++ b/src/api/resources/snippets/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Snippets { 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 Snippets { /** 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,7 +45,7 @@ export class Snippets { * * __Note:__ Square Online APIs are publicly available as part of an early access program. For more information, see [Early access program for Square Online APIs](https://developer.squareup.com/docs/online-api#early-access-program-for-square-online-apis). * - * @param {Square.SnippetsGetRequest} request + * @param {Square.GetSnippetsRequest} request * @param {Snippets.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -54,7 +54,7 @@ export class Snippets { * }) */ public async get( - request: Square.SnippetsGetRequest, + request: Square.GetSnippetsRequest, requestOptions?: Snippets.RequestOptions, ): Promise { const { siteId } = request; @@ -68,11 +68,11 @@ export class Snippets { 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,11 +150,11 @@ export class Snippets { 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 Snippets { * * __Note:__ Square Online APIs are publicly available as part of an early access program. For more information, see [Early access program for Square Online APIs](https://developer.squareup.com/docs/online-api#early-access-program-for-square-online-apis). * - * @param {Square.SnippetsDeleteRequest} request + * @param {Square.DeleteSnippetsRequest} request * @param {Snippets.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -218,7 +218,7 @@ export class Snippets { * }) */ public async delete( - request: Square.SnippetsDeleteRequest, + request: Square.DeleteSnippetsRequest, requestOptions?: Snippets.RequestOptions, ): Promise { const { siteId } = request; @@ -232,11 +232,11 @@ export class Snippets { 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/snippets/client/requests/SnippetsDeleteRequest.ts b/src/api/resources/snippets/client/requests/DeleteSnippetsRequest.ts similarity index 84% rename from src/api/resources/snippets/client/requests/SnippetsDeleteRequest.ts rename to src/api/resources/snippets/client/requests/DeleteSnippetsRequest.ts index 8607b18f9..35df88023 100644 --- a/src/api/resources/snippets/client/requests/SnippetsDeleteRequest.ts +++ b/src/api/resources/snippets/client/requests/DeleteSnippetsRequest.ts @@ -8,7 +8,7 @@ * siteId: "site_id" * } */ -export interface SnippetsDeleteRequest { +export interface DeleteSnippetsRequest { /** * The ID of the site that contains the snippet. */ diff --git a/src/api/resources/snippets/client/requests/SnippetsGetRequest.ts b/src/api/resources/snippets/client/requests/GetSnippetsRequest.ts similarity index 85% rename from src/api/resources/snippets/client/requests/SnippetsGetRequest.ts rename to src/api/resources/snippets/client/requests/GetSnippetsRequest.ts index a16435cd4..64275821f 100644 --- a/src/api/resources/snippets/client/requests/SnippetsGetRequest.ts +++ b/src/api/resources/snippets/client/requests/GetSnippetsRequest.ts @@ -8,7 +8,7 @@ * siteId: "site_id" * } */ -export interface SnippetsGetRequest { +export interface GetSnippetsRequest { /** * The ID of the site that contains the snippet. */ diff --git a/src/api/resources/snippets/client/requests/index.ts b/src/api/resources/snippets/client/requests/index.ts index 0b17b45c3..9dd51c182 100644 --- a/src/api/resources/snippets/client/requests/index.ts +++ b/src/api/resources/snippets/client/requests/index.ts @@ -1,3 +1,3 @@ -export { type SnippetsGetRequest } from "./SnippetsGetRequest"; +export { type GetSnippetsRequest } from "./GetSnippetsRequest"; export { type UpsertSnippetRequest } from "./UpsertSnippetRequest"; -export { type SnippetsDeleteRequest } from "./SnippetsDeleteRequest"; +export { type DeleteSnippetsRequest } from "./DeleteSnippetsRequest"; diff --git a/src/api/resources/subscriptions/client/Client.ts b/src/api/resources/subscriptions/client/Client.ts index ceaa0561f..b59bf1bc4 100644 --- a/src/api/resources/subscriptions/client/Client.ts +++ b/src/api/resources/subscriptions/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Subscriptions { 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 Subscriptions { /** 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; } @@ -82,11 +82,11 @@ export class Subscriptions { 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, @@ -161,11 +161,11 @@ export class Subscriptions { 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, @@ -258,11 +258,11 @@ export class Subscriptions { 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, @@ -312,7 +312,7 @@ export class Subscriptions { /** * Retrieves a specific subscription. * - * @param {Square.SubscriptionsGetRequest} request + * @param {Square.GetSubscriptionsRequest} request * @param {Subscriptions.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -321,7 +321,7 @@ export class Subscriptions { * }) */ public async get( - request: Square.SubscriptionsGetRequest, + request: Square.GetSubscriptionsRequest, requestOptions?: Subscriptions.RequestOptions, ): Promise { const { subscriptionId, include } = request; @@ -340,11 +340,11 @@ export class Subscriptions { 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, @@ -420,11 +420,11 @@ export class Subscriptions { 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, @@ -476,7 +476,7 @@ export class Subscriptions { /** * Deletes a scheduled action for a subscription. * - * @param {Square.SubscriptionsDeleteActionRequest} request + * @param {Square.DeleteActionSubscriptionsRequest} request * @param {Subscriptions.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -486,7 +486,7 @@ export class Subscriptions { * }) */ public async deleteAction( - request: Square.SubscriptionsDeleteActionRequest, + request: Square.DeleteActionSubscriptionsRequest, requestOptions?: Subscriptions.RequestOptions, ): Promise { const { subscriptionId, actionId } = request; @@ -500,11 +500,11 @@ export class Subscriptions { 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, @@ -577,11 +577,11 @@ export class Subscriptions { 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, @@ -635,7 +635,7 @@ export class Subscriptions { * sets the `canceled_date` field to the end of the active billing period. After this date, * the subscription status changes from ACTIVE to CANCELED. * - * @param {Square.SubscriptionsCancelRequest} request + * @param {Square.CancelSubscriptionsRequest} request * @param {Subscriptions.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -644,7 +644,7 @@ export class Subscriptions { * }) */ public async cancel( - request: Square.SubscriptionsCancelRequest, + request: Square.CancelSubscriptionsRequest, requestOptions?: Subscriptions.RequestOptions, ): Promise { const { subscriptionId } = request; @@ -658,11 +658,11 @@ export class Subscriptions { 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, @@ -710,7 +710,7 @@ export class Subscriptions { /** * Lists all [events](https://developer.squareup.com/docs/subscriptions-api/actions-events) for a specific subscription. * - * @param {Square.SubscriptionsListEventsRequest} request + * @param {Square.ListEventsSubscriptionsRequest} request * @param {Subscriptions.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -719,11 +719,11 @@ export class Subscriptions { * }) */ public async listEvents( - request: Square.SubscriptionsListEventsRequest, + request: Square.ListEventsSubscriptionsRequest, requestOptions?: Subscriptions.RequestOptions, ): Promise> { const list = async ( - request: Square.SubscriptionsListEventsRequest, + request: Square.ListEventsSubscriptionsRequest, ): Promise => { const { subscriptionId, cursor, limit } = request; const _queryParams: Record = {}; @@ -743,11 +743,11 @@ export class Subscriptions { 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, @@ -826,11 +826,11 @@ export class Subscriptions { 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, @@ -905,11 +905,11 @@ export class Subscriptions { 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, @@ -990,11 +990,11 @@ export class Subscriptions { 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/subscriptions/client/requests/SubscriptionsCancelRequest.ts b/src/api/resources/subscriptions/client/requests/CancelSubscriptionsRequest.ts similarity index 84% rename from src/api/resources/subscriptions/client/requests/SubscriptionsCancelRequest.ts rename to src/api/resources/subscriptions/client/requests/CancelSubscriptionsRequest.ts index 3cae58a24..5586bc2e5 100644 --- a/src/api/resources/subscriptions/client/requests/SubscriptionsCancelRequest.ts +++ b/src/api/resources/subscriptions/client/requests/CancelSubscriptionsRequest.ts @@ -8,7 +8,7 @@ * subscriptionId: "subscription_id" * } */ -export interface SubscriptionsCancelRequest { +export interface CancelSubscriptionsRequest { /** * The ID of the subscription to cancel. */ diff --git a/src/api/resources/subscriptions/client/requests/SubscriptionsDeleteActionRequest.ts b/src/api/resources/subscriptions/client/requests/DeleteActionSubscriptionsRequest.ts similarity index 88% rename from src/api/resources/subscriptions/client/requests/SubscriptionsDeleteActionRequest.ts rename to src/api/resources/subscriptions/client/requests/DeleteActionSubscriptionsRequest.ts index cb9565e42..efbc64238 100644 --- a/src/api/resources/subscriptions/client/requests/SubscriptionsDeleteActionRequest.ts +++ b/src/api/resources/subscriptions/client/requests/DeleteActionSubscriptionsRequest.ts @@ -9,7 +9,7 @@ * actionId: "action_id" * } */ -export interface SubscriptionsDeleteActionRequest { +export interface DeleteActionSubscriptionsRequest { /** * The ID of the subscription the targeted action is to act upon. */ diff --git a/src/api/resources/subscriptions/client/requests/SubscriptionsGetRequest.ts b/src/api/resources/subscriptions/client/requests/GetSubscriptionsRequest.ts similarity index 92% rename from src/api/resources/subscriptions/client/requests/SubscriptionsGetRequest.ts rename to src/api/resources/subscriptions/client/requests/GetSubscriptionsRequest.ts index 4146f185b..90b54e807 100644 --- a/src/api/resources/subscriptions/client/requests/SubscriptionsGetRequest.ts +++ b/src/api/resources/subscriptions/client/requests/GetSubscriptionsRequest.ts @@ -8,7 +8,7 @@ * subscriptionId: "subscription_id" * } */ -export interface SubscriptionsGetRequest { +export interface GetSubscriptionsRequest { /** * The ID of the subscription to retrieve. */ diff --git a/src/api/resources/subscriptions/client/requests/SubscriptionsListEventsRequest.ts b/src/api/resources/subscriptions/client/requests/ListEventsSubscriptionsRequest.ts similarity index 94% rename from src/api/resources/subscriptions/client/requests/SubscriptionsListEventsRequest.ts rename to src/api/resources/subscriptions/client/requests/ListEventsSubscriptionsRequest.ts index e59e0d4ec..85ef351a1 100644 --- a/src/api/resources/subscriptions/client/requests/SubscriptionsListEventsRequest.ts +++ b/src/api/resources/subscriptions/client/requests/ListEventsSubscriptionsRequest.ts @@ -8,7 +8,7 @@ * subscriptionId: "subscription_id" * } */ -export interface SubscriptionsListEventsRequest { +export interface ListEventsSubscriptionsRequest { /** * The ID of the subscription to retrieve the events for. */ diff --git a/src/api/resources/subscriptions/client/requests/index.ts b/src/api/resources/subscriptions/client/requests/index.ts index 655ad9472..e79da906c 100644 --- a/src/api/resources/subscriptions/client/requests/index.ts +++ b/src/api/resources/subscriptions/client/requests/index.ts @@ -1,12 +1,12 @@ export { type CreateSubscriptionRequest } from "./CreateSubscriptionRequest"; export { type BulkSwapPlanRequest } from "./BulkSwapPlanRequest"; export { type SearchSubscriptionsRequest } from "./SearchSubscriptionsRequest"; -export { type SubscriptionsGetRequest } from "./SubscriptionsGetRequest"; +export { type GetSubscriptionsRequest } from "./GetSubscriptionsRequest"; export { type UpdateSubscriptionRequest } from "./UpdateSubscriptionRequest"; -export { type SubscriptionsDeleteActionRequest } from "./SubscriptionsDeleteActionRequest"; +export { type DeleteActionSubscriptionsRequest } from "./DeleteActionSubscriptionsRequest"; export { type ChangeBillingAnchorDateRequest } from "./ChangeBillingAnchorDateRequest"; -export { type SubscriptionsCancelRequest } from "./SubscriptionsCancelRequest"; -export { type SubscriptionsListEventsRequest } from "./SubscriptionsListEventsRequest"; +export { type CancelSubscriptionsRequest } from "./CancelSubscriptionsRequest"; +export { type ListEventsSubscriptionsRequest } from "./ListEventsSubscriptionsRequest"; export { type PauseSubscriptionRequest } from "./PauseSubscriptionRequest"; export { type ResumeSubscriptionRequest } from "./ResumeSubscriptionRequest"; export { type SwapPlanRequest } from "./SwapPlanRequest"; diff --git a/src/api/resources/team/client/Client.ts b/src/api/resources/team/client/Client.ts index 9afd19fc4..7274b5182 100644 --- a/src/api/resources/team/client/Client.ts +++ b/src/api/resources/team/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Team { 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 Team { /** 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; } @@ -66,11 +66,11 @@ export class Team { 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,11 +144,11 @@ export class Team { 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,11 +221,11 @@ export class Team { 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, @@ -302,11 +302,11 @@ export class Team { 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/teamMembers/client/Client.ts b/src/api/resources/teamMembers/client/Client.ts index 2fcbf23fd..23c52490d 100644 --- a/src/api/resources/teamMembers/client/Client.ts +++ b/src/api/resources/teamMembers/client/Client.ts @@ -17,7 +17,7 @@ export declare namespace TeamMembers { 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 TeamMembers { /** 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; } @@ -105,11 +105,11 @@ export class TeamMembers { 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, @@ -212,11 +212,11 @@ export class TeamMembers { 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, @@ -322,11 +322,11 @@ export class TeamMembers { 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, @@ -406,11 +406,11 @@ export class TeamMembers { 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, @@ -461,7 +461,7 @@ export class TeamMembers { * Retrieves a `TeamMember` object for the given `TeamMember.id`. * Learn about [Troubleshooting the Team API](https://developer.squareup.com/docs/team/troubleshooting#retrieve-a-team-member). * - * @param {Square.TeamMembersGetRequest} request + * @param {Square.GetTeamMembersRequest} request * @param {TeamMembers.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -470,7 +470,7 @@ export class TeamMembers { * }) */ public async get( - request: Square.TeamMembersGetRequest, + request: Square.GetTeamMembersRequest, requestOptions?: TeamMembers.RequestOptions, ): Promise { const { teamMemberId } = request; @@ -484,11 +484,11 @@ export class TeamMembers { 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, @@ -537,7 +537,7 @@ export class TeamMembers { * Updates a single `TeamMember` object. The `TeamMember` object is returned on successful updates. * Learn about [Troubleshooting the Team API](https://developer.squareup.com/docs/team/troubleshooting#update-a-team-member). * - * @param {Square.TeamMembersUpdateRequest} request + * @param {Square.UpdateTeamMembersRequest} request * @param {TeamMembers.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -560,7 +560,7 @@ export class TeamMembers { * }) */ public async update( - request: Square.TeamMembersUpdateRequest, + request: Square.UpdateTeamMembersRequest, requestOptions?: TeamMembers.RequestOptions, ): Promise { const { teamMemberId, body: _body } = request; @@ -574,11 +574,11 @@ export class TeamMembers { 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/teamMembers/client/requests/TeamMembersGetRequest.ts b/src/api/resources/teamMembers/client/requests/GetTeamMembersRequest.ts similarity index 85% rename from src/api/resources/teamMembers/client/requests/TeamMembersGetRequest.ts rename to src/api/resources/teamMembers/client/requests/GetTeamMembersRequest.ts index 8f3780449..a8b345f61 100644 --- a/src/api/resources/teamMembers/client/requests/TeamMembersGetRequest.ts +++ b/src/api/resources/teamMembers/client/requests/GetTeamMembersRequest.ts @@ -8,7 +8,7 @@ * teamMemberId: "team_member_id" * } */ -export interface TeamMembersGetRequest { +export interface GetTeamMembersRequest { /** * The ID of the team member to retrieve. */ diff --git a/src/api/resources/teamMembers/client/requests/TeamMembersUpdateRequest.ts b/src/api/resources/teamMembers/client/requests/UpdateTeamMembersRequest.ts similarity index 95% rename from src/api/resources/teamMembers/client/requests/TeamMembersUpdateRequest.ts rename to src/api/resources/teamMembers/client/requests/UpdateTeamMembersRequest.ts index 443507085..52add2ad7 100644 --- a/src/api/resources/teamMembers/client/requests/TeamMembersUpdateRequest.ts +++ b/src/api/resources/teamMembers/client/requests/UpdateTeamMembersRequest.ts @@ -24,7 +24,7 @@ import * as Square from "../../../../index"; * } * } */ -export interface TeamMembersUpdateRequest { +export interface UpdateTeamMembersRequest { /** * The ID of the team member to update. */ diff --git a/src/api/resources/teamMembers/client/requests/index.ts b/src/api/resources/teamMembers/client/requests/index.ts index 5f2f5af35..64e675afc 100644 --- a/src/api/resources/teamMembers/client/requests/index.ts +++ b/src/api/resources/teamMembers/client/requests/index.ts @@ -1,5 +1,5 @@ export { type BatchCreateTeamMembersRequest } from "./BatchCreateTeamMembersRequest"; export { type BatchUpdateTeamMembersRequest } from "./BatchUpdateTeamMembersRequest"; export { type SearchTeamMembersRequest } from "./SearchTeamMembersRequest"; -export { type TeamMembersGetRequest } from "./TeamMembersGetRequest"; -export { type TeamMembersUpdateRequest } from "./TeamMembersUpdateRequest"; +export { type GetTeamMembersRequest } from "./GetTeamMembersRequest"; +export { type UpdateTeamMembersRequest } from "./UpdateTeamMembersRequest"; diff --git a/src/api/resources/teamMembers/resources/wageSetting/client/Client.ts b/src/api/resources/teamMembers/resources/wageSetting/client/Client.ts index a5ff7c31a..9c0d5f702 100644 --- a/src/api/resources/teamMembers/resources/wageSetting/client/Client.ts +++ b/src/api/resources/teamMembers/resources/wageSetting/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace WageSetting { 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 WageSetting { /** 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,7 +45,7 @@ export class WageSetting { * Square recommends using [RetrieveTeamMember](api-endpoint:Team-RetrieveTeamMember) or [SearchTeamMembers](api-endpoint:Team-SearchTeamMembers) * to get this information directly from the `TeamMember.wage_setting` field. * - * @param {Square.teamMembers.WageSettingGetRequest} request + * @param {Square.teamMembers.GetWageSettingRequest} request * @param {WageSetting.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -54,7 +54,7 @@ export class WageSetting { * }) */ public async get( - request: Square.teamMembers.WageSettingGetRequest, + request: Square.teamMembers.GetWageSettingRequest, requestOptions?: WageSetting.RequestOptions, ): Promise { const { teamMemberId } = request; @@ -68,11 +68,11 @@ export class WageSetting { 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, @@ -169,11 +169,11 @@ export class WageSetting { 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/teamMembers/resources/wageSetting/client/requests/WageSettingGetRequest.ts b/src/api/resources/teamMembers/resources/wageSetting/client/requests/GetWageSettingRequest.ts similarity index 86% rename from src/api/resources/teamMembers/resources/wageSetting/client/requests/WageSettingGetRequest.ts rename to src/api/resources/teamMembers/resources/wageSetting/client/requests/GetWageSettingRequest.ts index d7cc7cc13..81df49508 100644 --- a/src/api/resources/teamMembers/resources/wageSetting/client/requests/WageSettingGetRequest.ts +++ b/src/api/resources/teamMembers/resources/wageSetting/client/requests/GetWageSettingRequest.ts @@ -8,7 +8,7 @@ * teamMemberId: "team_member_id" * } */ -export interface WageSettingGetRequest { +export interface GetWageSettingRequest { /** * The ID of the team member for which to retrieve the wage setting. */ diff --git a/src/api/resources/teamMembers/resources/wageSetting/client/requests/index.ts b/src/api/resources/teamMembers/resources/wageSetting/client/requests/index.ts index 9db8b1d9f..68850acfa 100644 --- a/src/api/resources/teamMembers/resources/wageSetting/client/requests/index.ts +++ b/src/api/resources/teamMembers/resources/wageSetting/client/requests/index.ts @@ -1,2 +1,2 @@ -export { type WageSettingGetRequest } from "./WageSettingGetRequest"; +export { type GetWageSettingRequest } from "./GetWageSettingRequest"; export { type UpdateWageSettingRequest } from "./UpdateWageSettingRequest"; diff --git a/src/api/resources/terminal/client/Client.ts b/src/api/resources/terminal/client/Client.ts index 2d81f0897..f939a45b5 100644 --- a/src/api/resources/terminal/client/Client.ts +++ b/src/api/resources/terminal/client/Client.ts @@ -19,7 +19,7 @@ export declare namespace Terminal { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-01-23"; + version?: "2025-02-20"; fetcher?: core.FetchFunction; } @@ -31,7 +31,7 @@ export declare namespace Terminal { /** 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; } @@ -84,11 +84,11 @@ export class Terminal { 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, @@ -159,11 +159,11 @@ export class Terminal { 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, @@ -234,11 +234,11 @@ export class Terminal { 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/terminal/resources/actions/client/Client.ts b/src/api/resources/terminal/resources/actions/client/Client.ts index 39d7bff2b..803aa780b 100644 --- a/src/api/resources/terminal/resources/actions/client/Client.ts +++ b/src/api/resources/terminal/resources/actions/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Actions { 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 Actions { /** 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; } @@ -71,11 +71,11 @@ export class Actions { 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, @@ -157,11 +157,11 @@ export class Actions { 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, @@ -211,7 +211,7 @@ export class Actions { /** * Retrieves a Terminal action request by `action_id`. Terminal action requests are available for 30 days. * - * @param {Square.terminal.ActionsGetRequest} request + * @param {Square.terminal.GetActionsRequest} request * @param {Actions.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -220,7 +220,7 @@ export class Actions { * }) */ public async get( - request: Square.terminal.ActionsGetRequest, + request: Square.terminal.GetActionsRequest, requestOptions?: Actions.RequestOptions, ): Promise { const { actionId } = request; @@ -234,11 +234,11 @@ export class Actions { 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, @@ -286,7 +286,7 @@ export class Actions { /** * Cancels a Terminal action request if the status of the request permits it. * - * @param {Square.terminal.ActionsCancelRequest} request + * @param {Square.terminal.CancelActionsRequest} request * @param {Actions.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -295,7 +295,7 @@ export class Actions { * }) */ public async cancel( - request: Square.terminal.ActionsCancelRequest, + request: Square.terminal.CancelActionsRequest, requestOptions?: Actions.RequestOptions, ): Promise { const { actionId } = request; @@ -309,11 +309,11 @@ export class Actions { 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/terminal/resources/actions/client/requests/ActionsCancelRequest.ts b/src/api/resources/terminal/resources/actions/client/requests/CancelActionsRequest.ts similarity index 85% rename from src/api/resources/terminal/resources/actions/client/requests/ActionsCancelRequest.ts rename to src/api/resources/terminal/resources/actions/client/requests/CancelActionsRequest.ts index 720831cc0..e37d98233 100644 --- a/src/api/resources/terminal/resources/actions/client/requests/ActionsCancelRequest.ts +++ b/src/api/resources/terminal/resources/actions/client/requests/CancelActionsRequest.ts @@ -8,7 +8,7 @@ * actionId: "action_id" * } */ -export interface ActionsCancelRequest { +export interface CancelActionsRequest { /** * Unique ID for the desired `TerminalAction`. */ diff --git a/src/api/resources/terminal/resources/actions/client/requests/ActionsGetRequest.ts b/src/api/resources/terminal/resources/actions/client/requests/GetActionsRequest.ts similarity index 86% rename from src/api/resources/terminal/resources/actions/client/requests/ActionsGetRequest.ts rename to src/api/resources/terminal/resources/actions/client/requests/GetActionsRequest.ts index 30057de94..68e93ee26 100644 --- a/src/api/resources/terminal/resources/actions/client/requests/ActionsGetRequest.ts +++ b/src/api/resources/terminal/resources/actions/client/requests/GetActionsRequest.ts @@ -8,7 +8,7 @@ * actionId: "action_id" * } */ -export interface ActionsGetRequest { +export interface GetActionsRequest { /** * Unique ID for the desired `TerminalAction`. */ diff --git a/src/api/resources/terminal/resources/actions/client/requests/index.ts b/src/api/resources/terminal/resources/actions/client/requests/index.ts index 90ac13f82..1f4d52c70 100644 --- a/src/api/resources/terminal/resources/actions/client/requests/index.ts +++ b/src/api/resources/terminal/resources/actions/client/requests/index.ts @@ -1,4 +1,4 @@ export { type CreateTerminalActionRequest } from "./CreateTerminalActionRequest"; export { type SearchTerminalActionsRequest } from "./SearchTerminalActionsRequest"; -export { type ActionsGetRequest } from "./ActionsGetRequest"; -export { type ActionsCancelRequest } from "./ActionsCancelRequest"; +export { type GetActionsRequest } from "./GetActionsRequest"; +export { type CancelActionsRequest } from "./CancelActionsRequest"; diff --git a/src/api/resources/terminal/resources/checkouts/client/Client.ts b/src/api/resources/terminal/resources/checkouts/client/Client.ts index a8eab28e8..986e3123c 100644 --- a/src/api/resources/terminal/resources/checkouts/client/Client.ts +++ b/src/api/resources/terminal/resources/checkouts/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Checkouts { 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 Checkouts { /** 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; } @@ -74,11 +74,11 @@ export class Checkouts { 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, @@ -155,11 +155,11 @@ export class Checkouts { 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, @@ -211,7 +211,7 @@ export class Checkouts { /** * Retrieves a Terminal checkout request by `checkout_id`. Terminal checkout requests are available for 30 days. * - * @param {Square.terminal.CheckoutsGetRequest} request + * @param {Square.terminal.GetCheckoutsRequest} request * @param {Checkouts.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -220,7 +220,7 @@ export class Checkouts { * }) */ public async get( - request: Square.terminal.CheckoutsGetRequest, + request: Square.terminal.GetCheckoutsRequest, requestOptions?: Checkouts.RequestOptions, ): Promise { const { checkoutId } = request; @@ -234,11 +234,11 @@ export class Checkouts { 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, @@ -286,7 +286,7 @@ export class Checkouts { /** * Cancels a Terminal checkout request if the status of the request permits it. * - * @param {Square.terminal.CheckoutsCancelRequest} request + * @param {Square.terminal.CancelCheckoutsRequest} request * @param {Checkouts.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -295,7 +295,7 @@ export class Checkouts { * }) */ public async cancel( - request: Square.terminal.CheckoutsCancelRequest, + request: Square.terminal.CancelCheckoutsRequest, requestOptions?: Checkouts.RequestOptions, ): Promise { const { checkoutId } = request; @@ -309,11 +309,11 @@ export class Checkouts { 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/terminal/resources/checkouts/client/requests/CheckoutsCancelRequest.ts b/src/api/resources/terminal/resources/checkouts/client/requests/CancelCheckoutsRequest.ts similarity index 85% rename from src/api/resources/terminal/resources/checkouts/client/requests/CheckoutsCancelRequest.ts rename to src/api/resources/terminal/resources/checkouts/client/requests/CancelCheckoutsRequest.ts index 3420dfd34..a346b1067 100644 --- a/src/api/resources/terminal/resources/checkouts/client/requests/CheckoutsCancelRequest.ts +++ b/src/api/resources/terminal/resources/checkouts/client/requests/CancelCheckoutsRequest.ts @@ -8,7 +8,7 @@ * checkoutId: "checkout_id" * } */ -export interface CheckoutsCancelRequest { +export interface CancelCheckoutsRequest { /** * The unique ID for the desired `TerminalCheckout`. */ diff --git a/src/api/resources/terminal/resources/checkouts/client/requests/CheckoutsGetRequest.ts b/src/api/resources/terminal/resources/checkouts/client/requests/GetCheckoutsRequest.ts similarity index 86% rename from src/api/resources/terminal/resources/checkouts/client/requests/CheckoutsGetRequest.ts rename to src/api/resources/terminal/resources/checkouts/client/requests/GetCheckoutsRequest.ts index 1037469e5..83f26ef56 100644 --- a/src/api/resources/terminal/resources/checkouts/client/requests/CheckoutsGetRequest.ts +++ b/src/api/resources/terminal/resources/checkouts/client/requests/GetCheckoutsRequest.ts @@ -8,7 +8,7 @@ * checkoutId: "checkout_id" * } */ -export interface CheckoutsGetRequest { +export interface GetCheckoutsRequest { /** * The unique ID for the desired `TerminalCheckout`. */ diff --git a/src/api/resources/terminal/resources/checkouts/client/requests/index.ts b/src/api/resources/terminal/resources/checkouts/client/requests/index.ts index cf530c3a0..5ef9dcb34 100644 --- a/src/api/resources/terminal/resources/checkouts/client/requests/index.ts +++ b/src/api/resources/terminal/resources/checkouts/client/requests/index.ts @@ -1,4 +1,4 @@ export { type CreateTerminalCheckoutRequest } from "./CreateTerminalCheckoutRequest"; export { type SearchTerminalCheckoutsRequest } from "./SearchTerminalCheckoutsRequest"; -export { type CheckoutsGetRequest } from "./CheckoutsGetRequest"; -export { type CheckoutsCancelRequest } from "./CheckoutsCancelRequest"; +export { type GetCheckoutsRequest } from "./GetCheckoutsRequest"; +export { type CancelCheckoutsRequest } from "./CancelCheckoutsRequest"; diff --git a/src/api/resources/terminal/resources/refunds/client/Client.ts b/src/api/resources/terminal/resources/refunds/client/Client.ts index 349f49315..6469cc5fa 100644 --- a/src/api/resources/terminal/resources/refunds/client/Client.ts +++ b/src/api/resources/terminal/resources/refunds/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Refunds { 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 Refunds { /** 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; } @@ -71,11 +71,11 @@ export class Refunds { 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, @@ -152,11 +152,11 @@ export class Refunds { 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, @@ -206,7 +206,7 @@ export class Refunds { /** * Retrieves an Interac Terminal refund object by ID. Terminal refund objects are available for 30 days. * - * @param {Square.terminal.RefundsGetRequest} request + * @param {Square.terminal.GetRefundsRequest} request * @param {Refunds.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -215,7 +215,7 @@ export class Refunds { * }) */ public async get( - request: Square.terminal.RefundsGetRequest, + request: Square.terminal.GetRefundsRequest, requestOptions?: Refunds.RequestOptions, ): Promise { const { terminalRefundId } = request; @@ -229,11 +229,11 @@ export class Refunds { 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, @@ -281,7 +281,7 @@ export class Refunds { /** * Cancels an Interac Terminal refund request by refund request ID if the status of the request permits it. * - * @param {Square.terminal.RefundsCancelRequest} request + * @param {Square.terminal.CancelRefundsRequest} request * @param {Refunds.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -290,7 +290,7 @@ export class Refunds { * }) */ public async cancel( - request: Square.terminal.RefundsCancelRequest, + request: Square.terminal.CancelRefundsRequest, requestOptions?: Refunds.RequestOptions, ): Promise { const { terminalRefundId } = request; @@ -304,11 +304,11 @@ export class Refunds { 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/terminal/resources/refunds/client/requests/RefundsCancelRequest.ts b/src/api/resources/terminal/resources/refunds/client/requests/CancelRefundsRequest.ts similarity index 86% rename from src/api/resources/terminal/resources/refunds/client/requests/RefundsCancelRequest.ts rename to src/api/resources/terminal/resources/refunds/client/requests/CancelRefundsRequest.ts index d534e7eda..250a548ff 100644 --- a/src/api/resources/terminal/resources/refunds/client/requests/RefundsCancelRequest.ts +++ b/src/api/resources/terminal/resources/refunds/client/requests/CancelRefundsRequest.ts @@ -8,7 +8,7 @@ * terminalRefundId: "terminal_refund_id" * } */ -export interface RefundsCancelRequest { +export interface CancelRefundsRequest { /** * The unique ID for the desired `TerminalRefund`. */ diff --git a/src/api/resources/terminal/resources/refunds/client/requests/RefundsGetRequest.ts b/src/api/resources/terminal/resources/refunds/client/requests/GetRefundsRequest.ts similarity index 87% rename from src/api/resources/terminal/resources/refunds/client/requests/RefundsGetRequest.ts rename to src/api/resources/terminal/resources/refunds/client/requests/GetRefundsRequest.ts index a7f5b317e..784c1cd2e 100644 --- a/src/api/resources/terminal/resources/refunds/client/requests/RefundsGetRequest.ts +++ b/src/api/resources/terminal/resources/refunds/client/requests/GetRefundsRequest.ts @@ -8,7 +8,7 @@ * terminalRefundId: "terminal_refund_id" * } */ -export interface RefundsGetRequest { +export interface GetRefundsRequest { /** * The unique ID for the desired `TerminalRefund`. */ diff --git a/src/api/resources/terminal/resources/refunds/client/requests/index.ts b/src/api/resources/terminal/resources/refunds/client/requests/index.ts index fc57754bd..d076a5792 100644 --- a/src/api/resources/terminal/resources/refunds/client/requests/index.ts +++ b/src/api/resources/terminal/resources/refunds/client/requests/index.ts @@ -1,4 +1,4 @@ export { type CreateTerminalRefundRequest } from "./CreateTerminalRefundRequest"; export { type SearchTerminalRefundsRequest } from "./SearchTerminalRefundsRequest"; -export { type RefundsGetRequest } from "./RefundsGetRequest"; -export { type RefundsCancelRequest } from "./RefundsCancelRequest"; +export { type GetRefundsRequest } from "./GetRefundsRequest"; +export { type CancelRefundsRequest } from "./CancelRefundsRequest"; diff --git a/src/api/resources/v1Transactions/client/Client.ts b/src/api/resources/v1Transactions/client/Client.ts index 00353a561..a2a598b08 100644 --- a/src/api/resources/v1Transactions/client/Client.ts +++ b/src/api/resources/v1Transactions/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace V1Transactions { 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 V1Transactions { /** 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; } @@ -79,11 +79,11 @@ export class V1Transactions { 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, @@ -154,11 +154,11 @@ export class V1Transactions { 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, @@ -231,11 +231,11 @@ export class V1Transactions { 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/vendors/client/Client.ts b/src/api/resources/vendors/client/Client.ts index ca8689d7d..d2b87ea32 100644 --- a/src/api/resources/vendors/client/Client.ts +++ b/src/api/resources/vendors/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Vendors { 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 Vendors { /** 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; } @@ -82,11 +82,11 @@ export class Vendors { 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, @@ -158,11 +158,11 @@ export class Vendors { 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, @@ -241,11 +241,11 @@ export class Vendors { 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, @@ -336,11 +336,11 @@ export class Vendors { 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, @@ -410,11 +410,11 @@ export class Vendors { 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, @@ -464,7 +464,7 @@ export class Vendors { /** * Retrieves the vendor of a specified [Vendor](entity:Vendor) ID. * - * @param {Square.VendorsGetRequest} request + * @param {Square.GetVendorsRequest} request * @param {Vendors.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -473,7 +473,7 @@ export class Vendors { * }) */ public async get( - request: Square.VendorsGetRequest, + request: Square.GetVendorsRequest, requestOptions?: Vendors.RequestOptions, ): Promise { const { vendorId } = request; @@ -487,11 +487,11 @@ export class Vendors { 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, @@ -537,7 +537,7 @@ export class Vendors { /** * Updates an existing [Vendor](entity:Vendor) object as a supplier to a seller. * - * @param {Square.VendorsUpdateRequest} request + * @param {Square.UpdateVendorsRequest} request * @param {Vendors.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -555,7 +555,7 @@ export class Vendors { * }) */ public async update( - request: Square.VendorsUpdateRequest, + request: Square.UpdateVendorsRequest, requestOptions?: Vendors.RequestOptions, ): Promise { const { vendorId, body: _body } = request; @@ -569,11 +569,11 @@ export class Vendors { 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/vendors/client/requests/VendorsGetRequest.ts b/src/api/resources/vendors/client/requests/GetVendorsRequest.ts similarity index 86% rename from src/api/resources/vendors/client/requests/VendorsGetRequest.ts rename to src/api/resources/vendors/client/requests/GetVendorsRequest.ts index 22d0f763b..ac8bc8927 100644 --- a/src/api/resources/vendors/client/requests/VendorsGetRequest.ts +++ b/src/api/resources/vendors/client/requests/GetVendorsRequest.ts @@ -8,7 +8,7 @@ * vendorId: "vendor_id" * } */ -export interface VendorsGetRequest { +export interface GetVendorsRequest { /** * ID of the [Vendor](entity:Vendor) to retrieve. */ diff --git a/src/api/resources/vendors/client/requests/VendorsUpdateRequest.ts b/src/api/resources/vendors/client/requests/UpdateVendorsRequest.ts similarity index 94% rename from src/api/resources/vendors/client/requests/VendorsUpdateRequest.ts rename to src/api/resources/vendors/client/requests/UpdateVendorsRequest.ts index a1bf25b3d..912e5811f 100644 --- a/src/api/resources/vendors/client/requests/VendorsUpdateRequest.ts +++ b/src/api/resources/vendors/client/requests/UpdateVendorsRequest.ts @@ -19,7 +19,7 @@ import * as Square from "../../../../index"; * } * } */ -export interface VendorsUpdateRequest { +export interface UpdateVendorsRequest { /** * ID of the [Vendor](entity:Vendor) to retrieve. */ diff --git a/src/api/resources/vendors/client/requests/index.ts b/src/api/resources/vendors/client/requests/index.ts index 9c6a8a674..68fdae923 100644 --- a/src/api/resources/vendors/client/requests/index.ts +++ b/src/api/resources/vendors/client/requests/index.ts @@ -3,5 +3,5 @@ export { type BatchGetVendorsRequest } from "./BatchGetVendorsRequest"; export { type BatchUpdateVendorsRequest } from "./BatchUpdateVendorsRequest"; export { type CreateVendorRequest } from "./CreateVendorRequest"; export { type SearchVendorsRequest } from "./SearchVendorsRequest"; -export { type VendorsGetRequest } from "./VendorsGetRequest"; -export { type VendorsUpdateRequest } from "./VendorsUpdateRequest"; +export { type GetVendorsRequest } from "./GetVendorsRequest"; +export { type UpdateVendorsRequest } from "./UpdateVendorsRequest"; diff --git a/src/api/resources/webhooks/client/Client.ts b/src/api/resources/webhooks/client/Client.ts index 410a3053a..82d34b59c 100644 --- a/src/api/resources/webhooks/client/Client.ts +++ b/src/api/resources/webhooks/client/Client.ts @@ -14,7 +14,7 @@ export declare namespace Webhooks { baseUrl?: core.Supplier; token?: core.Supplier; /** Override the Square-Version header */ - version?: "2025-01-23"; + version?: "2025-02-20"; fetcher?: core.FetchFunction; } @@ -26,7 +26,7 @@ export declare namespace Webhooks { /** 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/webhooks/resources/eventTypes/client/Client.ts b/src/api/resources/webhooks/resources/eventTypes/client/Client.ts index 37adcf6ba..b1a939aba 100644 --- a/src/api/resources/webhooks/resources/eventTypes/client/Client.ts +++ b/src/api/resources/webhooks/resources/eventTypes/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace EventTypes { 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 EventTypes { /** 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,14 +40,14 @@ export class EventTypes { /** * Lists all webhook event types that can be subscribed to. * - * @param {Square.webhooks.EventTypesListRequest} request + * @param {Square.webhooks.ListEventTypesRequest} request * @param {EventTypes.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.webhooks.eventTypes.list() */ public async list( - request: Square.webhooks.EventTypesListRequest = {}, + request: Square.webhooks.ListEventTypesRequest = {}, requestOptions?: EventTypes.RequestOptions, ): Promise { const { apiVersion } = request; @@ -66,11 +66,11 @@ export class EventTypes { 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/webhooks/resources/eventTypes/client/requests/EventTypesListRequest.ts b/src/api/resources/webhooks/resources/eventTypes/client/requests/ListEventTypesRequest.ts similarity index 87% rename from src/api/resources/webhooks/resources/eventTypes/client/requests/EventTypesListRequest.ts rename to src/api/resources/webhooks/resources/eventTypes/client/requests/ListEventTypesRequest.ts index c46a9d1a6..58176164e 100644 --- a/src/api/resources/webhooks/resources/eventTypes/client/requests/EventTypesListRequest.ts +++ b/src/api/resources/webhooks/resources/eventTypes/client/requests/ListEventTypesRequest.ts @@ -6,7 +6,7 @@ * @example * {} */ -export interface EventTypesListRequest { +export interface ListEventTypesRequest { /** * The API version for which to list event types. Setting this field overrides the default version used by the application. */ diff --git a/src/api/resources/webhooks/resources/eventTypes/client/requests/index.ts b/src/api/resources/webhooks/resources/eventTypes/client/requests/index.ts index 07d9f9c0b..2e7e10bf3 100644 --- a/src/api/resources/webhooks/resources/eventTypes/client/requests/index.ts +++ b/src/api/resources/webhooks/resources/eventTypes/client/requests/index.ts @@ -1 +1 @@ -export { type EventTypesListRequest } from "./EventTypesListRequest"; +export { type ListEventTypesRequest } from "./ListEventTypesRequest"; diff --git a/src/api/resources/webhooks/resources/subscriptions/client/Client.ts b/src/api/resources/webhooks/resources/subscriptions/client/Client.ts index 45c838753..61f0f5c10 100644 --- a/src/api/resources/webhooks/resources/subscriptions/client/Client.ts +++ b/src/api/resources/webhooks/resources/subscriptions/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Subscriptions { 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 Subscriptions { /** 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 Subscriptions { /** * Lists all webhook subscriptions owned by your application. * - * @param {Square.webhooks.SubscriptionsListRequest} request + * @param {Square.webhooks.ListSubscriptionsRequest} request * @param {Subscriptions.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.webhooks.subscriptions.list() */ public async list( - request: Square.webhooks.SubscriptionsListRequest = {}, + request: Square.webhooks.ListSubscriptionsRequest = {}, requestOptions?: Subscriptions.RequestOptions, ): Promise> { const list = async ( - request: Square.webhooks.SubscriptionsListRequest, + request: Square.webhooks.ListSubscriptionsRequest, ): Promise => { const { cursor, includeDisabled, sortOrder, limit } = request; const _queryParams: Record = {}; @@ -80,11 +80,11 @@ export class Subscriptions { 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, @@ -168,11 +168,11 @@ export class Subscriptions { 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, @@ -222,7 +222,7 @@ export class Subscriptions { /** * Retrieves a webhook subscription identified by its ID. * - * @param {Square.webhooks.SubscriptionsGetRequest} request + * @param {Square.webhooks.GetSubscriptionsRequest} request * @param {Subscriptions.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -231,7 +231,7 @@ export class Subscriptions { * }) */ public async get( - request: Square.webhooks.SubscriptionsGetRequest, + request: Square.webhooks.GetSubscriptionsRequest, requestOptions?: Subscriptions.RequestOptions, ): Promise { const { subscriptionId } = request; @@ -245,11 +245,11 @@ export class Subscriptions { 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, @@ -324,11 +324,11 @@ export class Subscriptions { 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, @@ -380,7 +380,7 @@ export class Subscriptions { /** * Deletes a webhook subscription. * - * @param {Square.webhooks.SubscriptionsDeleteRequest} request + * @param {Square.webhooks.DeleteSubscriptionsRequest} request * @param {Subscriptions.RequestOptions} requestOptions - Request-specific configuration. * * @example @@ -389,7 +389,7 @@ export class Subscriptions { * }) */ public async delete( - request: Square.webhooks.SubscriptionsDeleteRequest, + request: Square.webhooks.DeleteSubscriptionsRequest, requestOptions?: Subscriptions.RequestOptions, ): Promise { const { subscriptionId } = request; @@ -403,11 +403,11 @@ export class Subscriptions { 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, @@ -479,11 +479,11 @@ export class Subscriptions { 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, @@ -559,11 +559,11 @@ export class Subscriptions { 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/webhooks/resources/subscriptions/client/requests/SubscriptionsDeleteRequest.ts b/src/api/resources/webhooks/resources/subscriptions/client/requests/DeleteSubscriptionsRequest.ts similarity index 86% rename from src/api/resources/webhooks/resources/subscriptions/client/requests/SubscriptionsDeleteRequest.ts rename to src/api/resources/webhooks/resources/subscriptions/client/requests/DeleteSubscriptionsRequest.ts index d7c785cd3..e348ad484 100644 --- a/src/api/resources/webhooks/resources/subscriptions/client/requests/SubscriptionsDeleteRequest.ts +++ b/src/api/resources/webhooks/resources/subscriptions/client/requests/DeleteSubscriptionsRequest.ts @@ -8,7 +8,7 @@ * subscriptionId: "subscription_id" * } */ -export interface SubscriptionsDeleteRequest { +export interface DeleteSubscriptionsRequest { /** * [REQUIRED] The ID of the [Subscription](entity:WebhookSubscription) to delete. */ diff --git a/src/api/resources/webhooks/resources/subscriptions/client/requests/SubscriptionsGetRequest.ts b/src/api/resources/webhooks/resources/subscriptions/client/requests/GetSubscriptionsRequest.ts similarity index 87% rename from src/api/resources/webhooks/resources/subscriptions/client/requests/SubscriptionsGetRequest.ts rename to src/api/resources/webhooks/resources/subscriptions/client/requests/GetSubscriptionsRequest.ts index 04c952906..fde07880e 100644 --- a/src/api/resources/webhooks/resources/subscriptions/client/requests/SubscriptionsGetRequest.ts +++ b/src/api/resources/webhooks/resources/subscriptions/client/requests/GetSubscriptionsRequest.ts @@ -8,7 +8,7 @@ * subscriptionId: "subscription_id" * } */ -export interface SubscriptionsGetRequest { +export interface GetSubscriptionsRequest { /** * [REQUIRED] The ID of the [Subscription](entity:WebhookSubscription) to retrieve. */ diff --git a/src/api/resources/webhooks/resources/subscriptions/client/requests/SubscriptionsListRequest.ts b/src/api/resources/webhooks/resources/subscriptions/client/requests/ListSubscriptionsRequest.ts similarity index 96% rename from src/api/resources/webhooks/resources/subscriptions/client/requests/SubscriptionsListRequest.ts rename to src/api/resources/webhooks/resources/subscriptions/client/requests/ListSubscriptionsRequest.ts index 4357aa736..1d9c241f6 100644 --- a/src/api/resources/webhooks/resources/subscriptions/client/requests/SubscriptionsListRequest.ts +++ b/src/api/resources/webhooks/resources/subscriptions/client/requests/ListSubscriptionsRequest.ts @@ -8,7 +8,7 @@ import * as Square from "../../../../../../index"; * @example * {} */ -export interface SubscriptionsListRequest { +export interface ListSubscriptionsRequest { /** * 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/webhooks/resources/subscriptions/client/requests/index.ts b/src/api/resources/webhooks/resources/subscriptions/client/requests/index.ts index e2e5df141..f32c424a4 100644 --- a/src/api/resources/webhooks/resources/subscriptions/client/requests/index.ts +++ b/src/api/resources/webhooks/resources/subscriptions/client/requests/index.ts @@ -1,7 +1,7 @@ -export { type SubscriptionsListRequest } from "./SubscriptionsListRequest"; +export { type ListSubscriptionsRequest } from "./ListSubscriptionsRequest"; export { type CreateWebhookSubscriptionRequest } from "./CreateWebhookSubscriptionRequest"; -export { type SubscriptionsGetRequest } from "./SubscriptionsGetRequest"; +export { type GetSubscriptionsRequest } from "./GetSubscriptionsRequest"; export { type UpdateWebhookSubscriptionRequest } from "./UpdateWebhookSubscriptionRequest"; -export { type SubscriptionsDeleteRequest } from "./SubscriptionsDeleteRequest"; +export { type DeleteSubscriptionsRequest } from "./DeleteSubscriptionsRequest"; export { type UpdateWebhookSubscriptionSignatureKeyRequest } from "./UpdateWebhookSubscriptionSignatureKeyRequest"; export { type TestWebhookSubscriptionRequest } from "./TestWebhookSubscriptionRequest"; diff --git a/src/api/types/ErrorCode.ts b/src/api/types/ErrorCode.ts index f15d31351..c942f950b 100644 --- a/src/api/types/ErrorCode.ts +++ b/src/api/types/ErrorCode.ts @@ -87,6 +87,7 @@ export type ErrorCode = | "PAN_FAILURE" | "EXPIRATION_FAILURE" | "CARD_NOT_SUPPORTED" + | "READER_DECLINED" | "INVALID_PIN" | "MISSING_PIN" | "MISSING_ACCOUNT_TYPE" @@ -109,6 +110,7 @@ export type ErrorCode = | "REFUND_ALREADY_PENDING" | "PAYMENT_NOT_REFUNDABLE" | "PAYMENT_NOT_REFUNDABLE_DUE_TO_DISPUTE" + | "REFUND_ERROR_PAYMENT_NEEDS_COMPLETION" | "REFUND_DECLINED" | "INSUFFICIENT_PERMISSIONS_FOR_REFUND" | "INVALID_CARD_DATA" @@ -238,6 +240,7 @@ export const ErrorCode = { PanFailure: "PAN_FAILURE", ExpirationFailure: "EXPIRATION_FAILURE", CardNotSupported: "CARD_NOT_SUPPORTED", + ReaderDeclined: "READER_DECLINED", InvalidPin: "INVALID_PIN", MissingPin: "MISSING_PIN", MissingAccountType: "MISSING_ACCOUNT_TYPE", @@ -260,6 +263,7 @@ export const ErrorCode = { RefundAlreadyPending: "REFUND_ALREADY_PENDING", PaymentNotRefundable: "PAYMENT_NOT_REFUNDABLE", PaymentNotRefundableDueToDispute: "PAYMENT_NOT_REFUNDABLE_DUE_TO_DISPUTE", + RefundErrorPaymentNeedsCompletion: "REFUND_ERROR_PAYMENT_NEEDS_COMPLETION", RefundDeclined: "REFUND_DECLINED", InsufficientPermissionsForRefund: "INSUFFICIENT_PERMISSIONS_FOR_REFUND", InvalidCardData: "INVALID_CARD_DATA", diff --git a/src/api/types/ListPaymentRefundsRequestSortField.ts b/src/api/types/ListPaymentRefundsRequestSortField.ts new file mode 100644 index 000000000..c835a78d5 --- /dev/null +++ b/src/api/types/ListPaymentRefundsRequestSortField.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type ListPaymentRefundsRequestSortField = "CREATED_AT" | "UPDATED_AT"; +export const ListPaymentRefundsRequestSortField = { + CreatedAt: "CREATED_AT", + UpdatedAt: "UPDATED_AT", +} as const; diff --git a/src/api/types/PaymentSortField.ts b/src/api/types/ListPaymentsRequestSortField.ts similarity index 57% rename from src/api/types/PaymentSortField.ts rename to src/api/types/ListPaymentsRequestSortField.ts index 40365490a..5062db1b6 100644 --- a/src/api/types/PaymentSortField.ts +++ b/src/api/types/ListPaymentsRequestSortField.ts @@ -2,8 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ -export type PaymentSortField = "CREATED_AT" | "OFFLINE_CREATED_AT" | "UPDATED_AT"; -export const PaymentSortField = { +export type ListPaymentsRequestSortField = "CREATED_AT" | "OFFLINE_CREATED_AT" | "UPDATED_AT"; +export const ListPaymentsRequestSortField = { CreatedAt: "CREATED_AT", OfflineCreatedAt: "OFFLINE_CREATED_AT", UpdatedAt: "UPDATED_AT", diff --git a/src/api/types/TerminalCheckout.ts b/src/api/types/TerminalCheckout.ts index 3bd0b84db..fd5065c95 100644 --- a/src/api/types/TerminalCheckout.ts +++ b/src/api/types/TerminalCheckout.ts @@ -24,7 +24,7 @@ export interface TerminalCheckout { * Note: maximum 500 characters */ note?: string | null; - /** The reference to the Square order ID for the checkout request. Supported only in the US. */ + /** The reference to the Square order ID for the checkout request. */ orderId?: string | null; /** Payment-specific options for the checkout request. Supported only in the US. */ paymentOptions?: Square.PaymentOptions; diff --git a/src/api/types/index.ts b/src/api/types/index.ts index af8e87c8a..e9fea9006 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -479,7 +479,9 @@ export * from "./ListMerchantsResponse"; export * from "./ListOrderCustomAttributeDefinitionsResponse"; export * from "./ListOrderCustomAttributesResponse"; export * from "./ListPaymentLinksResponse"; +export * from "./ListPaymentRefundsRequestSortField"; export * from "./ListPaymentRefundsResponse"; +export * from "./ListPaymentsRequestSortField"; export * from "./ListPaymentsResponse"; export * from "./ListPayoutEntriesResponse"; export * from "./ListPayoutsResponse"; @@ -627,7 +629,6 @@ export * from "./PaymentLinkRelatedResources"; export * from "./PaymentOptions"; export * from "./PaymentOptionsDelayAction"; export * from "./PaymentRefund"; -export * from "./PaymentSortField"; export * from "./Payout"; export * from "./PayoutEntry"; export * from "./PayoutFee"; diff --git a/src/serialization/types/ErrorCode.ts b/src/serialization/types/ErrorCode.ts index 0d86654fc..8677ea3fb 100644 --- a/src/serialization/types/ErrorCode.ts +++ b/src/serialization/types/ErrorCode.ts @@ -88,6 +88,7 @@ export const ErrorCode: core.serialization.Schema = core.serialization.enum_(["CREATED_AT", "UPDATED_AT"]); + +export declare namespace ListPaymentRefundsRequestSortField { + export type Raw = "CREATED_AT" | "UPDATED_AT"; +} diff --git a/src/serialization/types/PaymentSortField.ts b/src/serialization/types/ListPaymentsRequestSortField.ts similarity index 50% rename from src/serialization/types/PaymentSortField.ts rename to src/serialization/types/ListPaymentsRequestSortField.ts index fcdf26cdb..07efc7589 100644 --- a/src/serialization/types/PaymentSortField.ts +++ b/src/serialization/types/ListPaymentsRequestSortField.ts @@ -6,9 +6,11 @@ import * as serializers from "../index"; import * as Square from "../../api/index"; import * as core from "../../core"; -export const PaymentSortField: core.serialization.Schema = - core.serialization.enum_(["CREATED_AT", "OFFLINE_CREATED_AT", "UPDATED_AT"]); +export const ListPaymentsRequestSortField: core.serialization.Schema< + serializers.ListPaymentsRequestSortField.Raw, + Square.ListPaymentsRequestSortField +> = core.serialization.enum_(["CREATED_AT", "OFFLINE_CREATED_AT", "UPDATED_AT"]); -export declare namespace PaymentSortField { +export declare namespace ListPaymentsRequestSortField { export type Raw = "CREATED_AT" | "OFFLINE_CREATED_AT" | "UPDATED_AT"; } diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts index af8e87c8a..e9fea9006 100644 --- a/src/serialization/types/index.ts +++ b/src/serialization/types/index.ts @@ -479,7 +479,9 @@ export * from "./ListMerchantsResponse"; export * from "./ListOrderCustomAttributeDefinitionsResponse"; export * from "./ListOrderCustomAttributesResponse"; export * from "./ListPaymentLinksResponse"; +export * from "./ListPaymentRefundsRequestSortField"; export * from "./ListPaymentRefundsResponse"; +export * from "./ListPaymentsRequestSortField"; export * from "./ListPaymentsResponse"; export * from "./ListPayoutEntriesResponse"; export * from "./ListPayoutsResponse"; @@ -627,7 +629,6 @@ export * from "./PaymentLinkRelatedResources"; export * from "./PaymentOptions"; export * from "./PaymentOptionsDelayAction"; export * from "./PaymentRefund"; -export * from "./PaymentSortField"; export * from "./Payout"; export * from "./PayoutEntry"; export * from "./PayoutFee"; diff --git a/src/version.ts b/src/version.ts index 5ea7496a5..eb90172a3 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "40.0.0"; +export const SDK_VERSION = "41.0.0"; diff --git a/yarn.lock b/yarn.lock index a1e21bea5..9fc46d87d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -115,7 +115,7 @@ dependencies: tslib "^2.8.1" -"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.25.9", "@babel/code-frame@^7.26.0", "@babel/code-frame@^7.26.2": +"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.26.2": version "7.26.2" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.26.2.tgz#4b5fab97d33338eff916235055f0ebc21e573a85" integrity sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ== @@ -125,43 +125,43 @@ picocolors "^1.0.0" "@babel/compat-data@^7.26.5": - version "7.26.5" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.26.5.tgz#df93ac37f4417854130e21d72c66ff3d4b897fc7" - integrity sha512-XvcZi1KWf88RVbF9wn8MN6tYFloU5qX8KjuF3E1PVBmJ9eypXfs4GRiJwLuTZL0iSnJUKn1BFPa5BPZZJyFzPg== + version "7.26.8" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.26.8.tgz#821c1d35641c355284d4a870b8a4a7b0c141e367" + integrity sha512-oH5UPLMWR3L2wEFLnFJ1TZXqHufiTKAiLfqw5zkhS4dKXLJ10yVztfil/twG8EDTA4F/tvVNw9nOl4ZMslB8rQ== "@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.9": - version "7.26.0" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.26.0.tgz#d78b6023cc8f3114ccf049eb219613f74a747b40" - integrity sha512-i1SLeK+DzNnQ3LL/CswPCa/E5u4lh1k6IAEphON8F+cXt0t9euTshDru0q7/IqMa1PMPz5RnHuHscF8/ZJsStg== + version "7.26.9" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.26.9.tgz#71838542a4b1e49dfed353d7acbc6eb89f4a76f2" + integrity sha512-lWBYIrF7qK5+GjY5Uy+/hEgp8OJWOD/rpy74GplYRhEauvbHDeFB8t5hPOZxCZ0Oxf4Cc36tK51/l3ymJysrKw== dependencies: "@ampproject/remapping" "^2.2.0" - "@babel/code-frame" "^7.26.0" - "@babel/generator" "^7.26.0" - "@babel/helper-compilation-targets" "^7.25.9" + "@babel/code-frame" "^7.26.2" + "@babel/generator" "^7.26.9" + "@babel/helper-compilation-targets" "^7.26.5" "@babel/helper-module-transforms" "^7.26.0" - "@babel/helpers" "^7.26.0" - "@babel/parser" "^7.26.0" - "@babel/template" "^7.25.9" - "@babel/traverse" "^7.25.9" - "@babel/types" "^7.26.0" + "@babel/helpers" "^7.26.9" + "@babel/parser" "^7.26.9" + "@babel/template" "^7.26.9" + "@babel/traverse" "^7.26.9" + "@babel/types" "^7.26.9" convert-source-map "^2.0.0" debug "^4.1.0" gensync "^1.0.0-beta.2" json5 "^2.2.3" semver "^6.3.1" -"@babel/generator@^7.26.0", "@babel/generator@^7.26.5", "@babel/generator@^7.7.2": - version "7.26.5" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.26.5.tgz#e44d4ab3176bbcaf78a5725da5f1dc28802a9458" - integrity sha512-2caSP6fN9I7HOe6nqhtft7V4g7/V/gfDsC3Ag4W7kEzzvRGKqiv0pu0HogPiZ3KaVSoNDhUws6IJjDjpfmYIXw== +"@babel/generator@^7.26.9", "@babel/generator@^7.7.2": + version "7.26.9" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.26.9.tgz#75a9482ad3d0cc7188a537aa4910bc59db67cbca" + integrity sha512-kEWdzjOAUMW4hAyrzJ0ZaTOu9OmpyDIQicIh0zg0EEcEkYXZb2TjtBhnHi2ViX7PKwZqF4xwqfAm299/QMP3lg== dependencies: - "@babel/parser" "^7.26.5" - "@babel/types" "^7.26.5" + "@babel/parser" "^7.26.9" + "@babel/types" "^7.26.9" "@jridgewell/gen-mapping" "^0.3.5" "@jridgewell/trace-mapping" "^0.3.25" jsesc "^3.0.2" -"@babel/helper-compilation-targets@^7.25.9": +"@babel/helper-compilation-targets@^7.26.5": version "7.26.5" resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.26.5.tgz#75d92bb8d8d51301c0d49e52a65c9a7fe94514d8" integrity sha512-IXuyn5EkouFJscIDuFF5EsiSolseme1s0CZB+QxVugqJLYmKdxI1VfIBOst0SUu4rnk2Z7kqTwmoO1lp3HIfnA== @@ -209,20 +209,20 @@ resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.25.9.tgz#86e45bd8a49ab7e03f276577f96179653d41da72" integrity sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw== -"@babel/helpers@^7.26.0": - version "7.26.0" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.26.0.tgz#30e621f1eba5aa45fe6f4868d2e9154d884119a4" - integrity sha512-tbhNuIxNcVb21pInl3ZSjksLCvgdZy9KwJ8brv993QtIVKJBBkYXz4q4ZbAv31GdnC+R90np23L5FbEBlthAEw== +"@babel/helpers@^7.26.9": + version "7.26.9" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.26.9.tgz#28f3fb45252fc88ef2dc547c8a911c255fc9fef6" + integrity sha512-Mz/4+y8udxBKdmzt/UjPACs4G3j5SshJJEFFKxlCGPydG4JAHXxjWjAwjd09tf6oINvl1VfMJo+nB7H2YKQ0dA== dependencies: - "@babel/template" "^7.25.9" - "@babel/types" "^7.26.0" + "@babel/template" "^7.26.9" + "@babel/types" "^7.26.9" -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.25.9", "@babel/parser@^7.26.0", "@babel/parser@^7.26.5": - version "7.26.5" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.26.5.tgz#6fec9aebddef25ca57a935c86dbb915ae2da3e1f" - integrity sha512-SRJ4jYmXRqV1/Xc+TIVG84WjHBXKlxO9sHQnA2Pf12QQEAp1LOh6kDzNHXcUnbH1QI0FDoPPVOt+vyUDucxpaw== +"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.26.9": + version "7.26.9" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.26.9.tgz#d9e78bee6dc80f9efd8f2349dcfbbcdace280fd5" + integrity sha512-81NWa1njQblgZbQHxWHpxxCzNsa3ZwvFqpUg7P+NNUU6f3UU2jBEg4OlF/J6rl8+PQGh1q6/zWScd001YwcA5A== dependencies: - "@babel/types" "^7.26.5" + "@babel/types" "^7.26.9" "@babel/plugin-syntax-async-generators@^7.8.4": version "7.8.4" @@ -343,32 +343,32 @@ dependencies: "@babel/helper-plugin-utils" "^7.25.9" -"@babel/template@^7.25.9", "@babel/template@^7.3.3": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.25.9.tgz#ecb62d81a8a6f5dc5fe8abfc3901fc52ddf15016" - integrity sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg== +"@babel/template@^7.26.9", "@babel/template@^7.3.3": + version "7.26.9" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.26.9.tgz#4577ad3ddf43d194528cff4e1fa6b232fa609bb2" + integrity sha512-qyRplbeIpNZhmzOysF/wFMuP9sctmh2cFzRAZOn1YapxBsE1i9bJIY586R/WBLfLcmcBlM8ROBiQURnnNy+zfA== dependencies: - "@babel/code-frame" "^7.25.9" - "@babel/parser" "^7.25.9" - "@babel/types" "^7.25.9" + "@babel/code-frame" "^7.26.2" + "@babel/parser" "^7.26.9" + "@babel/types" "^7.26.9" -"@babel/traverse@^7.25.9": - version "7.26.5" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.26.5.tgz#6d0be3e772ff786456c1a37538208286f6e79021" - integrity sha512-rkOSPOw+AXbgtwUga3U4u8RpoK9FEFWBNAlTpcnkLFjL5CT+oyHNuUUC/xx6XefEJ16r38r8Bc/lfp6rYuHeJQ== +"@babel/traverse@^7.25.9", "@babel/traverse@^7.26.9": + version "7.26.9" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.26.9.tgz#4398f2394ba66d05d988b2ad13c219a2c857461a" + integrity sha512-ZYW7L+pL8ahU5fXmNbPF+iZFHCv5scFak7MZ9bwaRPLUhHh7QQEMjZUg0HevihoqCM5iSYHN61EyCoZvqC+bxg== dependencies: "@babel/code-frame" "^7.26.2" - "@babel/generator" "^7.26.5" - "@babel/parser" "^7.26.5" - "@babel/template" "^7.25.9" - "@babel/types" "^7.26.5" + "@babel/generator" "^7.26.9" + "@babel/parser" "^7.26.9" + "@babel/template" "^7.26.9" + "@babel/types" "^7.26.9" debug "^4.3.1" globals "^11.1.0" -"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.25.9", "@babel/types@^7.26.0", "@babel/types@^7.26.5", "@babel/types@^7.3.3": - version "7.26.5" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.26.5.tgz#7a1e1c01d28e26d1fe7f8ec9567b3b92b9d07747" - integrity sha512-L6mZmwFDK6Cjh1nRCLXpa6no13ZIioJDz7mdkzHv399pThrTa/k0nUlNaenOeh2kWu/iaOQYElEpKPUswUa9Vg== +"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.25.9", "@babel/types@^7.26.9", "@babel/types@^7.3.3": + version "7.26.9" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.26.9.tgz#08b43dec79ee8e682c2ac631c010bdcac54a21ce" + integrity sha512-Y3IR1cRnOxOCDvMmNiym7XpXQ93iGDDPHx+Zj+NM+rg0fBaShfQLkg+hKPaZCEvg5N/LeCo4+Rj/i3FuJsIQaw== dependencies: "@babel/helper-string-parser" "^7.25.9" "@babel/helper-validator-identifier" "^7.25.9" @@ -747,7 +747,7 @@ "@types/tough-cookie" "*" parse5 "^7.0.0" -"@types/json-schema@*", "@types/json-schema@^7.0.8", "@types/json-schema@^7.0.9": +"@types/json-schema@*", "@types/json-schema@^7.0.9": version "7.0.15" resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841" integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== @@ -761,9 +761,9 @@ form-data "^4.0.0" "@types/node@*": - version "22.10.7" - resolved "https://registry.yarnpkg.com/@types/node/-/node-22.10.7.tgz#14a1ca33fd0ebdd9d63593ed8d3fbc882a6d28d7" - integrity sha512-V09KvXxFiutGp6B7XkpaDXlNadZxrzajcY50EuoLIpQ6WWYCSvf19lVIazzfIzQvhUN2HjX12spLojTnhuKlGg== + version "22.13.4" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.13.4.tgz#3fe454d77cd4a2d73c214008b3e331bfaaf5038a" + integrity sha512-ywP2X0DYtX3y08eFVx5fNIw7/uIv8hYUKgXoK8oayJlLnKcRfEYCxWMVE1XagUdVtCJlZT1AU4LXEABW+L1Peg== dependencies: undici-types "~6.20.0" @@ -773,9 +773,9 @@ integrity sha512-fAtCfv4jJg+ExtXhvCkCqUKZ+4ok/JQk01qDKhL5BDDoS3AxKXhV5/MAVUZyQnSEd2GT92fkgZl0pz0Q0AzcIQ== "@types/node@^18.19.70": - version "18.19.71" - resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.71.tgz#96d4f0a0be735ead6c8998c62a4b2c0012a5d09a" - integrity sha512-evXpcgtZm8FY4jqBSN8+DmOTcVkkvTmAayeo4Wf3m1xAruyVGzGuDh/Fb/WWX2yLItUiho42ozyJjB0dw//Tkw== + version "18.19.76" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.76.tgz#7991658e0ba41ad30cc8be01c9bbe580d58f2112" + integrity sha512-yvR7Q9LdPz2vGpmpJX5LolrgRdWvB67MJKDPSgIIzpFbaf9a1j/f5DnLp5VDyHGMR0QZHlTr1afsD87QCXFHKw== dependencies: undici-types "~5.26.4" @@ -996,11 +996,6 @@ ajv-formats@^2.1.1: dependencies: ajv "^8.0.0" -ajv-keywords@^3.5.2: - version "3.5.2" - resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.5.2.tgz#31f29da5ab6e00d1c2d329acf7b5929614d5014d" - integrity sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ== - ajv-keywords@^5.1.0: version "5.1.0" resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-5.1.0.tgz#69d4d385a4733cdbeab44964a1170a88f87f0e16" @@ -1008,16 +1003,6 @@ ajv-keywords@^5.1.0: dependencies: fast-deep-equal "^3.1.3" -ajv@^6.12.5: - version "6.12.6" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" - integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== - dependencies: - fast-deep-equal "^3.1.1" - fast-json-stable-stringify "^2.0.0" - json-schema-traverse "^0.4.1" - uri-js "^4.2.2" - ajv@^8.0.0, ajv@^8.9.0: version "8.17.1" resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.17.1.tgz#37d9a5c776af6bc92d7f4f9510eba4c0a60d11a6" @@ -1219,9 +1204,9 @@ buffer@^6.0.3: ieee754 "^1.2.1" call-bind-apply-helpers@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.1.tgz#32e5892e6361b29b0b545ba6f7763378daca2840" - integrity sha512-BhYE+WDaywFg2TBWYNXAE+8B1ATnThNBqXHP5nQu0jWJdVvY2hvkpyB3qOmtmDePiS5/BDQ8wASEWGMWRG148g== + version "1.0.2" + resolved "https://registry.yarnpkg.com/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz#4b5428c222be985d79c3d82657479dbe0b59b2d6" + integrity sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ== dependencies: es-errors "^1.3.0" function-bind "^1.1.2" @@ -1250,9 +1235,9 @@ camelcase@^6.2.0: integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== caniuse-lite@^1.0.30001688: - version "1.0.30001695" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001695.tgz#39dfedd8f94851132795fdf9b79d29659ad9c4d4" - integrity sha512-vHyLade6wTgI2u1ec3WQBxv+2BrTERV28UXQu9LO6lZ9pYeMk34vjXFLOxo1A4UBA8XTL4njRQZdno/yYaSmWw== + version "1.0.30001700" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001700.tgz#26cd429cf09b4fd4e745daf4916039c794d720f6" + integrity sha512-2S6XIXwaE7K7erT8dY+kLQcpa5ms63XlRkMkReXjle+kf6c5g38vyMl+Z5y8dSxOFDhcFe+nxnn261PLxBSQsQ== chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0: version "4.1.2" @@ -1278,9 +1263,9 @@ ci-info@^3.2.0: integrity sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ== cjs-module-lexer@^1.0.0: - version "1.4.1" - resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.4.1.tgz#707413784dbb3a72aa11c2f2b042a0bef4004170" - integrity sha512-cuSVIHi9/9E/+821Qjdvngor+xpnlwnuwIyZOaLmHBVdXL+gP+I6QQB9VkO7RI77YIcTV+S1W9AreJ5eN63JBA== + version "1.4.3" + resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz#0f79731eb8cfe1ec72acd4066efac9d61991b00d" + integrity sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q== cliui@^8.0.1: version "8.0.1" @@ -1391,9 +1376,9 @@ debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1: ms "^2.1.3" decimal.js@^10.4.2: - version "10.4.3" - resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.4.3.tgz#1044092884d245d1b7f65725fa4ad4c6f781cc23" - integrity sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA== + version "10.5.0" + resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.5.0.tgz#0f371c7cf6c4898ce0afb09836db73cd82010f22" + integrity sha512-8vDa8Qxvr/+d94hSh5P3IJwI5t8/c0KsMp+g8bNw9cY2icONa5aPfvKeieW1WlG0WQYwwhJ7mjui2xtiePQSXw== dedent@^1.0.0: version "1.5.3" @@ -1454,9 +1439,9 @@ ejs@^3.1.10: jake "^10.8.5" electron-to-chromium@^1.5.73: - version "1.5.84" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.84.tgz#8e334ca206bb293a20b16418bf454783365b0a95" - integrity sha512-I+DQ8xgafao9Ha6y0qjHHvpZ9OfyA1qKlkHkjywxzniORU2awxyz7f/iVJcULmrF2yrM3nHQf+iDjJtbbexd/g== + version "1.5.102" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.102.tgz#81a452ace8e2c3fa7fba904ea4fed25052c53d3f" + integrity sha512-eHhqaja8tE/FNpIiBrvBjFV/SSKpyWHLvxuR9dPTdo+3V9ppdLmFB7ZZQ98qNovcngPLYIz0oOBF9P0FfZef5Q== emittery@^0.13.1: version "0.13.1" @@ -1469,9 +1454,9 @@ emoji-regex@^8.0.0: integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== enhanced-resolve@^5.0.0, enhanced-resolve@^5.17.1: - version "5.18.0" - resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.18.0.tgz#91eb1db193896b9801251eeff1c6980278b1e404" - integrity sha512-0/r0MySGYG8YqlayBZ6MuCfECmHFdJ5qyPh8s8wa5Hnm6SaFLSK1VYCbj+NKp090Nm1caZhD+QTnmxO7esYGyQ== + version "5.18.1" + resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.18.1.tgz#728ab082f8b7b6836de51f1637aab5d3b9568faf" + integrity sha512-ZSW3ma5GkcQBIpwZTSRAI8N71Uuwgs93IezB7mf7R60tC8ZbJideoDNKjHn2O9KIlx6rkGTTEk1xUCK2E1Y2Yg== dependencies: graceful-fs "^4.2.4" tapable "^2.2.0" @@ -1510,6 +1495,16 @@ es-object-atoms@^1.0.0: dependencies: es-errors "^1.3.0" +es-set-tostringtag@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz#f31dbbe0c183b00a6d26eb6325c810c0fd18bd4d" + integrity sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA== + dependencies: + es-errors "^1.3.0" + get-intrinsic "^1.2.6" + has-tostringtag "^1.0.2" + hasown "^2.0.2" + escalade@^3.1.1, escalade@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.2.0.tgz#011a3f69856ba189dffa7dc8fcce99d2a87903e5" @@ -1607,12 +1602,12 @@ expect@^29.0.0, expect@^29.7.0: jest-message-util "^29.7.0" jest-util "^29.7.0" -fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: +fast-deep-equal@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== -fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.0.0, fast-json-stable-stringify@^2.1.0: +fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== @@ -1662,12 +1657,13 @@ form-data-encoder@^4.0.2: integrity sha512-KQVhvhK8ZkWzxKxOr56CPulAhH3dobtuQ4+hNQ+HekH/Wp5gSOafqRAeTphQUJAIk0GBvHZgJ2ZGRWd5kphMuw== form-data@^4.0.0, form-data@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.1.tgz#ba1076daaaa5bfd7e99c1a6cb02aa0a5cff90d48" - integrity sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw== + version "4.0.2" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.2.tgz#35cabbdd30c3ce73deb2c42d3c8d3ed9ca51794c" + integrity sha512-hGfm/slu0ZabnNt4oaRZ6uREyfCj6P4fT/n6A1rGV+Z0VdGXjfOhVUpkn6qVQONHGIFwmveGXyDs75+nr6FM8w== dependencies: asynckit "^0.4.0" combined-stream "^1.0.8" + es-set-tostringtag "^2.1.0" mime-types "^2.1.12" formdata-node@^6.0.3: @@ -1771,11 +1767,18 @@ has-flag@^4.0.0: resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== -has-symbols@^1.1.0: +has-symbols@^1.0.3, has-symbols@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.1.0.tgz#fc9c6a783a084951d0b971fe1018de813707a338" integrity sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ== +has-tostringtag@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/has-tostringtag/-/has-tostringtag-1.0.2.tgz#2cdc42d40bef2e5b4eeab7c01a73c54ce7ab5abc" + integrity sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw== + dependencies: + has-symbols "^1.0.3" + hasown@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003" @@ -2406,11 +2409,6 @@ json-ptr@^3.1.1: resolved "https://registry.yarnpkg.com/json-ptr/-/json-ptr-3.1.1.tgz#184c3d48db659fa9bbc1519f7db6f390ddffb659" integrity sha512-SiSJQ805W1sDUCD1+/t1/1BIrveq2Fe9HJqENxZmMCILmrPI7WhS/pePpIOx85v6/H2z1Vy7AI08GV2TzfXocg== -json-schema-traverse@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" - integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== - json-schema-traverse@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2" @@ -2588,9 +2586,9 @@ nwsapi@^2.2.2: integrity sha512-F1I/bimDpj3ncaNDhfyMWuFqmQDBwDB0Fogc2qpL3BWvkQteFD/8BzWuIRl83rq0DXfm8SGt/HFhLXZyljTXcQ== object-inspect@^1.13.3: - version "1.13.3" - resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.3.tgz#f14c183de51130243d6d18ae149375ff50ea488a" - integrity sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA== + version "1.13.4" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.4.tgz#8375265e21bc20d0fa582c22e1b13485d6e00213" + integrity sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew== once@^1.3.0: version "1.4.0" @@ -2692,9 +2690,9 @@ pkg-dir@^4.2.0: find-up "^4.0.0" prettier@^3.4.2: - version "3.4.2" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.4.2.tgz#a5ce1fb522a588bf2b78ca44c6e6fe5aa5a2b13f" - integrity sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ== + version "3.5.1" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.5.1.tgz#22fac9d0b18c0b92055ac8fb619ac1c7bef02fb7" + integrity sha512-hPpFQvHwL3Qv5AdRvBFMhnKo4tYxp0ReXiPn2bxkiohEX6mBeBwEpBSQTkD458RaaDKQMYSp4hX4UtfUTA5wDw== pretty-format@^29.0.0, pretty-format@^29.7.0: version "29.7.0" @@ -2730,7 +2728,7 @@ psl@^1.1.33: dependencies: punycode "^2.3.1" -punycode@^2.1.0, punycode@^2.1.1, punycode@^2.3.1: +punycode@^2.1.1, punycode@^2.3.1: version "2.3.1" resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.1.tgz#027422e2faec0b25e1549c3e1bd8309b9133b6e5" integrity sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg== @@ -2838,15 +2836,6 @@ saxes@^6.0.0: dependencies: xmlchars "^2.2.0" -schema-utils@^3.2.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.3.0.tgz#f50a88877c3c01652a15b622ae9e9795df7a60fe" - integrity sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg== - dependencies: - "@types/json-schema" "^7.0.8" - ajv "^6.12.5" - ajv-keywords "^3.5.2" - schema-utils@^4.3.0: version "4.3.0" resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-4.3.0.tgz#3b669f04f71ff2dfb5aba7ce2d5a9d79b35622c0" @@ -2863,9 +2852,9 @@ semver@^6.3.0, semver@^6.3.1: integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== semver@^7.3.4, semver@^7.5.3, semver@^7.5.4, semver@^7.6.3: - version "7.6.3" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143" - integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A== + version "7.7.1" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.1.tgz#abd5098d82b18c6c81f6074ff2647fd3e7220c9f" + integrity sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA== serialize-javascript@^6.0.2: version "6.0.2" @@ -3066,7 +3055,7 @@ tapable@^2.1.1, tapable@^2.2.0: resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.1.tgz#1967a73ef4060a82f12ab96af86d52fdb76eeca0" integrity sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ== -terser-webpack-plugin@^5.3.10: +terser-webpack-plugin@^5.3.11: version "5.3.11" resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-5.3.11.tgz#93c21f44ca86634257cac176f884f942b7ba3832" integrity sha512-RVCsMfuD0+cTt3EwX8hSl2Ks56EbFHWmhluwcqoPKtBnfjiT6olaq7PRIRfhyU8nnC2MrnDrBLfrD/RGE+cVXQ== @@ -3078,9 +3067,9 @@ terser-webpack-plugin@^5.3.10: terser "^5.31.1" terser@^5.31.1: - version "5.37.0" - resolved "https://registry.yarnpkg.com/terser/-/terser-5.37.0.tgz#38aa66d1cfc43d0638fab54e43ff8a4f72a21ba3" - integrity sha512-B8wRRkmre4ERucLM/uXx4MOV5cbnOlVAqUst+1+iLKPI0dOgFO28f84ptoQt9HEI537PMzfYa/d+GEPKTRXmYA== + version "5.39.0" + resolved "https://registry.yarnpkg.com/terser/-/terser-5.39.0.tgz#0e82033ed57b3ddf1f96708d123cca717d86ca3a" + integrity sha512-LBAhFyLho16harJoWMg/nZsQYgTrg5jXOn2nCYjRUcZZEdE3qa2zb8QEDRUGVZBW4rlazf2fxkg8tztybTaqWw== dependencies: "@jridgewell/source-map" "^0.3.3" acorn "^8.8.2" @@ -3204,13 +3193,6 @@ update-browserslist-db@^1.1.1: escalade "^3.2.0" picocolors "^1.1.1" -uri-js@^4.2.2: - version "4.4.1" - resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" - integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg== - dependencies: - punycode "^2.1.0" - url-join@4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/url-join/-/url-join-4.0.1.tgz#b642e21a2646808ffa178c4c5fda39844e12cde7" @@ -3271,9 +3253,9 @@ webpack-sources@^3.2.3: integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w== webpack@^5.97.1: - version "5.97.1" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.97.1.tgz#972a8320a438b56ff0f1d94ade9e82eac155fa58" - integrity sha512-EksG6gFY3L1eFMROS/7Wzgrii5mBAFe4rIr3r2BTfo7bcc+DWwFZ4OJ/miOuHJO/A85HwyI4eQ0F6IKXesO7Fg== + version "5.98.0" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.98.0.tgz#44ae19a8f2ba97537978246072fb89d10d1fbd17" + integrity sha512-UFynvx+gM44Gv9qFgj0acCQK2VE1CtdfwFdimkapco3hlPCJ/zeq73n2yVKimVbtm+TnApIugGhLJnkU6gjYXA== dependencies: "@types/eslint-scope" "^3.7.7" "@types/estree" "^1.0.6" @@ -3293,9 +3275,9 @@ webpack@^5.97.1: loader-runner "^4.2.0" mime-types "^2.1.27" neo-async "^2.6.2" - schema-utils "^3.2.0" + schema-utils "^4.3.0" tapable "^2.1.1" - terser-webpack-plugin "^5.3.10" + terser-webpack-plugin "^5.3.11" watchpack "^2.4.1" webpack-sources "^3.2.3"