From e42550d8d6fd1b4a6a1e49ef2bf73849a4cd1cf9 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 22 Jan 2026 20:01:12 +0000 Subject: [PATCH] SDK regeneration --- .fern/metadata.json | 6 +- reference.md | 1631 ++++++++--------- .../Bookings/CustomAttributes/GetTest.cs | 77 - .../Bookings/CustomAttributes/ListTest.cs | 75 - .../Unit/MockServer/Bookings/GetTest.cs | 95 - .../Unit/MockServer/Bookings/ListTest.cs | 91 - .../Bookings/LocationProfiles/ListTest.cs | 64 - .../Unit/MockServer/Cards/CreateTest.cs | 130 -- .../Unit/MockServer/Cards/GetTest.cs | 84 - .../Unit/MockServer/Cards/ListTest.cs | 95 - .../Unit/MockServer/Catalog/ListTest.cs | 103 -- .../Unit/MockServer/Channels/GetTest.cs | 63 - .../Unit/MockServer/Channels/ListTest.cs | 78 - .../MockServer/Customers/Cards/DeleteTest.cs | 51 - .../Unit/MockServer/Customers/CreateTest.cs | 132 -- .../Unit/MockServer/Customers/GetTest.cs | 94 - .../MockServer/Customers/Groups/CreateTest.cs | 70 - .../MockServer/Customers/Groups/DeleteTest.cs | 51 - .../MockServer/Customers/Groups/GetTest.cs | 57 - .../MockServer/Customers/Groups/ListTest.cs | 66 - .../Unit/MockServer/Customers/ListTest.cs | 98 - .../Unit/MockServer/Customers/SearchTest.cs | 186 -- .../MockServer/Customers/Segments/GetTest.cs | 57 - .../MockServer/Customers/Segments/ListTest.cs | 78 - .../Unit/MockServer/Customers/UpdateTest.cs | 110 -- .../{Disputes => Default}/AcceptTest.cs | 7 +- .../{OAuth => Default}/AuthorizeTest.cs | 4 +- .../BatchCreateChangesTest.cs | 6 +- .../{Customers => Default}/BatchCreateTest.cs | 7 +- .../BatchCreateTest_.cs} | 9 +- .../{Catalog => Default}/BatchDeleteTest.cs | 7 +- .../BatchGetChangesTest.cs | 6 +- .../BatchGetCountsTest.cs | 6 +- .../{Catalog => Default}/BatchGetTest.cs | 7 +- .../BatchGetTest_.cs} | 9 +- .../BatchUpdateTest.cs | 7 +- .../BatchUpdateTest_.cs} | 9 +- .../{Catalog => Default}/BatchUpsertTest.cs | 7 +- .../Bookings}/BatchDeleteTest.cs | 8 +- .../Bookings}/BatchUpsertTest.cs | 8 +- .../Bookings}/CreateTest.cs | 8 +- .../Bookings}/DeleteTest.cs | 11 +- .../Bookings/DeleteTest_.cs} | 10 +- .../Bookings}/GetTest.cs | 8 +- .../Bookings/GetTest_.cs} | 10 +- .../Bookings}/ListTest.cs | 6 +- .../Bookings/ListTest_.cs} | 8 +- .../Bookings}/UpdateTest.cs | 8 +- .../Bookings}/UpsertTest.cs | 8 +- .../BulkDeleteCustomersTest.cs | 7 +- .../BulkPublishScheduledShiftsTest.cs | 7 +- .../BulkRetrieveBookingsTest.cs | 7 +- .../BulkRetrieveCustomersTest.cs | 7 +- ...lkRetrieveTeamMemberBookingProfilesTest.cs | 7 +- .../{Channels => Default}/BulkRetrieveTest.cs | 7 +- .../BulkSwapPlanTest.cs | 7 +- .../BulkUpdateCustomersTest.cs | 7 +- .../{Orders => Default}/CalculateTest.cs | 7 +- .../CancelByIdempotencyKeyTest.cs | 7 +- .../{Bookings => Default}/CancelTest.cs | 7 +- .../CancelTest.cs => Default/CancelTest_.cs} | 9 +- .../Shifts => Default/CashDrawers}/GetTest.cs | 8 +- .../CashDrawers}/ListEventsTest.cs | 6 +- .../CashDrawers}/ListTest.cs | 8 +- .../Object => Default/Catalog}/DeleteTest.cs | 8 +- .../Object => Default/Catalog}/GetTest.cs | 8 +- .../Object => Default/Catalog}/UpsertTest.cs | 8 +- .../ChangeBillingAnchorDateTest.cs | 7 +- .../{Inventory => Default}/ChangesTest.cs | 6 +- .../Checkout}/CreateTest.cs | 8 +- .../Checkout}/DeleteTest.cs | 8 +- .../Checkout}/GetTest.cs | 8 +- .../Checkout}/ListTest.cs | 6 +- .../Checkout}/UpdateTest.cs | 8 +- .../{Locations => Default}/CheckoutsTest.cs | 7 +- .../{Orders => Default}/CloneTest.cs | 7 +- .../{Payments => Default}/CompleteTest.cs | 7 +- .../CreateBankAccountTest.cs | 7 +- .../CreateEvidenceTextTest.cs | 7 +- .../{Team => Default}/CreateJobTest.cs | 7 +- .../CreateScheduledShiftTest.cs | 7 +- .../{Bookings => Default}/CreateTest.cs | 7 +- .../CreateTest.cs => Default/CreateTest_.cs} | 9 +- .../{Labor => Default}/CreateTimecardTest.cs | 7 +- .../Groups => Default/Customers}/AddTest.cs | 8 +- .../Customers}/BatchUpsertTest.cs | 8 +- .../Customers}/CreateTest.cs | 8 +- .../Customers/CreateTest_.cs} | 10 +- .../Customers}/DeleteTest.cs | 11 +- .../Customers/DeleteTest_.cs} | 10 +- .../Customers}/GetTest.cs | 8 +- .../Customers/GetTest_.cs} | 10 +- .../Customers}/ListTest.cs | 6 +- .../Customers/ListTest_.cs} | 8 +- .../Customers}/RemoveTest.cs | 8 +- .../Customers}/UpdateTest.cs | 8 +- .../Customers/UpdateTest_.cs} | 10 +- .../Customers}/UpsertTest.cs | 8 +- .../DeleteActionTest.cs | 7 +- .../DeleteInvoiceAttachmentTest.cs | 7 +- .../{Customers => Default}/DeleteTest.cs | 7 +- .../DeleteTest.cs => Default/DeleteTest_.cs} | 9 +- .../{Labor => Default}/DeleteTimecardTest.cs | 7 +- .../DeprecatedBatchChangeTest.cs | 6 +- .../DeprecatedBatchGetChangesTest.cs | 6 +- .../DeprecatedBatchGetCountsTest.cs | 6 +- .../DeprecatedGetAdjustmentTest.cs | 7 +- .../DeprecatedGetPhysicalCountTest.cs | 7 +- .../Codes => Default/Devices}/CreateTest.cs | 8 +- .../Codes => Default/Devices}/GetTest.cs | 10 +- .../Codes => Default/Devices}/ListTest.cs | 8 +- .../DisableBankAccountTest.cs | 7 +- .../{Events => Default}/DisableEventsTest.cs | 6 +- .../{Cards => Default}/DisableTest.cs | 7 +- .../DismissTerminalActionTest.cs | 7 +- .../DismissTerminalCheckoutTest.cs | 7 +- .../DismissTerminalRefundTest.cs | 7 +- .../Disputes}/DeleteTest.cs | 8 +- .../Evidence => Default/Disputes}/GetTest.cs | 8 +- .../Evidence => Default/Disputes}/ListTest.cs | 6 +- .../{Events => Default}/EnableEventsTest.cs | 6 +- .../GetAdjustmentTest.cs | 7 +- .../GetBusinessProfileTest.cs | 6 +- .../GetByV1IdTest.cs | 7 +- .../{GiftCards => Default}/GetFromGanTest.cs | 7 +- .../GetFromNonceTest.cs | 7 +- .../GetPhysicalCountTest.cs | 7 +- .../{BankAccounts => Default}/GetTest.cs | 7 +- .../GetTest.cs => Default/GetTest_.cs} | 9 +- .../{Inventory => Default}/GetTransferTest.cs | 7 +- .../GiftCards}/CreateTest.cs | 8 +- .../GiftCards}/ListTest.cs | 6 +- .../{Catalog => Default}/InfoTest.cs | 6 +- .../Labor}/CreateTest.cs | 8 +- .../Labor/CreateTest_.cs} | 10 +- .../Labor}/DeleteTest.cs | 8 +- .../Labor/DeleteTest_.cs} | 12 +- .../BreakTypes => Default/Labor}/GetTest.cs | 8 +- .../GetTest.cs => Default/Labor/GetTest_.cs} | 10 +- .../BreakTypes => Default/Labor}/ListTest.cs | 6 +- .../Labor/ListTest_.cs} | 8 +- .../Shifts => Default/Labor}/SearchTest.cs | 8 +- .../Labor}/UpdateTest.cs | 8 +- .../Labor/UpdateTest_.cs} | 10 +- .../LinkCustomerTest.cs | 7 +- .../{Payouts => Default}/ListEntriesTest.cs | 7 +- .../{Events => Default}/ListEventTypesTest.cs | 8 +- .../ListEventsTest.cs | 6 +- .../{Team => Default}/ListJobsTest.cs | 9 +- .../{BankAccounts => Default}/ListTest.cs | 6 +- .../ListTest.cs => Default/ListTest_.cs} | 8 +- .../Locations}/BatchDeleteTest.cs | 8 +- .../Locations}/BatchUpsertTest.cs | 8 +- .../Locations}/CaptureTest.cs | 8 +- .../Locations}/CreateTest.cs | 8 +- .../Locations}/DeleteTest.cs | 11 +- .../Locations/DeleteTest_.cs} | 10 +- .../Locations}/GetTest.cs | 8 +- .../Locations/GetTest_.cs} | 10 +- .../Locations}/ListTest.cs | 8 +- .../Locations/ListTest_.cs} | 10 +- .../Locations}/UpdateTest.cs | 8 +- .../Locations}/UpsertTest.cs | 8 +- .../Locations}/VoidTest.cs | 8 +- .../Loyalty}/AccumulatePointsTest.cs | 8 +- .../Loyalty}/AdjustTest.cs | 8 +- .../Loyalty}/CalculateTest.cs | 8 +- .../Loyalty}/CreateTest.cs | 8 +- .../Loyalty/CreateTest_.cs} | 10 +- .../Rewards => Default/Loyalty}/DeleteTest.cs | 8 +- .../Accounts => Default/Loyalty}/GetTest.cs | 8 +- .../Loyalty/GetTest_.cs} | 10 +- .../Programs => Default/Loyalty}/ListTest.cs | 6 +- .../Loyalty/Programs}/CancelTest.cs | 8 +- .../Loyalty/Programs}/CreateTest.cs | 8 +- .../Loyalty/Programs}/GetTest.cs | 8 +- .../Loyalty/Programs}/ListTest.cs | 8 +- .../Rewards => Default/Loyalty}/RedeemTest.cs | 8 +- .../Loyalty}/SearchTest.cs | 8 +- .../Loyalty/SearchTest_.cs} | 10 +- .../Merchants}/BatchDeleteTest.cs | 8 +- .../Merchants}/BatchUpsertTest.cs | 8 +- .../Merchants}/CreateTest.cs | 8 +- .../Merchants}/DeleteTest.cs | 11 +- .../Merchants/DeleteTest_.cs} | 10 +- .../Merchants}/GetTest.cs | 8 +- .../Merchants/GetTest_.cs} | 10 +- .../Merchants}/ListTest.cs | 8 +- .../Merchants/ListTest_.cs} | 10 +- .../Merchants}/UpdateTest.cs | 8 +- .../Merchants}/UpsertTest.cs | 8 +- .../{OAuth => Default}/ObtainTokenTest.cs | 7 +- .../Orders}/BatchDeleteTest.cs | 8 +- .../Orders}/BatchUpsertTest.cs | 8 +- .../Orders}/CreateTest.cs | 8 +- .../Orders}/DeleteTest.cs | 11 +- .../Orders/DeleteTest_.cs} | 10 +- .../Orders}/GetTest.cs | 8 +- .../GetTest.cs => Default/Orders/GetTest_.cs} | 10 +- .../Orders}/ListTest.cs | 8 +- .../Orders/ListTest_.cs} | 10 +- .../Orders}/UpdateTest.cs | 8 +- .../Orders}/UpsertTest.cs | 8 +- .../{Subscriptions => Default}/PauseTest.cs | 7 +- .../MockServer/{Orders => Default}/PayTest.cs | 7 +- .../PublishScheduledShiftTest.cs | 7 +- .../{Invoices => Default}/PublishTest.cs | 7 +- .../ReceiveTest.cs | 7 +- .../{Refunds => Default}/RefundPaymentTest.cs | 7 +- .../RegisterDomainTest.cs | 7 +- .../{Subscriptions => Default}/ResumeTest.cs | 7 +- .../{Team => Default}/RetrieveJobTest.cs | 7 +- .../RetrieveLocationBookingProfileTest.cs | 7 +- .../RetrieveLocationSettingsTest.cs | 7 +- .../RetrieveMerchantSettingsTest.cs | 6 +- .../RetrieveScheduledShiftTest.cs | 7 +- .../RetrieveTimecardTest.cs | 7 +- .../RetrieveTokenStatusTest.cs | 6 +- .../{OAuth => Default}/RevokeTokenTest.cs | 7 +- .../SearchAvailabilityTest.cs | 7 +- .../{Events => Default}/SearchEventsTest.cs | 7 +- .../SearchEventsTest_.cs} | 9 +- .../{Catalog => Default}/SearchItemsTest.cs | 9 +- .../SearchScheduledShiftsTest.cs | 7 +- .../{Catalog => Default}/SearchTest.cs | 7 +- .../SearchTest.cs => Default/SearchTest_.cs} | 9 +- .../{Labor => Default}/SearchTimecardsTest.cs | 7 +- .../{TransferOrders => Default}/StartTest.cs | 7 +- .../SubmitEvidenceTest.cs | 7 +- .../SwapPlanTest.cs | 7 +- .../TeamMembers}/GetTest.cs | 11 +- .../TeamMembers}/UpdateTest.cs | 10 +- .../Terminal}/CancelTest.cs | 8 +- .../Terminal/CancelTest_.cs} | 10 +- .../Terminal}/CreateTest.cs | 8 +- .../Terminal/CreateTest_.cs} | 10 +- .../Actions => Default/Terminal}/GetTest.cs | 8 +- .../Terminal/GetTest_.cs} | 10 +- .../Terminal}/SearchTest.cs | 8 +- .../Terminal/SearchTest_.cs} | 10 +- .../UnlinkCustomerTest.cs | 7 +- .../UpdateItemModifierListsTest.cs | 7 +- .../UpdateItemTaxesTest.cs | 7 +- .../{Team => Default}/UpdateJobTest.cs | 7 +- .../UpdateLocationSettingsTest.cs | 7 +- .../UpdateMerchantSettingsTest.cs | 7 +- .../UpdateScheduledShiftTest.cs | 7 +- .../{Bookings => Default}/UpdateTest.cs | 7 +- .../UpdateTest.cs => Default/UpdateTest_.cs} | 9 +- .../{Labor => Default}/UpdateTimecardTest.cs | 7 +- .../{Snippets => Default}/UpsertTest.cs | 7 +- .../V1ListOrdersTest.cs | 7 +- .../V1RetrieveOrderTest.cs | 7 +- .../V1UpdateOrderTest.cs | 7 +- .../Webhooks}/CreateTest.cs | 8 +- .../Webhooks}/DeleteTest.cs | 8 +- .../Webhooks}/GetTest.cs | 8 +- .../Webhooks}/ListTest.cs | 8 +- .../Webhooks/ListTest_.cs} | 10 +- .../Webhooks}/TestTest.cs | 8 +- .../Webhooks}/UpdateSignatureKeyTest.cs | 8 +- .../Webhooks}/UpdateTest.cs | 8 +- .../Unit/MockServer/Devices/GetTest.cs | 107 -- .../Unit/MockServer/Devices/ListTest.cs | 177 -- .../Unit/MockServer/Disputes/GetTest.cs | 75 - .../Unit/MockServer/Disputes/ListTest.cs | 111 -- .../Unit/MockServer/Employees/GetTest.cs | 59 - .../Unit/MockServer/Employees/ListTest.cs | 77 - .../Unit/MockServer/GiftCards/CreateTest.cs | 82 - .../Unit/MockServer/GiftCards/GetTest.cs | 60 - .../Unit/MockServer/GiftCards/ListTest.cs | 94 - .../Unit/MockServer/Inventory/GetTest.cs | 68 - .../Unit/MockServer/Invoices/CancelTest.cs | 138 -- .../Unit/MockServer/Invoices/CreateTest.cs | 245 --- .../Unit/MockServer/Invoices/DeleteTest.cs | 51 - .../Unit/MockServer/Invoices/GetTest.cs | 130 -- .../Unit/MockServer/Invoices/ListTest.cs | 223 --- .../Unit/MockServer/Invoices/SearchTest.cs | 242 --- .../Unit/MockServer/Invoices/UpdateTest.cs | 155 -- .../MockServer/Labor/EmployeeWages/GetTest.cs | 59 - .../Labor/EmployeeWages/ListTest.cs | 96 - .../Unit/MockServer/Labor/Shifts/GetTest.cs | 83 - .../Labor/TeamMemberWages/GetTest.cs | 62 - .../Labor/TeamMemberWages/ListTest.cs | 104 -- .../Unit/MockServer/Locations/CreateTest.cs | 140 -- .../Locations/CustomAttributes/GetTest.cs | 77 - .../Locations/CustomAttributes/ListTest.cs | 78 - .../Unit/MockServer/Locations/GetTest.cs | 109 -- .../Unit/MockServer/Locations/ListTest.cs | 115 -- .../Unit/MockServer/Locations/UpdateTest.cs | 183 -- .../MockServer/Loyalty/Programs/GetTest.cs | 100 - .../Unit/MockServer/Merchants/GetTest.cs | 60 - .../Unit/MockServer/Merchants/ListTest.cs | 61 - .../Mobile/AuthorizationCodeTest.cs | 23 - .../Unit/MockServer/Orders/BatchGetTest.cs | 151 -- .../Unit/MockServer/Orders/CreateTest.cs | 483 ----- .../Unit/MockServer/Orders/GetTest.cs | 250 --- .../Unit/MockServer/Orders/SearchTest.cs | 182 -- .../Unit/MockServer/Orders/UpdateTest.cs | 267 --- .../Unit/MockServer/Payments/CancelTest.cs | 239 --- .../Unit/MockServer/Payments/CreateTest.cs | 272 --- .../Unit/MockServer/Payments/GetTest.cs | 246 --- .../Unit/MockServer/Payments/ListTest.cs | 169 -- .../Unit/MockServer/Payments/UpdateTest.cs | 270 --- .../Unit/MockServer/Payouts/GetTest.cs | 72 - .../Unit/MockServer/Payouts/ListTest.cs | 117 -- .../Unit/MockServer/Refunds/GetTest.cs | 91 - .../Unit/MockServer/Refunds/ListTest.cs | 105 -- .../Unit/MockServer/Snippets/DeleteTest.cs | 50 - .../Unit/MockServer/Snippets/GetTest.cs | 57 - .../MockServer/Subscriptions/CancelTest.cs | 97 - .../MockServer/Subscriptions/CreateTest.cs | 126 -- .../Unit/MockServer/Subscriptions/GetTest.cs | 88 - .../MockServer/Subscriptions/SearchTest.cs | 182 -- .../MockServer/Subscriptions/UpdateTest.cs | 99 - .../MockServer/TeamMembers/BatchCreateTest.cs | 184 -- .../Unit/MockServer/TeamMembers/CreateTest.cs | 188 -- .../Unit/MockServer/TeamMembers/GetTest.cs | 101 - .../Unit/MockServer/TeamMembers/SearchTest.cs | 335 ---- .../Unit/MockServer/TeamMembers/UpdateTest.cs | 195 -- .../Terminal/Checkouts/CancelTest.cs | 99 - .../Terminal/Checkouts/CreateTest.cs | 131 -- .../MockServer/Terminal/Checkouts/GetTest.cs | 99 - .../Terminal/Checkouts/SearchTest.cs | 136 -- .../MockServer/TransferOrders/CreateTest.cs | 136 -- .../Unit/MockServer/TransferOrders/GetTest.cs | 85 - .../MockServer/TransferOrders/SearchTest.cs | 155 -- .../MockServer/TransferOrders/UpdateTest.cs | 138 -- src/Square/CashDrawers/ICashDrawersClient.cs | 6 - src/Square/Core/Public/Version.cs | 2 +- .../{ => Default}/ApplePay/ApplePayClient.cs | 6 +- .../{ => Default}/ApplePay/IApplePayClient.cs | 2 +- .../Requests/RegisterDomainRequest.cs | 2 +- .../BankAccounts/BankAccountsClient.cs | 12 +- .../BankAccounts/IBankAccountsClient.cs | 2 +- .../Requests/CreateBankAccountRequest.cs | 2 +- .../Requests/DisableBankAccountRequest.cs | 2 +- .../Requests/GetBankAccountsRequest.cs | 2 +- .../Requests/GetByV1IdBankAccountsRequest.cs | 2 +- .../Requests/ListBankAccountsRequest.cs | 2 +- .../{ => Default}/Bookings/BookingsClient.cs | 38 +- .../CustomAttributeDefinitionsClient.cs | 26 +- .../ICustomAttributeDefinitionsClient.cs | 3 +- ...BookingCustomAttributeDefinitionRequest.cs | 4 +- ...DeleteCustomAttributeDefinitionsRequest.cs | 2 +- .../GetCustomAttributeDefinitionsRequest.cs | 2 +- .../ListCustomAttributeDefinitionsRequest.cs | 2 +- ...BookingCustomAttributeDefinitionRequest.cs | 4 +- .../CustomAttributesClient.cs | 21 +- .../ICustomAttributesClient.cs | 3 +- ...ulkDeleteBookingCustomAttributesRequest.cs | 4 +- ...ulkUpsertBookingCustomAttributesRequest.cs | 4 +- .../Requests/DeleteCustomAttributesRequest.cs | 2 +- .../Requests/GetCustomAttributesRequest.cs | 2 +- .../Requests/ListCustomAttributesRequest.cs | 2 +- .../UpsertBookingCustomAttributeRequest.cs | 4 +- .../{ => Default}/Bookings/IBookingsClient.cs | 9 +- .../ILocationProfilesClient.cs | 3 +- .../LocationProfilesClient.cs | 5 +- .../Requests/ListLocationProfilesRequest.cs | 2 +- .../Requests/BulkRetrieveBookingsRequest.cs | 2 +- ...etrieveTeamMemberBookingProfilesRequest.cs | 2 +- .../Bookings/Requests/CancelBookingRequest.cs | 2 +- .../Bookings/Requests/CreateBookingRequest.cs | 3 +- .../Bookings/Requests/GetBookingsRequest.cs | 2 +- .../Bookings/Requests/ListBookingsRequest.cs | 2 +- .../RetrieveLocationBookingProfileRequest.cs | 2 +- .../Requests/SearchAvailabilityRequest.cs | 3 +- .../Bookings/Requests/UpdateBookingRequest.cs | 3 +- .../ITeamMemberProfilesClient.cs | 3 +- .../Requests/GetTeamMemberProfilesRequest.cs | 2 +- .../Requests/ListTeamMemberProfilesRequest.cs | 2 +- .../TeamMemberProfilesClient.cs | 7 +- src/Square/{ => Default}/Cards/CardsClient.cs | 10 +- .../{ => Default}/Cards/ICardsClient.cs | 2 +- .../Cards/Requests/CreateCardRequest.cs | 3 +- .../Cards/Requests/DisableCardsRequest.cs | 2 +- .../Cards/Requests/GetCardsRequest.cs | 2 +- .../Cards/Requests/ListCardsRequest.cs | 3 +- .../CashDrawers/CashDrawersClient.cs | 6 +- .../Default/CashDrawers/ICashDrawersClient.cs | 6 + .../CashDrawers/Shifts/IShiftsClient.cs | 3 +- .../Shifts/Requests/GetShiftsRequest.cs | 2 +- .../Requests/ListEventsShiftsRequest.cs | 2 +- .../Shifts/Requests/ListShiftsRequest.cs | 4 +- .../CashDrawers/Shifts/ShiftsClient.cs | 11 +- .../{ => Default}/Catalog/CatalogClient.cs | 25 +- .../{ => Default}/Catalog/ICatalogClient.cs | 5 +- .../Catalog/Images/IImagesClient.cs | 3 +- .../Catalog/Images/ImagesClient.cs | 7 +- .../Images/Requests/CreateImagesRequest.cs | 3 +- .../Images/Requests/UpdateImagesRequest.cs | 3 +- .../Catalog/Object/IObjectClient.cs | 3 +- .../Catalog/Object/ObjectClient.cs | 9 +- .../Object/Requests/DeleteObjectRequest.cs | 2 +- .../Object/Requests/GetObjectRequest.cs | 2 +- .../Requests/UpsertCatalogObjectRequest.cs | 4 +- .../BatchDeleteCatalogObjectsRequest.cs | 2 +- .../Requests/BatchGetCatalogObjectsRequest.cs | 2 +- .../BatchUpsertCatalogObjectsRequest.cs | 3 +- .../Catalog/Requests/ListCatalogRequest.cs | 2 +- .../Requests/SearchCatalogItemsRequest.cs | 3 +- .../Requests/SearchCatalogObjectsRequest.cs | 3 +- .../UpdateItemModifierListsRequest.cs | 2 +- .../Requests/UpdateItemTaxesRequest.cs | 2 +- .../{ => Default}/Channels/ChannelsClient.cs | 8 +- .../{ => Default}/Channels/IChannelsClient.cs | 2 +- .../Requests/BulkRetrieveChannelsRequest.cs | 2 +- .../Channels/Requests/GetChannelsRequest.cs | 2 +- .../Channels/Requests/ListChannelsRequest.cs | 3 +- .../{ => Default}/Checkout/CheckoutClient.cs | 12 +- .../{ => Default}/Checkout/ICheckoutClient.cs | 4 +- .../PaymentLinks/IPaymentLinksClient.cs | 3 +- .../PaymentLinks/PaymentLinksClient.cs | 13 +- .../Requests/CreatePaymentLinkRequest.cs | 4 +- .../Requests/DeletePaymentLinksRequest.cs | 2 +- .../Requests/GetPaymentLinksRequest.cs | 2 +- .../Requests/ListPaymentLinksRequest.cs | 2 +- .../Requests/UpdatePaymentLinkRequest.cs | 4 +- .../RetrieveLocationSettingsRequest.cs | 2 +- .../Requests/UpdateLocationSettingsRequest.cs | 3 +- .../Requests/UpdateMerchantSettingsRequest.cs | 3 +- .../{ => Default}/Checkout/Types/Checkout.cs | 2 +- .../Customers/Cards/CardsClient.cs | 7 +- .../Customers/Cards/ICardsClient.cs | 3 +- .../Requests/CreateCustomerCardRequest.cs | 4 +- .../Cards/Requests/DeleteCardsRequest.cs | 2 +- .../CustomAttributeDefinitionsClient.cs | 28 +- .../ICustomAttributeDefinitionsClient.cs | 3 +- ...chUpsertCustomerCustomAttributesRequest.cs | 4 +- ...ustomerCustomAttributeDefinitionRequest.cs | 4 +- ...DeleteCustomAttributeDefinitionsRequest.cs | 2 +- .../GetCustomAttributeDefinitionsRequest.cs | 2 +- .../ListCustomAttributeDefinitionsRequest.cs | 2 +- ...ustomerCustomAttributeDefinitionRequest.cs | 4 +- .../CustomAttributesClient.cs | 17 +- .../ICustomAttributesClient.cs | 3 +- .../Requests/DeleteCustomAttributesRequest.cs | 2 +- .../Requests/GetCustomAttributesRequest.cs | 2 +- .../Requests/ListCustomAttributesRequest.cs | 2 +- .../UpsertCustomerCustomAttributeRequest.cs | 4 +- .../Customers/CustomersClient.cs | 42 +- .../Customers/Groups/GroupsClient.cs | 19 +- .../Customers/Groups/IGroupsClient.cs | 3 +- .../Groups/Requests/AddGroupsRequest.cs | 2 +- .../Requests/CreateCustomerGroupRequest.cs | 4 +- .../Groups/Requests/DeleteGroupsRequest.cs | 2 +- .../Groups/Requests/GetGroupsRequest.cs | 2 +- .../Groups/Requests/ListGroupsRequest.cs | 2 +- .../Groups/Requests/RemoveGroupsRequest.cs | 2 +- .../Requests/UpdateCustomerGroupRequest.cs | 4 +- .../Customers/ICustomersClient.cs | 11 +- .../Requests/BulkCreateCustomersRequest.cs | 3 +- .../Requests/BulkDeleteCustomersRequest.cs | 2 +- .../Requests/BulkRetrieveCustomersRequest.cs | 2 +- .../Requests/BulkUpdateCustomersRequest.cs | 3 +- .../Requests/CreateCustomerRequest.cs | 3 +- .../Requests/DeleteCustomersRequest.cs | 2 +- .../Customers/Requests/GetCustomersRequest.cs | 2 +- .../Requests/ListCustomersRequest.cs | 3 +- .../Requests/SearchCustomersRequest.cs | 3 +- .../Requests/UpdateCustomerRequest.cs | 3 +- .../Customers/Segments/ISegmentsClient.cs | 3 +- .../Segments/Requests/GetSegmentsRequest.cs | 2 +- .../Segments/Requests/ListSegmentsRequest.cs | 2 +- .../Customers/Segments/SegmentsClient.cs | 11 +- src/Square/Default/DefaultClient.cs | 120 ++ .../Devices/Codes/CodesClient.cs | 9 +- .../Devices/Codes/ICodesClient.cs | 3 +- .../Codes/Requests/CreateDeviceCodeRequest.cs | 4 +- .../Devices/Codes/Requests/GetCodesRequest.cs | 2 +- .../Codes/Requests/ListCodesRequest.cs | 4 +- .../{ => Default}/Devices/DevicesClient.cs | 8 +- .../{ => Default}/Devices/IDevicesClient.cs | 4 +- .../Devices/Requests/GetDevicesRequest.cs | 2 +- .../Devices/Requests/ListDevicesRequest.cs | 3 +- .../{ => Default}/Disputes/DisputesClient.cs | 16 +- .../Disputes/Evidence/EvidenceClient.cs | 9 +- .../Disputes/Evidence/IEvidenceClient.cs | 3 +- .../Requests/DeleteEvidenceRequest.cs | 2 +- .../Evidence/Requests/GetEvidenceRequest.cs | 2 +- .../Evidence/Requests/ListEvidenceRequest.cs | 2 +- .../{ => Default}/Disputes/IDisputesClient.cs | 4 +- .../Requests/AcceptDisputesRequest.cs | 2 +- .../CreateDisputeEvidenceTextRequest.cs | 3 +- .../CreateEvidenceFileDisputesRequest.cs | 2 +- .../Disputes/Requests/GetDisputesRequest.cs | 2 +- .../Disputes/Requests/ListDisputesRequest.cs | 3 +- .../Requests/SubmitEvidenceDisputesRequest.cs | 2 +- .../Employees/EmployeesClient.cs | 6 +- .../Employees/IEmployeesClient.cs | 2 +- .../Employees/Requests/GetEmployeesRequest.cs | 2 +- .../Requests/ListEmployeesRequest.cs | 3 +- .../{ => Default}/Events/EventsClient.cs | 12 +- .../{ => Default}/Events/IEventsClient.cs | 2 +- .../Events/Requests/ListEventTypesRequest.cs | 2 +- .../Events/Requests/SearchEventsRequest.cs | 3 +- .../GiftCards/Activities/ActivitiesClient.cs | 7 +- .../GiftCards/Activities/IActivitiesClient.cs | 3 +- .../Requests/CreateGiftCardActivityRequest.cs | 4 +- .../Requests/ListActivitiesRequest.cs | 2 +- .../GiftCards/GiftCardsClient.cs | 20 +- .../GiftCards/IGiftCardsClient.cs | 4 +- .../Requests/CreateGiftCardRequest.cs | 3 +- .../Requests/GetGiftCardFromGanRequest.cs | 2 +- .../Requests/GetGiftCardFromNonceRequest.cs | 2 +- .../GiftCards/Requests/GetGiftCardsRequest.cs | 2 +- .../Requests/LinkCustomerToGiftCardRequest.cs | 2 +- .../Requests/ListGiftCardsRequest.cs | 2 +- .../UnlinkCustomerFromGiftCardRequest.cs | 2 +- src/Square/Default/IDefaultClient.cs | 43 + .../Inventory/IInventoryClient.cs | 2 +- .../Inventory/InventoryClient.cs | 28 +- .../Requests/ChangesInventoryRequest.cs | 2 +- ...DeprecatedGetAdjustmentInventoryRequest.cs | 2 +- ...recatedGetPhysicalCountInventoryRequest.cs | 2 +- .../Requests/GetAdjustmentInventoryRequest.cs | 2 +- .../Inventory/Requests/GetInventoryRequest.cs | 2 +- .../GetPhysicalCountInventoryRequest.cs | 2 +- .../Requests/GetTransferInventoryRequest.cs | 2 +- .../{ => Default}/Invoices/IInvoicesClient.cs | 2 +- .../{ => Default}/Invoices/InvoicesClient.cs | 22 +- .../Invoices/Requests/CancelInvoiceRequest.cs | 2 +- .../CreateInvoiceAttachmentRequest.cs | 2 +- .../Invoices/Requests/CreateInvoiceRequest.cs | 3 +- .../DeleteInvoiceAttachmentRequest.cs | 2 +- .../Requests/DeleteInvoicesRequest.cs | 2 +- .../Invoices/Requests/GetInvoicesRequest.cs | 2 +- .../Invoices/Requests/ListInvoicesRequest.cs | 2 +- .../Requests/PublishInvoiceRequest.cs | 2 +- .../Requests/SearchInvoicesRequest.cs | 3 +- .../Invoices/Requests/UpdateInvoiceRequest.cs | 3 +- .../Labor/BreakTypes/BreakTypesClient.cs | 13 +- .../Labor/BreakTypes/IBreakTypesClient.cs | 3 +- .../Requests/CreateBreakTypeRequest.cs | 4 +- .../Requests/DeleteBreakTypesRequest.cs | 2 +- .../Requests/GetBreakTypesRequest.cs | 2 +- .../Requests/ListBreakTypesRequest.cs | 2 +- .../Requests/UpdateBreakTypeRequest.cs | 4 +- .../EmployeeWages/EmployeeWagesClient.cs | 7 +- .../EmployeeWages/IEmployeeWagesClient.cs | 3 +- .../Requests/GetEmployeeWagesRequest.cs | 2 +- .../Requests/ListEmployeeWagesRequest.cs | 2 +- .../{ => Default}/Labor/ILaborClient.cs | 9 +- src/Square/{ => Default}/Labor/LaborClient.cs | 35 +- .../BulkPublishScheduledShiftsRequest.cs | 3 +- .../Requests/CreateScheduledShiftRequest.cs | 3 +- .../Labor/Requests/CreateTimecardRequest.cs | 3 +- .../Labor/Requests/DeleteTimecardRequest.cs | 2 +- .../Requests/PublishScheduledShiftRequest.cs | 3 +- .../Requests/RetrieveScheduledShiftRequest.cs | 2 +- .../Labor/Requests/RetrieveTimecardRequest.cs | 2 +- .../Requests/SearchScheduledShiftsRequest.cs | 3 +- .../Labor/Requests/SearchTimecardsRequest.cs | 3 +- .../Requests/UpdateScheduledShiftRequest.cs | 3 +- .../Labor/Requests/UpdateTimecardRequest.cs | 3 +- .../Labor/Shifts/IShiftsClient.cs | 3 +- .../Shifts/Requests/CreateShiftRequest.cs | 4 +- .../Shifts/Requests/DeleteShiftsRequest.cs | 2 +- .../Labor/Shifts/Requests/GetShiftsRequest.cs | 2 +- .../Shifts/Requests/SearchShiftsRequest.cs | 4 +- .../Shifts/Requests/UpdateShiftRequest.cs | 4 +- .../Labor/Shifts/ShiftsClient.cs | 13 +- .../TeamMemberWages/ITeamMemberWagesClient.cs | 3 +- .../Requests/GetTeamMemberWagesRequest.cs | 2 +- .../Requests/ListTeamMemberWagesRequest.cs | 2 +- .../TeamMemberWages/TeamMemberWagesClient.cs | 7 +- .../WorkweekConfigs/IWorkweekConfigsClient.cs | 3 +- .../Requests/ListWorkweekConfigsRequest.cs | 2 +- .../Requests/UpdateWorkweekConfigRequest.cs | 4 +- .../WorkweekConfigs/WorkweekConfigsClient.cs | 7 +- .../CustomAttributeDefinitionsClient.cs | 26 +- .../ICustomAttributeDefinitionsClient.cs | 3 +- ...ocationCustomAttributeDefinitionRequest.cs | 4 +- ...DeleteCustomAttributeDefinitionsRequest.cs | 2 +- .../GetCustomAttributeDefinitionsRequest.cs | 2 +- .../ListCustomAttributeDefinitionsRequest.cs | 4 +- ...ocationCustomAttributeDefinitionRequest.cs | 4 +- .../CustomAttributesClient.cs | 21 +- .../ICustomAttributesClient.cs | 3 +- ...lkDeleteLocationCustomAttributesRequest.cs | 4 +- ...lkUpsertLocationCustomAttributesRequest.cs | 4 +- .../Requests/DeleteCustomAttributesRequest.cs | 2 +- .../Requests/GetCustomAttributesRequest.cs | 2 +- .../Requests/ListCustomAttributesRequest.cs | 4 +- .../UpsertLocationCustomAttributeRequest.cs | 4 +- .../Locations/ILocationsClient.cs | 8 +- .../Locations/LocationsClient.cs | 33 +- .../Requests/CreateCheckoutRequest.cs | 3 +- .../Requests/CreateLocationRequest.cs | 3 +- .../Locations/Requests/GetLocationsRequest.cs | 2 +- .../Requests/UpdateLocationRequest.cs | 3 +- .../Transactions/ITransactionsClient.cs | 3 +- .../Requests/CaptureTransactionsRequest.cs | 2 +- .../Requests/GetTransactionsRequest.cs | 2 +- .../Requests/ListTransactionsRequest.cs | 4 +- .../Requests/VoidTransactionsRequest.cs | 2 +- .../Transactions/TransactionsClient.cs | 11 +- .../Loyalty/Accounts/AccountsClient.cs | 13 +- .../Loyalty/Accounts/IAccountsClient.cs | 3 +- .../AccumulateLoyaltyPointsRequest.cs | 4 +- .../Requests/AdjustLoyaltyPointsRequest.cs | 4 +- .../Requests/CreateLoyaltyAccountRequest.cs | 4 +- .../Accounts/Requests/GetAccountsRequest.cs | 2 +- .../Requests/SearchLoyaltyAccountsRequest.cs | 4 +- .../{ => Default}/Loyalty/ILoyaltyClient.cs | 6 +- .../{ => Default}/Loyalty/LoyaltyClient.cs | 8 +- .../Loyalty/Programs/IProgramsClient.cs | 5 +- .../Loyalty/Programs/ProgramsClient.cs | 11 +- .../Programs/Promotions/IPromotionsClient.cs | 3 +- .../Programs/Promotions/PromotionsClient.cs | 11 +- .../Requests/CancelPromotionsRequest.cs | 2 +- .../Requests/CreateLoyaltyPromotionRequest.cs | 4 +- .../Requests/GetPromotionsRequest.cs | 2 +- .../Requests/ListPromotionsRequest.cs | 4 +- .../Requests/CalculateLoyaltyPointsRequest.cs | 4 +- .../Programs/Requests/GetProgramsRequest.cs | 2 +- .../Requests/SearchLoyaltyEventsRequest.cs | 3 +- .../Loyalty/Rewards/IRewardsClient.cs | 3 +- .../Requests/CreateLoyaltyRewardRequest.cs | 4 +- .../Rewards/Requests/DeleteRewardsRequest.cs | 2 +- .../Rewards/Requests/GetRewardsRequest.cs | 2 +- .../Requests/RedeemLoyaltyRewardRequest.cs | 2 +- .../Requests/SearchLoyaltyRewardsRequest.cs | 4 +- .../Loyalty/Rewards/RewardsClient.cs | 15 +- .../CustomAttributeDefinitionsClient.cs | 26 +- .../ICustomAttributeDefinitionsClient.cs | 3 +- ...erchantCustomAttributeDefinitionRequest.cs | 4 +- ...DeleteCustomAttributeDefinitionsRequest.cs | 2 +- .../GetCustomAttributeDefinitionsRequest.cs | 2 +- .../ListCustomAttributeDefinitionsRequest.cs | 4 +- ...erchantCustomAttributeDefinitionRequest.cs | 4 +- .../CustomAttributesClient.cs | 21 +- .../ICustomAttributesClient.cs | 3 +- ...lkDeleteMerchantCustomAttributesRequest.cs | 4 +- ...lkUpsertMerchantCustomAttributesRequest.cs | 4 +- .../Requests/DeleteCustomAttributesRequest.cs | 2 +- .../Requests/GetCustomAttributesRequest.cs | 2 +- .../Requests/ListCustomAttributesRequest.cs | 4 +- .../UpsertMerchantCustomAttributeRequest.cs | 4 +- .../Merchants/IMerchantsClient.cs | 6 +- .../Merchants/MerchantsClient.cs | 19 +- .../Merchants/Requests/GetMerchantsRequest.cs | 2 +- .../Requests/ListMerchantsRequest.cs | 2 +- .../{ => Default}/OAuth/IOAuthClient.cs | 2 +- src/Square/{ => Default}/OAuth/OAuthClient.cs | 10 +- .../OAuth/Requests/ObtainTokenRequest.cs | 2 +- .../OAuth/Requests/RevokeTokenRequest.cs | 2 +- .../CustomAttributeDefinitionsClient.cs | 26 +- .../ICustomAttributeDefinitionsClient.cs | 3 +- ...teOrderCustomAttributeDefinitionRequest.cs | 4 +- ...DeleteCustomAttributeDefinitionsRequest.cs | 20 + .../GetCustomAttributeDefinitionsRequest.cs | 2 +- .../ListCustomAttributeDefinitionsRequest.cs | 4 +- ...teOrderCustomAttributeDefinitionRequest.cs | 4 +- .../CustomAttributesClient.cs | 21 +- .../ICustomAttributesClient.cs | 3 +- .../BulkDeleteOrderCustomAttributesRequest.cs | 4 +- .../BulkUpsertOrderCustomAttributesRequest.cs | 4 +- .../Requests/DeleteCustomAttributesRequest.cs | 2 +- .../Requests/GetCustomAttributesRequest.cs | 2 +- .../Requests/ListCustomAttributesRequest.cs | 4 +- .../UpsertOrderCustomAttributeRequest.cs | 4 +- .../{ => Default}/Orders/IOrdersClient.cs | 6 +- .../{ => Default}/Orders/OrdersClient.cs | 29 +- .../Orders/Requests/BatchGetOrdersRequest.cs | 2 +- .../Orders/Requests/CalculateOrderRequest.cs | 3 +- .../Orders/Requests/CloneOrderRequest.cs | 2 +- .../Orders/Requests/GetOrdersRequest.cs | 2 +- .../Orders/Requests/PayOrderRequest.cs | 2 +- .../Orders/Requests/SearchOrdersRequest.cs | 3 +- .../Orders/Requests/UpdateOrderRequest.cs | 3 +- .../{ => Default}/Payments/IPaymentsClient.cs | 2 +- .../{ => Default}/Payments/PaymentsClient.cs | 18 +- .../CancelPaymentByIdempotencyKeyRequest.cs | 2 +- .../Requests/CancelPaymentsRequest.cs | 2 +- .../Requests/CompletePaymentRequest.cs | 2 +- .../Payments/Requests/CreatePaymentRequest.cs | 3 +- .../Payments/Requests/GetPaymentsRequest.cs | 2 +- .../Payments/Requests/ListPaymentsRequest.cs | 3 +- .../Payments/Requests/UpdatePaymentRequest.cs | 3 +- .../{ => Default}/Payouts/IPayoutsClient.cs | 2 +- .../{ => Default}/Payouts/PayoutsClient.cs | 8 +- .../Payouts/Requests/GetPayoutsRequest.cs | 2 +- .../Requests/ListEntriesPayoutsRequest.cs | 3 +- .../Payouts/Requests/ListPayoutsRequest.cs | 3 +- .../{ => Default}/Refunds/IRefundsClient.cs | 2 +- .../{ => Default}/Refunds/RefundsClient.cs | 10 +- .../Refunds/Requests/GetRefundsRequest.cs | 2 +- .../Refunds/Requests/ListRefundsRequest.cs | 3 +- .../Refunds/Requests/RefundPaymentRequest.cs | 3 +- .../{ => Default}/Sites/ISitesClient.cs | 2 +- src/Square/{ => Default}/Sites/SitesClient.cs | 4 +- .../{ => Default}/Snippets/ISnippetsClient.cs | 2 +- .../Requests/DeleteSnippetsRequest.cs | 2 +- .../Snippets/Requests/GetSnippetsRequest.cs | 2 +- .../Snippets/Requests/UpsertSnippetRequest.cs | 3 +- .../{ => Default}/Snippets/SnippetsClient.cs | 8 +- .../Subscriptions/ISubscriptionsClient.cs | 2 +- .../Requests/BulkSwapPlanRequest.cs | 2 +- .../Requests/CancelSubscriptionsRequest.cs | 2 +- .../ChangeBillingAnchorDateRequest.cs | 2 +- .../Requests/CreateSubscriptionRequest.cs | 3 +- .../DeleteActionSubscriptionsRequest.cs | 2 +- .../Requests/GetSubscriptionsRequest.cs | 2 +- .../ListEventsSubscriptionsRequest.cs | 2 +- .../Requests/PauseSubscriptionRequest.cs | 3 +- .../Requests/ResumeSubscriptionRequest.cs | 3 +- .../Requests/SearchSubscriptionsRequest.cs | 3 +- .../Subscriptions/Requests/SwapPlanRequest.cs | 3 +- .../Requests/UpdateSubscriptionRequest.cs | 3 +- .../Subscriptions/SubscriptionsClient.cs | 28 +- src/Square/{ => Default}/Team/ITeamClient.cs | 2 +- .../Team/Requests/CreateJobRequest.cs | 3 +- .../Team/Requests/ListJobsRequest.cs | 2 +- .../Team/Requests/RetrieveJobRequest.cs | 2 +- .../Team/Requests/UpdateJobRequest.cs | 3 +- src/Square/{ => Default}/Team/TeamClient.cs | 10 +- .../TeamMembers/ITeamMembersClient.cs | 4 +- .../Requests/BatchCreateTeamMembersRequest.cs | 3 +- .../Requests/BatchUpdateTeamMembersRequest.cs | 3 +- .../Requests/GetTeamMembersRequest.cs | 2 +- .../Requests/SearchTeamMembersRequest.cs | 3 +- .../Requests/UpdateTeamMembersRequest.cs | 3 +- .../TeamMembers/TeamMembersClient.cs | 22 +- .../WageSetting/IWageSettingClient.cs | 3 +- .../Requests/GetWageSettingRequest.cs | 2 +- .../Requests/UpdateWageSettingRequest.cs | 5 +- .../WageSetting/WageSettingClient.cs | 11 +- .../Terminal/Actions/ActionsClient.cs | 13 +- .../Terminal/Actions/IActionsClient.cs | 3 +- .../Actions/Requests/CancelActionsRequest.cs | 2 +- .../Requests/CreateTerminalActionRequest.cs | 4 +- .../Actions/Requests/GetActionsRequest.cs | 2 +- .../Requests/SearchTerminalActionsRequest.cs | 4 +- .../Terminal/Checkouts/CheckoutsClient.cs | 13 +- .../Terminal/Checkouts/ICheckoutsClient.cs | 3 +- .../Requests/CancelCheckoutsRequest.cs | 2 +- .../Requests/CreateTerminalCheckoutRequest.cs | 4 +- .../Checkouts/Requests/GetCheckoutsRequest.cs | 2 +- .../SearchTerminalCheckoutsRequest.cs | 4 +- .../{ => Default}/Terminal/ITerminalClient.cs | 7 +- .../Terminal/Refunds/IRefundsClient.cs | 3 +- .../Terminal/Refunds/RefundsClient.cs | 13 +- .../Refunds/Requests/CancelRefundsRequest.cs | 2 +- .../Requests/CreateTerminalRefundRequest.cs | 4 +- .../Refunds/Requests/GetRefundsRequest.cs | 2 +- .../Requests/SearchTerminalRefundsRequest.cs | 4 +- .../Requests/DismissTerminalActionRequest.cs | 2 +- .../DismissTerminalCheckoutRequest.cs | 2 +- .../Requests/DismissTerminalRefundRequest.cs | 2 +- .../{ => Default}/Terminal/TerminalClient.cs | 15 +- .../TransferOrders/ITransferOrdersClient.cs | 2 +- .../Requests/CancelTransferOrderRequest.cs | 2 +- .../Requests/CreateTransferOrderRequest.cs | 3 +- .../Requests/DeleteTransferOrdersRequest.cs | 2 +- .../Requests/GetTransferOrdersRequest.cs | 2 +- .../Requests/ReceiveTransferOrderRequest.cs | 3 +- .../Requests/SearchTransferOrdersRequest.cs | 3 +- .../Requests/StartTransferOrderRequest.cs | 2 +- .../Requests/UpdateTransferOrderRequest.cs | 3 +- .../TransferOrders/TransferOrdersClient.cs | 18 +- .../Types/AcceptDisputeResponse.cs | 3 +- .../Types/AcceptedPaymentMethods.cs | 3 +- .../Types/AccumulateLoyaltyPointsResponse.cs | 3 +- src/Square/{ => Default}/Types/AchDetails.cs | 3 +- .../{ => Default}/Types/ActionCancelReason.cs | 2 +- .../{ => Default}/Types/ActivityType.cs | 2 +- .../Types/AddGroupToCustomerResponse.cs | 3 +- .../Types/AdditionalRecipient.cs | 3 +- src/Square/{ => Default}/Types/Address.cs | 3 +- .../Types/AdjustLoyaltyPointsResponse.cs | 3 +- .../{ => Default}/Types/AfterpayDetails.cs | 3 +- .../{ => Default}/Types/ApplicationDetails.cs | 3 +- ...ApplicationDetailsExternalSquareProduct.cs | 2 +- .../{ => Default}/Types/AppointmentSegment.cs | 3 +- .../{ => Default}/Types/ArchivedState.cs | 2 +- .../{ => Default}/Types/Availability.cs | 3 +- src/Square/{ => Default}/Types/BankAccount.cs | 3 +- .../Types/BankAccountCreatedEvent.cs | 3 +- .../Types/BankAccountCreatedEventData.cs | 3 +- .../Types/BankAccountCreatedEventObject.cs | 3 +- .../Types/BankAccountDisabledEvent.cs | 3 +- .../Types/BankAccountDisabledEventData.cs | 3 +- .../Types/BankAccountDisabledEventObject.cs | 3 +- .../Types/BankAccountPaymentDetails.cs | 3 +- .../{ => Default}/Types/BankAccountStatus.cs | 2 +- .../{ => Default}/Types/BankAccountType.cs | 2 +- .../Types/BankAccountVerifiedEvent.cs | 3 +- .../Types/BankAccountVerifiedEventData.cs | 3 +- .../Types/BankAccountVerifiedEventObject.cs | 3 +- .../Types/BatchChangeInventoryRequest.cs | 3 +- .../Types/BatchChangeInventoryResponse.cs | 3 +- .../Types/BatchCreateTeamMembersResponse.cs | 3 +- .../Types/BatchCreateVendorsResponse.cs | 3 +- .../BatchDeleteCatalogObjectsResponse.cs | 3 +- .../Types/BatchGetCatalogObjectsResponse.cs | 3 +- .../Types/BatchGetInventoryChangesResponse.cs | 3 +- .../Types/BatchGetInventoryCountsRequest.cs | 3 +- .../Types/BatchGetInventoryCountsResponse.cs | 3 +- .../Types/BatchGetOrdersResponse.cs | 3 +- .../Types/BatchGetVendorsResponse.cs | 3 +- .../BatchRetrieveInventoryChangesRequest.cs | 3 +- .../Types/BatchUpdateTeamMembersResponse.cs | 3 +- .../Types/BatchUpdateVendorsResponse.cs | 3 +- .../BatchUpsertCatalogObjectsResponse.cs | 3 +- ...estCustomerCustomAttributeUpsertRequest.cs | 3 +- ...hUpsertCustomerCustomAttributesResponse.cs | 3 +- ...seCustomerCustomAttributeUpsertResponse.cs | 3 +- src/Square/{ => Default}/Types/Booking.cs | 3 +- .../Types/BookingBookingSource.cs | 2 +- .../Types/BookingCreatedEvent.cs | 3 +- .../Types/BookingCreatedEventData.cs | 3 +- .../Types/BookingCreatedEventObject.cs | 3 +- .../Types/BookingCreatorDetails.cs | 3 +- .../Types/BookingCreatorDetailsCreatorType.cs | 2 +- ...tomAttributeDefinitionOwnedCreatedEvent.cs | 3 +- ...tomAttributeDefinitionOwnedDeletedEvent.cs | 3 +- ...tomAttributeDefinitionOwnedUpdatedEvent.cs | 3 +- ...mAttributeDefinitionVisibleCreatedEvent.cs | 3 +- ...mAttributeDefinitionVisibleDeletedEvent.cs | 3 +- ...mAttributeDefinitionVisibleUpdatedEvent.cs | 3 +- .../BookingCustomAttributeDeleteRequest.cs | 3 +- .../BookingCustomAttributeDeleteResponse.cs | 3 +- ...BookingCustomAttributeOwnedDeletedEvent.cs | 3 +- ...BookingCustomAttributeOwnedUpdatedEvent.cs | 3 +- .../BookingCustomAttributeUpsertRequest.cs | 3 +- .../BookingCustomAttributeUpsertResponse.cs | 3 +- ...okingCustomAttributeVisibleDeletedEvent.cs | 3 +- ...okingCustomAttributeVisibleUpdatedEvent.cs | 3 +- .../{ => Default}/Types/BookingStatus.cs | 2 +- .../Types/BookingUpdatedEvent.cs | 3 +- .../Types/BookingUpdatedEventData.cs | 3 +- .../Types/BookingUpdatedEventObject.cs | 3 +- src/Square/{ => Default}/Types/Break.cs | 3 +- src/Square/{ => Default}/Types/BreakType.cs | 3 +- .../Types/BulkCreateCustomerData.cs | 3 +- .../Types/BulkCreateCustomersResponse.cs | 3 +- ...lkDeleteBookingCustomAttributesResponse.cs | 3 +- .../Types/BulkDeleteCustomersResponse.cs | 3 +- ...estLocationCustomAttributeDeleteRequest.cs | 3 +- ...kDeleteLocationCustomAttributesResponse.cs | 3 +- ...seLocationCustomAttributeDeleteResponse.cs | 3 +- ...estMerchantCustomAttributeDeleteRequest.cs | 3 +- ...kDeleteMerchantCustomAttributesResponse.cs | 3 +- ...seMerchantCustomAttributeDeleteResponse.cs | 3 +- ...mAttributesRequestDeleteCustomAttribute.cs | 3 +- ...BulkDeleteOrderCustomAttributesResponse.cs | 3 +- .../Types/BulkPublishScheduledShiftsData.cs | 3 +- .../BulkPublishScheduledShiftsResponse.cs | 3 +- .../Types/BulkRetrieveBookingsResponse.cs | 3 +- .../Types/BulkRetrieveChannelsResponse.cs | 3 +- .../Types/BulkRetrieveCustomersResponse.cs | 3 +- ...trieveTeamMemberBookingProfilesResponse.cs | 3 +- .../Types/BulkSwapPlanResponse.cs | 3 +- .../Types/BulkUpdateCustomerData.cs | 3 +- .../Types/BulkUpdateCustomersResponse.cs | 3 +- ...lkUpsertBookingCustomAttributesResponse.cs | 3 +- ...estLocationCustomAttributeUpsertRequest.cs | 3 +- ...kUpsertLocationCustomAttributesResponse.cs | 3 +- ...seLocationCustomAttributeUpsertResponse.cs | 3 +- ...estMerchantCustomAttributeUpsertRequest.cs | 3 +- ...kUpsertMerchantCustomAttributesResponse.cs | 3 +- ...seMerchantCustomAttributeUpsertResponse.cs | 3 +- ...mAttributesRequestUpsertCustomAttribute.cs | 3 +- ...BulkUpsertOrderCustomAttributesResponse.cs | 3 +- .../Types/BusinessAppointmentSettings.cs | 3 +- ...usinessAppointmentSettingsAlignmentTime.cs | 2 +- ...sAppointmentSettingsBookingLocationType.cs | 2 +- ...ssAppointmentSettingsCancellationPolicy.cs | 2 +- ...tSettingsMaxAppointmentsPerDayLimitType.cs | 2 +- .../Types/BusinessBookingProfile.cs | 3 +- .../BusinessBookingProfileBookingPolicy.cs | 2 +- ...essBookingProfileCustomerTimezoneChoice.cs | 2 +- .../{ => Default}/Types/BusinessHours.cs | 3 +- .../Types/BusinessHoursPeriod.cs | 3 +- .../Types/BuyNowPayLaterDetails.cs | 3 +- .../Types/CalculateLoyaltyPointsResponse.cs | 3 +- .../Types/CalculateOrderResponse.cs | 3 +- .../Types/CancelBookingResponse.cs | 3 +- .../Types/CancelInvoiceResponse.cs | 3 +- .../Types/CancelLoyaltyPromotionResponse.cs | 3 +- .../CancelPaymentByIdempotencyKeyResponse.cs | 3 +- .../Types/CancelPaymentResponse.cs | 3 +- .../Types/CancelSubscriptionResponse.cs | 3 +- .../Types/CancelTerminalActionResponse.cs | 3 +- .../Types/CancelTerminalCheckoutResponse.cs | 3 +- .../Types/CancelTerminalRefundResponse.cs | 3 +- .../Types/CancelTransferOrderResponse.cs | 3 +- .../Types/CaptureTransactionResponse.cs | 3 +- src/Square/{ => Default}/Types/Card.cs | 3 +- .../Types/CardAutomaticallyUpdatedEvent.cs | 3 +- .../CardAutomaticallyUpdatedEventData.cs | 3 +- .../CardAutomaticallyUpdatedEventObject.cs | 3 +- src/Square/{ => Default}/Types/CardBrand.cs | 2 +- src/Square/{ => Default}/Types/CardCoBrand.cs | 2 +- .../{ => Default}/Types/CardCreatedEvent.cs | 3 +- .../Types/CardCreatedEventData.cs | 3 +- .../Types/CardCreatedEventObject.cs | 3 +- .../{ => Default}/Types/CardDisabledEvent.cs | 3 +- .../Types/CardDisabledEventData.cs | 3 +- .../Types/CardDisabledEventObject.cs | 3 +- .../{ => Default}/Types/CardForgottenEvent.cs | 3 +- .../Types/CardForgottenEventCard.cs | 3 +- .../Types/CardForgottenEventData.cs | 3 +- .../Types/CardForgottenEventObject.cs | 3 +- .../{ => Default}/Types/CardPaymentDetails.cs | 3 +- .../Types/CardPaymentTimeline.cs | 3 +- .../{ => Default}/Types/CardPrepaidType.cs | 2 +- src/Square/{ => Default}/Types/CardType.cs | 2 +- .../{ => Default}/Types/CardUpdatedEvent.cs | 3 +- .../Types/CardUpdatedEventData.cs | 3 +- .../Types/CardUpdatedEventObject.cs | 3 +- .../{ => Default}/Types/CashAppDetails.cs | 3 +- .../{ => Default}/Types/CashDrawerDevice.cs | 3 +- .../Types/CashDrawerEventType.cs | 2 +- .../{ => Default}/Types/CashDrawerShift.cs | 3 +- .../Types/CashDrawerShiftEvent.cs | 3 +- .../Types/CashDrawerShiftState.cs | 2 +- .../Types/CashDrawerShiftSummary.cs | 3 +- .../{ => Default}/Types/CashPaymentDetails.cs | 3 +- .../Types/CatalogAvailabilityPeriod.cs | 3 +- .../{ => Default}/Types/CatalogCategory.cs | 3 +- .../Types/CatalogCategoryType.cs | 2 +- .../Types/CatalogCustomAttributeDefinition.cs | 3 +- ...gCustomAttributeDefinitionAppVisibility.cs | 2 +- ...ogCustomAttributeDefinitionNumberConfig.cs | 3 +- ...ustomAttributeDefinitionSelectionConfig.cs | 3 +- ...SelectionConfigCustomAttributeSelection.cs | 3 +- ...stomAttributeDefinitionSellerVisibility.cs | 2 +- ...ogCustomAttributeDefinitionStringConfig.cs | 3 +- .../CatalogCustomAttributeDefinitionType.cs | 2 +- .../Types/CatalogCustomAttributeValue.cs | 3 +- .../{ => Default}/Types/CatalogDiscount.cs | 3 +- .../Types/CatalogDiscountModifyTaxBasis.cs | 2 +- .../Types/CatalogDiscountType.cs | 2 +- .../{ => Default}/Types/CatalogEcomSeoData.cs | 3 +- .../{ => Default}/Types/CatalogIdMapping.cs | 3 +- .../{ => Default}/Types/CatalogImage.cs | 3 +- .../Types/CatalogInfoResponse.cs | 3 +- .../Types/CatalogInfoResponseLimits.cs | 3 +- src/Square/{ => Default}/Types/CatalogItem.cs | 3 +- .../CatalogItemFoodAndBeverageDetails.cs | 3 +- ...FoodAndBeverageDetailsDietaryPreference.cs | 3 +- ...taryPreferenceStandardDietaryPreference.cs | 2 +- ...AndBeverageDetailsDietaryPreferenceType.cs | 2 +- ...logItemFoodAndBeverageDetailsIngredient.cs | 3 +- ...rageDetailsIngredientStandardIngredient.cs | 2 +- .../Types/CatalogItemModifierListInfo.cs | 3 +- .../{ => Default}/Types/CatalogItemOption.cs | 3 +- .../Types/CatalogItemOptionForItem.cs | 3 +- .../Types/CatalogItemOptionValue.cs | 3 +- .../CatalogItemOptionValueForItemVariation.cs | 3 +- .../Types/CatalogItemProductType.cs | 2 +- .../Types/CatalogItemVariation.cs | 3 +- .../Types/CatalogMeasurementUnit.cs | 3 +- .../{ => Default}/Types/CatalogModifier.cs | 3 +- .../Types/CatalogModifierList.cs | 3 +- .../Types/CatalogModifierListModifierType.cs | 2 +- .../Types/CatalogModifierListSelectionType.cs | 2 +- .../Types/CatalogModifierOverride.cs | 3 +- .../CatalogModifierToggleOverrideType.cs | 2 +- .../{ => Default}/Types/CatalogObject.cs | 537 +++--- .../Types/CatalogObjectAvailabilityPeriod.cs | 3 +- .../{ => Default}/Types/CatalogObjectBase.cs | 3 +- .../{ => Default}/Types/CatalogObjectBatch.cs | 3 +- .../Types/CatalogObjectCategory.cs | 3 +- .../CatalogObjectCustomAttributeDefinition.cs | 3 +- .../Types/CatalogObjectDiscount.cs | 3 +- .../{ => Default}/Types/CatalogObjectImage.cs | 3 +- .../{ => Default}/Types/CatalogObjectItem.cs | 3 +- .../Types/CatalogObjectItemOption.cs | 3 +- .../Types/CatalogObjectItemOptionValue.cs | 3 +- .../Types/CatalogObjectItemVariation.cs | 3 +- .../Types/CatalogObjectMeasurementUnit.cs | 3 +- .../Types/CatalogObjectModifier.cs | 3 +- .../Types/CatalogObjectModifierList.cs | 3 +- .../Types/CatalogObjectPricingRule.cs | 3 +- .../Types/CatalogObjectProductSet.cs | 3 +- .../CatalogObjectQuickAmountsSettings.cs | 3 +- .../Types/CatalogObjectReference.cs | 3 +- .../Types/CatalogObjectSubscriptionPlan.cs | 3 +- .../CatalogObjectSubscriptionPlanVariation.cs | 3 +- .../{ => Default}/Types/CatalogObjectTax.cs | 3 +- .../Types/CatalogObjectTimePeriod.cs | 3 +- .../{ => Default}/Types/CatalogObjectType.cs | 2 +- .../{ => Default}/Types/CatalogPricingRule.cs | 3 +- .../{ => Default}/Types/CatalogPricingType.cs | 2 +- .../{ => Default}/Types/CatalogProductSet.cs | 3 +- .../{ => Default}/Types/CatalogQuery.cs | 3 +- .../{ => Default}/Types/CatalogQueryExact.cs | 3 +- ...gQueryItemVariationsForItemOptionValues.cs | 3 +- .../Types/CatalogQueryItemsForItemOptions.cs | 3 +- .../Types/CatalogQueryItemsForModifierList.cs | 3 +- .../Types/CatalogQueryItemsForTax.cs | 3 +- .../{ => Default}/Types/CatalogQueryPrefix.cs | 3 +- .../{ => Default}/Types/CatalogQueryRange.cs | 3 +- .../{ => Default}/Types/CatalogQuerySet.cs | 3 +- .../Types/CatalogQuerySortedAttribute.cs | 3 +- .../{ => Default}/Types/CatalogQueryText.cs | 3 +- .../{ => Default}/Types/CatalogQuickAmount.cs | 3 +- .../Types/CatalogQuickAmountType.cs | 2 +- .../Types/CatalogQuickAmountsSettings.cs | 3 +- .../CatalogQuickAmountsSettingsOption.cs | 2 +- .../Types/CatalogStockConversion.cs | 3 +- .../Types/CatalogSubscriptionPlan.cs | 3 +- .../Types/CatalogSubscriptionPlanVariation.cs | 3 +- src/Square/{ => Default}/Types/CatalogTax.cs | 3 +- .../{ => Default}/Types/CatalogTimePeriod.cs | 3 +- src/Square/{ => Default}/Types/CatalogV1Id.cs | 3 +- .../Types/CatalogVersionUpdatedEvent.cs | 3 +- ...atalogVersionUpdatedEventCatalogVersion.cs | 3 +- .../Types/CatalogVersionUpdatedEventData.cs | 3 +- .../Types/CatalogVersionUpdatedEventObject.cs | 3 +- .../Types/CategoryPathToRootNode.cs | 3 +- .../Types/ChangeBillingAnchorDateResponse.cs | 3 +- .../{ => Default}/Types/ChangeTiming.cs | 2 +- src/Square/{ => Default}/Types/Channel.cs | 3 +- .../{ => Default}/Types/ChannelStatus.cs | 2 +- .../Types/ChargeRequestAdditionalRecipient.cs | 3 +- .../Types/CheckoutLocationSettings.cs | 3 +- .../Types/CheckoutLocationSettingsBranding.cs | 3 +- ...koutLocationSettingsBrandingButtonShape.cs | 2 +- ...ckoutLocationSettingsBrandingHeaderType.cs | 2 +- .../Types/CheckoutLocationSettingsCoupons.cs | 3 +- .../Types/CheckoutLocationSettingsPolicy.cs | 3 +- .../Types/CheckoutLocationSettingsTipping.cs | 3 +- .../Types/CheckoutMerchantSettings.cs | 3 +- .../CheckoutMerchantSettingsPaymentMethods.cs | 3 +- ...tSettingsPaymentMethodsAfterpayClearpay.cs | 3 +- ...MethodsAfterpayClearpayEligibilityRange.cs | 3 +- ...hantSettingsPaymentMethodsPaymentMethod.cs | 3 +- .../{ => Default}/Types/CheckoutOptions.cs | 3 +- .../Types/CheckoutOptionsPaymentType.cs | 2 +- .../{ => Default}/Types/ClearpayDetails.cs | 3 +- .../{ => Default}/Types/CloneOrderResponse.cs | 3 +- .../{ => Default}/Types/CollectedData.cs | 3 +- .../Types/CompletePaymentResponse.cs | 3 +- src/Square/{ => Default}/Types/Component.cs | 3 +- .../Types/ComponentComponentType.cs | 2 +- .../Types/ConfirmationDecision.cs | 3 +- .../Types/ConfirmationOptions.cs | 3 +- src/Square/{ => Default}/Types/Coordinates.cs | 3 +- src/Square/{ => Default}/Types/Country.cs | 2 +- .../Types/CreateBankAccountResponse.cs | 3 +- ...ookingCustomAttributeDefinitionResponse.cs | 3 +- .../Types/CreateBookingResponse.cs | 3 +- .../Types/CreateBreakTypeResponse.cs | 3 +- .../{ => Default}/Types/CreateCardResponse.cs | 3 +- .../Types/CreateCatalogImageRequest.cs | 3 +- .../Types/CreateCatalogImageResponse.cs | 3 +- .../Types/CreateCheckoutResponse.cs | 5 +- .../Types/CreateCustomerCardResponse.cs | 3 +- ...stomerCustomAttributeDefinitionResponse.cs | 3 +- .../Types/CreateCustomerGroupResponse.cs | 3 +- .../Types/CreateCustomerResponse.cs | 3 +- .../Types/CreateDeviceCodeResponse.cs | 3 +- .../Types/CreateDisputeEvidenceFileRequest.cs | 3 +- .../CreateDisputeEvidenceFileResponse.cs | 3 +- .../CreateDisputeEvidenceTextResponse.cs | 3 +- .../Types/CreateGiftCardActivityResponse.cs | 3 +- .../Types/CreateGiftCardResponse.cs | 3 +- .../CreateInvoiceAttachmentRequestData.cs | 3 +- .../Types/CreateInvoiceAttachmentResponse.cs | 3 +- .../Types/CreateInvoiceResponse.cs | 3 +- .../{ => Default}/Types/CreateJobResponse.cs | 3 +- ...cationCustomAttributeDefinitionResponse.cs | 3 +- .../Types/CreateLocationResponse.cs | 3 +- .../Types/CreateLoyaltyAccountResponse.cs | 3 +- .../Types/CreateLoyaltyPromotionResponse.cs | 3 +- .../Types/CreateLoyaltyRewardResponse.cs | 3 +- ...rchantCustomAttributeDefinitionResponse.cs | 3 +- ...eOrderCustomAttributeDefinitionResponse.cs | 3 +- .../{ => Default}/Types/CreateOrderRequest.cs | 3 +- .../Types/CreateOrderResponse.cs | 3 +- .../Types/CreatePaymentLinkResponse.cs | 3 +- .../Types/CreatePaymentResponse.cs | 3 +- .../Types/CreateScheduledShiftResponse.cs | 3 +- .../Types/CreateShiftResponse.cs | 3 +- .../Types/CreateSubscriptionResponse.cs | 3 +- .../Types/CreateTeamMemberRequest.cs | 3 +- .../Types/CreateTeamMemberResponse.cs | 3 +- .../Types/CreateTerminalActionResponse.cs | 3 +- .../Types/CreateTerminalCheckoutResponse.cs | 3 +- .../Types/CreateTerminalRefundResponse.cs | 3 +- .../Types/CreateTimecardResponse.cs | 3 +- .../Types/CreateTransferOrderData.cs | 3 +- .../Types/CreateTransferOrderLineData.cs | 3 +- .../Types/CreateTransferOrderResponse.cs | 3 +- .../Types/CreateVendorResponse.cs | 3 +- .../CreateWebhookSubscriptionResponse.cs | 3 +- src/Square/{ => Default}/Types/Currency.cs | 2 +- .../{ => Default}/Types/CustomAttribute.cs | 3 +- .../Types/CustomAttributeDefinition.cs | 3 +- .../CustomAttributeDefinitionEventData.cs | 3 +- ...ustomAttributeDefinitionEventDataObject.cs | 3 +- .../CustomAttributeDefinitionVisibility.cs | 2 +- .../Types/CustomAttributeEventData.cs | 3 +- .../Types/CustomAttributeEventDataObject.cs | 3 +- .../Types/CustomAttributeFilter.cs | 3 +- src/Square/{ => Default}/Types/CustomField.cs | 3 +- src/Square/{ => Default}/Types/Customer.cs | 3 +- .../Types/CustomerAddressFilter.cs | 3 +- .../Types/CustomerCreatedEvent.cs | 3 +- .../Types/CustomerCreatedEventData.cs | 3 +- .../Types/CustomerCreatedEventEventContext.cs | 3 +- .../CustomerCreatedEventEventContextMerge.cs | 3 +- .../Types/CustomerCreatedEventObject.cs | 3 +- .../Types/CustomerCreationSource.cs | 2 +- .../Types/CustomerCreationSourceFilter.cs | 3 +- ...erCustomAttributeDefinitionCreatedEvent.cs | 3 +- ...omAttributeDefinitionCreatedPublicEvent.cs | 3 +- ...erCustomAttributeDefinitionDeletedEvent.cs | 3 +- ...omAttributeDefinitionDeletedPublicEvent.cs | 3 +- ...tomAttributeDefinitionOwnedCreatedEvent.cs | 3 +- ...tomAttributeDefinitionOwnedDeletedEvent.cs | 3 +- ...tomAttributeDefinitionOwnedUpdatedEvent.cs | 3 +- ...erCustomAttributeDefinitionUpdatedEvent.cs | 3 +- ...omAttributeDefinitionUpdatedPublicEvent.cs | 3 +- ...mAttributeDefinitionVisibleCreatedEvent.cs | 3 +- ...mAttributeDefinitionVisibleDeletedEvent.cs | 3 +- ...mAttributeDefinitionVisibleUpdatedEvent.cs | 3 +- .../CustomerCustomAttributeDeletedEvent.cs | 3 +- ...stomerCustomAttributeDeletedPublicEvent.cs | 3 +- .../Types/CustomerCustomAttributeFilter.cs | 3 +- .../CustomerCustomAttributeFilterValue.cs | 3 +- .../Types/CustomerCustomAttributeFilters.cs | 3 +- ...ustomerCustomAttributeOwnedDeletedEvent.cs | 3 +- ...ustomerCustomAttributeOwnedUpdatedEvent.cs | 3 +- .../CustomerCustomAttributeUpdatedEvent.cs | 3 +- ...stomerCustomAttributeUpdatedPublicEvent.cs | 3 +- ...tomerCustomAttributeVisibleDeletedEvent.cs | 3 +- ...tomerCustomAttributeVisibleUpdatedEvent.cs | 3 +- .../Types/CustomerDeletedEvent.cs | 3 +- .../Types/CustomerDeletedEventData.cs | 3 +- .../Types/CustomerDeletedEventEventContext.cs | 3 +- .../CustomerDeletedEventEventContextMerge.cs | 3 +- .../Types/CustomerDeletedEventObject.cs | 3 +- .../{ => Default}/Types/CustomerDetails.cs | 3 +- .../{ => Default}/Types/CustomerFilter.cs | 3 +- .../{ => Default}/Types/CustomerGroup.cs | 3 +- .../Types/CustomerInclusionExclusion.cs | 2 +- .../Types/CustomerPreferences.cs | 3 +- .../{ => Default}/Types/CustomerQuery.cs | 3 +- .../{ => Default}/Types/CustomerSegment.cs | 3 +- .../{ => Default}/Types/CustomerSort.cs | 3 +- .../{ => Default}/Types/CustomerSortField.cs | 2 +- .../{ => Default}/Types/CustomerTaxIds.cs | 3 +- .../{ => Default}/Types/CustomerTextFilter.cs | 3 +- .../Types/CustomerUpdatedEvent.cs | 3 +- .../Types/CustomerUpdatedEventData.cs | 3 +- .../Types/CustomerUpdatedEventObject.cs | 3 +- .../Types/DataCollectionOptions.cs | 3 +- .../Types/DataCollectionOptionsInputType.cs | 2 +- src/Square/{ => Default}/Types/DateRange.cs | 3 +- src/Square/{ => Default}/Types/DayOfWeek.cs | 2 +- ...ookingCustomAttributeDefinitionResponse.cs | 3 +- .../DeleteBookingCustomAttributeResponse.cs | 3 +- .../Types/DeleteBreakTypeResponse.cs | 3 +- .../Types/DeleteCatalogObjectResponse.cs | 3 +- .../Types/DeleteCustomerCardResponse.cs | 3 +- ...stomerCustomAttributeDefinitionResponse.cs | 3 +- .../DeleteCustomerCustomAttributeResponse.cs | 3 +- .../Types/DeleteCustomerGroupResponse.cs | 3 +- .../Types/DeleteCustomerResponse.cs | 3 +- .../Types/DeleteDisputeEvidenceResponse.cs | 3 +- .../Types/DeleteInvoiceAttachmentResponse.cs | 3 +- .../Types/DeleteInvoiceResponse.cs | 3 +- ...cationCustomAttributeDefinitionResponse.cs | 3 +- .../DeleteLocationCustomAttributeResponse.cs | 3 +- .../Types/DeleteLoyaltyRewardResponse.cs | 3 +- ...rchantCustomAttributeDefinitionResponse.cs | 3 +- .../DeleteMerchantCustomAttributeResponse.cs | 3 +- ...eOrderCustomAttributeDefinitionResponse.cs | 3 +- .../DeleteOrderCustomAttributeResponse.cs | 3 +- .../Types/DeletePaymentLinkResponse.cs | 3 +- .../Types/DeleteShiftResponse.cs | 3 +- .../Types/DeleteSnippetResponse.cs | 3 +- .../Types/DeleteSubscriptionActionResponse.cs | 3 +- .../Types/DeleteTimecardResponse.cs | 3 +- .../Types/DeleteTransferOrderResponse.cs | 3 +- .../DeleteWebhookSubscriptionResponse.cs | 3 +- src/Square/{ => Default}/Types/Destination.cs | 3 +- .../{ => Default}/Types/DestinationDetails.cs | 3 +- .../DestinationDetailsCardRefundDetails.cs | 3 +- .../DestinationDetailsCashRefundDetails.cs | 3 +- ...DestinationDetailsExternalRefundDetails.cs | 3 +- .../{ => Default}/Types/DestinationType.cs | 2 +- src/Square/{ => Default}/Types/Device.cs | 3 +- .../{ => Default}/Types/DeviceAttributes.cs | 3 +- .../Types/DeviceAttributesDeviceType.cs | 2 +- .../Types/DeviceCheckoutOptions.cs | 3 +- src/Square/{ => Default}/Types/DeviceCode.cs | 3 +- .../Types/DeviceCodePairedEvent.cs | 3 +- .../Types/DeviceCodePairedEventData.cs | 3 +- .../Types/DeviceCodePairedEventObject.cs | 3 +- .../{ => Default}/Types/DeviceCodeStatus.cs | 2 +- ...eviceComponentDetailsApplicationDetails.cs | 3 +- .../DeviceComponentDetailsBatteryDetails.cs | 3 +- ...DeviceComponentDetailsCardReaderDetails.cs | 3 +- .../DeviceComponentDetailsEthernetDetails.cs | 3 +- .../DeviceComponentDetailsExternalPower.cs | 2 +- .../DeviceComponentDetailsMeasurement.cs | 3 +- .../DeviceComponentDetailsWiFiDetails.cs | 3 +- .../{ => Default}/Types/DeviceCreatedEvent.cs | 3 +- .../Types/DeviceCreatedEventData.cs | 3 +- .../Types/DeviceCreatedEventObject.cs | 3 +- .../{ => Default}/Types/DeviceDetails.cs | 3 +- .../{ => Default}/Types/DeviceMetadata.cs | 3 +- .../{ => Default}/Types/DeviceStatus.cs | 3 +- .../Types/DeviceStatusCategory.cs | 2 +- .../Types/DigitalWalletDetails.cs | 3 +- .../Types/DisableBankAccountResponse.cs | 3 +- .../Types/DisableCardResponse.cs | 3 +- .../Types/DisableEventsResponse.cs | 3 +- .../Types/DismissTerminalActionResponse.cs | 3 +- .../Types/DismissTerminalCheckoutResponse.cs | 3 +- .../Types/DismissTerminalRefundResponse.cs | 3 +- src/Square/{ => Default}/Types/Dispute.cs | 3 +- .../Types/DisputeCreatedEvent.cs | 3 +- .../Types/DisputeCreatedEventData.cs | 3 +- .../Types/DisputeCreatedEventObject.cs | 3 +- .../{ => Default}/Types/DisputeEvidence.cs | 3 +- .../Types/DisputeEvidenceAddedEvent.cs | 3 +- .../Types/DisputeEvidenceAddedEventData.cs | 3 +- .../Types/DisputeEvidenceAddedEventObject.cs | 3 +- .../Types/DisputeEvidenceCreatedEvent.cs | 3 +- .../Types/DisputeEvidenceCreatedEventData.cs | 3 +- .../DisputeEvidenceCreatedEventObject.cs | 3 +- .../Types/DisputeEvidenceDeletedEvent.cs | 3 +- .../Types/DisputeEvidenceDeletedEventData.cs | 3 +- .../DisputeEvidenceDeletedEventObject.cs | 3 +- .../Types/DisputeEvidenceFile.cs | 3 +- .../Types/DisputeEvidenceRemovedEvent.cs | 3 +- .../Types/DisputeEvidenceRemovedEventData.cs | 3 +- .../DisputeEvidenceRemovedEventObject.cs | 3 +- .../Types/DisputeEvidenceType.cs | 2 +- .../{ => Default}/Types/DisputeReason.cs | 2 +- .../{ => Default}/Types/DisputeState.cs | 2 +- .../Types/DisputeStateChangedEvent.cs | 3 +- .../Types/DisputeStateChangedEventData.cs | 3 +- .../Types/DisputeStateChangedEventObject.cs | 3 +- .../Types/DisputeStateUpdatedEvent.cs | 3 +- .../Types/DisputeStateUpdatedEventData.cs | 3 +- .../Types/DisputeStateUpdatedEventObject.cs | 3 +- .../{ => Default}/Types/DisputedPayment.cs | 3 +- .../{ => Default}/Types/EcomVisibility.cs | 2 +- src/Square/{ => Default}/Types/Employee.cs | 3 +- .../{ => Default}/Types/EmployeeStatus.cs | 2 +- .../{ => Default}/Types/EmployeeWage.cs | 3 +- .../Types/EnableEventsResponse.cs | 3 +- src/Square/{ => Default}/Types/Error.cs | 3 +- .../{ => Default}/Types/ErrorCategory.cs | 2 +- src/Square/{ => Default}/Types/ErrorCode.cs | 2 +- src/Square/{ => Default}/Types/Event.cs | 3 +- src/Square/{ => Default}/Types/EventData.cs | 3 +- .../{ => Default}/Types/EventMetadata.cs | 3 +- .../{ => Default}/Types/EventTypeMetadata.cs | 3 +- .../{ => Default}/Types/ExcludeStrategy.cs | 2 +- .../Types/ExternalPaymentDetails.cs | 3 +- src/Square/{ => Default}/Types/FilterValue.cs | 3 +- .../{ => Default}/Types/FloatNumberRange.cs | 3 +- src/Square/{ => Default}/Types/Fulfillment.cs | 3 +- .../Types/FulfillmentDeliveryDetails.cs | 3 +- ...rFulfillmentDeliveryDetailsScheduleType.cs | 2 +- .../Types/FulfillmentFulfillmentEntry.cs | 3 +- ...lfillmentFulfillmentLineItemApplication.cs | 2 +- .../Types/FulfillmentPickupDetails.cs | 3 +- ...lmentPickupDetailsCurbsidePickupDetails.cs | 3 +- .../FulfillmentPickupDetailsScheduleType.cs | 2 +- .../Types/FulfillmentRecipient.cs | 3 +- .../Types/FulfillmentShipmentDetails.cs | 3 +- .../{ => Default}/Types/FulfillmentState.cs | 2 +- .../{ => Default}/Types/FulfillmentType.cs | 2 +- .../Types/GetBankAccountByV1IdResponse.cs | 3 +- .../Types/GetBankAccountResponse.cs | 3 +- .../{ => Default}/Types/GetBookingResponse.cs | 3 +- .../Types/GetBreakTypeResponse.cs | 3 +- .../GetBusinessBookingProfileResponse.cs | 3 +- .../{ => Default}/Types/GetCardResponse.cs | 3 +- .../Types/GetCashDrawerShiftResponse.cs | 3 +- .../Types/GetCatalogObjectResponse.cs | 3 +- ...stomerCustomAttributeDefinitionResponse.cs | 3 +- .../GetCustomerCustomAttributeResponse.cs | 3 +- .../Types/GetCustomerGroupResponse.cs | 3 +- .../Types/GetCustomerResponse.cs | 3 +- .../Types/GetCustomerSegmentResponse.cs | 3 +- .../Types/GetDeviceCodeResponse.cs | 3 +- .../{ => Default}/Types/GetDeviceResponse.cs | 3 +- .../Types/GetDisputeEvidenceResponse.cs | 3 +- .../{ => Default}/Types/GetDisputeResponse.cs | 3 +- .../Types/GetEmployeeResponse.cs | 3 +- .../Types/GetEmployeeWageResponse.cs | 3 +- .../Types/GetGiftCardFromGanResponse.cs | 3 +- .../Types/GetGiftCardFromNonceResponse.cs | 3 +- .../Types/GetGiftCardResponse.cs | 3 +- .../Types/GetInventoryAdjustmentResponse.cs | 3 +- .../Types/GetInventoryChangesResponse.cs | 3 +- .../Types/GetInventoryCountResponse.cs | 3 +- .../GetInventoryPhysicalCountResponse.cs | 3 +- .../Types/GetInventoryTransferResponse.cs | 3 +- .../{ => Default}/Types/GetInvoiceResponse.cs | 3 +- .../Types/GetLocationResponse.cs | 3 +- .../Types/GetLoyaltyAccountResponse.cs | 3 +- .../Types/GetLoyaltyProgramResponse.cs | 3 +- .../Types/GetLoyaltyPromotionResponse.cs | 3 +- .../Types/GetLoyaltyRewardResponse.cs | 3 +- .../Types/GetMerchantResponse.cs | 3 +- .../{ => Default}/Types/GetOrderResponse.cs | 3 +- .../Types/GetPaymentLinkResponse.cs | 3 +- .../Types/GetPaymentRefundResponse.cs | 3 +- .../{ => Default}/Types/GetPaymentResponse.cs | 3 +- .../{ => Default}/Types/GetPayoutResponse.cs | 3 +- .../{ => Default}/Types/GetShiftResponse.cs | 3 +- .../{ => Default}/Types/GetSnippetResponse.cs | 3 +- .../Types/GetSubscriptionResponse.cs | 3 +- .../GetTeamMemberBookingProfileResponse.cs | 3 +- .../Types/GetTeamMemberResponse.cs | 3 +- .../Types/GetTeamMemberWageResponse.cs | 3 +- .../Types/GetTerminalActionResponse.cs | 3 +- .../Types/GetTerminalCheckoutResponse.cs | 3 +- .../Types/GetTerminalRefundResponse.cs | 3 +- .../Types/GetTransactionResponse.cs | 3 +- .../{ => Default}/Types/GetVendorResponse.cs | 3 +- .../Types/GetWageSettingResponse.cs | 3 +- .../Types/GetWebhookSubscriptionResponse.cs | 3 +- src/Square/{ => Default}/Types/GiftCard.cs | 3 +- .../{ => Default}/Types/GiftCardActivity.cs | 3 +- .../Types/GiftCardActivityActivate.cs | 3 +- .../Types/GiftCardActivityAdjustDecrement.cs | 3 +- .../GiftCardActivityAdjustDecrementReason.cs | 2 +- .../Types/GiftCardActivityAdjustIncrement.cs | 3 +- .../GiftCardActivityAdjustIncrementReason.cs | 2 +- .../Types/GiftCardActivityBlock.cs | 3 +- .../Types/GiftCardActivityClearBalance.cs | 3 +- .../GiftCardActivityClearBalanceReason.cs | 2 +- .../Types/GiftCardActivityCreatedEvent.cs | 3 +- .../Types/GiftCardActivityCreatedEventData.cs | 3 +- .../GiftCardActivityCreatedEventObject.cs | 3 +- .../Types/GiftCardActivityDeactivate.cs | 3 +- .../Types/GiftCardActivityDeactivateReason.cs | 2 +- .../Types/GiftCardActivityImport.cs | 3 +- .../Types/GiftCardActivityImportReversal.cs | 3 +- .../Types/GiftCardActivityLoad.cs | 3 +- .../Types/GiftCardActivityRedeem.cs | 3 +- .../Types/GiftCardActivityRedeemStatus.cs | 2 +- .../Types/GiftCardActivityRefund.cs | 3 +- .../GiftCardActivityTransferBalanceFrom.cs | 3 +- .../GiftCardActivityTransferBalanceTo.cs | 3 +- .../Types/GiftCardActivityType.cs | 2 +- .../Types/GiftCardActivityUnblock.cs | 3 +- .../GiftCardActivityUnlinkedActivityRefund.cs | 3 +- .../Types/GiftCardActivityUpdatedEvent.cs | 3 +- .../Types/GiftCardActivityUpdatedEventData.cs | 3 +- .../GiftCardActivityUpdatedEventObject.cs | 3 +- .../Types/GiftCardCreatedEvent.cs | 3 +- .../Types/GiftCardCreatedEventData.cs | 3 +- .../Types/GiftCardCreatedEventObject.cs | 3 +- .../Types/GiftCardCustomerLinkedEvent.cs | 3 +- .../Types/GiftCardCustomerLinkedEventData.cs | 3 +- .../GiftCardCustomerLinkedEventObject.cs | 3 +- .../Types/GiftCardCustomerUnlinkedEvent.cs | 3 +- .../GiftCardCustomerUnlinkedEventData.cs | 3 +- .../GiftCardCustomerUnlinkedEventObject.cs | 3 +- .../{ => Default}/Types/GiftCardGanSource.cs | 2 +- .../{ => Default}/Types/GiftCardStatus.cs | 2 +- .../{ => Default}/Types/GiftCardType.cs | 2 +- .../Types/GiftCardUpdatedEvent.cs | 3 +- .../Types/GiftCardUpdatedEventData.cs | 3 +- .../Types/GiftCardUpdatedEventObject.cs | 3 +- .../Types/InventoryAdjustment.cs | 3 +- .../Types/InventoryAdjustmentGroup.cs | 3 +- .../{ => Default}/Types/InventoryAlertType.cs | 2 +- .../{ => Default}/Types/InventoryChange.cs | 3 +- .../Types/InventoryChangeType.cs | 2 +- .../{ => Default}/Types/InventoryCount.cs | 3 +- .../Types/InventoryCountUpdatedEvent.cs | 3 +- .../Types/InventoryCountUpdatedEventData.cs | 3 +- .../Types/InventoryCountUpdatedEventObject.cs | 3 +- .../Types/InventoryPhysicalCount.cs | 3 +- .../{ => Default}/Types/InventoryState.cs | 2 +- .../{ => Default}/Types/InventoryTransfer.cs | 3 +- src/Square/{ => Default}/Types/Invoice.cs | 3 +- .../Types/InvoiceAcceptedPaymentMethods.cs | 3 +- .../{ => Default}/Types/InvoiceAttachment.cs | 3 +- .../Types/InvoiceAutomaticPaymentSource.cs | 2 +- .../Types/InvoiceCanceledEvent.cs | 3 +- .../Types/InvoiceCanceledEventData.cs | 3 +- .../Types/InvoiceCanceledEventObject.cs | 3 +- .../Types/InvoiceCreatedEvent.cs | 3 +- .../Types/InvoiceCreatedEventData.cs | 3 +- .../Types/InvoiceCreatedEventObject.cs | 3 +- .../{ => Default}/Types/InvoiceCustomField.cs | 3 +- .../Types/InvoiceCustomFieldPlacement.cs | 2 +- .../Types/InvoiceDeletedEvent.cs | 3 +- .../Types/InvoiceDeletedEventData.cs | 3 +- .../Types/InvoiceDeliveryMethod.cs | 2 +- .../{ => Default}/Types/InvoiceFilter.cs | 3 +- .../Types/InvoicePaymentMadeEvent.cs | 3 +- .../Types/InvoicePaymentMadeEventData.cs | 3 +- .../Types/InvoicePaymentMadeEventObject.cs | 3 +- .../Types/InvoicePaymentReminder.cs | 3 +- .../Types/InvoicePaymentReminderStatus.cs | 2 +- .../Types/InvoicePaymentRequest.cs | 3 +- .../Types/InvoicePublishedEvent.cs | 3 +- .../Types/InvoicePublishedEventData.cs | 3 +- .../Types/InvoicePublishedEventObject.cs | 3 +- .../{ => Default}/Types/InvoiceQuery.cs | 3 +- .../{ => Default}/Types/InvoiceRecipient.cs | 3 +- .../Types/InvoiceRecipientTaxIds.cs | 3 +- .../Types/InvoiceRefundedEvent.cs | 3 +- .../Types/InvoiceRefundedEventData.cs | 3 +- .../Types/InvoiceRefundedEventObject.cs | 3 +- .../Types/InvoiceRequestMethod.cs | 2 +- .../{ => Default}/Types/InvoiceRequestType.cs | 2 +- .../InvoiceScheduledChargeFailedEvent.cs | 3 +- .../InvoiceScheduledChargeFailedEventData.cs | 3 +- ...InvoiceScheduledChargeFailedEventObject.cs | 3 +- src/Square/{ => Default}/Types/InvoiceSort.cs | 3 +- .../{ => Default}/Types/InvoiceStatus.cs | 2 +- .../Types/InvoiceUpdatedEvent.cs | 3 +- .../Types/InvoiceUpdatedEventData.cs | 3 +- .../Types/InvoiceUpdatedEventObject.cs | 3 +- .../Types/ItemVariationLocationOverrides.cs | 3 +- src/Square/{ => Default}/Types/Job.cs | 3 +- .../{ => Default}/Types/JobAssignment.cs | 3 +- .../Types/JobAssignmentPayType.cs | 2 +- .../{ => Default}/Types/JobCreatedEvent.cs | 3 +- .../Types/JobCreatedEventData.cs | 3 +- .../Types/JobCreatedEventObject.cs | 3 +- .../{ => Default}/Types/JobUpdatedEvent.cs | 3 +- .../Types/JobUpdatedEventData.cs | 3 +- .../Types/JobUpdatedEventObject.cs | 3 +- .../Types/LaborScheduledShiftCreatedEvent.cs | 3 +- .../LaborScheduledShiftCreatedEventData.cs | 3 +- .../LaborScheduledShiftCreatedEventObject.cs | 3 +- .../Types/LaborScheduledShiftDeletedEvent.cs | 3 +- .../LaborScheduledShiftDeletedEventData.cs | 3 +- .../LaborScheduledShiftPublishedEvent.cs | 3 +- .../LaborScheduledShiftPublishedEventData.cs | 3 +- ...LaborScheduledShiftPublishedEventObject.cs | 3 +- .../Types/LaborScheduledShiftUpdatedEvent.cs | 3 +- .../LaborScheduledShiftUpdatedEventData.cs | 3 +- .../LaborScheduledShiftUpdatedEventObject.cs | 3 +- .../Types/LaborShiftCreatedEvent.cs | 3 +- .../Types/LaborShiftCreatedEventData.cs | 3 +- .../Types/LaborShiftCreatedEventObject.cs | 3 +- .../Types/LaborShiftDeletedEvent.cs | 3 +- .../Types/LaborShiftDeletedEventData.cs | 3 +- .../Types/LaborShiftUpdatedEvent.cs | 3 +- .../Types/LaborShiftUpdatedEventData.cs | 3 +- .../Types/LaborShiftUpdatedEventObject.cs | 3 +- .../Types/LaborTimecardCreatedEvent.cs | 3 +- .../Types/LaborTimecardCreatedEventData.cs | 3 +- .../Types/LaborTimecardCreatedEventObject.cs | 3 +- .../Types/LaborTimecardDeletedEvent.cs | 3 +- .../Types/LaborTimecardDeletedEventData.cs | 3 +- .../Types/LaborTimecardUpdatedEvent.cs | 3 +- .../Types/LaborTimecardUpdatedEventData.cs | 3 +- .../Types/LaborTimecardUpdatedEventObject.cs | 3 +- .../Types/LinkCustomerToGiftCardResponse.cs | 3 +- .../Types/ListBankAccountsResponse.cs | 3 +- ...okingCustomAttributeDefinitionsResponse.cs | 3 +- .../ListBookingCustomAttributesResponse.cs | 3 +- .../Types/ListBookingsResponse.cs | 3 +- .../Types/ListBreakTypesResponse.cs | 3 +- .../{ => Default}/Types/ListCardsResponse.cs | 3 +- .../ListCashDrawerShiftEventsResponse.cs | 3 +- .../Types/ListCashDrawerShiftsResponse.cs | 3 +- .../Types/ListCatalogResponse.cs | 3 +- .../Types/ListChannelsResponse.cs | 3 +- ...tomerCustomAttributeDefinitionsResponse.cs | 3 +- .../ListCustomerCustomAttributesResponse.cs | 3 +- .../Types/ListCustomerGroupsResponse.cs | 3 +- .../Types/ListCustomerSegmentsResponse.cs | 3 +- .../Types/ListCustomersResponse.cs | 3 +- .../Types/ListDeviceCodesResponse.cs | 3 +- .../Types/ListDevicesResponse.cs | 3 +- .../Types/ListDisputeEvidenceResponse.cs | 3 +- .../Types/ListDisputesResponse.cs | 3 +- .../Types/ListEmployeeWagesResponse.cs | 3 +- .../Types/ListEmployeesResponse.cs | 3 +- .../Types/ListEventTypesResponse.cs | 3 +- .../Types/ListGiftCardActivitiesResponse.cs | 3 +- .../Types/ListGiftCardsResponse.cs | 3 +- .../Types/ListInvoicesResponse.cs | 3 +- .../{ => Default}/Types/ListJobsResponse.cs | 3 +- .../ListLocationBookingProfilesResponse.cs | 3 +- ...ationCustomAttributeDefinitionsResponse.cs | 3 +- .../ListLocationCustomAttributesResponse.cs | 3 +- .../Types/ListLocationsResponse.cs | 3 +- .../Types/ListLoyaltyProgramsResponse.cs | 3 +- .../Types/ListLoyaltyPromotionsResponse.cs | 3 +- ...chantCustomAttributeDefinitionsResponse.cs | 3 +- .../ListMerchantCustomAttributesResponse.cs | 3 +- .../Types/ListMerchantsResponse.cs | 3 +- ...OrderCustomAttributeDefinitionsResponse.cs | 3 +- .../ListOrderCustomAttributesResponse.cs | 3 +- .../Types/ListPaymentLinksResponse.cs | 3 +- .../ListPaymentRefundsRequestSortField.cs | 2 +- .../Types/ListPaymentRefundsResponse.cs | 3 +- .../Types/ListPaymentsRequestSortField.cs | 2 +- .../Types/ListPaymentsResponse.cs | 3 +- .../Types/ListPayoutEntriesResponse.cs | 3 +- .../Types/ListPayoutsResponse.cs | 3 +- .../{ => Default}/Types/ListSitesResponse.cs | 3 +- .../Types/ListSubscriptionEventsResponse.cs | 3 +- .../ListTeamMemberBookingProfilesResponse.cs | 3 +- .../Types/ListTeamMemberWagesResponse.cs | 3 +- .../Types/ListTransactionsResponse.cs | 3 +- .../Types/ListWebhookEventTypesResponse.cs | 3 +- .../Types/ListWebhookSubscriptionsResponse.cs | 3 +- .../Types/ListWorkweekConfigsResponse.cs | 3 +- src/Square/{ => Default}/Types/Location.cs | 3 +- .../Types/LocationBookingProfile.cs | 3 +- .../{ => Default}/Types/LocationCapability.cs | 2 +- .../Types/LocationCreatedEvent.cs | 3 +- .../Types/LocationCreatedEventData.cs | 3 +- ...tomAttributeDefinitionOwnedCreatedEvent.cs | 3 +- ...tomAttributeDefinitionOwnedDeletedEvent.cs | 3 +- ...tomAttributeDefinitionOwnedUpdatedEvent.cs | 3 +- ...mAttributeDefinitionVisibleCreatedEvent.cs | 3 +- ...mAttributeDefinitionVisibleDeletedEvent.cs | 3 +- ...mAttributeDefinitionVisibleUpdatedEvent.cs | 3 +- ...ocationCustomAttributeOwnedDeletedEvent.cs | 3 +- ...ocationCustomAttributeOwnedUpdatedEvent.cs | 3 +- ...ationCustomAttributeVisibleDeletedEvent.cs | 3 +- ...ationCustomAttributeVisibleUpdatedEvent.cs | 3 +- .../Types/LocationSettingsUpdatedEvent.cs | 3 +- .../Types/LocationSettingsUpdatedEventData.cs | 3 +- .../LocationSettingsUpdatedEventObject.cs | 3 +- .../{ => Default}/Types/LocationStatus.cs | 2 +- .../{ => Default}/Types/LocationType.cs | 2 +- .../Types/LocationUpdatedEvent.cs | 3 +- .../Types/LocationUpdatedEventData.cs | 3 +- .../{ => Default}/Types/LoyaltyAccount.cs | 3 +- .../Types/LoyaltyAccountCreatedEvent.cs | 3 +- .../Types/LoyaltyAccountCreatedEventData.cs | 3 +- .../Types/LoyaltyAccountCreatedEventObject.cs | 3 +- .../Types/LoyaltyAccountDeletedEvent.cs | 3 +- .../Types/LoyaltyAccountDeletedEventData.cs | 3 +- .../Types/LoyaltyAccountDeletedEventObject.cs | 3 +- .../LoyaltyAccountExpiringPointDeadline.cs | 3 +- .../Types/LoyaltyAccountMapping.cs | 3 +- .../Types/LoyaltyAccountUpdatedEvent.cs | 3 +- .../Types/LoyaltyAccountUpdatedEventData.cs | 3 +- .../Types/LoyaltyAccountUpdatedEventObject.cs | 3 +- .../{ => Default}/Types/LoyaltyEvent.cs | 3 +- .../Types/LoyaltyEventAccumulatePoints.cs | 3 +- .../LoyaltyEventAccumulatePromotionPoints.cs | 3 +- .../Types/LoyaltyEventAdjustPoints.cs | 3 +- .../Types/LoyaltyEventCreateReward.cs | 3 +- .../Types/LoyaltyEventCreatedEvent.cs | 3 +- .../Types/LoyaltyEventCreatedEventData.cs | 3 +- .../Types/LoyaltyEventCreatedEventObject.cs | 3 +- .../Types/LoyaltyEventDateTimeFilter.cs | 3 +- .../Types/LoyaltyEventDeleteReward.cs | 3 +- .../Types/LoyaltyEventExpirePoints.cs | 3 +- .../{ => Default}/Types/LoyaltyEventFilter.cs | 3 +- .../Types/LoyaltyEventLocationFilter.cs | 3 +- .../Types/LoyaltyEventLoyaltyAccountFilter.cs | 3 +- .../Types/LoyaltyEventOrderFilter.cs | 3 +- .../{ => Default}/Types/LoyaltyEventOther.cs | 3 +- .../{ => Default}/Types/LoyaltyEventQuery.cs | 3 +- .../Types/LoyaltyEventRedeemReward.cs | 3 +- .../{ => Default}/Types/LoyaltyEventSource.cs | 2 +- .../{ => Default}/Types/LoyaltyEventType.cs | 2 +- .../Types/LoyaltyEventTypeFilter.cs | 3 +- .../{ => Default}/Types/LoyaltyProgram.cs | 3 +- .../Types/LoyaltyProgramAccrualRule.cs | 3 +- .../LoyaltyProgramAccrualRuleCategoryData.cs | 3 +- ...altyProgramAccrualRuleItemVariationData.cs | 3 +- .../LoyaltyProgramAccrualRuleSpendData.cs | 3 +- .../Types/LoyaltyProgramAccrualRuleTaxMode.cs | 2 +- .../Types/LoyaltyProgramAccrualRuleType.cs | 2 +- .../LoyaltyProgramAccrualRuleVisitData.cs | 3 +- .../Types/LoyaltyProgramCreatedEvent.cs | 3 +- .../Types/LoyaltyProgramCreatedEventData.cs | 3 +- .../Types/LoyaltyProgramCreatedEventObject.cs | 3 +- .../Types/LoyaltyProgramExpirationPolicy.cs | 3 +- .../Types/LoyaltyProgramRewardTier.cs | 3 +- .../Types/LoyaltyProgramStatus.cs | 2 +- .../Types/LoyaltyProgramTerminology.cs | 3 +- .../Types/LoyaltyProgramUpdatedEvent.cs | 3 +- .../Types/LoyaltyProgramUpdatedEventData.cs | 3 +- .../Types/LoyaltyProgramUpdatedEventObject.cs | 3 +- .../{ => Default}/Types/LoyaltyPromotion.cs | 3 +- .../LoyaltyPromotionAvailableTimeData.cs | 3 +- .../Types/LoyaltyPromotionCreatedEvent.cs | 3 +- .../Types/LoyaltyPromotionCreatedEventData.cs | 3 +- .../LoyaltyPromotionCreatedEventObject.cs | 3 +- .../Types/LoyaltyPromotionIncentive.cs | 3 +- ...ltyPromotionIncentivePointsAdditionData.cs | 3 +- ...yPromotionIncentivePointsMultiplierData.cs | 3 +- .../Types/LoyaltyPromotionIncentiveType.cs | 2 +- .../Types/LoyaltyPromotionStatus.cs | 2 +- .../Types/LoyaltyPromotionTriggerLimit.cs | 3 +- .../LoyaltyPromotionTriggerLimitInterval.cs | 2 +- .../Types/LoyaltyPromotionUpdatedEvent.cs | 3 +- .../Types/LoyaltyPromotionUpdatedEventData.cs | 3 +- .../LoyaltyPromotionUpdatedEventObject.cs | 3 +- .../{ => Default}/Types/LoyaltyReward.cs | 3 +- .../Types/LoyaltyRewardStatus.cs | 2 +- .../{ => Default}/Types/MeasurementUnit.cs | 3 +- .../Types/MeasurementUnitArea.cs | 2 +- .../Types/MeasurementUnitCustom.cs | 3 +- .../Types/MeasurementUnitLength.cs | 2 +- .../Types/MeasurementUnitTime.cs | 2 +- .../Types/MeasurementUnitUnitType.cs | 2 +- .../Types/MeasurementUnitVolume.cs | 2 +- .../Types/MeasurementUnitWeight.cs | 2 +- src/Square/{ => Default}/Types/Merchant.cs | 3 +- ...tomAttributeDefinitionOwnedCreatedEvent.cs | 3 +- ...tomAttributeDefinitionOwnedDeletedEvent.cs | 3 +- ...tomAttributeDefinitionOwnedUpdatedEvent.cs | 3 +- ...mAttributeDefinitionVisibleCreatedEvent.cs | 3 +- ...mAttributeDefinitionVisibleDeletedEvent.cs | 3 +- ...mAttributeDefinitionVisibleUpdatedEvent.cs | 3 +- ...erchantCustomAttributeOwnedDeletedEvent.cs | 3 +- ...erchantCustomAttributeOwnedUpdatedEvent.cs | 3 +- ...chantCustomAttributeVisibleDeletedEvent.cs | 3 +- ...chantCustomAttributeVisibleUpdatedEvent.cs | 3 +- .../Types/MerchantSettingsUpdatedEvent.cs | 3 +- .../Types/MerchantSettingsUpdatedEventData.cs | 3 +- .../MerchantSettingsUpdatedEventObject.cs | 3 +- .../{ => Default}/Types/MerchantStatus.cs | 2 +- .../Types/ModifierLocationOverrides.cs | 3 +- src/Square/{ => Default}/Types/Money.cs | 3 +- .../Types/OauthAuthorizationRevokedEvent.cs | 3 +- .../OauthAuthorizationRevokedEventData.cs | 3 +- .../OauthAuthorizationRevokedEventObject.cs | 3 +- ...thorizationRevokedEventRevocationObject.cs | 3 +- ...uthAuthorizationRevokedEventRevokerType.cs | 2 +- .../Types/ObtainTokenResponse.cs | 3 +- .../Types/OfflinePaymentDetails.cs | 3 +- src/Square/{ => Default}/Types/Order.cs | 3 +- .../Types/OrderCardSurchargeTreatmentType.cs | 2 +- .../{ => Default}/Types/OrderCreated.cs | 3 +- .../{ => Default}/Types/OrderCreatedEvent.cs | 3 +- .../Types/OrderCreatedEventData.cs | 3 +- .../{ => Default}/Types/OrderCreatedObject.cs | 3 +- ...tomAttributeDefinitionOwnedCreatedEvent.cs | 3 +- ...tomAttributeDefinitionOwnedDeletedEvent.cs | 3 +- ...tomAttributeDefinitionOwnedUpdatedEvent.cs | 3 +- ...mAttributeDefinitionVisibleCreatedEvent.cs | 3 +- ...mAttributeDefinitionVisibleDeletedEvent.cs | 3 +- ...mAttributeDefinitionVisibleUpdatedEvent.cs | 3 +- .../OrderCustomAttributeOwnedDeletedEvent.cs | 3 +- .../OrderCustomAttributeOwnedUpdatedEvent.cs | 3 +- ...OrderCustomAttributeVisibleDeletedEvent.cs | 3 +- ...OrderCustomAttributeVisibleUpdatedEvent.cs | 3 +- src/Square/{ => Default}/Types/OrderEntry.cs | 3 +- ...rFulfillmentDeliveryDetailsScheduleType.cs | 2 +- ...lfillmentFulfillmentLineItemApplication.cs | 2 +- ...derFulfillmentPickupDetailsScheduleType.cs | 2 +- .../Types/OrderFulfillmentState.cs | 2 +- .../Types/OrderFulfillmentType.cs | 2 +- .../Types/OrderFulfillmentUpdated.cs | 3 +- .../Types/OrderFulfillmentUpdatedEvent.cs | 3 +- .../Types/OrderFulfillmentUpdatedEventData.cs | 3 +- .../Types/OrderFulfillmentUpdatedObject.cs | 3 +- .../Types/OrderFulfillmentUpdatedUpdate.cs | 3 +- .../{ => Default}/Types/OrderLineItem.cs | 3 +- .../Types/OrderLineItemAppliedDiscount.cs | 3 +- .../OrderLineItemAppliedServiceCharge.cs | 3 +- .../Types/OrderLineItemAppliedTax.cs | 3 +- .../Types/OrderLineItemDiscount.cs | 3 +- .../Types/OrderLineItemDiscountScope.cs | 2 +- .../Types/OrderLineItemDiscountType.cs | 2 +- .../Types/OrderLineItemItemType.cs | 2 +- .../Types/OrderLineItemModifier.cs | 3 +- .../Types/OrderLineItemPricingBlocklists.cs | 3 +- ...ineItemPricingBlocklistsBlockedDiscount.cs | 3 +- ...emPricingBlocklistsBlockedServiceCharge.cs | 3 +- ...rderLineItemPricingBlocklistsBlockedTax.cs | 3 +- .../{ => Default}/Types/OrderLineItemTax.cs | 3 +- .../Types/OrderLineItemTaxScope.cs | 2 +- .../Types/OrderLineItemTaxType.cs | 2 +- .../{ => Default}/Types/OrderMoneyAmounts.cs | 3 +- .../Types/OrderPricingOptions.cs | 3 +- .../{ => Default}/Types/OrderQuantityUnit.cs | 3 +- src/Square/{ => Default}/Types/OrderReturn.cs | 3 +- .../Types/OrderReturnDiscount.cs | 3 +- .../Types/OrderReturnLineItem.cs | 3 +- .../Types/OrderReturnLineItemModifier.cs | 3 +- .../Types/OrderReturnServiceCharge.cs | 3 +- .../{ => Default}/Types/OrderReturnTax.cs | 3 +- .../{ => Default}/Types/OrderReturnTip.cs | 3 +- src/Square/{ => Default}/Types/OrderReward.cs | 3 +- .../Types/OrderRoundingAdjustment.cs | 3 +- .../{ => Default}/Types/OrderServiceCharge.cs | 3 +- .../OrderServiceChargeCalculationPhase.cs | 2 +- .../Types/OrderServiceChargeScope.cs | 2 +- .../Types/OrderServiceChargeTreatmentType.cs | 2 +- .../Types/OrderServiceChargeType.cs | 2 +- src/Square/{ => Default}/Types/OrderSource.cs | 3 +- src/Square/{ => Default}/Types/OrderState.cs | 2 +- .../{ => Default}/Types/OrderUpdated.cs | 3 +- .../{ => Default}/Types/OrderUpdatedEvent.cs | 3 +- .../Types/OrderUpdatedEventData.cs | 3 +- .../{ => Default}/Types/OrderUpdatedObject.cs | 3 +- .../Types/PauseSubscriptionResponse.cs | 3 +- .../{ => Default}/Types/PayOrderResponse.cs | 3 +- src/Square/{ => Default}/Types/Payment.cs | 3 +- ...aymentBalanceActivityAppFeeRefundDetail.cs | 3 +- ...ymentBalanceActivityAppFeeRevenueDetail.cs | 3 +- ...ntBalanceActivityAutomaticSavingsDetail.cs | 3 +- ...eActivityAutomaticSavingsReversedDetail.cs | 3 +- .../PaymentBalanceActivityChargeDetail.cs | 3 +- .../PaymentBalanceActivityDepositFeeDetail.cs | 3 +- ...BalanceActivityDepositFeeReversedDetail.cs | 3 +- .../PaymentBalanceActivityDisputeDetail.cs | 3 +- .../Types/PaymentBalanceActivityFeeDetail.cs | 3 +- ...mentBalanceActivityFreeProcessingDetail.cs | 3 +- ...mentBalanceActivityHoldAdjustmentDetail.cs | 3 +- ...PaymentBalanceActivityOpenDisputeDetail.cs | 3 +- ...entBalanceActivityOtherAdjustmentDetail.cs | 3 +- .../PaymentBalanceActivityOtherDetail.cs | 3 +- .../PaymentBalanceActivityRefundDetail.cs | 3 +- ...tBalanceActivityReleaseAdjustmentDetail.cs | 3 +- ...PaymentBalanceActivityReserveHoldDetail.cs | 3 +- ...mentBalanceActivityReserveReleaseDetail.cs | 3 +- ...lanceActivitySquareCapitalPaymentDetail.cs | 3 +- ...ivitySquareCapitalReversedPaymentDetail.cs | 3 +- ...anceActivitySquarePayrollTransferDetail.cs | 3 +- ...vitySquarePayrollTransferReversedDetail.cs | 3 +- .../PaymentBalanceActivityTaxOnFeeDetail.cs | 3 +- ...ymentBalanceActivityThirdPartyFeeDetail.cs | 3 +- ...alanceActivityThirdPartyFeeRefundDetail.cs | 3 +- .../Types/PaymentCreatedEvent.cs | 3 +- .../Types/PaymentCreatedEventData.cs | 3 +- .../Types/PaymentCreatedEventObject.cs | 3 +- src/Square/{ => Default}/Types/PaymentLink.cs | 3 +- .../Types/PaymentLinkRelatedResources.cs | 3 +- .../{ => Default}/Types/PaymentOptions.cs | 3 +- .../Types/PaymentOptionsDelayAction.cs | 2 +- .../{ => Default}/Types/PaymentRefund.cs | 3 +- .../Types/PaymentUpdatedEvent.cs | 3 +- .../Types/PaymentUpdatedEventData.cs | 3 +- .../Types/PaymentUpdatedEventObject.cs | 3 +- src/Square/{ => Default}/Types/Payout.cs | 3 +- src/Square/{ => Default}/Types/PayoutEntry.cs | 3 +- .../{ => Default}/Types/PayoutFailedEvent.cs | 3 +- .../Types/PayoutFailedEventData.cs | 3 +- .../Types/PayoutFailedEventObject.cs | 3 +- src/Square/{ => Default}/Types/PayoutFee.cs | 3 +- .../{ => Default}/Types/PayoutFeeType.cs | 2 +- .../{ => Default}/Types/PayoutPaidEvent.cs | 3 +- .../Types/PayoutPaidEventData.cs | 3 +- .../Types/PayoutPaidEventObject.cs | 3 +- .../{ => Default}/Types/PayoutSentEvent.cs | 3 +- .../Types/PayoutSentEventData.cs | 3 +- .../Types/PayoutSentEventObject.cs | 3 +- .../{ => Default}/Types/PayoutStatus.cs | 2 +- src/Square/{ => Default}/Types/PayoutType.cs | 2 +- src/Square/{ => Default}/Types/Phase.cs | 3 +- src/Square/{ => Default}/Types/PhaseInput.cs | 3 +- .../{ => Default}/Types/PrePopulatedData.cs | 3 +- .../{ => Default}/Types/ProcessingFee.cs | 3 +- src/Square/{ => Default}/Types/Product.cs | 2 +- .../Types/PublishInvoiceResponse.cs | 3 +- .../Types/PublishScheduledShiftResponse.cs | 3 +- .../{ => Default}/Types/QrCodeOptions.cs | 3 +- src/Square/{ => Default}/Types/QuickPay.cs | 3 +- src/Square/{ => Default}/Types/Range.cs | 3 +- .../{ => Default}/Types/ReceiptOptions.cs | 3 +- .../Types/ReceiveTransferOrderResponse.cs | 3 +- .../Types/RedeemLoyaltyRewardResponse.cs | 3 +- src/Square/{ => Default}/Types/Reference.cs | 3 +- .../{ => Default}/Types/ReferenceType.cs | 2 +- src/Square/{ => Default}/Types/Refund.cs | 3 +- .../{ => Default}/Types/RefundCreatedEvent.cs | 3 +- .../Types/RefundCreatedEventData.cs | 3 +- .../Types/RefundCreatedEventObject.cs | 3 +- .../Types/RefundPaymentResponse.cs | 3 +- .../{ => Default}/Types/RefundStatus.cs | 2 +- .../{ => Default}/Types/RefundUpdatedEvent.cs | 3 +- .../Types/RefundUpdatedEventData.cs | 3 +- .../Types/RefundUpdatedEventObject.cs | 3 +- .../Types/RegisterDomainResponse.cs | 3 +- .../Types/RegisterDomainResponseStatus.cs | 2 +- .../Types/RemoveGroupFromCustomerResponse.cs | 3 +- .../Types/ResumeSubscriptionResponse.cs | 3 +- ...ookingCustomAttributeDefinitionResponse.cs | 3 +- .../RetrieveBookingCustomAttributeResponse.cs | 3 +- .../Types/RetrieveChannelResponse.cs | 3 +- .../Types/RetrieveJobResponse.cs | 3 +- .../RetrieveLocationBookingProfileResponse.cs | 3 +- ...cationCustomAttributeDefinitionResponse.cs | 3 +- ...RetrieveLocationCustomAttributeResponse.cs | 3 +- .../Types/RetrieveLocationSettingsResponse.cs | 3 +- ...rchantCustomAttributeDefinitionResponse.cs | 3 +- ...RetrieveMerchantCustomAttributeResponse.cs | 3 +- .../Types/RetrieveMerchantSettingsResponse.cs | 3 +- ...eOrderCustomAttributeDefinitionResponse.cs | 3 +- .../RetrieveOrderCustomAttributeResponse.cs | 3 +- .../Types/RetrieveScheduledShiftResponse.cs | 3 +- .../Types/RetrieveTimecardResponse.cs | 3 +- .../Types/RetrieveTokenStatusResponse.cs | 3 +- .../Types/RetrieveTransferOrderResponse.cs | 3 +- .../Types/RevokeTokenResponse.cs | 3 +- .../{ => Default}/Types/RiskEvaluation.cs | 3 +- .../Types/RiskEvaluationRiskLevel.cs | 2 +- .../{ => Default}/Types/SaveCardOptions.cs | 3 +- .../{ => Default}/Types/ScheduledShift.cs | 3 +- .../Types/ScheduledShiftDetails.cs | 3 +- .../Types/ScheduledShiftFilter.cs | 3 +- .../ScheduledShiftFilterAssignmentStatus.cs | 2 +- ...cheduledShiftFilterScheduledShiftStatus.cs | 2 +- .../ScheduledShiftNotificationAudience.cs | 2 +- .../Types/ScheduledShiftQuery.cs | 3 +- .../{ => Default}/Types/ScheduledShiftSort.cs | 3 +- .../Types/ScheduledShiftSortField.cs | 2 +- .../Types/ScheduledShiftWorkday.cs | 3 +- .../Types/ScheduledShiftWorkdayMatcher.cs | 2 +- .../Types/SearchAvailabilityFilter.cs | 3 +- .../Types/SearchAvailabilityQuery.cs | 3 +- .../Types/SearchAvailabilityResponse.cs | 3 +- .../SearchCatalogItemsRequestStockLevel.cs | 2 +- .../Types/SearchCatalogItemsResponse.cs | 3 +- .../Types/SearchCatalogObjectsResponse.cs | 3 +- .../Types/SearchCustomersResponse.cs | 3 +- .../{ => Default}/Types/SearchEventsFilter.cs | 3 +- .../{ => Default}/Types/SearchEventsQuery.cs | 3 +- .../Types/SearchEventsResponse.cs | 3 +- .../{ => Default}/Types/SearchEventsSort.cs | 3 +- .../Types/SearchInvoicesResponse.cs | 3 +- ...yaltyAccountsRequestLoyaltyAccountQuery.cs | 3 +- .../Types/SearchLoyaltyAccountsResponse.cs | 3 +- .../Types/SearchLoyaltyEventsResponse.cs | 3 +- ...LoyaltyRewardsRequestLoyaltyRewardQuery.cs | 3 +- .../Types/SearchLoyaltyRewardsResponse.cs | 3 +- .../Types/SearchOrdersCustomerFilter.cs | 3 +- .../Types/SearchOrdersDateTimeFilter.cs | 3 +- .../{ => Default}/Types/SearchOrdersFilter.cs | 3 +- .../Types/SearchOrdersFulfillmentFilter.cs | 3 +- .../{ => Default}/Types/SearchOrdersQuery.cs | 3 +- .../Types/SearchOrdersResponse.cs | 3 +- .../{ => Default}/Types/SearchOrdersSort.cs | 3 +- .../Types/SearchOrdersSortField.cs | 2 +- .../Types/SearchOrdersSourceFilter.cs | 3 +- .../Types/SearchOrdersStateFilter.cs | 3 +- .../Types/SearchScheduledShiftsResponse.cs | 3 +- .../Types/SearchShiftsResponse.cs | 3 +- .../Types/SearchSubscriptionsFilter.cs | 3 +- .../Types/SearchSubscriptionsQuery.cs | 3 +- .../Types/SearchSubscriptionsResponse.cs | 3 +- .../Types/SearchTeamMembersFilter.cs | 3 +- .../Types/SearchTeamMembersQuery.cs | 3 +- .../Types/SearchTeamMembersResponse.cs | 3 +- .../Types/SearchTerminalActionsResponse.cs | 3 +- .../Types/SearchTerminalCheckoutsResponse.cs | 3 +- .../Types/SearchTerminalRefundsResponse.cs | 3 +- .../Types/SearchTimecardsResponse.cs | 3 +- .../Types/SearchTransferOrdersResponse.cs | 3 +- .../Types/SearchVendorsRequestFilter.cs | 3 +- .../Types/SearchVendorsRequestSort.cs | 3 +- .../Types/SearchVendorsRequestSortField.cs | 2 +- .../Types/SearchVendorsResponse.cs | 3 +- .../{ => Default}/Types/SegmentFilter.cs | 3 +- .../{ => Default}/Types/SelectOption.cs | 3 +- .../{ => Default}/Types/SelectOptions.cs | 3 +- src/Square/{ => Default}/Types/Shift.cs | 3 +- src/Square/{ => Default}/Types/ShiftFilter.cs | 3 +- .../{ => Default}/Types/ShiftFilterStatus.cs | 2 +- src/Square/{ => Default}/Types/ShiftQuery.cs | 3 +- src/Square/{ => Default}/Types/ShiftSort.cs | 3 +- .../{ => Default}/Types/ShiftSortField.cs | 2 +- src/Square/{ => Default}/Types/ShiftStatus.cs | 2 +- src/Square/{ => Default}/Types/ShiftWage.cs | 3 +- .../{ => Default}/Types/ShiftWorkday.cs | 3 +- .../Types/ShiftWorkdayMatcher.cs | 2 +- src/Square/{ => Default}/Types/ShippingFee.cs | 3 +- .../{ => Default}/Types/SignatureImage.cs | 3 +- .../{ => Default}/Types/SignatureOptions.cs | 3 +- src/Square/{ => Default}/Types/Site.cs | 3 +- src/Square/{ => Default}/Types/Snippet.cs | 3 +- src/Square/{ => Default}/Types/SortOrder.cs | 2 +- .../{ => Default}/Types/SourceApplication.cs | 3 +- .../Types/SquareAccountDetails.cs | 3 +- .../Types/StandardUnitDescription.cs | 3 +- .../Types/StandardUnitDescriptionGroup.cs | 3 +- .../Types/StartTransferOrderResponse.cs | 3 +- .../Types/SubmitEvidenceResponse.cs | 3 +- .../{ => Default}/Types/Subscription.cs | 3 +- .../{ => Default}/Types/SubscriptionAction.cs | 3 +- .../Types/SubscriptionActionType.cs | 2 +- .../Types/SubscriptionCadence.cs | 2 +- .../Types/SubscriptionCreatedEvent.cs | 3 +- .../Types/SubscriptionCreatedEventData.cs | 3 +- .../Types/SubscriptionCreatedEventObject.cs | 3 +- .../{ => Default}/Types/SubscriptionEvent.cs | 3 +- .../Types/SubscriptionEventInfo.cs | 3 +- .../Types/SubscriptionEventInfoCode.cs | 2 +- .../SubscriptionEventSubscriptionEventType.cs | 2 +- .../{ => Default}/Types/SubscriptionPhase.cs | 3 +- .../Types/SubscriptionPricing.cs | 3 +- .../Types/SubscriptionPricingType.cs | 2 +- .../{ => Default}/Types/SubscriptionSource.cs | 3 +- .../{ => Default}/Types/SubscriptionStatus.cs | 2 +- .../Types/SubscriptionTestResult.cs | 3 +- .../Types/SubscriptionUpdatedEvent.cs | 3 +- .../Types/SubscriptionUpdatedEventData.cs | 3 +- .../Types/SubscriptionUpdatedEventObject.cs | 3 +- .../{ => Default}/Types/SwapPlanResponse.cs | 3 +- .../Types/TaxCalculationPhase.cs | 2 +- src/Square/{ => Default}/Types/TaxIds.cs | 3 +- .../{ => Default}/Types/TaxInclusionType.cs | 2 +- src/Square/{ => Default}/Types/TeamMember.cs | 3 +- .../Types/TeamMemberAssignedLocations.cs | 3 +- ...amMemberAssignedLocationsAssignmentType.cs | 2 +- .../Types/TeamMemberBookingProfile.cs | 3 +- .../Types/TeamMemberCreatedEvent.cs | 3 +- .../Types/TeamMemberCreatedEventData.cs | 3 +- .../Types/TeamMemberCreatedEventObject.cs | 3 +- .../Types/TeamMemberInvitationStatus.cs | 2 +- .../{ => Default}/Types/TeamMemberStatus.cs | 2 +- .../Types/TeamMemberUpdatedEvent.cs | 3 +- .../Types/TeamMemberUpdatedEventData.cs | 3 +- .../Types/TeamMemberUpdatedEventObject.cs | 3 +- .../{ => Default}/Types/TeamMemberWage.cs | 3 +- .../TeamMemberWageSettingUpdatedEvent.cs | 3 +- .../TeamMemberWageSettingUpdatedEventData.cs | 3 +- ...TeamMemberWageSettingUpdatedEventObject.cs | 3 +- src/Square/{ => Default}/Types/Tender.cs | 3 +- .../Types/TenderBankAccountDetails.cs | 3 +- .../Types/TenderBankAccountDetailsStatus.cs | 2 +- .../Types/TenderBuyNowPayLaterDetails.cs | 3 +- .../Types/TenderBuyNowPayLaterDetailsBrand.cs | 2 +- .../TenderBuyNowPayLaterDetailsStatus.cs | 2 +- .../{ => Default}/Types/TenderCardDetails.cs | 3 +- .../Types/TenderCardDetailsEntryMethod.cs | 2 +- .../Types/TenderCardDetailsStatus.cs | 2 +- .../{ => Default}/Types/TenderCashDetails.cs | 3 +- .../Types/TenderSquareAccountDetails.cs | 3 +- .../Types/TenderSquareAccountDetailsStatus.cs | 2 +- src/Square/{ => Default}/Types/TenderType.cs | 2 +- .../{ => Default}/Types/TerminalAction.cs | 3 +- .../Types/TerminalActionActionType.cs | 2 +- .../Types/TerminalActionCreatedEvent.cs | 3 +- .../Types/TerminalActionCreatedEventData.cs | 3 +- .../Types/TerminalActionCreatedEventObject.cs | 3 +- .../Types/TerminalActionQuery.cs | 3 +- .../Types/TerminalActionQueryFilter.cs | 3 +- .../Types/TerminalActionQuerySort.cs | 3 +- .../Types/TerminalActionUpdatedEvent.cs | 3 +- .../Types/TerminalActionUpdatedEventData.cs | 3 +- .../Types/TerminalActionUpdatedEventObject.cs | 3 +- .../{ => Default}/Types/TerminalCheckout.cs | 3 +- .../Types/TerminalCheckoutCreatedEvent.cs | 3 +- .../Types/TerminalCheckoutCreatedEventData.cs | 3 +- .../TerminalCheckoutCreatedEventObject.cs | 3 +- .../Types/TerminalCheckoutQuery.cs | 3 +- .../Types/TerminalCheckoutQueryFilter.cs | 3 +- .../Types/TerminalCheckoutQuerySort.cs | 3 +- .../Types/TerminalCheckoutUpdatedEvent.cs | 3 +- .../Types/TerminalCheckoutUpdatedEventData.cs | 3 +- .../TerminalCheckoutUpdatedEventObject.cs | 3 +- .../{ => Default}/Types/TerminalRefund.cs | 3 +- .../Types/TerminalRefundCreatedEvent.cs | 3 +- .../Types/TerminalRefundCreatedEventData.cs | 3 +- .../Types/TerminalRefundCreatedEventObject.cs | 3 +- .../Types/TerminalRefundQuery.cs | 3 +- .../Types/TerminalRefundQueryFilter.cs | 3 +- .../Types/TerminalRefundQuerySort.cs | 3 +- .../Types/TerminalRefundUpdatedEvent.cs | 3 +- .../Types/TerminalRefundUpdatedEventData.cs | 3 +- .../Types/TerminalRefundUpdatedEventObject.cs | 3 +- .../Types/TestWebhookSubscriptionResponse.cs | 3 +- src/Square/{ => Default}/Types/TimeRange.cs | 3 +- src/Square/{ => Default}/Types/Timecard.cs | 3 +- .../{ => Default}/Types/TimecardFilter.cs | 3 +- .../Types/TimecardFilterStatus.cs | 2 +- .../{ => Default}/Types/TimecardQuery.cs | 3 +- .../{ => Default}/Types/TimecardSort.cs | 3 +- .../{ => Default}/Types/TimecardSortField.cs | 2 +- .../{ => Default}/Types/TimecardStatus.cs | 2 +- .../{ => Default}/Types/TimecardWage.cs | 3 +- .../{ => Default}/Types/TimecardWorkday.cs | 3 +- .../Types/TimecardWorkdayMatcher.cs | 2 +- src/Square/{ => Default}/Types/TipSettings.cs | 3 +- src/Square/{ => Default}/Types/Transaction.cs | 3 +- .../{ => Default}/Types/TransactionProduct.cs | 2 +- .../{ => Default}/Types/TransactionType.cs | 2 +- .../{ => Default}/Types/TransferOrder.cs | 3 +- .../Types/TransferOrderCreatedEvent.cs | 3 +- .../Types/TransferOrderCreatedEventData.cs | 3 +- .../Types/TransferOrderCreatedEventObject.cs | 3 +- .../Types/TransferOrderDeletedEvent.cs | 3 +- .../Types/TransferOrderDeletedEventData.cs | 3 +- .../Types/TransferOrderFilter.cs | 3 +- .../Types/TransferOrderGoodsReceipt.cs | 3 +- .../TransferOrderGoodsReceiptLineItem.cs | 3 +- .../{ => Default}/Types/TransferOrderLine.cs | 3 +- .../{ => Default}/Types/TransferOrderQuery.cs | 3 +- .../{ => Default}/Types/TransferOrderSort.cs | 3 +- .../Types/TransferOrderSortField.cs | 2 +- .../Types/TransferOrderStatus.cs | 2 +- .../Types/TransferOrderUpdatedEvent.cs | 3 +- .../Types/TransferOrderUpdatedEventData.cs | 3 +- .../Types/TransferOrderUpdatedEventObject.cs | 3 +- .../UnlinkCustomerFromGiftCardResponse.cs | 3 +- ...ookingCustomAttributeDefinitionResponse.cs | 3 +- .../Types/UpdateBookingResponse.cs | 3 +- .../Types/UpdateBreakTypeResponse.cs | 3 +- .../Types/UpdateCatalogImageRequest.cs | 3 +- .../Types/UpdateCatalogImageResponse.cs | 3 +- ...stomerCustomAttributeDefinitionResponse.cs | 3 +- .../Types/UpdateCustomerGroupResponse.cs | 3 +- .../Types/UpdateCustomerResponse.cs | 3 +- .../Types/UpdateInvoiceResponse.cs | 3 +- .../Types/UpdateItemModifierListsResponse.cs | 3 +- .../Types/UpdateItemTaxesResponse.cs | 3 +- .../{ => Default}/Types/UpdateJobResponse.cs | 3 +- ...cationCustomAttributeDefinitionResponse.cs | 3 +- .../Types/UpdateLocationResponse.cs | 3 +- .../Types/UpdateLocationSettingsResponse.cs | 3 +- ...rchantCustomAttributeDefinitionResponse.cs | 3 +- .../Types/UpdateMerchantSettingsResponse.cs | 3 +- ...eOrderCustomAttributeDefinitionResponse.cs | 3 +- .../Types/UpdateOrderResponse.cs | 3 +- .../Types/UpdatePaymentLinkResponse.cs | 3 +- .../Types/UpdatePaymentResponse.cs | 3 +- .../Types/UpdateScheduledShiftResponse.cs | 3 +- .../Types/UpdateShiftResponse.cs | 3 +- .../Types/UpdateSubscriptionResponse.cs | 3 +- .../Types/UpdateTeamMemberRequest.cs | 3 +- .../Types/UpdateTeamMemberResponse.cs | 3 +- .../Types/UpdateTimecardResponse.cs | 3 +- .../Types/UpdateTransferOrderData.cs | 3 +- .../Types/UpdateTransferOrderLineData.cs | 3 +- .../Types/UpdateTransferOrderResponse.cs | 3 +- .../Types/UpdateVendorRequest.cs | 3 +- .../Types/UpdateVendorResponse.cs | 3 +- .../Types/UpdateWageSettingResponse.cs | 3 +- .../UpdateWebhookSubscriptionResponse.cs | 3 +- ...WebhookSubscriptionSignatureKeyResponse.cs | 3 +- .../Types/UpdateWorkweekConfigResponse.cs | 3 +- .../UpsertBookingCustomAttributeResponse.cs | 3 +- .../Types/UpsertCatalogObjectResponse.cs | 3 +- .../UpsertCustomerCustomAttributeResponse.cs | 3 +- .../UpsertLocationCustomAttributeResponse.cs | 3 +- .../UpsertMerchantCustomAttributeResponse.cs | 3 +- .../UpsertOrderCustomAttributeResponse.cs | 3 +- .../Types/UpsertSnippetResponse.cs | 3 +- src/Square/{ => Default}/Types/V1Money.cs | 3 +- src/Square/{ => Default}/Types/V1Order.cs | 3 +- .../Types/V1OrderHistoryEntry.cs | 3 +- .../Types/V1OrderHistoryEntryAction.cs | 2 +- .../{ => Default}/Types/V1OrderState.cs | 2 +- src/Square/{ => Default}/Types/V1Tender.cs | 3 +- .../{ => Default}/Types/V1TenderCardBrand.cs | 2 +- .../Types/V1TenderEntryMethod.cs | 2 +- .../{ => Default}/Types/V1TenderType.cs | 2 +- .../Types/V1UpdateOrderRequestAction.cs | 2 +- src/Square/{ => Default}/Types/Vendor.cs | 3 +- .../{ => Default}/Types/VendorContact.cs | 3 +- .../{ => Default}/Types/VendorCreatedEvent.cs | 3 +- .../Types/VendorCreatedEventData.cs | 3 +- .../Types/VendorCreatedEventObject.cs | 3 +- .../{ => Default}/Types/VendorStatus.cs | 2 +- .../{ => Default}/Types/VendorUpdatedEvent.cs | 3 +- .../Types/VendorUpdatedEventData.cs | 3 +- .../Types/VendorUpdatedEventObject.cs | 3 +- .../{ => Default}/Types/VisibilityFilter.cs | 2 +- .../Types/VoidTransactionResponse.cs | 3 +- src/Square/{ => Default}/Types/WageSetting.cs | 3 +- .../Types/WebhookSubscription.cs | 3 +- src/Square/{ => Default}/Types/Weekday.cs | 2 +- .../{ => Default}/Types/WorkweekConfig.cs | 3 +- .../V1Transactions/IV1TransactionsClient.cs | 2 +- .../Requests/V1ListOrdersRequest.cs | 3 +- .../Requests/V1RetrieveOrderRequest.cs | 2 +- .../Requests/V1UpdateOrderRequest.cs | 3 +- .../V1Transactions/V1TransactionsClient.cs | 8 +- .../{ => Default}/Vendors/IVendorsClient.cs | 2 +- .../Requests/BatchCreateVendorsRequest.cs | 3 +- .../Requests/BatchGetVendorsRequest.cs | 2 +- .../Requests/BatchUpdateVendorsRequest.cs | 3 +- .../Vendors/Requests/CreateVendorRequest.cs | 3 +- .../Vendors/Requests/GetVendorsRequest.cs | 2 +- .../Vendors/Requests/SearchVendorsRequest.cs | 3 +- .../Vendors/Requests/UpdateVendorsRequest.cs | 3 +- .../{ => Default}/Vendors/VendorsClient.cs | 16 +- .../Webhooks/EventTypes/EventTypesClient.cs | 7 +- .../Webhooks/EventTypes/IEventTypesClient.cs | 3 +- .../Requests/ListEventTypesRequest.cs | 2 +- .../Default/Webhooks/IWebhooksClient.cs | 7 + .../Subscriptions/ISubscriptionsClient.cs | 3 +- .../CreateWebhookSubscriptionRequest.cs | 4 +- .../Requests/DeleteSubscriptionsRequest.cs | 2 +- .../Requests/GetSubscriptionsRequest.cs | 2 +- .../Requests/ListSubscriptionsRequest.cs | 4 +- .../TestWebhookSubscriptionRequest.cs | 2 +- .../UpdateWebhookSubscriptionRequest.cs | 4 +- ...eWebhookSubscriptionSignatureKeyRequest.cs | 2 +- .../Subscriptions/SubscriptionsClient.cs | 19 +- .../{ => Default}/Webhooks/WebhooksClient.cs | 7 +- src/Square/ISquareClient.cs | 71 +- ...DeleteCustomAttributeDefinitionsRequest.cs | 20 - src/Square/Mobile/IMobileClient.cs | 11 - src/Square/Mobile/MobileClient.cs | 48 - src/Square/Square.csproj | 2 +- src/Square/SquareClient.cs | 145 +- src/Square/Webhooks/IWebhooksClient.cs | 9 - 2105 files changed, 5662 insertions(+), 15834 deletions(-) delete mode 100644 src/Square.Test/Unit/MockServer/Bookings/CustomAttributes/GetTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Bookings/CustomAttributes/ListTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Bookings/GetTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Bookings/ListTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Bookings/LocationProfiles/ListTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Cards/CreateTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Cards/GetTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Cards/ListTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Catalog/ListTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Channels/GetTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Channels/ListTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Customers/Cards/DeleteTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Customers/CreateTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Customers/GetTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Customers/Groups/CreateTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Customers/Groups/DeleteTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Customers/Groups/GetTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Customers/Groups/ListTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Customers/ListTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Customers/SearchTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Customers/Segments/GetTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Customers/Segments/ListTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Customers/UpdateTest.cs rename src/Square.Test/Unit/MockServer/{Disputes => Default}/AcceptTest.cs (93%) rename src/Square.Test/Unit/MockServer/{OAuth => Default}/AuthorizeTest.cs (76%) rename src/Square.Test/Unit/MockServer/{Inventory => Default}/BatchCreateChangesTest.cs (96%) rename src/Square.Test/Unit/MockServer/{Customers => Default}/BatchCreateTest.cs (98%) rename src/Square.Test/Unit/MockServer/{Vendors/BatchCreateTest.cs => Default/BatchCreateTest_.cs} (96%) rename src/Square.Test/Unit/MockServer/{Catalog => Default}/BatchDeleteTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Inventory => Default}/BatchGetChangesTest.cs (96%) rename src/Square.Test/Unit/MockServer/{Inventory => Default}/BatchGetCountsTest.cs (94%) rename src/Square.Test/Unit/MockServer/{Catalog => Default}/BatchGetTest.cs (97%) rename src/Square.Test/Unit/MockServer/{Vendors/BatchGetTest.cs => Default/BatchGetTest_.cs} (94%) rename src/Square.Test/Unit/MockServer/{TeamMembers => Default}/BatchUpdateTest.cs (97%) rename src/Square.Test/Unit/MockServer/{Vendors/BatchUpdateTest.cs => Default/BatchUpdateTest_.cs} (96%) rename src/Square.Test/Unit/MockServer/{Catalog => Default}/BatchUpsertTest.cs (98%) rename src/Square.Test/Unit/MockServer/{Bookings/CustomAttributes => Default/Bookings}/BatchDeleteTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Bookings/CustomAttributes => Default/Bookings}/BatchUpsertTest.cs (96%) rename src/Square.Test/Unit/MockServer/{Bookings/CustomAttributeDefinitions => Default/Bookings}/CreateTest.cs (91%) rename src/Square.Test/Unit/MockServer/{Bookings/CustomAttributeDefinitions => Default/Bookings}/DeleteTest.cs (79%) rename src/Square.Test/Unit/MockServer/{Bookings/CustomAttributes/DeleteTest.cs => Default/Bookings/DeleteTest_.cs} (81%) rename src/Square.Test/Unit/MockServer/{Bookings/CustomAttributeDefinitions => Default/Bookings}/GetTest.cs (88%) rename src/Square.Test/Unit/MockServer/{Bookings/TeamMemberProfiles/GetTest.cs => Default/Bookings/GetTest_.cs} (86%) rename src/Square.Test/Unit/MockServer/{Bookings/CustomAttributeDefinitions => Default/Bookings}/ListTest.cs (91%) rename src/Square.Test/Unit/MockServer/{Bookings/TeamMemberProfiles/ListTest.cs => Default/Bookings/ListTest_.cs} (90%) rename src/Square.Test/Unit/MockServer/{Bookings/CustomAttributeDefinitions => Default/Bookings}/UpdateTest.cs (91%) rename src/Square.Test/Unit/MockServer/{Bookings/CustomAttributes => Default/Bookings}/UpsertTest.cs (92%) rename src/Square.Test/Unit/MockServer/{Customers => Default}/BulkDeleteCustomersTest.cs (94%) rename src/Square.Test/Unit/MockServer/{Labor => Default}/BulkPublishScheduledShiftsTest.cs (96%) rename src/Square.Test/Unit/MockServer/{Bookings => Default}/BulkRetrieveBookingsTest.cs (96%) rename src/Square.Test/Unit/MockServer/{Customers => Default}/BulkRetrieveCustomersTest.cs (96%) rename src/Square.Test/Unit/MockServer/{Bookings => Default}/BulkRetrieveTeamMemberBookingProfilesTest.cs (94%) rename src/Square.Test/Unit/MockServer/{Channels => Default}/BulkRetrieveTest.cs (95%) rename src/Square.Test/Unit/MockServer/{Subscriptions => Default}/BulkSwapPlanTest.cs (91%) rename src/Square.Test/Unit/MockServer/{Customers => Default}/BulkUpdateCustomersTest.cs (96%) rename src/Square.Test/Unit/MockServer/{Orders => Default}/CalculateTest.cs (98%) rename src/Square.Test/Unit/MockServer/{Payments => Default}/CancelByIdempotencyKeyTest.cs (91%) rename src/Square.Test/Unit/MockServer/{Bookings => Default}/CancelTest.cs (96%) rename src/Square.Test/Unit/MockServer/{TransferOrders/CancelTest.cs => Default/CancelTest_.cs} (94%) rename src/Square.Test/Unit/MockServer/{CashDrawers/Shifts => Default/CashDrawers}/GetTest.cs (93%) rename src/Square.Test/Unit/MockServer/{CashDrawers/Shifts => Default/CashDrawers}/ListEventsTest.cs (96%) rename src/Square.Test/Unit/MockServer/{CashDrawers/Shifts => Default/CashDrawers}/ListTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Catalog/Object => Default/Catalog}/DeleteTest.cs (88%) rename src/Square.Test/Unit/MockServer/{Catalog/Object => Default/Catalog}/GetTest.cs (96%) rename src/Square.Test/Unit/MockServer/{Catalog/Object => Default/Catalog}/UpsertTest.cs (96%) rename src/Square.Test/Unit/MockServer/{Subscriptions => Default}/ChangeBillingAnchorDateTest.cs (95%) rename src/Square.Test/Unit/MockServer/{Inventory => Default}/ChangesTest.cs (95%) rename src/Square.Test/Unit/MockServer/{Checkout/PaymentLinks => Default/Checkout}/CreateTest.cs (97%) rename src/Square.Test/Unit/MockServer/{Checkout/PaymentLinks => Default/Checkout}/DeleteTest.cs (87%) rename src/Square.Test/Unit/MockServer/{Checkout/PaymentLinks => Default/Checkout}/GetTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Checkout/PaymentLinks => Default/Checkout}/ListTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Checkout/PaymentLinks => Default/Checkout}/UpdateTest.cs (94%) rename src/Square.Test/Unit/MockServer/{Locations => Default}/CheckoutsTest.cs (99%) rename src/Square.Test/Unit/MockServer/{Orders => Default}/CloneTest.cs (98%) rename src/Square.Test/Unit/MockServer/{Payments => Default}/CompleteTest.cs (98%) rename src/Square.Test/Unit/MockServer/{BankAccounts => Default}/CreateBankAccountTest.cs (94%) rename src/Square.Test/Unit/MockServer/{Disputes => Default}/CreateEvidenceTextTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Team => Default}/CreateJobTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Labor => Default}/CreateScheduledShiftTest.cs (96%) rename src/Square.Test/Unit/MockServer/{Bookings => Default}/CreateTest.cs (96%) rename src/Square.Test/Unit/MockServer/{Vendors/CreateTest.cs => Default/CreateTest_.cs} (96%) rename src/Square.Test/Unit/MockServer/{Labor => Default}/CreateTimecardTest.cs (97%) rename src/Square.Test/Unit/MockServer/{Customers/Groups => Default/Customers}/AddTest.cs (87%) rename src/Square.Test/Unit/MockServer/{Customers/CustomAttributeDefinitions => Default/Customers}/BatchUpsertTest.cs (97%) rename src/Square.Test/Unit/MockServer/{Customers/CustomAttributeDefinitions => Default/Customers}/CreateTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Customers/Cards/CreateTest.cs => Default/Customers/CreateTest_.cs} (94%) rename src/Square.Test/Unit/MockServer/{Customers/CustomAttributeDefinitions => Default/Customers}/DeleteTest.cs (79%) rename src/Square.Test/Unit/MockServer/{Customers/CustomAttributes/DeleteTest.cs => Default/Customers/DeleteTest_.cs} (81%) rename src/Square.Test/Unit/MockServer/{Customers/CustomAttributeDefinitions => Default/Customers}/GetTest.cs (88%) rename src/Square.Test/Unit/MockServer/{Customers/CustomAttributes/GetTest.cs => Default/Customers/GetTest_.cs} (88%) rename src/Square.Test/Unit/MockServer/{Customers/CustomAttributeDefinitions => Default/Customers}/ListTest.cs (91%) rename src/Square.Test/Unit/MockServer/{Customers/CustomAttributes/ListTest.cs => Default/Customers/ListTest_.cs} (89%) rename src/Square.Test/Unit/MockServer/{Customers/Groups => Default/Customers}/RemoveTest.cs (87%) rename src/Square.Test/Unit/MockServer/{Customers/CustomAttributeDefinitions => Default/Customers}/UpdateTest.cs (92%) rename src/Square.Test/Unit/MockServer/{Customers/Groups/UpdateTest.cs => Default/Customers/UpdateTest_.cs} (88%) rename src/Square.Test/Unit/MockServer/{Customers/CustomAttributes => Default/Customers}/UpsertTest.cs (92%) rename src/Square.Test/Unit/MockServer/{Subscriptions => Default}/DeleteActionTest.cs (94%) rename src/Square.Test/Unit/MockServer/{Invoices => Default}/DeleteInvoiceAttachmentTest.cs (89%) rename src/Square.Test/Unit/MockServer/{Customers => Default}/DeleteTest.cs (89%) rename src/Square.Test/Unit/MockServer/{TransferOrders/DeleteTest.cs => Default/DeleteTest_.cs} (86%) rename src/Square.Test/Unit/MockServer/{Labor => Default}/DeleteTimecardTest.cs (89%) rename src/Square.Test/Unit/MockServer/{Inventory => Default}/DeprecatedBatchChangeTest.cs (96%) rename src/Square.Test/Unit/MockServer/{Inventory => Default}/DeprecatedBatchGetChangesTest.cs (95%) rename src/Square.Test/Unit/MockServer/{Inventory => Default}/DeprecatedBatchGetCountsTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Inventory => Default}/DeprecatedGetAdjustmentTest.cs (94%) rename src/Square.Test/Unit/MockServer/{Inventory => Default}/DeprecatedGetPhysicalCountTest.cs (92%) rename src/Square.Test/Unit/MockServer/{Devices/Codes => Default/Devices}/CreateTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Devices/Codes => Default/Devices}/GetTest.cs (87%) rename src/Square.Test/Unit/MockServer/{Devices/Codes => Default/Devices}/ListTest.cs (94%) rename src/Square.Test/Unit/MockServer/{BankAccounts => Default}/DisableBankAccountTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Events => Default}/DisableEventsTest.cs (88%) rename src/Square.Test/Unit/MockServer/{Cards => Default}/DisableTest.cs (95%) rename src/Square.Test/Unit/MockServer/{Terminal => Default}/DismissTerminalActionTest.cs (96%) rename src/Square.Test/Unit/MockServer/{Terminal => Default}/DismissTerminalCheckoutTest.cs (95%) rename src/Square.Test/Unit/MockServer/{Terminal => Default}/DismissTerminalRefundTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Disputes/Evidence => Default/Disputes}/DeleteTest.cs (87%) rename src/Square.Test/Unit/MockServer/{Disputes/Evidence => Default/Disputes}/GetTest.cs (90%) rename src/Square.Test/Unit/MockServer/{Disputes/Evidence => Default/Disputes}/ListTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Events => Default}/EnableEventsTest.cs (88%) rename src/Square.Test/Unit/MockServer/{Inventory => Default}/GetAdjustmentTest.cs (94%) rename src/Square.Test/Unit/MockServer/{Bookings => Default}/GetBusinessProfileTest.cs (94%) rename src/Square.Test/Unit/MockServer/{BankAccounts => Default}/GetByV1IdTest.cs (93%) rename src/Square.Test/Unit/MockServer/{GiftCards => Default}/GetFromGanTest.cs (93%) rename src/Square.Test/Unit/MockServer/{GiftCards => Default}/GetFromNonceTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Inventory => Default}/GetPhysicalCountTest.cs (93%) rename src/Square.Test/Unit/MockServer/{BankAccounts => Default}/GetTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Vendors/GetTest.cs => Default/GetTest_.cs} (93%) rename src/Square.Test/Unit/MockServer/{Inventory => Default}/GetTransferTest.cs (93%) rename src/Square.Test/Unit/MockServer/{GiftCards/Activities => Default/GiftCards}/CreateTest.cs (96%) rename src/Square.Test/Unit/MockServer/{GiftCards/Activities => Default/GiftCards}/ListTest.cs (97%) rename src/Square.Test/Unit/MockServer/{Catalog => Default}/InfoTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Labor/BreakTypes => Default/Labor}/CreateTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Labor/Shifts/CreateTest.cs => Default/Labor/CreateTest_.cs} (95%) rename src/Square.Test/Unit/MockServer/{Labor/BreakTypes => Default/Labor}/DeleteTest.cs (87%) rename src/Square.Test/Unit/MockServer/{Labor/Shifts/DeleteTest.cs => Default/Labor/DeleteTest_.cs} (79%) rename src/Square.Test/Unit/MockServer/{Labor/BreakTypes => Default/Labor}/GetTest.cs (90%) rename src/Square.Test/Unit/MockServer/{Labor/WorkweekConfigs/GetTest.cs => Default/Labor/GetTest_.cs} (90%) rename src/Square.Test/Unit/MockServer/{Labor/BreakTypes => Default/Labor}/ListTest.cs (94%) rename src/Square.Test/Unit/MockServer/{Labor/WorkweekConfigs/ListTest.cs => Default/Labor/ListTest_.cs} (89%) rename src/Square.Test/Unit/MockServer/{Labor/Shifts => Default/Labor}/SearchTest.cs (97%) rename src/Square.Test/Unit/MockServer/{Labor/BreakTypes => Default/Labor}/UpdateTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Labor/Shifts/UpdateTest.cs => Default/Labor/UpdateTest_.cs} (95%) rename src/Square.Test/Unit/MockServer/{GiftCards => Default}/LinkCustomerTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Payouts => Default}/ListEntriesTest.cs (95%) rename src/Square.Test/Unit/MockServer/{Events => Default}/ListEventTypesTest.cs (87%) rename src/Square.Test/Unit/MockServer/{Subscriptions => Default}/ListEventsTest.cs (96%) rename src/Square.Test/Unit/MockServer/{Team => Default}/ListJobsTest.cs (90%) rename src/Square.Test/Unit/MockServer/{BankAccounts => Default}/ListTest.cs (96%) rename src/Square.Test/Unit/MockServer/{Sites/ListTest.cs => Default/ListTest_.cs} (90%) rename src/Square.Test/Unit/MockServer/{Locations/CustomAttributes => Default/Locations}/BatchDeleteTest.cs (94%) rename src/Square.Test/Unit/MockServer/{Locations/CustomAttributes => Default/Locations}/BatchUpsertTest.cs (96%) rename src/Square.Test/Unit/MockServer/{Locations/Transactions => Default/Locations}/CaptureTest.cs (87%) rename src/Square.Test/Unit/MockServer/{Locations/CustomAttributeDefinitions => Default/Locations}/CreateTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Locations/CustomAttributeDefinitions => Default/Locations}/DeleteTest.cs (79%) rename src/Square.Test/Unit/MockServer/{Locations/CustomAttributes/DeleteTest.cs => Default/Locations/DeleteTest_.cs} (81%) rename src/Square.Test/Unit/MockServer/{Locations/CustomAttributeDefinitions => Default/Locations}/GetTest.cs (88%) rename src/Square.Test/Unit/MockServer/{Locations/Transactions/GetTest.cs => Default/Locations/GetTest_.cs} (94%) rename src/Square.Test/Unit/MockServer/{Locations/CustomAttributeDefinitions => Default/Locations}/ListTest.cs (91%) rename src/Square.Test/Unit/MockServer/{Locations/Transactions/ListTest.cs => Default/Locations/ListTest_.cs} (95%) rename src/Square.Test/Unit/MockServer/{Locations/CustomAttributeDefinitions => Default/Locations}/UpdateTest.cs (92%) rename src/Square.Test/Unit/MockServer/{Locations/CustomAttributes => Default/Locations}/UpsertTest.cs (92%) rename src/Square.Test/Unit/MockServer/{Locations/Transactions => Default/Locations}/VoidTest.cs (87%) rename src/Square.Test/Unit/MockServer/{Loyalty/Accounts => Default/Loyalty}/AccumulatePointsTest.cs (96%) rename src/Square.Test/Unit/MockServer/{Loyalty/Accounts => Default/Loyalty}/AdjustTest.cs (95%) rename src/Square.Test/Unit/MockServer/{Loyalty/Programs => Default/Loyalty}/CalculateTest.cs (90%) rename src/Square.Test/Unit/MockServer/{Loyalty/Accounts => Default/Loyalty}/CreateTest.cs (94%) rename src/Square.Test/Unit/MockServer/{Loyalty/Rewards/CreateTest.cs => Default/Loyalty/CreateTest_.cs} (92%) rename src/Square.Test/Unit/MockServer/{Loyalty/Rewards => Default/Loyalty}/DeleteTest.cs (87%) rename src/Square.Test/Unit/MockServer/{Loyalty/Accounts => Default/Loyalty}/GetTest.cs (92%) rename src/Square.Test/Unit/MockServer/{Loyalty/Rewards/GetTest.cs => Default/Loyalty/GetTest_.cs} (88%) rename src/Square.Test/Unit/MockServer/{Loyalty/Programs => Default/Loyalty}/ListTest.cs (95%) rename src/Square.Test/Unit/MockServer/{Loyalty/Programs/Promotions => Default/Loyalty/Programs}/CancelTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Loyalty/Programs/Promotions => Default/Loyalty/Programs}/CreateTest.cs (96%) rename src/Square.Test/Unit/MockServer/{Loyalty/Programs/Promotions => Default/Loyalty/Programs}/GetTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Loyalty/Programs/Promotions => Default/Loyalty/Programs}/ListTest.cs (96%) rename src/Square.Test/Unit/MockServer/{Loyalty/Rewards => Default/Loyalty}/RedeemTest.cs (95%) rename src/Square.Test/Unit/MockServer/{Loyalty/Accounts => Default/Loyalty}/SearchTest.cs (94%) rename src/Square.Test/Unit/MockServer/{Loyalty/Rewards/SearchTest.cs => Default/Loyalty/SearchTest_.cs} (94%) rename src/Square.Test/Unit/MockServer/{Merchants/CustomAttributes => Default/Merchants}/BatchDeleteTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Merchants/CustomAttributes => Default/Merchants}/BatchUpsertTest.cs (95%) rename src/Square.Test/Unit/MockServer/{Merchants/CustomAttributeDefinitions => Default/Merchants}/CreateTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Merchants/CustomAttributeDefinitions => Default/Merchants}/DeleteTest.cs (79%) rename src/Square.Test/Unit/MockServer/{Merchants/CustomAttributes/DeleteTest.cs => Default/Merchants/DeleteTest_.cs} (81%) rename src/Square.Test/Unit/MockServer/{Merchants/CustomAttributeDefinitions => Default/Merchants}/GetTest.cs (88%) rename src/Square.Test/Unit/MockServer/{Merchants/CustomAttributes/GetTest.cs => Default/Merchants/GetTest_.cs} (88%) rename src/Square.Test/Unit/MockServer/{Merchants/CustomAttributeDefinitions => Default/Merchants}/ListTest.cs (91%) rename src/Square.Test/Unit/MockServer/{Merchants/CustomAttributes/ListTest.cs => Default/Merchants/ListTest_.cs} (89%) rename src/Square.Test/Unit/MockServer/{Merchants/CustomAttributeDefinitions => Default/Merchants}/UpdateTest.cs (92%) rename src/Square.Test/Unit/MockServer/{Merchants/CustomAttributes => Default/Merchants}/UpsertTest.cs (92%) rename src/Square.Test/Unit/MockServer/{OAuth => Default}/ObtainTokenTest.cs (94%) rename src/Square.Test/Unit/MockServer/{Orders/CustomAttributes => Default/Orders}/BatchDeleteTest.cs (94%) rename src/Square.Test/Unit/MockServer/{Orders/CustomAttributes => Default/Orders}/BatchUpsertTest.cs (95%) rename src/Square.Test/Unit/MockServer/{Orders/CustomAttributeDefinitions => Default/Orders}/CreateTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Orders/CustomAttributeDefinitions => Default/Orders}/DeleteTest.cs (79%) rename src/Square.Test/Unit/MockServer/{Orders/CustomAttributes/DeleteTest.cs => Default/Orders/DeleteTest_.cs} (82%) rename src/Square.Test/Unit/MockServer/{Orders/CustomAttributeDefinitions => Default/Orders}/GetTest.cs (88%) rename src/Square.Test/Unit/MockServer/{Orders/CustomAttributes/GetTest.cs => Default/Orders/GetTest_.cs} (89%) rename src/Square.Test/Unit/MockServer/{Orders/CustomAttributeDefinitions => Default/Orders}/ListTest.cs (92%) rename src/Square.Test/Unit/MockServer/{Orders/CustomAttributes/ListTest.cs => Default/Orders/ListTest_.cs} (87%) rename src/Square.Test/Unit/MockServer/{Orders/CustomAttributeDefinitions => Default/Orders}/UpdateTest.cs (92%) rename src/Square.Test/Unit/MockServer/{Orders/CustomAttributes => Default/Orders}/UpsertTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Subscriptions => Default}/PauseTest.cs (95%) rename src/Square.Test/Unit/MockServer/{Orders => Default}/PayTest.cs (98%) rename src/Square.Test/Unit/MockServer/{Labor => Default}/PublishScheduledShiftTest.cs (95%) rename src/Square.Test/Unit/MockServer/{Invoices => Default}/PublishTest.cs (97%) rename src/Square.Test/Unit/MockServer/{TransferOrders => Default}/ReceiveTest.cs (96%) rename src/Square.Test/Unit/MockServer/{Refunds => Default}/RefundPaymentTest.cs (95%) rename src/Square.Test/Unit/MockServer/{ApplePay => Default}/RegisterDomainTest.cs (90%) rename src/Square.Test/Unit/MockServer/{Subscriptions => Default}/ResumeTest.cs (95%) rename src/Square.Test/Unit/MockServer/{Team => Default}/RetrieveJobTest.cs (91%) rename src/Square.Test/Unit/MockServer/{Bookings => Default}/RetrieveLocationBookingProfileTest.cs (90%) rename src/Square.Test/Unit/MockServer/{Checkout => Default}/RetrieveLocationSettingsTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Checkout => Default}/RetrieveMerchantSettingsTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Labor => Default}/RetrieveScheduledShiftTest.cs (94%) rename src/Square.Test/Unit/MockServer/{Labor => Default}/RetrieveTimecardTest.cs (94%) rename src/Square.Test/Unit/MockServer/{OAuth => Default}/RetrieveTokenStatusTest.cs (90%) rename src/Square.Test/Unit/MockServer/{OAuth => Default}/RevokeTokenTest.cs (91%) rename src/Square.Test/Unit/MockServer/{Bookings => Default}/SearchAvailabilityTest.cs (98%) rename src/Square.Test/Unit/MockServer/{Events => Default}/SearchEventsTest.cs (94%) rename src/Square.Test/Unit/MockServer/{Loyalty/SearchEventsTest.cs => Default/SearchEventsTest_.cs} (96%) rename src/Square.Test/Unit/MockServer/{Catalog => Default}/SearchItemsTest.cs (95%) rename src/Square.Test/Unit/MockServer/{Labor => Default}/SearchScheduledShiftsTest.cs (95%) rename src/Square.Test/Unit/MockServer/{Catalog => Default}/SearchTest.cs (96%) rename src/Square.Test/Unit/MockServer/{Vendors/SearchTest.cs => Default/SearchTest_.cs} (92%) rename src/Square.Test/Unit/MockServer/{Labor => Default}/SearchTimecardsTest.cs (97%) rename src/Square.Test/Unit/MockServer/{TransferOrders => Default}/StartTest.cs (95%) rename src/Square.Test/Unit/MockServer/{Disputes => Default}/SubmitEvidenceTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Subscriptions => Default}/SwapPlanTest.cs (96%) rename src/Square.Test/Unit/MockServer/{TeamMembers/WageSetting => Default/TeamMembers}/GetTest.cs (86%) rename src/Square.Test/Unit/MockServer/{TeamMembers/WageSetting => Default/TeamMembers}/UpdateTest.cs (94%) rename src/Square.Test/Unit/MockServer/{Terminal/Actions => Default/Terminal}/CancelTest.cs (95%) rename src/Square.Test/Unit/MockServer/{Terminal/Refunds/CancelTest.cs => Default/Terminal/CancelTest_.cs} (90%) rename src/Square.Test/Unit/MockServer/{Terminal/Actions => Default/Terminal}/CreateTest.cs (96%) rename src/Square.Test/Unit/MockServer/{Terminal/Refunds/CreateTest.cs => Default/Terminal/CreateTest_.cs} (93%) rename src/Square.Test/Unit/MockServer/{Terminal/Actions => Default/Terminal}/GetTest.cs (95%) rename src/Square.Test/Unit/MockServer/{Terminal/Refunds/GetTest.cs => Default/Terminal/GetTest_.cs} (89%) rename src/Square.Test/Unit/MockServer/{Terminal/Actions => Default/Terminal}/SearchTest.cs (97%) rename src/Square.Test/Unit/MockServer/{Terminal/Refunds/SearchTest.cs => Default/Terminal/SearchTest_.cs} (92%) rename src/Square.Test/Unit/MockServer/{GiftCards => Default}/UnlinkCustomerTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Catalog => Default}/UpdateItemModifierListsTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Catalog => Default}/UpdateItemTaxesTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Team => Default}/UpdateJobTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Checkout => Default}/UpdateLocationSettingsTest.cs (94%) rename src/Square.Test/Unit/MockServer/{Checkout => Default}/UpdateMerchantSettingsTest.cs (94%) rename src/Square.Test/Unit/MockServer/{Labor => Default}/UpdateScheduledShiftTest.cs (96%) rename src/Square.Test/Unit/MockServer/{Bookings => Default}/UpdateTest.cs (96%) rename src/Square.Test/Unit/MockServer/{Vendors/UpdateTest.cs => Default/UpdateTest_.cs} (95%) rename src/Square.Test/Unit/MockServer/{Labor => Default}/UpdateTimecardTest.cs (97%) rename src/Square.Test/Unit/MockServer/{Snippets => Default}/UpsertTest.cs (93%) rename src/Square.Test/Unit/MockServer/{V1Transactions => Default}/V1ListOrdersTest.cs (96%) rename src/Square.Test/Unit/MockServer/{V1Transactions => Default}/V1RetrieveOrderTest.cs (96%) rename src/Square.Test/Unit/MockServer/{V1Transactions => Default}/V1UpdateOrderTest.cs (96%) rename src/Square.Test/Unit/MockServer/{Webhooks/Subscriptions => Default/Webhooks}/CreateTest.cs (93%) rename src/Square.Test/Unit/MockServer/{Webhooks/Subscriptions => Default/Webhooks}/DeleteTest.cs (87%) rename src/Square.Test/Unit/MockServer/{Webhooks/Subscriptions => Default/Webhooks}/GetTest.cs (89%) rename src/Square.Test/Unit/MockServer/{Webhooks/EventTypes => Default/Webhooks}/ListTest.cs (86%) rename src/Square.Test/Unit/MockServer/{Webhooks/Subscriptions/ListTest.cs => Default/Webhooks/ListTest_.cs} (90%) rename src/Square.Test/Unit/MockServer/{Webhooks/Subscriptions => Default/Webhooks}/TestTest.cs (92%) rename src/Square.Test/Unit/MockServer/{Webhooks/Subscriptions => Default/Webhooks}/UpdateSignatureKeyTest.cs (90%) rename src/Square.Test/Unit/MockServer/{Webhooks/Subscriptions => Default/Webhooks}/UpdateTest.cs (92%) delete mode 100644 src/Square.Test/Unit/MockServer/Devices/GetTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Devices/ListTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Disputes/GetTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Disputes/ListTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Employees/GetTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Employees/ListTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/GiftCards/CreateTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/GiftCards/GetTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/GiftCards/ListTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Inventory/GetTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Invoices/CancelTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Invoices/CreateTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Invoices/DeleteTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Invoices/GetTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Invoices/ListTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Invoices/SearchTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Invoices/UpdateTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Labor/EmployeeWages/GetTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Labor/EmployeeWages/ListTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Labor/Shifts/GetTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Labor/TeamMemberWages/GetTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Labor/TeamMemberWages/ListTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Locations/CreateTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Locations/CustomAttributes/GetTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Locations/CustomAttributes/ListTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Locations/GetTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Locations/ListTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Locations/UpdateTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Loyalty/Programs/GetTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Merchants/GetTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Merchants/ListTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Mobile/AuthorizationCodeTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Orders/BatchGetTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Orders/CreateTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Orders/GetTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Orders/SearchTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Orders/UpdateTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Payments/CancelTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Payments/CreateTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Payments/GetTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Payments/ListTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Payments/UpdateTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Payouts/GetTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Payouts/ListTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Refunds/GetTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Refunds/ListTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Snippets/DeleteTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Snippets/GetTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Subscriptions/CancelTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Subscriptions/CreateTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Subscriptions/GetTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Subscriptions/SearchTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Subscriptions/UpdateTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/TeamMembers/BatchCreateTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/TeamMembers/CreateTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/TeamMembers/GetTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/TeamMembers/SearchTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/TeamMembers/UpdateTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Terminal/Checkouts/CancelTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Terminal/Checkouts/CreateTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Terminal/Checkouts/GetTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/Terminal/Checkouts/SearchTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/TransferOrders/CreateTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/TransferOrders/GetTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/TransferOrders/SearchTest.cs delete mode 100644 src/Square.Test/Unit/MockServer/TransferOrders/UpdateTest.cs delete mode 100644 src/Square/CashDrawers/ICashDrawersClient.cs rename src/Square/{ => Default}/ApplePay/ApplePayClient.cs (94%) rename src/Square/{ => Default}/ApplePay/IApplePayClient.cs (98%) rename src/Square/{ => Default}/ApplePay/Requests/RegisterDomainRequest.cs (94%) rename src/Square/{ => Default}/BankAccounts/BankAccountsClient.cs (97%) rename src/Square/{ => Default}/BankAccounts/IBankAccountsClient.cs (98%) rename src/Square/{ => Default}/BankAccounts/Requests/CreateBankAccountRequest.cs (96%) rename src/Square/{ => Default}/BankAccounts/Requests/DisableBankAccountRequest.cs (92%) rename src/Square/{ => Default}/BankAccounts/Requests/GetBankAccountsRequest.cs (92%) rename src/Square/{ => Default}/BankAccounts/Requests/GetByV1IdBankAccountsRequest.cs (95%) rename src/Square/{ => Default}/BankAccounts/Requests/ListBankAccountsRequest.cs (97%) rename src/Square/{ => Default}/Bookings/BookingsClient.cs (94%) rename src/Square/{ => Default}/Bookings/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs (94%) rename src/Square/{ => Default}/Bookings/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs (98%) rename src/Square/{ => Default}/Bookings/CustomAttributeDefinitions/Requests/CreateBookingCustomAttributeDefinitionRequest.cs (95%) rename src/Square/{Orders => Default/Bookings}/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs (88%) rename src/Square/{ => Default}/Bookings/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs (94%) rename src/Square/{ => Default}/Bookings/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs (95%) rename src/Square/{ => Default}/Bookings/CustomAttributeDefinitions/Requests/UpdateBookingCustomAttributeDefinitionRequest.cs (96%) rename src/Square/{ => Default}/Bookings/CustomAttributes/CustomAttributesClient.cs (96%) rename src/Square/{ => Default}/Bookings/CustomAttributes/ICustomAttributesClient.cs (98%) rename src/Square/{ => Default}/Bookings/CustomAttributes/Requests/BulkDeleteBookingCustomAttributesRequest.cs (92%) rename src/Square/{ => Default}/Bookings/CustomAttributes/Requests/BulkUpsertBookingCustomAttributesRequest.cs (92%) rename src/Square/{ => Default}/Bookings/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs (94%) rename src/Square/{ => Default}/Bookings/CustomAttributes/Requests/GetCustomAttributesRequest.cs (97%) rename src/Square/{ => Default}/Bookings/CustomAttributes/Requests/ListCustomAttributesRequest.cs (97%) rename src/Square/{ => Default}/Bookings/CustomAttributes/Requests/UpsertBookingCustomAttributeRequest.cs (96%) rename src/Square/{ => Default}/Bookings/IBookingsClient.cs (94%) rename src/Square/{ => Default}/Bookings/LocationProfiles/ILocationProfilesClient.cs (86%) rename src/Square/{ => Default}/Bookings/LocationProfiles/LocationProfilesClient.cs (96%) rename src/Square/{ => Default}/Bookings/LocationProfiles/Requests/ListLocationProfilesRequest.cs (93%) rename src/Square/{ => Default}/Bookings/Requests/BulkRetrieveBookingsRequest.cs (94%) rename src/Square/{ => Default}/Bookings/Requests/BulkRetrieveTeamMemberBookingProfilesRequest.cs (94%) rename src/Square/{ => Default}/Bookings/Requests/CancelBookingRequest.cs (96%) rename src/Square/{ => Default}/Bookings/Requests/CreateBookingRequest.cs (93%) rename src/Square/{ => Default}/Bookings/Requests/GetBookingsRequest.cs (94%) rename src/Square/{ => Default}/Bookings/Requests/ListBookingsRequest.cs (98%) rename src/Square/{ => Default}/Bookings/Requests/RetrieveLocationBookingProfileRequest.cs (93%) rename src/Square/{ => Default}/Bookings/Requests/SearchAvailabilityRequest.cs (91%) rename src/Square/{ => Default}/Bookings/Requests/UpdateBookingRequest.cs (95%) rename src/Square/{ => Default}/Bookings/TeamMemberProfiles/ITeamMemberProfilesClient.cs (92%) rename src/Square/{ => Default}/Bookings/TeamMemberProfiles/Requests/GetTeamMemberProfilesRequest.cs (89%) rename src/Square/{ => Default}/Bookings/TeamMemberProfiles/Requests/ListTeamMemberProfilesRequest.cs (95%) rename src/Square/{ => Default}/Bookings/TeamMemberProfiles/TeamMemberProfilesClient.cs (96%) rename src/Square/{ => Default}/Cards/CardsClient.cs (97%) rename src/Square/{ => Default}/Cards/ICardsClient.cs (98%) rename src/Square/{ => Default}/Cards/Requests/CreateCardRequest.cs (97%) rename src/Square/{ => Default}/Cards/Requests/DisableCardsRequest.cs (93%) rename src/Square/{ => Default}/Cards/Requests/GetCardsRequest.cs (93%) rename src/Square/{ => Default}/Cards/Requests/ListCardsRequest.cs (97%) rename src/Square/{ => Default}/CashDrawers/CashDrawersClient.cs (55%) create mode 100644 src/Square/Default/CashDrawers/ICashDrawersClient.cs rename src/Square/{ => Default}/CashDrawers/Shifts/IShiftsClient.cs (94%) rename src/Square/{ => Default}/CashDrawers/Shifts/Requests/GetShiftsRequest.cs (93%) rename src/Square/{ => Default}/CashDrawers/Shifts/Requests/ListEventsShiftsRequest.cs (95%) rename src/Square/{ => Default}/CashDrawers/Shifts/Requests/ListShiftsRequest.cs (95%) rename src/Square/{ => Default}/CashDrawers/Shifts/ShiftsClient.cs (97%) rename src/Square/{ => Default}/Catalog/CatalogClient.cs (97%) rename src/Square/{ => Default}/Catalog/ICatalogClient.cs (98%) rename src/Square/{ => Default}/Catalog/Images/IImagesClient.cs (96%) rename src/Square/{ => Default}/Catalog/Images/ImagesClient.cs (94%) rename src/Square/{ => Default}/Catalog/Images/Requests/CreateImagesRequest.cs (84%) rename src/Square/{ => Default}/Catalog/Images/Requests/UpdateImagesRequest.cs (90%) rename src/Square/{ => Default}/Catalog/Object/IObjectClient.cs (97%) rename src/Square/{ => Default}/Catalog/Object/ObjectClient.cs (96%) rename src/Square/{ => Default}/Catalog/Object/Requests/DeleteObjectRequest.cs (94%) rename src/Square/{ => Default}/Catalog/Object/Requests/GetObjectRequest.cs (98%) rename src/Square/{ => Default}/Catalog/Object/Requests/UpsertCatalogObjectRequest.cs (95%) rename src/Square/{ => Default}/Catalog/Requests/BatchDeleteCatalogObjectsRequest.cs (96%) rename src/Square/{ => Default}/Catalog/Requests/BatchGetCatalogObjectsRequest.cs (99%) rename src/Square/{ => Default}/Catalog/Requests/BatchUpsertCatalogObjectsRequest.cs (98%) rename src/Square/{ => Default}/Catalog/Requests/ListCatalogRequest.cs (98%) rename src/Square/{ => Default}/Catalog/Requests/SearchCatalogItemsRequest.cs (98%) rename src/Square/{ => Default}/Catalog/Requests/SearchCatalogObjectsRequest.cs (99%) rename src/Square/{ => Default}/Catalog/Requests/UpdateItemModifierListsRequest.cs (97%) rename src/Square/{ => Default}/Catalog/Requests/UpdateItemTaxesRequest.cs (97%) rename src/Square/{ => Default}/Channels/ChannelsClient.cs (96%) rename src/Square/{ => Default}/Channels/IChannelsClient.cs (95%) rename src/Square/{ => Default}/Channels/Requests/BulkRetrieveChannelsRequest.cs (92%) rename src/Square/{ => Default}/Channels/Requests/GetChannelsRequest.cs (92%) rename src/Square/{ => Default}/Channels/Requests/ListChannelsRequest.cs (96%) rename src/Square/{ => Default}/Checkout/CheckoutClient.cs (95%) rename src/Square/{ => Default}/Checkout/ICheckoutClient.cs (95%) rename src/Square/{ => Default}/Checkout/PaymentLinks/IPaymentLinksClient.cs (96%) rename src/Square/{ => Default}/Checkout/PaymentLinks/PaymentLinksClient.cs (95%) rename src/Square/{ => Default}/Checkout/PaymentLinks/Requests/CreatePaymentLinkRequest.cs (97%) rename src/Square/{ => Default}/Checkout/PaymentLinks/Requests/DeletePaymentLinksRequest.cs (90%) rename src/Square/{ => Default}/Checkout/PaymentLinks/Requests/GetPaymentLinksRequest.cs (90%) rename src/Square/{ => Default}/Checkout/PaymentLinks/Requests/ListPaymentLinksRequest.cs (96%) rename src/Square/{ => Default}/Checkout/PaymentLinks/Requests/UpdatePaymentLinkRequest.cs (92%) rename src/Square/{ => Default}/Checkout/Requests/RetrieveLocationSettingsRequest.cs (93%) rename src/Square/{ => Default}/Checkout/Requests/UpdateLocationSettingsRequest.cs (94%) rename src/Square/{ => Default}/Checkout/Requests/UpdateMerchantSettingsRequest.cs (92%) rename src/Square/{ => Default}/Checkout/Types/Checkout.cs (99%) rename src/Square/{ => Default}/Customers/Cards/CardsClient.cs (96%) rename src/Square/{ => Default}/Customers/Cards/ICardsClient.cs (93%) rename src/Square/{ => Default}/Customers/Cards/Requests/CreateCustomerCardRequest.cs (97%) rename src/Square/{ => Default}/Customers/Cards/Requests/DeleteCardsRequest.cs (93%) rename src/Square/{ => Default}/Customers/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs (95%) rename src/Square/{ => Default}/Customers/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs (98%) rename src/Square/{ => Default}/Customers/CustomAttributeDefinitions/Requests/BatchUpsertCustomerCustomAttributesRequest.cs (92%) rename src/Square/{ => Default}/Customers/CustomAttributeDefinitions/Requests/CreateCustomerCustomAttributeDefinitionRequest.cs (95%) rename src/Square/{Bookings => Default/Customers}/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs (88%) rename src/Square/{Locations => Default/Customers}/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs (94%) rename src/Square/{ => Default}/Customers/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs (95%) rename src/Square/{ => Default}/Customers/CustomAttributeDefinitions/Requests/UpdateCustomerCustomAttributeDefinitionRequest.cs (96%) rename src/Square/{ => Default}/Customers/CustomAttributes/CustomAttributesClient.cs (95%) rename src/Square/{ => Default}/Customers/CustomAttributes/ICustomAttributesClient.cs (98%) rename src/Square/{ => Default}/Customers/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs (94%) rename src/Square/{ => Default}/Customers/CustomAttributes/Requests/GetCustomAttributesRequest.cs (97%) rename src/Square/{ => Default}/Customers/CustomAttributes/Requests/ListCustomAttributesRequest.cs (97%) rename src/Square/{ => Default}/Customers/CustomAttributes/Requests/UpsertCustomerCustomAttributeRequest.cs (96%) rename src/Square/{ => Default}/Customers/CustomersClient.cs (95%) rename src/Square/{ => Default}/Customers/Groups/GroupsClient.cs (95%) rename src/Square/{ => Default}/Customers/Groups/IGroupsClient.cs (97%) rename src/Square/{ => Default}/Customers/Groups/Requests/AddGroupsRequest.cs (93%) rename src/Square/{ => Default}/Customers/Groups/Requests/CreateCustomerGroupRequest.cs (92%) rename src/Square/{ => Default}/Customers/Groups/Requests/DeleteGroupsRequest.cs (91%) rename src/Square/{ => Default}/Customers/Groups/Requests/GetGroupsRequest.cs (91%) rename src/Square/{ => Default}/Customers/Groups/Requests/ListGroupsRequest.cs (96%) rename src/Square/{ => Default}/Customers/Groups/Requests/RemoveGroupsRequest.cs (93%) rename src/Square/{ => Default}/Customers/Groups/Requests/UpdateCustomerGroupRequest.cs (91%) rename src/Square/{ => Default}/Customers/ICustomersClient.cs (93%) rename src/Square/{ => Default}/Customers/Requests/BulkCreateCustomersRequest.cs (95%) rename src/Square/{ => Default}/Customers/Requests/BulkDeleteCustomersRequest.cs (94%) rename src/Square/{ => Default}/Customers/Requests/BulkRetrieveCustomersRequest.cs (94%) rename src/Square/{ => Default}/Customers/Requests/BulkUpdateCustomersRequest.cs (95%) rename src/Square/{ => Default}/Customers/Requests/CreateCustomerRequest.cs (98%) rename src/Square/{ => Default}/Customers/Requests/DeleteCustomersRequest.cs (96%) rename src/Square/{ => Default}/Customers/Requests/GetCustomersRequest.cs (93%) rename src/Square/{ => Default}/Customers/Requests/ListCustomersRequest.cs (97%) rename src/Square/{ => Default}/Customers/Requests/SearchCustomersRequest.cs (97%) rename src/Square/{ => Default}/Customers/Requests/UpdateCustomerRequest.cs (99%) rename src/Square/{ => Default}/Customers/Segments/ISegmentsClient.cs (92%) rename src/Square/{ => Default}/Customers/Segments/Requests/GetSegmentsRequest.cs (91%) rename src/Square/{ => Default}/Customers/Segments/Requests/ListSegmentsRequest.cs (96%) rename src/Square/{ => Default}/Customers/Segments/SegmentsClient.cs (93%) create mode 100644 src/Square/Default/DefaultClient.cs rename src/Square/{ => Default}/Devices/Codes/CodesClient.cs (96%) rename src/Square/{ => Default}/Devices/Codes/ICodesClient.cs (94%) rename src/Square/{ => Default}/Devices/Codes/Requests/CreateDeviceCodeRequest.cs (93%) rename src/Square/{ => Default}/Devices/Codes/Requests/GetCodesRequest.cs (91%) rename src/Square/{ => Default}/Devices/Codes/Requests/ListCodesRequest.cs (95%) rename src/Square/{ => Default}/Devices/DevicesClient.cs (96%) rename src/Square/{ => Default}/Devices/IDevicesClient.cs (92%) rename src/Square/{ => Default}/Devices/Requests/GetDevicesRequest.cs (93%) rename src/Square/{ => Default}/Devices/Requests/ListDevicesRequest.cs (96%) rename src/Square/{ => Default}/Disputes/DisputesClient.cs (96%) rename src/Square/{ => Default}/Disputes/Evidence/EvidenceClient.cs (96%) rename src/Square/{ => Default}/Disputes/Evidence/IEvidenceClient.cs (95%) rename src/Square/{ => Default}/Disputes/Evidence/Requests/DeleteEvidenceRequest.cs (93%) rename src/Square/{ => Default}/Disputes/Evidence/Requests/GetEvidenceRequest.cs (94%) rename src/Square/{ => Default}/Disputes/Evidence/Requests/ListEvidenceRequest.cs (95%) rename src/Square/{ => Default}/Disputes/IDisputesClient.cs (97%) rename src/Square/{ => Default}/Disputes/Requests/AcceptDisputesRequest.cs (93%) rename src/Square/{ => Default}/Disputes/Requests/CreateDisputeEvidenceTextRequest.cs (96%) rename src/Square/{ => Default}/Disputes/Requests/CreateEvidenceFileDisputesRequest.cs (95%) rename src/Square/{ => Default}/Disputes/Requests/GetDisputesRequest.cs (93%) rename src/Square/{ => Default}/Disputes/Requests/ListDisputesRequest.cs (96%) rename src/Square/{ => Default}/Disputes/Requests/SubmitEvidenceDisputesRequest.cs (93%) rename src/Square/{ => Default}/Employees/EmployeesClient.cs (96%) rename src/Square/{ => Default}/Employees/IEmployeesClient.cs (93%) rename src/Square/{ => Default}/Employees/Requests/GetEmployeesRequest.cs (93%) rename src/Square/{ => Default}/Employees/Requests/ListEmployeesRequest.cs (94%) rename src/Square/{ => Default}/Events/EventsClient.cs (94%) rename src/Square/{ => Default}/Events/IEventsClient.cs (98%) rename src/Square/{ => Default}/Events/Requests/ListEventTypesRequest.cs (94%) rename src/Square/{ => Default}/Events/Requests/SearchEventsRequest.cs (97%) rename src/Square/{ => Default}/GiftCards/Activities/ActivitiesClient.cs (97%) rename src/Square/{ => Default}/GiftCards/Activities/IActivitiesClient.cs (95%) rename src/Square/{ => Default}/GiftCards/Activities/Requests/CreateGiftCardActivityRequest.cs (93%) rename src/Square/{ => Default}/GiftCards/Activities/Requests/ListActivitiesRequest.cs (98%) rename src/Square/{ => Default}/GiftCards/GiftCardsClient.cs (96%) rename src/Square/{ => Default}/GiftCards/IGiftCardsClient.cs (97%) rename src/Square/{ => Default}/GiftCards/Requests/CreateGiftCardRequest.cs (98%) rename src/Square/{ => Default}/GiftCards/Requests/GetGiftCardFromGanRequest.cs (95%) rename src/Square/{ => Default}/GiftCards/Requests/GetGiftCardFromNonceRequest.cs (94%) rename src/Square/{ => Default}/GiftCards/Requests/GetGiftCardsRequest.cs (92%) rename src/Square/{ => Default}/GiftCards/Requests/LinkCustomerToGiftCardRequest.cs (95%) rename src/Square/{ => Default}/GiftCards/Requests/ListGiftCardsRequest.cs (98%) rename src/Square/{ => Default}/GiftCards/Requests/UnlinkCustomerFromGiftCardRequest.cs (95%) create mode 100644 src/Square/Default/IDefaultClient.cs rename src/Square/{ => Default}/Inventory/IInventoryClient.cs (99%) rename src/Square/{ => Default}/Inventory/InventoryClient.cs (97%) rename src/Square/{ => Default}/Inventory/Requests/ChangesInventoryRequest.cs (97%) rename src/Square/{ => Default}/Inventory/Requests/DeprecatedGetAdjustmentInventoryRequest.cs (93%) rename src/Square/{ => Default}/Inventory/Requests/DeprecatedGetPhysicalCountInventoryRequest.cs (94%) rename src/Square/{ => Default}/Inventory/Requests/GetAdjustmentInventoryRequest.cs (93%) rename src/Square/{ => Default}/Inventory/Requests/GetInventoryRequest.cs (97%) rename src/Square/{ => Default}/Inventory/Requests/GetPhysicalCountInventoryRequest.cs (94%) rename src/Square/{ => Default}/Inventory/Requests/GetTransferInventoryRequest.cs (93%) rename src/Square/{ => Default}/Invoices/IInvoicesClient.cs (99%) rename src/Square/{ => Default}/Invoices/InvoicesClient.cs (97%) rename src/Square/{ => Default}/Invoices/Requests/CancelInvoiceRequest.cs (96%) rename src/Square/{ => Default}/Invoices/Requests/CreateInvoiceAttachmentRequest.cs (95%) rename src/Square/{ => Default}/Invoices/Requests/CreateInvoiceRequest.cs (95%) rename src/Square/{ => Default}/Invoices/Requests/DeleteInvoiceAttachmentRequest.cs (95%) rename src/Square/{ => Default}/Invoices/Requests/DeleteInvoicesRequest.cs (96%) rename src/Square/{ => Default}/Invoices/Requests/GetInvoicesRequest.cs (93%) rename src/Square/{ => Default}/Invoices/Requests/ListInvoicesRequest.cs (97%) rename src/Square/{ => Default}/Invoices/Requests/PublishInvoiceRequest.cs (97%) rename src/Square/{ => Default}/Invoices/Requests/SearchInvoicesRequest.cs (96%) rename src/Square/{ => Default}/Invoices/Requests/UpdateInvoiceRequest.cs (97%) rename src/Square/{ => Default}/Labor/BreakTypes/BreakTypesClient.cs (96%) rename src/Square/{ => Default}/Labor/BreakTypes/IBreakTypesClient.cs (97%) rename src/Square/{ => Default}/Labor/BreakTypes/Requests/CreateBreakTypeRequest.cs (91%) rename src/Square/{ => Default}/Labor/BreakTypes/Requests/DeleteBreakTypesRequest.cs (91%) rename src/Square/{ => Default}/Labor/BreakTypes/Requests/GetBreakTypesRequest.cs (91%) rename src/Square/{ => Default}/Labor/BreakTypes/Requests/ListBreakTypesRequest.cs (95%) rename src/Square/{ => Default}/Labor/BreakTypes/Requests/UpdateBreakTypeRequest.cs (90%) rename src/Square/{ => Default}/Labor/EmployeeWages/EmployeeWagesClient.cs (95%) rename src/Square/{ => Default}/Labor/EmployeeWages/IEmployeeWagesClient.cs (92%) rename src/Square/{ => Default}/Labor/EmployeeWages/Requests/GetEmployeeWagesRequest.cs (91%) rename src/Square/{ => Default}/Labor/EmployeeWages/Requests/ListEmployeeWagesRequest.cs (95%) rename src/Square/{ => Default}/Labor/ILaborClient.cs (96%) rename src/Square/{ => Default}/Labor/LaborClient.cs (96%) rename src/Square/{ => Default}/Labor/Requests/BulkPublishScheduledShiftsRequest.cs (97%) rename src/Square/{ => Default}/Labor/Requests/CreateScheduledShiftRequest.cs (97%) rename src/Square/{ => Default}/Labor/Requests/CreateTimecardRequest.cs (93%) rename src/Square/{ => Default}/Labor/Requests/DeleteTimecardRequest.cs (93%) rename src/Square/{ => Default}/Labor/Requests/PublishScheduledShiftRequest.cs (97%) rename src/Square/{ => Default}/Labor/Requests/RetrieveScheduledShiftRequest.cs (93%) rename src/Square/{ => Default}/Labor/Requests/RetrieveTimecardRequest.cs (93%) rename src/Square/{ => Default}/Labor/Requests/SearchScheduledShiftsRequest.cs (96%) rename src/Square/{ => Default}/Labor/Requests/SearchTimecardsRequest.cs (94%) rename src/Square/{ => Default}/Labor/Requests/UpdateScheduledShiftRequest.cs (97%) rename src/Square/{ => Default}/Labor/Requests/UpdateTimecardRequest.cs (93%) rename src/Square/{ => Default}/Labor/Shifts/IShiftsClient.cs (98%) rename src/Square/{ => Default}/Labor/Shifts/Requests/CreateShiftRequest.cs (91%) rename src/Square/{ => Default}/Labor/Shifts/Requests/DeleteShiftsRequest.cs (92%) rename src/Square/{ => Default}/Labor/Shifts/Requests/GetShiftsRequest.cs (92%) rename src/Square/{ => Default}/Labor/Shifts/Requests/SearchShiftsRequest.cs (92%) rename src/Square/{ => Default}/Labor/Shifts/Requests/UpdateShiftRequest.cs (90%) rename src/Square/{ => Default}/Labor/Shifts/ShiftsClient.cs (96%) rename src/Square/{ => Default}/Labor/TeamMemberWages/ITeamMemberWagesClient.cs (92%) rename src/Square/{ => Default}/Labor/TeamMemberWages/Requests/GetTeamMemberWagesRequest.cs (90%) rename src/Square/{ => Default}/Labor/TeamMemberWages/Requests/ListTeamMemberWagesRequest.cs (95%) rename src/Square/{ => Default}/Labor/TeamMemberWages/TeamMemberWagesClient.cs (95%) rename src/Square/{ => Default}/Labor/WorkweekConfigs/IWorkweekConfigsClient.cs (92%) rename src/Square/{ => Default}/Labor/WorkweekConfigs/Requests/ListWorkweekConfigsRequest.cs (93%) rename src/Square/{ => Default}/Labor/WorkweekConfigs/Requests/UpdateWorkweekConfigRequest.cs (91%) rename src/Square/{ => Default}/Labor/WorkweekConfigs/WorkweekConfigsClient.cs (96%) rename src/Square/{ => Default}/Locations/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs (94%) rename src/Square/{ => Default}/Locations/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs (98%) rename src/Square/{ => Default}/Locations/CustomAttributeDefinitions/Requests/CreateLocationCustomAttributeDefinitionRequest.cs (94%) rename src/Square/{ => Default}/Locations/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs (88%) rename src/Square/{Merchants => Default/Locations}/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs (94%) rename src/Square/{Merchants => Default/Locations}/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs (94%) rename src/Square/{ => Default}/Locations/CustomAttributeDefinitions/Requests/UpdateLocationCustomAttributeDefinitionRequest.cs (96%) rename src/Square/{ => Default}/Locations/CustomAttributes/CustomAttributesClient.cs (96%) rename src/Square/{ => Default}/Locations/CustomAttributes/ICustomAttributesClient.cs (98%) rename src/Square/{ => Default}/Locations/CustomAttributes/Requests/BulkDeleteLocationCustomAttributesRequest.cs (92%) rename src/Square/{ => Default}/Locations/CustomAttributes/Requests/BulkUpsertLocationCustomAttributesRequest.cs (93%) rename src/Square/{ => Default}/Locations/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs (94%) rename src/Square/{ => Default}/Locations/CustomAttributes/Requests/GetCustomAttributesRequest.cs (97%) rename src/Square/{ => Default}/Locations/CustomAttributes/Requests/ListCustomAttributesRequest.cs (97%) rename src/Square/{ => Default}/Locations/CustomAttributes/Requests/UpsertLocationCustomAttributeRequest.cs (96%) rename src/Square/{ => Default}/Locations/ILocationsClient.cs (90%) rename src/Square/{ => Default}/Locations/LocationsClient.cs (93%) rename src/Square/{ => Default}/Locations/Requests/CreateCheckoutRequest.cs (99%) rename src/Square/{ => Default}/Locations/Requests/CreateLocationRequest.cs (94%) rename src/Square/{ => Default}/Locations/Requests/GetLocationsRequest.cs (94%) rename src/Square/{ => Default}/Locations/Requests/UpdateLocationRequest.cs (92%) rename src/Square/{ => Default}/Locations/Transactions/ITransactionsClient.cs (97%) rename src/Square/{ => Default}/Locations/Transactions/Requests/CaptureTransactionsRequest.cs (90%) rename src/Square/{ => Default}/Locations/Transactions/Requests/GetTransactionsRequest.cs (93%) rename src/Square/{ => Default}/Locations/Transactions/Requests/ListTransactionsRequest.cs (96%) rename src/Square/{ => Default}/Locations/Transactions/Requests/VoidTransactionsRequest.cs (90%) rename src/Square/{ => Default}/Locations/Transactions/TransactionsClient.cs (96%) rename src/Square/{ => Default}/Loyalty/Accounts/AccountsClient.cs (96%) rename src/Square/{ => Default}/Loyalty/Accounts/IAccountsClient.cs (98%) rename src/Square/{ => Default}/Loyalty/Accounts/Requests/AccumulateLoyaltyPointsRequest.cs (95%) rename src/Square/{ => Default}/Loyalty/Accounts/Requests/AdjustLoyaltyPointsRequest.cs (96%) rename src/Square/{ => Default}/Loyalty/Accounts/Requests/CreateLoyaltyAccountRequest.cs (92%) rename src/Square/{ => Default}/Loyalty/Accounts/Requests/GetAccountsRequest.cs (92%) rename src/Square/{ => Default}/Loyalty/Accounts/Requests/SearchLoyaltyAccountsRequest.cs (94%) rename src/Square/{ => Default}/Loyalty/ILoyaltyClient.cs (88%) rename src/Square/{ => Default}/Loyalty/LoyaltyClient.cs (94%) rename src/Square/{ => Default}/Loyalty/Programs/IProgramsClient.cs (96%) rename src/Square/{ => Default}/Loyalty/Programs/ProgramsClient.cs (95%) rename src/Square/{ => Default}/Loyalty/Programs/Promotions/IPromotionsClient.cs (97%) rename src/Square/{ => Default}/Loyalty/Programs/Promotions/PromotionsClient.cs (97%) rename src/Square/{ => Default}/Loyalty/Programs/Promotions/Requests/CancelPromotionsRequest.cs (93%) rename src/Square/{ => Default}/Loyalty/Programs/Promotions/Requests/CreateLoyaltyPromotionRequest.cs (94%) rename src/Square/{ => Default}/Loyalty/Programs/Promotions/Requests/GetPromotionsRequest.cs (94%) rename src/Square/{ => Default}/Loyalty/Programs/Promotions/Requests/ListPromotionsRequest.cs (96%) rename src/Square/{ => Default}/Loyalty/Programs/Requests/CalculateLoyaltyPointsRequest.cs (97%) rename src/Square/{ => Default}/Loyalty/Programs/Requests/GetProgramsRequest.cs (93%) rename src/Square/{ => Default}/Loyalty/Requests/SearchLoyaltyEventsRequest.cs (96%) rename src/Square/{ => Default}/Loyalty/Rewards/IRewardsClient.cs (98%) rename src/Square/{ => Default}/Loyalty/Rewards/Requests/CreateLoyaltyRewardRequest.cs (92%) rename src/Square/{ => Default}/Loyalty/Rewards/Requests/DeleteRewardsRequest.cs (92%) rename src/Square/{ => Default}/Loyalty/Rewards/Requests/GetRewardsRequest.cs (92%) rename src/Square/{ => Default}/Loyalty/Rewards/Requests/RedeemLoyaltyRewardRequest.cs (96%) rename src/Square/{ => Default}/Loyalty/Rewards/Requests/SearchLoyaltyRewardsRequest.cs (95%) rename src/Square/{ => Default}/Loyalty/Rewards/RewardsClient.cs (95%) rename src/Square/{ => Default}/Merchants/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs (94%) rename src/Square/{ => Default}/Merchants/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs (98%) rename src/Square/{ => Default}/Merchants/CustomAttributeDefinitions/Requests/CreateMerchantCustomAttributeDefinitionRequest.cs (94%) rename src/Square/{Customers => Default/Merchants}/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs (88%) rename src/Square/{Customers => Default/Merchants}/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs (94%) rename src/Square/{Locations => Default/Merchants}/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs (94%) rename src/Square/{ => Default}/Merchants/CustomAttributeDefinitions/Requests/UpdateMerchantCustomAttributeDefinitionRequest.cs (96%) rename src/Square/{ => Default}/Merchants/CustomAttributes/CustomAttributesClient.cs (96%) rename src/Square/{ => Default}/Merchants/CustomAttributes/ICustomAttributesClient.cs (98%) rename src/Square/{ => Default}/Merchants/CustomAttributes/Requests/BulkDeleteMerchantCustomAttributesRequest.cs (92%) rename src/Square/{ => Default}/Merchants/CustomAttributes/Requests/BulkUpsertMerchantCustomAttributesRequest.cs (93%) rename src/Square/{ => Default}/Merchants/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs (94%) rename src/Square/{ => Default}/Merchants/CustomAttributes/Requests/GetCustomAttributesRequest.cs (97%) rename src/Square/{ => Default}/Merchants/CustomAttributes/Requests/ListCustomAttributesRequest.cs (97%) rename src/Square/{ => Default}/Merchants/CustomAttributes/Requests/UpsertMerchantCustomAttributeRequest.cs (97%) rename src/Square/{ => Default}/Merchants/IMerchantsClient.cs (83%) rename src/Square/{ => Default}/Merchants/MerchantsClient.cs (89%) rename src/Square/{ => Default}/Merchants/Requests/GetMerchantsRequest.cs (94%) rename src/Square/{ => Default}/Merchants/Requests/ListMerchantsRequest.cs (93%) rename src/Square/{ => Default}/OAuth/IOAuthClient.cs (99%) rename src/Square/{ => Default}/OAuth/OAuthClient.cs (97%) rename src/Square/{ => Default}/OAuth/Requests/ObtainTokenRequest.cs (99%) rename src/Square/{ => Default}/OAuth/Requests/RevokeTokenRequest.cs (98%) rename src/Square/{ => Default}/Orders/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs (94%) rename src/Square/{ => Default}/Orders/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs (98%) rename src/Square/{ => Default}/Orders/CustomAttributeDefinitions/Requests/CreateOrderCustomAttributeDefinitionRequest.cs (95%) create mode 100644 src/Square/Default/Orders/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs rename src/Square/{ => Default}/Orders/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs (93%) rename src/Square/{ => Default}/Orders/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs (95%) rename src/Square/{ => Default}/Orders/CustomAttributeDefinitions/Requests/UpdateOrderCustomAttributeDefinitionRequest.cs (95%) rename src/Square/{ => Default}/Orders/CustomAttributes/CustomAttributesClient.cs (96%) rename src/Square/{ => Default}/Orders/CustomAttributes/ICustomAttributesClient.cs (99%) rename src/Square/{ => Default}/Orders/CustomAttributes/Requests/BulkDeleteOrderCustomAttributesRequest.cs (92%) rename src/Square/{ => Default}/Orders/CustomAttributes/Requests/BulkUpsertOrderCustomAttributesRequest.cs (92%) rename src/Square/{ => Default}/Orders/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs (93%) rename src/Square/{ => Default}/Orders/CustomAttributes/Requests/GetCustomAttributesRequest.cs (97%) rename src/Square/{ => Default}/Orders/CustomAttributes/Requests/ListCustomAttributesRequest.cs (97%) rename src/Square/{ => Default}/Orders/CustomAttributes/Requests/UpsertOrderCustomAttributeRequest.cs (96%) rename src/Square/{ => Default}/Orders/IOrdersClient.cs (95%) rename src/Square/{ => Default}/Orders/OrdersClient.cs (96%) rename src/Square/{ => Default}/Orders/Requests/BatchGetOrdersRequest.cs (96%) rename src/Square/{ => Default}/Orders/Requests/CalculateOrderRequest.cs (96%) rename src/Square/{ => Default}/Orders/Requests/CloneOrderRequest.cs (98%) rename src/Square/{ => Default}/Orders/Requests/GetOrdersRequest.cs (93%) rename src/Square/{ => Default}/Orders/Requests/PayOrderRequest.cs (98%) rename src/Square/{ => Default}/Orders/Requests/SearchOrdersRequest.cs (97%) rename src/Square/{ => Default}/Orders/Requests/UpdateOrderRequest.cs (97%) rename src/Square/{ => Default}/Payments/IPaymentsClient.cs (99%) rename src/Square/{ => Default}/Payments/PaymentsClient.cs (96%) rename src/Square/{ => Default}/Payments/Requests/CancelPaymentByIdempotencyKeyRequest.cs (94%) rename src/Square/{ => Default}/Payments/Requests/CancelPaymentsRequest.cs (93%) rename src/Square/{ => Default}/Payments/Requests/CompletePaymentRequest.cs (96%) rename src/Square/{ => Default}/Payments/Requests/CreatePaymentRequest.cs (99%) rename src/Square/{ => Default}/Payments/Requests/GetPaymentsRequest.cs (93%) rename src/Square/{ => Default}/Payments/Requests/ListPaymentsRequest.cs (99%) rename src/Square/{ => Default}/Payments/Requests/UpdatePaymentRequest.cs (95%) rename src/Square/{ => Default}/Payouts/IPayoutsClient.cs (97%) rename src/Square/{ => Default}/Payouts/PayoutsClient.cs (97%) rename src/Square/{ => Default}/Payouts/Requests/GetPayoutsRequest.cs (93%) rename src/Square/{ => Default}/Payouts/Requests/ListEntriesPayoutsRequest.cs (97%) rename src/Square/{ => Default}/Payouts/Requests/ListPayoutsRequest.cs (98%) rename src/Square/{ => Default}/Refunds/IRefundsClient.cs (98%) rename src/Square/{ => Default}/Refunds/RefundsClient.cs (97%) rename src/Square/{ => Default}/Refunds/Requests/GetRefundsRequest.cs (93%) rename src/Square/{ => Default}/Refunds/Requests/ListRefundsRequest.cs (98%) rename src/Square/{ => Default}/Refunds/Requests/RefundPaymentRequest.cs (99%) rename src/Square/{ => Default}/Sites/ISitesClient.cs (96%) rename src/Square/{ => Default}/Sites/SitesClient.cs (96%) rename src/Square/{ => Default}/Snippets/ISnippetsClient.cs (98%) rename src/Square/{ => Default}/Snippets/Requests/DeleteSnippetsRequest.cs (93%) rename src/Square/{ => Default}/Snippets/Requests/GetSnippetsRequest.cs (93%) rename src/Square/{ => Default}/Snippets/Requests/UpsertSnippetRequest.cs (93%) rename src/Square/{ => Default}/Snippets/SnippetsClient.cs (96%) rename src/Square/{ => Default}/Subscriptions/ISubscriptionsClient.cs (99%) rename src/Square/{ => Default}/Subscriptions/Requests/BulkSwapPlanRequest.cs (96%) rename src/Square/{ => Default}/Subscriptions/Requests/CancelSubscriptionsRequest.cs (92%) rename src/Square/{ => Default}/Subscriptions/Requests/ChangeBillingAnchorDateRequest.cs (96%) rename src/Square/{ => Default}/Subscriptions/Requests/CreateSubscriptionRequest.cs (99%) rename src/Square/{ => Default}/Subscriptions/Requests/DeleteActionSubscriptionsRequest.cs (94%) rename src/Square/{ => Default}/Subscriptions/Requests/GetSubscriptionsRequest.cs (95%) rename src/Square/{ => Default}/Subscriptions/Requests/ListEventsSubscriptionsRequest.cs (97%) rename src/Square/{ => Default}/Subscriptions/Requests/PauseSubscriptionRequest.cs (97%) rename src/Square/{ => Default}/Subscriptions/Requests/ResumeSubscriptionRequest.cs (95%) rename src/Square/{ => Default}/Subscriptions/Requests/SearchSubscriptionsRequest.cs (97%) rename src/Square/{ => Default}/Subscriptions/Requests/SwapPlanRequest.cs (94%) rename src/Square/{ => Default}/Subscriptions/Requests/UpdateSubscriptionRequest.cs (94%) rename src/Square/{ => Default}/Subscriptions/SubscriptionsClient.cs (97%) rename src/Square/{ => Default}/Team/ITeamClient.cs (98%) rename src/Square/{ => Default}/Team/Requests/CreateJobRequest.cs (95%) rename src/Square/{ => Default}/Team/Requests/ListJobsRequest.cs (95%) rename src/Square/{ => Default}/Team/Requests/RetrieveJobRequest.cs (93%) rename src/Square/{ => Default}/Team/Requests/UpdateJobRequest.cs (94%) rename src/Square/{ => Default}/Team/TeamClient.cs (95%) rename src/Square/{ => Default}/TeamMembers/ITeamMembersClient.cs (98%) rename src/Square/{ => Default}/TeamMembers/Requests/BatchCreateTeamMembersRequest.cs (94%) rename src/Square/{ => Default}/TeamMembers/Requests/BatchUpdateTeamMembersRequest.cs (95%) rename src/Square/{ => Default}/TeamMembers/Requests/GetTeamMembersRequest.cs (92%) rename src/Square/{ => Default}/TeamMembers/Requests/SearchTeamMembersRequest.cs (95%) rename src/Square/{ => Default}/TeamMembers/Requests/UpdateTeamMembersRequest.cs (91%) rename src/Square/{ => Default}/TeamMembers/TeamMembersClient.cs (97%) rename src/Square/{ => Default}/TeamMembers/WageSetting/IWageSettingClient.cs (96%) rename src/Square/{ => Default}/TeamMembers/WageSetting/Requests/GetWageSettingRequest.cs (90%) rename src/Square/{ => Default}/TeamMembers/WageSetting/Requests/UpdateWageSettingRequest.cs (88%) rename src/Square/{ => Default}/TeamMembers/WageSetting/WageSettingClient.cs (94%) rename src/Square/{ => Default}/Terminal/Actions/ActionsClient.cs (95%) rename src/Square/{ => Default}/Terminal/Actions/IActionsClient.cs (96%) rename src/Square/{ => Default}/Terminal/Actions/Requests/CancelActionsRequest.cs (91%) rename src/Square/{ => Default}/Terminal/Actions/Requests/CreateTerminalActionRequest.cs (93%) rename src/Square/{ => Default}/Terminal/Actions/Requests/GetActionsRequest.cs (91%) rename src/Square/{ => Default}/Terminal/Actions/Requests/SearchTerminalActionsRequest.cs (95%) rename src/Square/{ => Default}/Terminal/Checkouts/CheckoutsClient.cs (95%) rename src/Square/{ => Default}/Terminal/Checkouts/ICheckoutsClient.cs (96%) rename src/Square/{ => Default}/Terminal/Checkouts/Requests/CancelCheckoutsRequest.cs (91%) rename src/Square/{ => Default}/Terminal/Checkouts/Requests/CreateTerminalCheckoutRequest.cs (93%) rename src/Square/{ => Default}/Terminal/Checkouts/Requests/GetCheckoutsRequest.cs (91%) rename src/Square/{ => Default}/Terminal/Checkouts/Requests/SearchTerminalCheckoutsRequest.cs (95%) rename src/Square/{ => Default}/Terminal/ITerminalClient.cs (89%) rename src/Square/{ => Default}/Terminal/Refunds/IRefundsClient.cs (96%) rename src/Square/{ => Default}/Terminal/Refunds/RefundsClient.cs (95%) rename src/Square/{ => Default}/Terminal/Refunds/Requests/CancelRefundsRequest.cs (91%) rename src/Square/{ => Default}/Terminal/Refunds/Requests/CreateTerminalRefundRequest.cs (93%) rename src/Square/{ => Default}/Terminal/Refunds/Requests/GetRefundsRequest.cs (91%) rename src/Square/{ => Default}/Terminal/Refunds/Requests/SearchTerminalRefundsRequest.cs (94%) rename src/Square/{ => Default}/Terminal/Requests/DismissTerminalActionRequest.cs (94%) rename src/Square/{ => Default}/Terminal/Requests/DismissTerminalCheckoutRequest.cs (94%) rename src/Square/{ => Default}/Terminal/Requests/DismissTerminalRefundRequest.cs (94%) rename src/Square/{ => Default}/Terminal/TerminalClient.cs (93%) rename src/Square/{ => Default}/TransferOrders/ITransferOrdersClient.cs (99%) rename src/Square/{ => Default}/TransferOrders/Requests/CancelTransferOrderRequest.cs (96%) rename src/Square/{ => Default}/TransferOrders/Requests/CreateTransferOrderRequest.cs (93%) rename src/Square/{ => Default}/TransferOrders/Requests/DeleteTransferOrdersRequest.cs (94%) rename src/Square/{ => Default}/TransferOrders/Requests/GetTransferOrdersRequest.cs (92%) rename src/Square/{ => Default}/TransferOrders/Requests/ReceiveTransferOrderRequest.cs (95%) rename src/Square/{ => Default}/TransferOrders/Requests/SearchTransferOrdersRequest.cs (93%) rename src/Square/{ => Default}/TransferOrders/Requests/StartTransferOrderRequest.cs (96%) rename src/Square/{ => Default}/TransferOrders/Requests/UpdateTransferOrderRequest.cs (95%) rename src/Square/{ => Default}/TransferOrders/TransferOrdersClient.cs (98%) rename src/Square/{ => Default}/Types/AcceptDisputeResponse.cs (96%) rename src/Square/{ => Default}/Types/AcceptedPaymentMethods.cs (97%) rename src/Square/{ => Default}/Types/AccumulateLoyaltyPointsResponse.cs (97%) rename src/Square/{ => Default}/Types/AchDetails.cs (97%) rename src/Square/{ => Default}/Types/ActionCancelReason.cs (98%) rename src/Square/{ => Default}/Types/ActivityType.cs (99%) rename src/Square/{ => Default}/Types/AddGroupToCustomerResponse.cs (96%) rename src/Square/{ => Default}/Types/AdditionalRecipient.cs (97%) rename src/Square/{ => Default}/Types/Address.cs (99%) rename src/Square/{ => Default}/Types/AdjustLoyaltyPointsResponse.cs (96%) rename src/Square/{ => Default}/Types/AfterpayDetails.cs (95%) rename src/Square/{ => Default}/Types/ApplicationDetails.cs (97%) rename src/Square/{ => Default}/Types/ApplicationDetailsExternalSquareProduct.cs (99%) rename src/Square/{ => Default}/Types/AppointmentSegment.cs (98%) rename src/Square/{ => Default}/Types/ArchivedState.cs (98%) rename src/Square/{ => Default}/Types/Availability.cs (97%) rename src/Square/{ => Default}/Types/BankAccount.cs (99%) rename src/Square/{ => Default}/Types/BankAccountCreatedEvent.cs (98%) rename src/Square/{ => Default}/Types/BankAccountCreatedEventData.cs (96%) rename src/Square/{ => Default}/Types/BankAccountCreatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/BankAccountDisabledEvent.cs (97%) rename src/Square/{ => Default}/Types/BankAccountDisabledEventData.cs (96%) rename src/Square/{ => Default}/Types/BankAccountDisabledEventObject.cs (95%) rename src/Square/{ => Default}/Types/BankAccountPaymentDetails.cs (98%) rename src/Square/{ => Default}/Types/BankAccountStatus.cs (98%) rename src/Square/{ => Default}/Types/BankAccountType.cs (98%) rename src/Square/{ => Default}/Types/BankAccountVerifiedEvent.cs (97%) rename src/Square/{ => Default}/Types/BankAccountVerifiedEventData.cs (96%) rename src/Square/{ => Default}/Types/BankAccountVerifiedEventObject.cs (95%) rename src/Square/{ => Default}/Types/BatchChangeInventoryRequest.cs (97%) rename src/Square/{ => Default}/Types/BatchChangeInventoryResponse.cs (96%) rename src/Square/{ => Default}/Types/BatchCreateTeamMembersResponse.cs (96%) rename src/Square/{ => Default}/Types/BatchCreateVendorsResponse.cs (97%) rename src/Square/{ => Default}/Types/BatchDeleteCatalogObjectsResponse.cs (97%) rename src/Square/{ => Default}/Types/BatchGetCatalogObjectsResponse.cs (96%) rename src/Square/{ => Default}/Types/BatchGetInventoryChangesResponse.cs (97%) rename src/Square/{ => Default}/Types/BatchGetInventoryCountsRequest.cs (98%) rename src/Square/{ => Default}/Types/BatchGetInventoryCountsResponse.cs (97%) rename src/Square/{ => Default}/Types/BatchGetOrdersResponse.cs (96%) rename src/Square/{ => Default}/Types/BatchGetVendorsResponse.cs (97%) rename src/Square/{ => Default}/Types/BatchRetrieveInventoryChangesRequest.cs (98%) rename src/Square/{ => Default}/Types/BatchUpdateTeamMembersResponse.cs (96%) rename src/Square/{ => Default}/Types/BatchUpdateVendorsResponse.cs (97%) rename src/Square/{ => Default}/Types/BatchUpsertCatalogObjectsResponse.cs (97%) rename src/Square/{ => Default}/Types/BatchUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest.cs (98%) rename src/Square/{ => Default}/Types/BatchUpsertCustomerCustomAttributesResponse.cs (97%) rename src/Square/{ => Default}/Types/BatchUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse.cs (97%) rename src/Square/{ => Default}/Types/Booking.cs (99%) rename src/Square/{ => Default}/Types/BookingBookingSource.cs (98%) rename src/Square/{ => Default}/Types/BookingCreatedEvent.cs (97%) rename src/Square/{ => Default}/Types/BookingCreatedEventData.cs (96%) rename src/Square/{ => Default}/Types/BookingCreatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/BookingCreatorDetails.cs (97%) rename src/Square/{ => Default}/Types/BookingCreatorDetailsCreatorType.cs (98%) rename src/Square/{ => Default}/Types/BookingCustomAttributeDefinitionOwnedCreatedEvent.cs (98%) rename src/Square/{ => Default}/Types/BookingCustomAttributeDefinitionOwnedDeletedEvent.cs (98%) rename src/Square/{ => Default}/Types/BookingCustomAttributeDefinitionOwnedUpdatedEvent.cs (98%) rename src/Square/{ => Default}/Types/BookingCustomAttributeDefinitionVisibleCreatedEvent.cs (98%) rename src/Square/{ => Default}/Types/BookingCustomAttributeDefinitionVisibleDeletedEvent.cs (98%) rename src/Square/{ => Default}/Types/BookingCustomAttributeDefinitionVisibleUpdatedEvent.cs (98%) rename src/Square/{ => Default}/Types/BookingCustomAttributeDeleteRequest.cs (97%) rename src/Square/{ => Default}/Types/BookingCustomAttributeDeleteResponse.cs (96%) rename src/Square/{ => Default}/Types/BookingCustomAttributeOwnedDeletedEvent.cs (98%) rename src/Square/{ => Default}/Types/BookingCustomAttributeOwnedUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/BookingCustomAttributeUpsertRequest.cs (98%) rename src/Square/{ => Default}/Types/BookingCustomAttributeUpsertResponse.cs (97%) rename src/Square/{ => Default}/Types/BookingCustomAttributeVisibleDeletedEvent.cs (98%) rename src/Square/{ => Default}/Types/BookingCustomAttributeVisibleUpdatedEvent.cs (98%) rename src/Square/{ => Default}/Types/BookingStatus.cs (98%) rename src/Square/{ => Default}/Types/BookingUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/BookingUpdatedEventData.cs (96%) rename src/Square/{ => Default}/Types/BookingUpdatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/Break.cs (98%) rename src/Square/{ => Default}/Types/BreakType.cs (98%) rename src/Square/{ => Default}/Types/BulkCreateCustomerData.cs (98%) rename src/Square/{ => Default}/Types/BulkCreateCustomersResponse.cs (97%) rename src/Square/{ => Default}/Types/BulkDeleteBookingCustomAttributesResponse.cs (97%) rename src/Square/{ => Default}/Types/BulkDeleteCustomersResponse.cs (97%) rename src/Square/{ => Default}/Types/BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest.cs (97%) rename src/Square/{ => Default}/Types/BulkDeleteLocationCustomAttributesResponse.cs (97%) rename src/Square/{ => Default}/Types/BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse.cs (97%) rename src/Square/{ => Default}/Types/BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest.cs (97%) rename src/Square/{ => Default}/Types/BulkDeleteMerchantCustomAttributesResponse.cs (97%) rename src/Square/{ => Default}/Types/BulkDeleteMerchantCustomAttributesResponseMerchantCustomAttributeDeleteResponse.cs (96%) rename src/Square/{ => Default}/Types/BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute.cs (96%) rename src/Square/{ => Default}/Types/BulkDeleteOrderCustomAttributesResponse.cs (97%) rename src/Square/{ => Default}/Types/BulkPublishScheduledShiftsData.cs (97%) rename src/Square/{ => Default}/Types/BulkPublishScheduledShiftsResponse.cs (97%) rename src/Square/{ => Default}/Types/BulkRetrieveBookingsResponse.cs (96%) rename src/Square/{ => Default}/Types/BulkRetrieveChannelsResponse.cs (97%) rename src/Square/{ => Default}/Types/BulkRetrieveCustomersResponse.cs (97%) rename src/Square/{ => Default}/Types/BulkRetrieveTeamMemberBookingProfilesResponse.cs (97%) rename src/Square/{ => Default}/Types/BulkSwapPlanResponse.cs (96%) rename src/Square/{ => Default}/Types/BulkUpdateCustomerData.cs (99%) rename src/Square/{ => Default}/Types/BulkUpdateCustomersResponse.cs (97%) rename src/Square/{ => Default}/Types/BulkUpsertBookingCustomAttributesResponse.cs (97%) rename src/Square/{ => Default}/Types/BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest.cs (98%) rename src/Square/{ => Default}/Types/BulkUpsertLocationCustomAttributesResponse.cs (97%) rename src/Square/{ => Default}/Types/BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse.cs (97%) rename src/Square/{ => Default}/Types/BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest.cs (98%) rename src/Square/{ => Default}/Types/BulkUpsertMerchantCustomAttributesResponse.cs (97%) rename src/Square/{ => Default}/Types/BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse.cs (97%) rename src/Square/{ => Default}/Types/BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute.cs (98%) rename src/Square/{ => Default}/Types/BulkUpsertOrderCustomAttributesResponse.cs (96%) rename src/Square/{ => Default}/Types/BusinessAppointmentSettings.cs (99%) rename src/Square/{ => Default}/Types/BusinessAppointmentSettingsAlignmentTime.cs (98%) rename src/Square/{ => Default}/Types/BusinessAppointmentSettingsBookingLocationType.cs (98%) rename src/Square/{ => Default}/Types/BusinessAppointmentSettingsCancellationPolicy.cs (98%) rename src/Square/{ => Default}/Types/BusinessAppointmentSettingsMaxAppointmentsPerDayLimitType.cs (98%) rename src/Square/{ => Default}/Types/BusinessBookingProfile.cs (98%) rename src/Square/{ => Default}/Types/BusinessBookingProfileBookingPolicy.cs (98%) rename src/Square/{ => Default}/Types/BusinessBookingProfileCustomerTimezoneChoice.cs (98%) rename src/Square/{ => Default}/Types/BusinessHours.cs (95%) rename src/Square/{ => Default}/Types/BusinessHoursPeriod.cs (97%) rename src/Square/{ => Default}/Types/BuyNowPayLaterDetails.cs (97%) rename src/Square/{ => Default}/Types/CalculateLoyaltyPointsResponse.cs (97%) rename src/Square/{ => Default}/Types/CalculateOrderResponse.cs (96%) rename src/Square/{ => Default}/Types/CancelBookingResponse.cs (96%) rename src/Square/{ => Default}/Types/CancelInvoiceResponse.cs (96%) rename src/Square/{ => Default}/Types/CancelLoyaltyPromotionResponse.cs (96%) rename src/Square/{ => Default}/Types/CancelPaymentByIdempotencyKeyResponse.cs (96%) rename src/Square/{ => Default}/Types/CancelPaymentResponse.cs (96%) rename src/Square/{ => Default}/Types/CancelSubscriptionResponse.cs (97%) rename src/Square/{ => Default}/Types/CancelTerminalActionResponse.cs (96%) rename src/Square/{ => Default}/Types/CancelTerminalCheckoutResponse.cs (96%) rename src/Square/{ => Default}/Types/CancelTerminalRefundResponse.cs (96%) rename src/Square/{ => Default}/Types/CancelTransferOrderResponse.cs (96%) rename src/Square/{ => Default}/Types/CaptureTransactionResponse.cs (96%) rename src/Square/{ => Default}/Types/Card.cs (99%) rename src/Square/{ => Default}/Types/CardAutomaticallyUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/CardAutomaticallyUpdatedEventData.cs (96%) rename src/Square/{ => Default}/Types/CardAutomaticallyUpdatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/CardBrand.cs (99%) rename src/Square/{ => Default}/Types/CardCoBrand.cs (98%) rename src/Square/{ => Default}/Types/CardCreatedEvent.cs (97%) rename src/Square/{ => Default}/Types/CardCreatedEventData.cs (96%) rename src/Square/{ => Default}/Types/CardCreatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/CardDisabledEvent.cs (97%) rename src/Square/{ => Default}/Types/CardDisabledEventData.cs (96%) rename src/Square/{ => Default}/Types/CardDisabledEventObject.cs (95%) rename src/Square/{ => Default}/Types/CardForgottenEvent.cs (97%) rename src/Square/{ => Default}/Types/CardForgottenEventCard.cs (98%) rename src/Square/{ => Default}/Types/CardForgottenEventData.cs (96%) rename src/Square/{ => Default}/Types/CardForgottenEventObject.cs (95%) rename src/Square/{ => Default}/Types/CardPaymentDetails.cs (99%) rename src/Square/{ => Default}/Types/CardPaymentTimeline.cs (96%) rename src/Square/{ => Default}/Types/CardPrepaidType.cs (98%) rename src/Square/{ => Default}/Types/CardType.cs (98%) rename src/Square/{ => Default}/Types/CardUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/CardUpdatedEventData.cs (96%) rename src/Square/{ => Default}/Types/CardUpdatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/CashAppDetails.cs (97%) rename src/Square/{ => Default}/Types/CashDrawerDevice.cs (95%) rename src/Square/{ => Default}/Types/CashDrawerEventType.cs (99%) rename src/Square/{ => Default}/Types/CashDrawerShift.cs (99%) rename src/Square/{ => Default}/Types/CashDrawerShiftEvent.cs (98%) rename src/Square/{ => Default}/Types/CashDrawerShiftState.cs (98%) rename src/Square/{ => Default}/Types/CashDrawerShiftSummary.cs (98%) rename src/Square/{ => Default}/Types/CashPaymentDetails.cs (97%) rename src/Square/{ => Default}/Types/CatalogAvailabilityPeriod.cs (97%) rename src/Square/{ => Default}/Types/CatalogCategory.cs (98%) rename src/Square/{ => Default}/Types/CatalogCategoryType.cs (98%) rename src/Square/{ => Default}/Types/CatalogCustomAttributeDefinition.cs (99%) rename src/Square/{ => Default}/Types/CatalogCustomAttributeDefinitionAppVisibility.cs (98%) rename src/Square/{ => Default}/Types/CatalogCustomAttributeDefinitionNumberConfig.cs (96%) rename src/Square/{ => Default}/Types/CatalogCustomAttributeDefinitionSelectionConfig.cs (97%) rename src/Square/{ => Default}/Types/CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection.cs (96%) rename src/Square/{ => Default}/Types/CatalogCustomAttributeDefinitionSellerVisibility.cs (98%) rename src/Square/{ => Default}/Types/CatalogCustomAttributeDefinitionStringConfig.cs (96%) rename src/Square/{ => Default}/Types/CatalogCustomAttributeDefinitionType.cs (98%) rename src/Square/{ => Default}/Types/CatalogCustomAttributeValue.cs (98%) rename src/Square/{ => Default}/Types/CatalogDiscount.cs (98%) rename src/Square/{ => Default}/Types/CatalogDiscountModifyTaxBasis.cs (98%) rename src/Square/{ => Default}/Types/CatalogDiscountType.cs (98%) rename src/Square/{ => Default}/Types/CatalogEcomSeoData.cs (96%) rename src/Square/{ => Default}/Types/CatalogIdMapping.cs (97%) rename src/Square/{ => Default}/Types/CatalogImage.cs (98%) rename src/Square/{ => Default}/Types/CatalogInfoResponse.cs (96%) rename src/Square/{ => Default}/Types/CatalogInfoResponseLimits.cs (98%) rename src/Square/{ => Default}/Types/CatalogItem.cs (99%) rename src/Square/{ => Default}/Types/CatalogItemFoodAndBeverageDetails.cs (97%) rename src/Square/{ => Default}/Types/CatalogItemFoodAndBeverageDetailsDietaryPreference.cs (97%) rename src/Square/{ => Default}/Types/CatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreference.cs (99%) rename src/Square/{ => Default}/Types/CatalogItemFoodAndBeverageDetailsDietaryPreferenceType.cs (98%) rename src/Square/{ => Default}/Types/CatalogItemFoodAndBeverageDetailsIngredient.cs (97%) rename src/Square/{ => Default}/Types/CatalogItemFoodAndBeverageDetailsIngredientStandardIngredient.cs (99%) rename src/Square/{ => Default}/Types/CatalogItemModifierListInfo.cs (99%) rename src/Square/{ => Default}/Types/CatalogItemOption.cs (98%) rename src/Square/{ => Default}/Types/CatalogItemOptionForItem.cs (96%) rename src/Square/{ => Default}/Types/CatalogItemOptionValue.cs (98%) rename src/Square/{ => Default}/Types/CatalogItemOptionValueForItemVariation.cs (97%) rename src/Square/{ => Default}/Types/CatalogItemProductType.cs (99%) rename src/Square/{ => Default}/Types/CatalogItemVariation.cs (99%) rename src/Square/{ => Default}/Types/CatalogMeasurementUnit.cs (97%) rename src/Square/{ => Default}/Types/CatalogModifier.cs (98%) rename src/Square/{ => Default}/Types/CatalogModifierList.cs (99%) rename src/Square/{ => Default}/Types/CatalogModifierListModifierType.cs (98%) rename src/Square/{ => Default}/Types/CatalogModifierListSelectionType.cs (98%) rename src/Square/{ => Default}/Types/CatalogModifierOverride.cs (98%) rename src/Square/{ => Default}/Types/CatalogModifierToggleOverrideType.cs (98%) rename src/Square/{ => Default}/Types/CatalogObject.cs (62%) rename src/Square/{ => Default}/Types/CatalogObjectAvailabilityPeriod.cs (99%) rename src/Square/{ => Default}/Types/CatalogObjectBase.cs (99%) rename src/Square/{ => Default}/Types/CatalogObjectBatch.cs (95%) rename src/Square/{ => Default}/Types/CatalogObjectCategory.cs (99%) rename src/Square/{ => Default}/Types/CatalogObjectCustomAttributeDefinition.cs (99%) rename src/Square/{ => Default}/Types/CatalogObjectDiscount.cs (99%) rename src/Square/{ => Default}/Types/CatalogObjectImage.cs (99%) rename src/Square/{ => Default}/Types/CatalogObjectItem.cs (99%) rename src/Square/{ => Default}/Types/CatalogObjectItemOption.cs (99%) rename src/Square/{ => Default}/Types/CatalogObjectItemOptionValue.cs (99%) rename src/Square/{ => Default}/Types/CatalogObjectItemVariation.cs (99%) rename src/Square/{ => Default}/Types/CatalogObjectMeasurementUnit.cs (99%) rename src/Square/{ => Default}/Types/CatalogObjectModifier.cs (99%) rename src/Square/{ => Default}/Types/CatalogObjectModifierList.cs (99%) rename src/Square/{ => Default}/Types/CatalogObjectPricingRule.cs (99%) rename src/Square/{ => Default}/Types/CatalogObjectProductSet.cs (99%) rename src/Square/{ => Default}/Types/CatalogObjectQuickAmountsSettings.cs (99%) rename src/Square/{ => Default}/Types/CatalogObjectReference.cs (96%) rename src/Square/{ => Default}/Types/CatalogObjectSubscriptionPlan.cs (99%) rename src/Square/{ => Default}/Types/CatalogObjectSubscriptionPlanVariation.cs (99%) rename src/Square/{ => Default}/Types/CatalogObjectTax.cs (99%) rename src/Square/{ => Default}/Types/CatalogObjectTimePeriod.cs (99%) rename src/Square/{ => Default}/Types/CatalogObjectType.cs (99%) rename src/Square/{ => Default}/Types/CatalogPricingRule.cs (99%) rename src/Square/{ => Default}/Types/CatalogPricingType.cs (98%) rename src/Square/{ => Default}/Types/CatalogProductSet.cs (98%) rename src/Square/{ => Default}/Types/CatalogQuery.cs (99%) rename src/Square/{ => Default}/Types/CatalogQueryExact.cs (97%) rename src/Square/{ => Default}/Types/CatalogQueryItemVariationsForItemOptionValues.cs (96%) rename src/Square/{ => Default}/Types/CatalogQueryItemsForItemOptions.cs (96%) rename src/Square/{ => Default}/Types/CatalogQueryItemsForModifierList.cs (96%) rename src/Square/{ => Default}/Types/CatalogQueryItemsForTax.cs (96%) rename src/Square/{ => Default}/Types/CatalogQueryPrefix.cs (96%) rename src/Square/{ => Default}/Types/CatalogQueryRange.cs (97%) rename src/Square/{ => Default}/Types/CatalogQuerySet.cs (97%) rename src/Square/{ => Default}/Types/CatalogQuerySortedAttribute.cs (97%) rename src/Square/{ => Default}/Types/CatalogQueryText.cs (96%) rename src/Square/{ => Default}/Types/CatalogQuickAmount.cs (97%) rename src/Square/{ => Default}/Types/CatalogQuickAmountType.cs (98%) rename src/Square/{ => Default}/Types/CatalogQuickAmountsSettings.cs (97%) rename src/Square/{ => Default}/Types/CatalogQuickAmountsSettingsOption.cs (98%) rename src/Square/{ => Default}/Types/CatalogStockConversion.cs (98%) rename src/Square/{ => Default}/Types/CatalogSubscriptionPlan.cs (98%) rename src/Square/{ => Default}/Types/CatalogSubscriptionPlanVariation.cs (98%) rename src/Square/{ => Default}/Types/CatalogTax.cs (98%) rename src/Square/{ => Default}/Types/CatalogTimePeriod.cs (97%) rename src/Square/{ => Default}/Types/CatalogV1Id.cs (96%) rename src/Square/{ => Default}/Types/CatalogVersionUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/CatalogVersionUpdatedEventCatalogVersion.cs (95%) rename src/Square/{ => Default}/Types/CatalogVersionUpdatedEventData.cs (96%) rename src/Square/{ => Default}/Types/CatalogVersionUpdatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/CategoryPathToRootNode.cs (96%) rename src/Square/{ => Default}/Types/ChangeBillingAnchorDateResponse.cs (97%) rename src/Square/{ => Default}/Types/ChangeTiming.cs (98%) rename src/Square/{ => Default}/Types/Channel.cs (98%) rename src/Square/{ => Default}/Types/ChannelStatus.cs (98%) rename src/Square/{ => Default}/Types/ChargeRequestAdditionalRecipient.cs (97%) rename src/Square/{ => Default}/Types/CheckoutLocationSettings.cs (98%) rename src/Square/{ => Default}/Types/CheckoutLocationSettingsBranding.cs (97%) rename src/Square/{ => Default}/Types/CheckoutLocationSettingsBrandingButtonShape.cs (98%) rename src/Square/{ => Default}/Types/CheckoutLocationSettingsBrandingHeaderType.cs (98%) rename src/Square/{ => Default}/Types/CheckoutLocationSettingsCoupons.cs (95%) rename src/Square/{ => Default}/Types/CheckoutLocationSettingsPolicy.cs (97%) rename src/Square/{ => Default}/Types/CheckoutLocationSettingsTipping.cs (98%) rename src/Square/{ => Default}/Types/CheckoutMerchantSettings.cs (97%) rename src/Square/{ => Default}/Types/CheckoutMerchantSettingsPaymentMethods.cs (96%) rename src/Square/{ => Default}/Types/CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay.cs (97%) rename src/Square/{ => Default}/Types/CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange.cs (95%) rename src/Square/{ => Default}/Types/CheckoutMerchantSettingsPaymentMethodsPaymentMethod.cs (95%) rename src/Square/{ => Default}/Types/CheckoutOptions.cs (99%) rename src/Square/{ => Default}/Types/CheckoutOptionsPaymentType.cs (99%) rename src/Square/{ => Default}/Types/ClearpayDetails.cs (95%) rename src/Square/{ => Default}/Types/CloneOrderResponse.cs (96%) rename src/Square/{ => Default}/Types/CollectedData.cs (95%) rename src/Square/{ => Default}/Types/CompletePaymentResponse.cs (96%) rename src/Square/{ => Default}/Types/Component.cs (98%) rename src/Square/{ => Default}/Types/ComponentComponentType.cs (98%) rename src/Square/{ => Default}/Types/ConfirmationDecision.cs (95%) rename src/Square/{ => Default}/Types/ConfirmationOptions.cs (97%) rename src/Square/{ => Default}/Types/Coordinates.cs (96%) rename src/Square/{ => Default}/Types/Country.cs (99%) rename src/Square/{ => Default}/Types/CreateBankAccountResponse.cs (96%) rename src/Square/{ => Default}/Types/CreateBookingCustomAttributeDefinitionResponse.cs (97%) rename src/Square/{ => Default}/Types/CreateBookingResponse.cs (96%) rename src/Square/{ => Default}/Types/CreateBreakTypeResponse.cs (96%) rename src/Square/{ => Default}/Types/CreateCardResponse.cs (96%) rename src/Square/{ => Default}/Types/CreateCatalogImageRequest.cs (98%) rename src/Square/{ => Default}/Types/CreateCatalogImageResponse.cs (96%) rename src/Square/{ => Default}/Types/CreateCheckoutResponse.cs (93%) rename src/Square/{ => Default}/Types/CreateCustomerCardResponse.cs (96%) rename src/Square/{ => Default}/Types/CreateCustomerCustomAttributeDefinitionResponse.cs (97%) rename src/Square/{ => Default}/Types/CreateCustomerGroupResponse.cs (96%) rename src/Square/{ => Default}/Types/CreateCustomerResponse.cs (97%) rename src/Square/{ => Default}/Types/CreateDeviceCodeResponse.cs (96%) rename src/Square/{ => Default}/Types/CreateDisputeEvidenceFileRequest.cs (97%) rename src/Square/{ => Default}/Types/CreateDisputeEvidenceFileResponse.cs (96%) rename src/Square/{ => Default}/Types/CreateDisputeEvidenceTextResponse.cs (96%) rename src/Square/{ => Default}/Types/CreateGiftCardActivityResponse.cs (96%) rename src/Square/{ => Default}/Types/CreateGiftCardResponse.cs (96%) rename src/Square/{ => Default}/Types/CreateInvoiceAttachmentRequestData.cs (97%) rename src/Square/{ => Default}/Types/CreateInvoiceAttachmentResponse.cs (96%) rename src/Square/{ => Default}/Types/CreateInvoiceResponse.cs (96%) rename src/Square/{ => Default}/Types/CreateJobResponse.cs (96%) rename src/Square/{ => Default}/Types/CreateLocationCustomAttributeDefinitionResponse.cs (97%) rename src/Square/{ => Default}/Types/CreateLocationResponse.cs (96%) rename src/Square/{ => Default}/Types/CreateLoyaltyAccountResponse.cs (96%) rename src/Square/{ => Default}/Types/CreateLoyaltyPromotionResponse.cs (96%) rename src/Square/{ => Default}/Types/CreateLoyaltyRewardResponse.cs (96%) rename src/Square/{ => Default}/Types/CreateMerchantCustomAttributeDefinitionResponse.cs (97%) rename src/Square/{ => Default}/Types/CreateOrderCustomAttributeDefinitionResponse.cs (96%) rename src/Square/{ => Default}/Types/CreateOrderRequest.cs (97%) rename src/Square/{ => Default}/Types/CreateOrderResponse.cs (96%) rename src/Square/{ => Default}/Types/CreatePaymentLinkResponse.cs (96%) rename src/Square/{ => Default}/Types/CreatePaymentResponse.cs (96%) rename src/Square/{ => Default}/Types/CreateScheduledShiftResponse.cs (97%) rename src/Square/{ => Default}/Types/CreateShiftResponse.cs (96%) rename src/Square/{ => Default}/Types/CreateSubscriptionResponse.cs (97%) rename src/Square/{ => Default}/Types/CreateTeamMemberRequest.cs (97%) rename src/Square/{ => Default}/Types/CreateTeamMemberResponse.cs (96%) rename src/Square/{ => Default}/Types/CreateTerminalActionResponse.cs (96%) rename src/Square/{ => Default}/Types/CreateTerminalCheckoutResponse.cs (96%) rename src/Square/{ => Default}/Types/CreateTerminalRefundResponse.cs (96%) rename src/Square/{ => Default}/Types/CreateTimecardResponse.cs (96%) rename src/Square/{ => Default}/Types/CreateTransferOrderData.cs (98%) rename src/Square/{ => Default}/Types/CreateTransferOrderLineData.cs (97%) rename src/Square/{ => Default}/Types/CreateTransferOrderResponse.cs (96%) rename src/Square/{ => Default}/Types/CreateVendorResponse.cs (96%) rename src/Square/{ => Default}/Types/CreateWebhookSubscriptionResponse.cs (97%) rename src/Square/{ => Default}/Types/Currency.cs (99%) rename src/Square/{ => Default}/Types/CustomAttribute.cs (99%) rename src/Square/{ => Default}/Types/CustomAttributeDefinition.cs (99%) rename src/Square/{ => Default}/Types/CustomAttributeDefinitionEventData.cs (97%) rename src/Square/{ => Default}/Types/CustomAttributeDefinitionEventDataObject.cs (95%) rename src/Square/{ => Default}/Types/CustomAttributeDefinitionVisibility.cs (98%) rename src/Square/{ => Default}/Types/CustomAttributeEventData.cs (96%) rename src/Square/{ => Default}/Types/CustomAttributeEventDataObject.cs (95%) rename src/Square/{ => Default}/Types/CustomAttributeFilter.cs (98%) rename src/Square/{ => Default}/Types/CustomField.cs (96%) rename src/Square/{ => Default}/Types/Customer.cs (99%) rename src/Square/{ => Default}/Types/CustomerAddressFilter.cs (97%) rename src/Square/{ => Default}/Types/CustomerCreatedEvent.cs (98%) rename src/Square/{ => Default}/Types/CustomerCreatedEventData.cs (96%) rename src/Square/{ => Default}/Types/CustomerCreatedEventEventContext.cs (95%) rename src/Square/{ => Default}/Types/CustomerCreatedEventEventContextMerge.cs (96%) rename src/Square/{ => Default}/Types/CustomerCreatedEventObject.cs (96%) rename src/Square/{ => Default}/Types/CustomerCreationSource.cs (99%) rename src/Square/{ => Default}/Types/CustomerCreationSourceFilter.cs (97%) rename src/Square/{ => Default}/Types/CustomerCustomAttributeDefinitionCreatedEvent.cs (98%) rename src/Square/{ => Default}/Types/CustomerCustomAttributeDefinitionCreatedPublicEvent.cs (98%) rename src/Square/{ => Default}/Types/CustomerCustomAttributeDefinitionDeletedEvent.cs (98%) rename src/Square/{ => Default}/Types/CustomerCustomAttributeDefinitionDeletedPublicEvent.cs (98%) rename src/Square/{ => Default}/Types/CustomerCustomAttributeDefinitionOwnedCreatedEvent.cs (97%) rename src/Square/{ => Default}/Types/CustomerCustomAttributeDefinitionOwnedDeletedEvent.cs (98%) rename src/Square/{ => Default}/Types/CustomerCustomAttributeDefinitionOwnedUpdatedEvent.cs (98%) rename src/Square/{ => Default}/Types/CustomerCustomAttributeDefinitionUpdatedEvent.cs (98%) rename src/Square/{ => Default}/Types/CustomerCustomAttributeDefinitionUpdatedPublicEvent.cs (98%) rename src/Square/{ => Default}/Types/CustomerCustomAttributeDefinitionVisibleCreatedEvent.cs (98%) rename src/Square/{ => Default}/Types/CustomerCustomAttributeDefinitionVisibleDeletedEvent.cs (98%) rename src/Square/{ => Default}/Types/CustomerCustomAttributeDefinitionVisibleUpdatedEvent.cs (98%) rename src/Square/{ => Default}/Types/CustomerCustomAttributeDeletedEvent.cs (98%) rename src/Square/{ => Default}/Types/CustomerCustomAttributeDeletedPublicEvent.cs (98%) rename src/Square/{ => Default}/Types/CustomerCustomAttributeFilter.cs (98%) rename src/Square/{ => Default}/Types/CustomerCustomAttributeFilterValue.cs (99%) rename src/Square/{ => Default}/Types/CustomerCustomAttributeFilters.cs (97%) rename src/Square/{ => Default}/Types/CustomerCustomAttributeOwnedDeletedEvent.cs (98%) rename src/Square/{ => Default}/Types/CustomerCustomAttributeOwnedUpdatedEvent.cs (98%) rename src/Square/{ => Default}/Types/CustomerCustomAttributeUpdatedEvent.cs (98%) rename src/Square/{ => Default}/Types/CustomerCustomAttributeUpdatedPublicEvent.cs (98%) rename src/Square/{ => Default}/Types/CustomerCustomAttributeVisibleDeletedEvent.cs (98%) rename src/Square/{ => Default}/Types/CustomerCustomAttributeVisibleUpdatedEvent.cs (98%) rename src/Square/{ => Default}/Types/CustomerDeletedEvent.cs (98%) rename src/Square/{ => Default}/Types/CustomerDeletedEventData.cs (96%) rename src/Square/{ => Default}/Types/CustomerDeletedEventEventContext.cs (95%) rename src/Square/{ => Default}/Types/CustomerDeletedEventEventContextMerge.cs (96%) rename src/Square/{ => Default}/Types/CustomerDeletedEventObject.cs (96%) rename src/Square/{ => Default}/Types/CustomerDetails.cs (96%) rename src/Square/{ => Default}/Types/CustomerFilter.cs (99%) rename src/Square/{ => Default}/Types/CustomerGroup.cs (97%) rename src/Square/{ => Default}/Types/CustomerInclusionExclusion.cs (98%) rename src/Square/{ => Default}/Types/CustomerPreferences.cs (96%) rename src/Square/{ => Default}/Types/CustomerQuery.cs (97%) rename src/Square/{ => Default}/Types/CustomerSegment.cs (97%) rename src/Square/{ => Default}/Types/CustomerSort.cs (97%) rename src/Square/{ => Default}/Types/CustomerSortField.cs (98%) rename src/Square/{ => Default}/Types/CustomerTaxIds.cs (96%) rename src/Square/{ => Default}/Types/CustomerTextFilter.cs (97%) rename src/Square/{ => Default}/Types/CustomerUpdatedEvent.cs (98%) rename src/Square/{ => Default}/Types/CustomerUpdatedEventData.cs (96%) rename src/Square/{ => Default}/Types/CustomerUpdatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/DataCollectionOptions.cs (97%) rename src/Square/{ => Default}/Types/DataCollectionOptionsInputType.cs (98%) rename src/Square/{ => Default}/Types/DateRange.cs (97%) rename src/Square/{ => Default}/Types/DayOfWeek.cs (98%) rename src/Square/{ => Default}/Types/DeleteBookingCustomAttributeDefinitionResponse.cs (96%) rename src/Square/{ => Default}/Types/DeleteBookingCustomAttributeResponse.cs (96%) rename src/Square/{ => Default}/Types/DeleteBreakTypeResponse.cs (96%) rename src/Square/{ => Default}/Types/DeleteCatalogObjectResponse.cs (97%) rename src/Square/{ => Default}/Types/DeleteCustomerCardResponse.cs (96%) rename src/Square/{ => Default}/Types/DeleteCustomerCustomAttributeDefinitionResponse.cs (96%) rename src/Square/{ => Default}/Types/DeleteCustomerCustomAttributeResponse.cs (96%) rename src/Square/{ => Default}/Types/DeleteCustomerGroupResponse.cs (96%) rename src/Square/{ => Default}/Types/DeleteCustomerResponse.cs (96%) rename src/Square/{ => Default}/Types/DeleteDisputeEvidenceResponse.cs (95%) rename src/Square/{ => Default}/Types/DeleteInvoiceAttachmentResponse.cs (96%) rename src/Square/{ => Default}/Types/DeleteInvoiceResponse.cs (95%) rename src/Square/{ => Default}/Types/DeleteLocationCustomAttributeDefinitionResponse.cs (96%) rename src/Square/{ => Default}/Types/DeleteLocationCustomAttributeResponse.cs (96%) rename src/Square/{ => Default}/Types/DeleteLoyaltyRewardResponse.cs (95%) rename src/Square/{ => Default}/Types/DeleteMerchantCustomAttributeDefinitionResponse.cs (96%) rename src/Square/{ => Default}/Types/DeleteMerchantCustomAttributeResponse.cs (96%) rename src/Square/{ => Default}/Types/DeleteOrderCustomAttributeDefinitionResponse.cs (95%) rename src/Square/{ => Default}/Types/DeleteOrderCustomAttributeResponse.cs (95%) rename src/Square/{ => Default}/Types/DeletePaymentLinkResponse.cs (96%) rename src/Square/{ => Default}/Types/DeleteShiftResponse.cs (96%) rename src/Square/{ => Default}/Types/DeleteSnippetResponse.cs (95%) rename src/Square/{ => Default}/Types/DeleteSubscriptionActionResponse.cs (96%) rename src/Square/{ => Default}/Types/DeleteTimecardResponse.cs (96%) rename src/Square/{ => Default}/Types/DeleteTransferOrderResponse.cs (95%) rename src/Square/{ => Default}/Types/DeleteWebhookSubscriptionResponse.cs (96%) rename src/Square/{ => Default}/Types/Destination.cs (96%) rename src/Square/{ => Default}/Types/DestinationDetails.cs (97%) rename src/Square/{ => Default}/Types/DestinationDetailsCardRefundDetails.cs (96%) rename src/Square/{ => Default}/Types/DestinationDetailsCashRefundDetails.cs (96%) rename src/Square/{ => Default}/Types/DestinationDetailsExternalRefundDetails.cs (98%) rename src/Square/{ => Default}/Types/DestinationType.cs (98%) rename src/Square/{ => Default}/Types/Device.cs (97%) rename src/Square/{ => Default}/Types/DeviceAttributes.cs (98%) rename src/Square/{ => Default}/Types/DeviceAttributesDeviceType.cs (98%) rename src/Square/{ => Default}/Types/DeviceCheckoutOptions.cs (98%) rename src/Square/{ => Default}/Types/DeviceCode.cs (98%) rename src/Square/{ => Default}/Types/DeviceCodePairedEvent.cs (97%) rename src/Square/{ => Default}/Types/DeviceCodePairedEventData.cs (96%) rename src/Square/{ => Default}/Types/DeviceCodePairedEventObject.cs (95%) rename src/Square/{ => Default}/Types/DeviceCodeStatus.cs (98%) rename src/Square/{ => Default}/Types/DeviceComponentDetailsApplicationDetails.cs (97%) rename src/Square/{ => Default}/Types/DeviceComponentDetailsBatteryDetails.cs (96%) rename src/Square/{ => Default}/Types/DeviceComponentDetailsCardReaderDetails.cs (95%) rename src/Square/{ => Default}/Types/DeviceComponentDetailsEthernetDetails.cs (96%) rename src/Square/{ => Default}/Types/DeviceComponentDetailsExternalPower.cs (98%) rename src/Square/{ => Default}/Types/DeviceComponentDetailsMeasurement.cs (95%) rename src/Square/{ => Default}/Types/DeviceComponentDetailsWiFiDetails.cs (97%) rename src/Square/{ => Default}/Types/DeviceCreatedEvent.cs (97%) rename src/Square/{ => Default}/Types/DeviceCreatedEventData.cs (96%) rename src/Square/{ => Default}/Types/DeviceCreatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/DeviceDetails.cs (96%) rename src/Square/{ => Default}/Types/DeviceMetadata.cs (98%) rename src/Square/{ => Default}/Types/DeviceStatus.cs (95%) rename src/Square/{ => Default}/Types/DeviceStatusCategory.cs (98%) rename src/Square/{ => Default}/Types/DigitalWalletDetails.cs (97%) rename src/Square/{ => Default}/Types/DisableBankAccountResponse.cs (96%) rename src/Square/{ => Default}/Types/DisableCardResponse.cs (96%) rename src/Square/{ => Default}/Types/DisableEventsResponse.cs (96%) rename src/Square/{ => Default}/Types/DismissTerminalActionResponse.cs (96%) rename src/Square/{ => Default}/Types/DismissTerminalCheckoutResponse.cs (96%) rename src/Square/{ => Default}/Types/DismissTerminalRefundResponse.cs (96%) rename src/Square/{ => Default}/Types/Dispute.cs (99%) rename src/Square/{ => Default}/Types/DisputeCreatedEvent.cs (97%) rename src/Square/{ => Default}/Types/DisputeCreatedEventData.cs (96%) rename src/Square/{ => Default}/Types/DisputeCreatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/DisputeEvidence.cs (97%) rename src/Square/{ => Default}/Types/DisputeEvidenceAddedEvent.cs (98%) rename src/Square/{ => Default}/Types/DisputeEvidenceAddedEventData.cs (96%) rename src/Square/{ => Default}/Types/DisputeEvidenceAddedEventObject.cs (95%) rename src/Square/{ => Default}/Types/DisputeEvidenceCreatedEvent.cs (98%) rename src/Square/{ => Default}/Types/DisputeEvidenceCreatedEventData.cs (96%) rename src/Square/{ => Default}/Types/DisputeEvidenceCreatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/DisputeEvidenceDeletedEvent.cs (98%) rename src/Square/{ => Default}/Types/DisputeEvidenceDeletedEventData.cs (96%) rename src/Square/{ => Default}/Types/DisputeEvidenceDeletedEventObject.cs (95%) rename src/Square/{ => Default}/Types/DisputeEvidenceFile.cs (96%) rename src/Square/{ => Default}/Types/DisputeEvidenceRemovedEvent.cs (98%) rename src/Square/{ => Default}/Types/DisputeEvidenceRemovedEventData.cs (96%) rename src/Square/{ => Default}/Types/DisputeEvidenceRemovedEventObject.cs (95%) rename src/Square/{ => Default}/Types/DisputeEvidenceType.cs (99%) rename src/Square/{ => Default}/Types/DisputeReason.cs (99%) rename src/Square/{ => Default}/Types/DisputeState.cs (98%) rename src/Square/{ => Default}/Types/DisputeStateChangedEvent.cs (97%) rename src/Square/{ => Default}/Types/DisputeStateChangedEventData.cs (96%) rename src/Square/{ => Default}/Types/DisputeStateChangedEventObject.cs (95%) rename src/Square/{ => Default}/Types/DisputeStateUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/DisputeStateUpdatedEventData.cs (96%) rename src/Square/{ => Default}/Types/DisputeStateUpdatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/DisputedPayment.cs (95%) rename src/Square/{ => Default}/Types/EcomVisibility.cs (98%) rename src/Square/{ => Default}/Types/Employee.cs (98%) rename src/Square/{ => Default}/Types/EmployeeStatus.cs (98%) rename src/Square/{ => Default}/Types/EmployeeWage.cs (97%) rename src/Square/{ => Default}/Types/EnableEventsResponse.cs (96%) rename src/Square/{ => Default}/Types/Error.cs (97%) rename src/Square/{ => Default}/Types/ErrorCategory.cs (99%) rename src/Square/{ => Default}/Types/ErrorCode.cs (99%) rename src/Square/{ => Default}/Types/Event.cs (97%) rename src/Square/{ => Default}/Types/EventData.cs (97%) rename src/Square/{ => Default}/Types/EventMetadata.cs (96%) rename src/Square/{ => Default}/Types/EventTypeMetadata.cs (97%) rename src/Square/{ => Default}/Types/ExcludeStrategy.cs (98%) rename src/Square/{ => Default}/Types/ExternalPaymentDetails.cs (98%) rename src/Square/{ => Default}/Types/FilterValue.cs (97%) rename src/Square/{ => Default}/Types/FloatNumberRange.cs (96%) rename src/Square/{ => Default}/Types/Fulfillment.cs (99%) rename src/Square/{ => Default}/Types/FulfillmentDeliveryDetails.cs (99%) rename src/Square/{ => Default}/Types/FulfillmentDeliveryDetailsOrderFulfillmentDeliveryDetailsScheduleType.cs (98%) rename src/Square/{ => Default}/Types/FulfillmentFulfillmentEntry.cs (98%) rename src/Square/{ => Default}/Types/FulfillmentFulfillmentLineItemApplication.cs (98%) rename src/Square/{ => Default}/Types/FulfillmentPickupDetails.cs (99%) rename src/Square/{ => Default}/Types/FulfillmentPickupDetailsCurbsidePickupDetails.cs (97%) rename src/Square/{ => Default}/Types/FulfillmentPickupDetailsScheduleType.cs (98%) rename src/Square/{ => Default}/Types/FulfillmentRecipient.cs (98%) rename src/Square/{ => Default}/Types/FulfillmentShipmentDetails.cs (99%) rename src/Square/{ => Default}/Types/FulfillmentState.cs (98%) rename src/Square/{ => Default}/Types/FulfillmentType.cs (98%) rename src/Square/{ => Default}/Types/GetBankAccountByV1IdResponse.cs (96%) rename src/Square/{ => Default}/Types/GetBankAccountResponse.cs (96%) rename src/Square/{ => Default}/Types/GetBookingResponse.cs (96%) rename src/Square/{ => Default}/Types/GetBreakTypeResponse.cs (96%) rename src/Square/{ => Default}/Types/GetBusinessBookingProfileResponse.cs (96%) rename src/Square/{ => Default}/Types/GetCardResponse.cs (96%) rename src/Square/{ => Default}/Types/GetCashDrawerShiftResponse.cs (96%) rename src/Square/{ => Default}/Types/GetCatalogObjectResponse.cs (96%) rename src/Square/{ => Default}/Types/GetCustomerCustomAttributeDefinitionResponse.cs (97%) rename src/Square/{ => Default}/Types/GetCustomerCustomAttributeResponse.cs (97%) rename src/Square/{ => Default}/Types/GetCustomerGroupResponse.cs (96%) rename src/Square/{ => Default}/Types/GetCustomerResponse.cs (96%) rename src/Square/{ => Default}/Types/GetCustomerSegmentResponse.cs (96%) rename src/Square/{ => Default}/Types/GetDeviceCodeResponse.cs (96%) rename src/Square/{ => Default}/Types/GetDeviceResponse.cs (96%) rename src/Square/{ => Default}/Types/GetDisputeEvidenceResponse.cs (96%) rename src/Square/{ => Default}/Types/GetDisputeResponse.cs (96%) rename src/Square/{ => Default}/Types/GetEmployeeResponse.cs (95%) rename src/Square/{ => Default}/Types/GetEmployeeWageResponse.cs (96%) rename src/Square/{ => Default}/Types/GetGiftCardFromGanResponse.cs (96%) rename src/Square/{ => Default}/Types/GetGiftCardFromNonceResponse.cs (96%) rename src/Square/{ => Default}/Types/GetGiftCardResponse.cs (96%) rename src/Square/{ => Default}/Types/GetInventoryAdjustmentResponse.cs (96%) rename src/Square/{ => Default}/Types/GetInventoryChangesResponse.cs (97%) rename src/Square/{ => Default}/Types/GetInventoryCountResponse.cs (97%) rename src/Square/{ => Default}/Types/GetInventoryPhysicalCountResponse.cs (96%) rename src/Square/{ => Default}/Types/GetInventoryTransferResponse.cs (96%) rename src/Square/{ => Default}/Types/GetInvoiceResponse.cs (96%) rename src/Square/{ => Default}/Types/GetLocationResponse.cs (96%) rename src/Square/{ => Default}/Types/GetLoyaltyAccountResponse.cs (96%) rename src/Square/{ => Default}/Types/GetLoyaltyProgramResponse.cs (96%) rename src/Square/{ => Default}/Types/GetLoyaltyPromotionResponse.cs (96%) rename src/Square/{ => Default}/Types/GetLoyaltyRewardResponse.cs (96%) rename src/Square/{ => Default}/Types/GetMerchantResponse.cs (96%) rename src/Square/{ => Default}/Types/GetOrderResponse.cs (95%) rename src/Square/{ => Default}/Types/GetPaymentLinkResponse.cs (96%) rename src/Square/{ => Default}/Types/GetPaymentRefundResponse.cs (96%) rename src/Square/{ => Default}/Types/GetPaymentResponse.cs (96%) rename src/Square/{ => Default}/Types/GetPayoutResponse.cs (96%) rename src/Square/{ => Default}/Types/GetShiftResponse.cs (96%) rename src/Square/{ => Default}/Types/GetSnippetResponse.cs (96%) rename src/Square/{ => Default}/Types/GetSubscriptionResponse.cs (96%) rename src/Square/{ => Default}/Types/GetTeamMemberBookingProfileResponse.cs (96%) rename src/Square/{ => Default}/Types/GetTeamMemberResponse.cs (96%) rename src/Square/{ => Default}/Types/GetTeamMemberWageResponse.cs (96%) rename src/Square/{ => Default}/Types/GetTerminalActionResponse.cs (96%) rename src/Square/{ => Default}/Types/GetTerminalCheckoutResponse.cs (96%) rename src/Square/{ => Default}/Types/GetTerminalRefundResponse.cs (96%) rename src/Square/{ => Default}/Types/GetTransactionResponse.cs (96%) rename src/Square/{ => Default}/Types/GetVendorResponse.cs (96%) rename src/Square/{ => Default}/Types/GetWageSettingResponse.cs (96%) rename src/Square/{ => Default}/Types/GetWebhookSubscriptionResponse.cs (97%) rename src/Square/{ => Default}/Types/GiftCard.cs (98%) rename src/Square/{ => Default}/Types/GiftCardActivity.cs (99%) rename src/Square/{ => Default}/Types/GiftCardActivityActivate.cs (98%) rename src/Square/{ => Default}/Types/GiftCardActivityAdjustDecrement.cs (96%) rename src/Square/{ => Default}/Types/GiftCardActivityAdjustDecrementReason.cs (98%) rename src/Square/{ => Default}/Types/GiftCardActivityAdjustIncrement.cs (96%) rename src/Square/{ => Default}/Types/GiftCardActivityAdjustIncrementReason.cs (98%) rename src/Square/{ => Default}/Types/GiftCardActivityBlock.cs (96%) rename src/Square/{ => Default}/Types/GiftCardActivityClearBalance.cs (96%) rename src/Square/{ => Default}/Types/GiftCardActivityClearBalanceReason.cs (98%) rename src/Square/{ => Default}/Types/GiftCardActivityCreatedEvent.cs (97%) rename src/Square/{ => Default}/Types/GiftCardActivityCreatedEventData.cs (97%) rename src/Square/{ => Default}/Types/GiftCardActivityCreatedEventObject.cs (96%) rename src/Square/{ => Default}/Types/GiftCardActivityDeactivate.cs (96%) rename src/Square/{ => Default}/Types/GiftCardActivityDeactivateReason.cs (98%) rename src/Square/{ => Default}/Types/GiftCardActivityImport.cs (96%) rename src/Square/{ => Default}/Types/GiftCardActivityImportReversal.cs (96%) rename src/Square/{ => Default}/Types/GiftCardActivityLoad.cs (98%) rename src/Square/{ => Default}/Types/GiftCardActivityRedeem.cs (98%) rename src/Square/{ => Default}/Types/GiftCardActivityRedeemStatus.cs (98%) rename src/Square/{ => Default}/Types/GiftCardActivityRefund.cs (98%) rename src/Square/{ => Default}/Types/GiftCardActivityTransferBalanceFrom.cs (96%) rename src/Square/{ => Default}/Types/GiftCardActivityTransferBalanceTo.cs (96%) rename src/Square/{ => Default}/Types/GiftCardActivityType.cs (99%) rename src/Square/{ => Default}/Types/GiftCardActivityUnblock.cs (96%) rename src/Square/{ => Default}/Types/GiftCardActivityUnlinkedActivityRefund.cs (97%) rename src/Square/{ => Default}/Types/GiftCardActivityUpdatedEvent.cs (98%) rename src/Square/{ => Default}/Types/GiftCardActivityUpdatedEventData.cs (97%) rename src/Square/{ => Default}/Types/GiftCardActivityUpdatedEventObject.cs (96%) rename src/Square/{ => Default}/Types/GiftCardCreatedEvent.cs (97%) rename src/Square/{ => Default}/Types/GiftCardCreatedEventData.cs (96%) rename src/Square/{ => Default}/Types/GiftCardCreatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/GiftCardCustomerLinkedEvent.cs (97%) rename src/Square/{ => Default}/Types/GiftCardCustomerLinkedEventData.cs (97%) rename src/Square/{ => Default}/Types/GiftCardCustomerLinkedEventObject.cs (96%) rename src/Square/{ => Default}/Types/GiftCardCustomerUnlinkedEvent.cs (97%) rename src/Square/{ => Default}/Types/GiftCardCustomerUnlinkedEventData.cs (97%) rename src/Square/{ => Default}/Types/GiftCardCustomerUnlinkedEventObject.cs (96%) rename src/Square/{ => Default}/Types/GiftCardGanSource.cs (98%) rename src/Square/{ => Default}/Types/GiftCardStatus.cs (98%) rename src/Square/{ => Default}/Types/GiftCardType.cs (98%) rename src/Square/{ => Default}/Types/GiftCardUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/GiftCardUpdatedEventData.cs (96%) rename src/Square/{ => Default}/Types/GiftCardUpdatedEventObject.cs (96%) rename src/Square/{ => Default}/Types/InventoryAdjustment.cs (99%) rename src/Square/{ => Default}/Types/InventoryAdjustmentGroup.cs (98%) rename src/Square/{ => Default}/Types/InventoryAlertType.cs (98%) rename src/Square/{ => Default}/Types/InventoryChange.cs (98%) rename src/Square/{ => Default}/Types/InventoryChangeType.cs (98%) rename src/Square/{ => Default}/Types/InventoryCount.cs (98%) rename src/Square/{ => Default}/Types/InventoryCountUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/InventoryCountUpdatedEventData.cs (96%) rename src/Square/{ => Default}/Types/InventoryCountUpdatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/InventoryPhysicalCount.cs (99%) rename src/Square/{ => Default}/Types/InventoryState.cs (99%) rename src/Square/{ => Default}/Types/InventoryTransfer.cs (99%) rename src/Square/{ => Default}/Types/Invoice.cs (99%) rename src/Square/{ => Default}/Types/InvoiceAcceptedPaymentMethods.cs (98%) rename src/Square/{ => Default}/Types/InvoiceAttachment.cs (98%) rename src/Square/{ => Default}/Types/InvoiceAutomaticPaymentSource.cs (98%) rename src/Square/{ => Default}/Types/InvoiceCanceledEvent.cs (97%) rename src/Square/{ => Default}/Types/InvoiceCanceledEventData.cs (96%) rename src/Square/{ => Default}/Types/InvoiceCanceledEventObject.cs (95%) rename src/Square/{ => Default}/Types/InvoiceCreatedEvent.cs (97%) rename src/Square/{ => Default}/Types/InvoiceCreatedEventData.cs (96%) rename src/Square/{ => Default}/Types/InvoiceCreatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/InvoiceCustomField.cs (97%) rename src/Square/{ => Default}/Types/InvoiceCustomFieldPlacement.cs (98%) rename src/Square/{ => Default}/Types/InvoiceDeletedEvent.cs (97%) rename src/Square/{ => Default}/Types/InvoiceDeletedEventData.cs (96%) rename src/Square/{ => Default}/Types/InvoiceDeliveryMethod.cs (98%) rename src/Square/{ => Default}/Types/InvoiceFilter.cs (97%) rename src/Square/{ => Default}/Types/InvoicePaymentMadeEvent.cs (97%) rename src/Square/{ => Default}/Types/InvoicePaymentMadeEventData.cs (96%) rename src/Square/{ => Default}/Types/InvoicePaymentMadeEventObject.cs (95%) rename src/Square/{ => Default}/Types/InvoicePaymentReminder.cs (98%) rename src/Square/{ => Default}/Types/InvoicePaymentReminderStatus.cs (98%) rename src/Square/{ => Default}/Types/InvoicePaymentRequest.cs (99%) rename src/Square/{ => Default}/Types/InvoicePublishedEvent.cs (97%) rename src/Square/{ => Default}/Types/InvoicePublishedEventData.cs (96%) rename src/Square/{ => Default}/Types/InvoicePublishedEventObject.cs (95%) rename src/Square/{ => Default}/Types/InvoiceQuery.cs (96%) rename src/Square/{ => Default}/Types/InvoiceRecipient.cs (98%) rename src/Square/{ => Default}/Types/InvoiceRecipientTaxIds.cs (96%) rename src/Square/{ => Default}/Types/InvoiceRefundedEvent.cs (97%) rename src/Square/{ => Default}/Types/InvoiceRefundedEventData.cs (96%) rename src/Square/{ => Default}/Types/InvoiceRefundedEventObject.cs (95%) rename src/Square/{ => Default}/Types/InvoiceRequestMethod.cs (98%) rename src/Square/{ => Default}/Types/InvoiceRequestType.cs (98%) rename src/Square/{ => Default}/Types/InvoiceScheduledChargeFailedEvent.cs (97%) rename src/Square/{ => Default}/Types/InvoiceScheduledChargeFailedEventData.cs (96%) rename src/Square/{ => Default}/Types/InvoiceScheduledChargeFailedEventObject.cs (95%) rename src/Square/{ => Default}/Types/InvoiceSort.cs (96%) rename src/Square/{ => Default}/Types/InvoiceStatus.cs (99%) rename src/Square/{ => Default}/Types/InvoiceUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/InvoiceUpdatedEventData.cs (96%) rename src/Square/{ => Default}/Types/InvoiceUpdatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/ItemVariationLocationOverrides.cs (98%) rename src/Square/{ => Default}/Types/Job.cs (98%) rename src/Square/{ => Default}/Types/JobAssignment.cs (98%) rename src/Square/{ => Default}/Types/JobAssignmentPayType.cs (98%) rename src/Square/{ => Default}/Types/JobCreatedEvent.cs (97%) rename src/Square/{ => Default}/Types/JobCreatedEventData.cs (96%) rename src/Square/{ => Default}/Types/JobCreatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/JobUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/JobUpdatedEventData.cs (96%) rename src/Square/{ => Default}/Types/JobUpdatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/LaborScheduledShiftCreatedEvent.cs (97%) rename src/Square/{ => Default}/Types/LaborScheduledShiftCreatedEventData.cs (96%) rename src/Square/{ => Default}/Types/LaborScheduledShiftCreatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/LaborScheduledShiftDeletedEvent.cs (97%) rename src/Square/{ => Default}/Types/LaborScheduledShiftDeletedEventData.cs (96%) rename src/Square/{ => Default}/Types/LaborScheduledShiftPublishedEvent.cs (97%) rename src/Square/{ => Default}/Types/LaborScheduledShiftPublishedEventData.cs (96%) rename src/Square/{ => Default}/Types/LaborScheduledShiftPublishedEventObject.cs (95%) rename src/Square/{ => Default}/Types/LaborScheduledShiftUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/LaborScheduledShiftUpdatedEventData.cs (96%) rename src/Square/{ => Default}/Types/LaborScheduledShiftUpdatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/LaborShiftCreatedEvent.cs (97%) rename src/Square/{ => Default}/Types/LaborShiftCreatedEventData.cs (96%) rename src/Square/{ => Default}/Types/LaborShiftCreatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/LaborShiftDeletedEvent.cs (97%) rename src/Square/{ => Default}/Types/LaborShiftDeletedEventData.cs (96%) rename src/Square/{ => Default}/Types/LaborShiftUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/LaborShiftUpdatedEventData.cs (96%) rename src/Square/{ => Default}/Types/LaborShiftUpdatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/LaborTimecardCreatedEvent.cs (97%) rename src/Square/{ => Default}/Types/LaborTimecardCreatedEventData.cs (96%) rename src/Square/{ => Default}/Types/LaborTimecardCreatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/LaborTimecardDeletedEvent.cs (97%) rename src/Square/{ => Default}/Types/LaborTimecardDeletedEventData.cs (96%) rename src/Square/{ => Default}/Types/LaborTimecardUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/LaborTimecardUpdatedEventData.cs (96%) rename src/Square/{ => Default}/Types/LaborTimecardUpdatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/LinkCustomerToGiftCardResponse.cs (96%) rename src/Square/{ => Default}/Types/ListBankAccountsResponse.cs (97%) rename src/Square/{ => Default}/Types/ListBookingCustomAttributeDefinitionsResponse.cs (98%) rename src/Square/{ => Default}/Types/ListBookingCustomAttributesResponse.cs (98%) rename src/Square/{ => Default}/Types/ListBookingsResponse.cs (96%) rename src/Square/{ => Default}/Types/ListBreakTypesResponse.cs (97%) rename src/Square/{ => Default}/Types/ListCardsResponse.cs (97%) rename src/Square/{ => Default}/Types/ListCashDrawerShiftEventsResponse.cs (97%) rename src/Square/{ => Default}/Types/ListCashDrawerShiftsResponse.cs (97%) rename src/Square/{ => Default}/Types/ListCatalogResponse.cs (97%) rename src/Square/{ => Default}/Types/ListChannelsResponse.cs (96%) rename src/Square/{ => Default}/Types/ListCustomerCustomAttributeDefinitionsResponse.cs (98%) rename src/Square/{ => Default}/Types/ListCustomerCustomAttributesResponse.cs (98%) rename src/Square/{ => Default}/Types/ListCustomerGroupsResponse.cs (97%) rename src/Square/{ => Default}/Types/ListCustomerSegmentsResponse.cs (97%) rename src/Square/{ => Default}/Types/ListCustomersResponse.cs (98%) rename src/Square/{ => Default}/Types/ListDeviceCodesResponse.cs (97%) rename src/Square/{ => Default}/Types/ListDevicesResponse.cs (97%) rename src/Square/{ => Default}/Types/ListDisputeEvidenceResponse.cs (97%) rename src/Square/{ => Default}/Types/ListDisputesResponse.cs (97%) rename src/Square/{ => Default}/Types/ListEmployeeWagesResponse.cs (97%) rename src/Square/{ => Default}/Types/ListEmployeesResponse.cs (96%) rename src/Square/{ => Default}/Types/ListEventTypesResponse.cs (97%) rename src/Square/{ => Default}/Types/ListGiftCardActivitiesResponse.cs (97%) rename src/Square/{ => Default}/Types/ListGiftCardsResponse.cs (97%) rename src/Square/{ => Default}/Types/ListInvoicesResponse.cs (97%) rename src/Square/{ => Default}/Types/ListJobsResponse.cs (97%) rename src/Square/{ => Default}/Types/ListLocationBookingProfilesResponse.cs (97%) rename src/Square/{ => Default}/Types/ListLocationCustomAttributeDefinitionsResponse.cs (98%) rename src/Square/{ => Default}/Types/ListLocationCustomAttributesResponse.cs (98%) rename src/Square/{ => Default}/Types/ListLocationsResponse.cs (96%) rename src/Square/{ => Default}/Types/ListLoyaltyProgramsResponse.cs (96%) rename src/Square/{ => Default}/Types/ListLoyaltyPromotionsResponse.cs (97%) rename src/Square/{ => Default}/Types/ListMerchantCustomAttributeDefinitionsResponse.cs (98%) rename src/Square/{ => Default}/Types/ListMerchantCustomAttributesResponse.cs (98%) rename src/Square/{ => Default}/Types/ListMerchantsResponse.cs (97%) rename src/Square/{ => Default}/Types/ListOrderCustomAttributeDefinitionsResponse.cs (97%) rename src/Square/{ => Default}/Types/ListOrderCustomAttributesResponse.cs (97%) rename src/Square/{ => Default}/Types/ListPaymentLinksResponse.cs (97%) rename src/Square/{ => Default}/Types/ListPaymentRefundsRequestSortField.cs (98%) rename src/Square/{ => Default}/Types/ListPaymentRefundsResponse.cs (97%) rename src/Square/{ => Default}/Types/ListPaymentsRequestSortField.cs (98%) rename src/Square/{ => Default}/Types/ListPaymentsResponse.cs (97%) rename src/Square/{ => Default}/Types/ListPayoutEntriesResponse.cs (97%) rename src/Square/{ => Default}/Types/ListPayoutsResponse.cs (97%) rename src/Square/{ => Default}/Types/ListSitesResponse.cs (96%) rename src/Square/{ => Default}/Types/ListSubscriptionEventsResponse.cs (97%) rename src/Square/{ => Default}/Types/ListTeamMemberBookingProfilesResponse.cs (97%) rename src/Square/{ => Default}/Types/ListTeamMemberWagesResponse.cs (97%) rename src/Square/{ => Default}/Types/ListTransactionsResponse.cs (97%) rename src/Square/{ => Default}/Types/ListWebhookEventTypesResponse.cs (97%) rename src/Square/{ => Default}/Types/ListWebhookSubscriptionsResponse.cs (97%) rename src/Square/{ => Default}/Types/ListWorkweekConfigsResponse.cs (97%) rename src/Square/{ => Default}/Types/Location.cs (99%) rename src/Square/{ => Default}/Types/LocationBookingProfile.cs (97%) rename src/Square/{ => Default}/Types/LocationCapability.cs (98%) rename src/Square/{ => Default}/Types/LocationCreatedEvent.cs (97%) rename src/Square/{ => Default}/Types/LocationCreatedEventData.cs (96%) rename src/Square/{ => Default}/Types/LocationCustomAttributeDefinitionOwnedCreatedEvent.cs (97%) rename src/Square/{ => Default}/Types/LocationCustomAttributeDefinitionOwnedDeletedEvent.cs (98%) rename src/Square/{ => Default}/Types/LocationCustomAttributeDefinitionOwnedUpdatedEvent.cs (98%) rename src/Square/{ => Default}/Types/LocationCustomAttributeDefinitionVisibleCreatedEvent.cs (98%) rename src/Square/{ => Default}/Types/LocationCustomAttributeDefinitionVisibleDeletedEvent.cs (98%) rename src/Square/{ => Default}/Types/LocationCustomAttributeDefinitionVisibleUpdatedEvent.cs (98%) rename src/Square/{ => Default}/Types/LocationCustomAttributeOwnedDeletedEvent.cs (98%) rename src/Square/{ => Default}/Types/LocationCustomAttributeOwnedUpdatedEvent.cs (98%) rename src/Square/{ => Default}/Types/LocationCustomAttributeVisibleDeletedEvent.cs (98%) rename src/Square/{ => Default}/Types/LocationCustomAttributeVisibleUpdatedEvent.cs (98%) rename src/Square/{ => Default}/Types/LocationSettingsUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/LocationSettingsUpdatedEventData.cs (96%) rename src/Square/{ => Default}/Types/LocationSettingsUpdatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/LocationStatus.cs (98%) rename src/Square/{ => Default}/Types/LocationType.cs (98%) rename src/Square/{ => Default}/Types/LocationUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/LocationUpdatedEventData.cs (96%) rename src/Square/{ => Default}/Types/LoyaltyAccount.cs (99%) rename src/Square/{ => Default}/Types/LoyaltyAccountCreatedEvent.cs (97%) rename src/Square/{ => Default}/Types/LoyaltyAccountCreatedEventData.cs (97%) rename src/Square/{ => Default}/Types/LoyaltyAccountCreatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/LoyaltyAccountDeletedEvent.cs (97%) rename src/Square/{ => Default}/Types/LoyaltyAccountDeletedEventData.cs (97%) rename src/Square/{ => Default}/Types/LoyaltyAccountDeletedEventObject.cs (95%) rename src/Square/{ => Default}/Types/LoyaltyAccountExpiringPointDeadline.cs (96%) rename src/Square/{ => Default}/Types/LoyaltyAccountMapping.cs (97%) rename src/Square/{ => Default}/Types/LoyaltyAccountUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/LoyaltyAccountUpdatedEventData.cs (97%) rename src/Square/{ => Default}/Types/LoyaltyAccountUpdatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/LoyaltyEvent.cs (99%) rename src/Square/{ => Default}/Types/LoyaltyEventAccumulatePoints.cs (97%) rename src/Square/{ => Default}/Types/LoyaltyEventAccumulatePromotionPoints.cs (97%) rename src/Square/{ => Default}/Types/LoyaltyEventAdjustPoints.cs (97%) rename src/Square/{ => Default}/Types/LoyaltyEventCreateReward.cs (97%) rename src/Square/{ => Default}/Types/LoyaltyEventCreatedEvent.cs (97%) rename src/Square/{ => Default}/Types/LoyaltyEventCreatedEventData.cs (96%) rename src/Square/{ => Default}/Types/LoyaltyEventCreatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/LoyaltyEventDateTimeFilter.cs (95%) rename src/Square/{ => Default}/Types/LoyaltyEventDeleteReward.cs (97%) rename src/Square/{ => Default}/Types/LoyaltyEventExpirePoints.cs (96%) rename src/Square/{ => Default}/Types/LoyaltyEventFilter.cs (97%) rename src/Square/{ => Default}/Types/LoyaltyEventLocationFilter.cs (96%) rename src/Square/{ => Default}/Types/LoyaltyEventLoyaltyAccountFilter.cs (96%) rename src/Square/{ => Default}/Types/LoyaltyEventOrderFilter.cs (95%) rename src/Square/{ => Default}/Types/LoyaltyEventOther.cs (96%) rename src/Square/{ => Default}/Types/LoyaltyEventQuery.cs (95%) rename src/Square/{ => Default}/Types/LoyaltyEventRedeemReward.cs (97%) rename src/Square/{ => Default}/Types/LoyaltyEventSource.cs (98%) rename src/Square/{ => Default}/Types/LoyaltyEventType.cs (99%) rename src/Square/{ => Default}/Types/LoyaltyEventTypeFilter.cs (96%) rename src/Square/{ => Default}/Types/LoyaltyProgram.cs (98%) rename src/Square/{ => Default}/Types/LoyaltyProgramAccrualRule.cs (98%) rename src/Square/{ => Default}/Types/LoyaltyProgramAccrualRuleCategoryData.cs (96%) rename src/Square/{ => Default}/Types/LoyaltyProgramAccrualRuleItemVariationData.cs (96%) rename src/Square/{ => Default}/Types/LoyaltyProgramAccrualRuleSpendData.cs (98%) rename src/Square/{ => Default}/Types/LoyaltyProgramAccrualRuleTaxMode.cs (98%) rename src/Square/{ => Default}/Types/LoyaltyProgramAccrualRuleType.cs (98%) rename src/Square/{ => Default}/Types/LoyaltyProgramAccrualRuleVisitData.cs (97%) rename src/Square/{ => Default}/Types/LoyaltyProgramCreatedEvent.cs (97%) rename src/Square/{ => Default}/Types/LoyaltyProgramCreatedEventData.cs (97%) rename src/Square/{ => Default}/Types/LoyaltyProgramCreatedEventObject.cs (96%) rename src/Square/{ => Default}/Types/LoyaltyProgramExpirationPolicy.cs (96%) rename src/Square/{ => Default}/Types/LoyaltyProgramRewardTier.cs (98%) rename src/Square/{ => Default}/Types/LoyaltyProgramStatus.cs (98%) rename src/Square/{ => Default}/Types/LoyaltyProgramTerminology.cs (96%) rename src/Square/{ => Default}/Types/LoyaltyProgramUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/LoyaltyProgramUpdatedEventData.cs (97%) rename src/Square/{ => Default}/Types/LoyaltyProgramUpdatedEventObject.cs (96%) rename src/Square/{ => Default}/Types/LoyaltyPromotion.cs (99%) rename src/Square/{ => Default}/Types/LoyaltyPromotionAvailableTimeData.cs (98%) rename src/Square/{ => Default}/Types/LoyaltyPromotionCreatedEvent.cs (97%) rename src/Square/{ => Default}/Types/LoyaltyPromotionCreatedEventData.cs (97%) rename src/Square/{ => Default}/Types/LoyaltyPromotionCreatedEventObject.cs (96%) rename src/Square/{ => Default}/Types/LoyaltyPromotionIncentive.cs (97%) rename src/Square/{ => Default}/Types/LoyaltyPromotionIncentivePointsAdditionData.cs (97%) rename src/Square/{ => Default}/Types/LoyaltyPromotionIncentivePointsMultiplierData.cs (98%) rename src/Square/{ => Default}/Types/LoyaltyPromotionIncentiveType.cs (98%) rename src/Square/{ => Default}/Types/LoyaltyPromotionStatus.cs (98%) rename src/Square/{ => Default}/Types/LoyaltyPromotionTriggerLimit.cs (97%) rename src/Square/{ => Default}/Types/LoyaltyPromotionTriggerLimitInterval.cs (98%) rename src/Square/{ => Default}/Types/LoyaltyPromotionUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/LoyaltyPromotionUpdatedEventData.cs (97%) rename src/Square/{ => Default}/Types/LoyaltyPromotionUpdatedEventObject.cs (96%) rename src/Square/{ => Default}/Types/LoyaltyReward.cs (98%) rename src/Square/{ => Default}/Types/LoyaltyRewardStatus.cs (98%) rename src/Square/{ => Default}/Types/MeasurementUnit.cs (98%) rename src/Square/{ => Default}/Types/MeasurementUnitArea.cs (99%) rename src/Square/{ => Default}/Types/MeasurementUnitCustom.cs (96%) rename src/Square/{ => Default}/Types/MeasurementUnitLength.cs (99%) rename src/Square/{ => Default}/Types/MeasurementUnitTime.cs (98%) rename src/Square/{ => Default}/Types/MeasurementUnitUnitType.cs (98%) rename src/Square/{ => Default}/Types/MeasurementUnitVolume.cs (99%) rename src/Square/{ => Default}/Types/MeasurementUnitWeight.cs (98%) rename src/Square/{ => Default}/Types/Merchant.cs (98%) rename src/Square/{ => Default}/Types/MerchantCustomAttributeDefinitionOwnedCreatedEvent.cs (98%) rename src/Square/{ => Default}/Types/MerchantCustomAttributeDefinitionOwnedDeletedEvent.cs (98%) rename src/Square/{ => Default}/Types/MerchantCustomAttributeDefinitionOwnedUpdatedEvent.cs (98%) rename src/Square/{ => Default}/Types/MerchantCustomAttributeDefinitionVisibleCreatedEvent.cs (98%) rename src/Square/{ => Default}/Types/MerchantCustomAttributeDefinitionVisibleDeletedEvent.cs (98%) rename src/Square/{ => Default}/Types/MerchantCustomAttributeDefinitionVisibleUpdatedEvent.cs (98%) rename src/Square/{ => Default}/Types/MerchantCustomAttributeOwnedDeletedEvent.cs (98%) rename src/Square/{ => Default}/Types/MerchantCustomAttributeOwnedUpdatedEvent.cs (98%) rename src/Square/{ => Default}/Types/MerchantCustomAttributeVisibleDeletedEvent.cs (98%) rename src/Square/{ => Default}/Types/MerchantCustomAttributeVisibleUpdatedEvent.cs (98%) rename src/Square/{ => Default}/Types/MerchantSettingsUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/MerchantSettingsUpdatedEventData.cs (96%) rename src/Square/{ => Default}/Types/MerchantSettingsUpdatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/MerchantStatus.cs (98%) rename src/Square/{ => Default}/Types/ModifierLocationOverrides.cs (97%) rename src/Square/{ => Default}/Types/Money.cs (97%) rename src/Square/{ => Default}/Types/OauthAuthorizationRevokedEvent.cs (97%) rename src/Square/{ => Default}/Types/OauthAuthorizationRevokedEventData.cs (96%) rename src/Square/{ => Default}/Types/OauthAuthorizationRevokedEventObject.cs (95%) rename src/Square/{ => Default}/Types/OauthAuthorizationRevokedEventRevocationObject.cs (96%) rename src/Square/{ => Default}/Types/OauthAuthorizationRevokedEventRevokerType.cs (98%) rename src/Square/{ => Default}/Types/ObtainTokenResponse.cs (99%) rename src/Square/{ => Default}/Types/OfflinePaymentDetails.cs (96%) rename src/Square/{ => Default}/Types/Order.cs (99%) rename src/Square/{ => Default}/Types/OrderCardSurchargeTreatmentType.cs (98%) rename src/Square/{ => Default}/Types/OrderCreated.cs (97%) rename src/Square/{ => Default}/Types/OrderCreatedEvent.cs (97%) rename src/Square/{ => Default}/Types/OrderCreatedEventData.cs (96%) rename src/Square/{ => Default}/Types/OrderCreatedObject.cs (95%) rename src/Square/{ => Default}/Types/OrderCustomAttributeDefinitionOwnedCreatedEvent.cs (97%) rename src/Square/{ => Default}/Types/OrderCustomAttributeDefinitionOwnedDeletedEvent.cs (97%) rename src/Square/{ => Default}/Types/OrderCustomAttributeDefinitionOwnedUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/OrderCustomAttributeDefinitionVisibleCreatedEvent.cs (97%) rename src/Square/{ => Default}/Types/OrderCustomAttributeDefinitionVisibleDeletedEvent.cs (97%) rename src/Square/{ => Default}/Types/OrderCustomAttributeDefinitionVisibleUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/OrderCustomAttributeOwnedDeletedEvent.cs (97%) rename src/Square/{ => Default}/Types/OrderCustomAttributeOwnedUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/OrderCustomAttributeVisibleDeletedEvent.cs (97%) rename src/Square/{ => Default}/Types/OrderCustomAttributeVisibleUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/OrderEntry.cs (97%) rename src/Square/{ => Default}/Types/OrderFulfillmentDeliveryDetailsScheduleType.cs (98%) rename src/Square/{ => Default}/Types/OrderFulfillmentFulfillmentLineItemApplication.cs (98%) rename src/Square/{ => Default}/Types/OrderFulfillmentPickupDetailsScheduleType.cs (98%) rename src/Square/{ => Default}/Types/OrderFulfillmentState.cs (98%) rename src/Square/{ => Default}/Types/OrderFulfillmentType.cs (98%) rename src/Square/{ => Default}/Types/OrderFulfillmentUpdated.cs (98%) rename src/Square/{ => Default}/Types/OrderFulfillmentUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/OrderFulfillmentUpdatedEventData.cs (96%) rename src/Square/{ => Default}/Types/OrderFulfillmentUpdatedObject.cs (95%) rename src/Square/{ => Default}/Types/OrderFulfillmentUpdatedUpdate.cs (97%) rename src/Square/{ => Default}/Types/OrderLineItem.cs (99%) rename src/Square/{ => Default}/Types/OrderLineItemAppliedDiscount.cs (97%) rename src/Square/{ => Default}/Types/OrderLineItemAppliedServiceCharge.cs (97%) rename src/Square/{ => Default}/Types/OrderLineItemAppliedTax.cs (98%) rename src/Square/{ => Default}/Types/OrderLineItemDiscount.cs (99%) rename src/Square/{ => Default}/Types/OrderLineItemDiscountScope.cs (98%) rename src/Square/{ => Default}/Types/OrderLineItemDiscountType.cs (98%) rename src/Square/{ => Default}/Types/OrderLineItemItemType.cs (98%) rename src/Square/{ => Default}/Types/OrderLineItemModifier.cs (99%) rename src/Square/{ => Default}/Types/OrderLineItemPricingBlocklists.cs (98%) rename src/Square/{ => Default}/Types/OrderLineItemPricingBlocklistsBlockedDiscount.cs (97%) rename src/Square/{ => Default}/Types/OrderLineItemPricingBlocklistsBlockedServiceCharge.cs (97%) rename src/Square/{ => Default}/Types/OrderLineItemPricingBlocklistsBlockedTax.cs (97%) rename src/Square/{ => Default}/Types/OrderLineItemTax.cs (99%) rename src/Square/{ => Default}/Types/OrderLineItemTaxScope.cs (98%) rename src/Square/{ => Default}/Types/OrderLineItemTaxType.cs (98%) rename src/Square/{ => Default}/Types/OrderMoneyAmounts.cs (97%) rename src/Square/{ => Default}/Types/OrderPricingOptions.cs (97%) rename src/Square/{ => Default}/Types/OrderQuantityUnit.cs (98%) rename src/Square/{ => Default}/Types/OrderReturn.cs (98%) rename src/Square/{ => Default}/Types/OrderReturnDiscount.cs (99%) rename src/Square/{ => Default}/Types/OrderReturnLineItem.cs (99%) rename src/Square/{ => Default}/Types/OrderReturnLineItemModifier.cs (98%) rename src/Square/{ => Default}/Types/OrderReturnServiceCharge.cs (99%) rename src/Square/{ => Default}/Types/OrderReturnTax.cs (98%) rename src/Square/{ => Default}/Types/OrderReturnTip.cs (97%) rename src/Square/{ => Default}/Types/OrderReward.cs (96%) rename src/Square/{ => Default}/Types/OrderRoundingAdjustment.cs (97%) rename src/Square/{ => Default}/Types/OrderServiceCharge.cs (99%) rename src/Square/{ => Default}/Types/OrderServiceChargeCalculationPhase.cs (98%) rename src/Square/{ => Default}/Types/OrderServiceChargeScope.cs (98%) rename src/Square/{ => Default}/Types/OrderServiceChargeTreatmentType.cs (98%) rename src/Square/{ => Default}/Types/OrderServiceChargeType.cs (98%) rename src/Square/{ => Default}/Types/OrderSource.cs (96%) rename src/Square/{ => Default}/Types/OrderState.cs (98%) rename src/Square/{ => Default}/Types/OrderUpdated.cs (98%) rename src/Square/{ => Default}/Types/OrderUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/OrderUpdatedEventData.cs (96%) rename src/Square/{ => Default}/Types/OrderUpdatedObject.cs (95%) rename src/Square/{ => Default}/Types/PauseSubscriptionResponse.cs (97%) rename src/Square/{ => Default}/Types/PayOrderResponse.cs (96%) rename src/Square/{ => Default}/Types/Payment.cs (99%) rename src/Square/{ => Default}/Types/PaymentBalanceActivityAppFeeRefundDetail.cs (96%) rename src/Square/{ => Default}/Types/PaymentBalanceActivityAppFeeRevenueDetail.cs (96%) rename src/Square/{ => Default}/Types/PaymentBalanceActivityAutomaticSavingsDetail.cs (96%) rename src/Square/{ => Default}/Types/PaymentBalanceActivityAutomaticSavingsReversedDetail.cs (96%) rename src/Square/{ => Default}/Types/PaymentBalanceActivityChargeDetail.cs (95%) rename src/Square/{ => Default}/Types/PaymentBalanceActivityDepositFeeDetail.cs (95%) rename src/Square/{ => Default}/Types/PaymentBalanceActivityDepositFeeReversedDetail.cs (95%) rename src/Square/{ => Default}/Types/PaymentBalanceActivityDisputeDetail.cs (96%) rename src/Square/{ => Default}/Types/PaymentBalanceActivityFeeDetail.cs (96%) rename src/Square/{ => Default}/Types/PaymentBalanceActivityFreeProcessingDetail.cs (95%) rename src/Square/{ => Default}/Types/PaymentBalanceActivityHoldAdjustmentDetail.cs (95%) rename src/Square/{ => Default}/Types/PaymentBalanceActivityOpenDisputeDetail.cs (96%) rename src/Square/{ => Default}/Types/PaymentBalanceActivityOtherAdjustmentDetail.cs (95%) rename src/Square/{ => Default}/Types/PaymentBalanceActivityOtherDetail.cs (95%) rename src/Square/{ => Default}/Types/PaymentBalanceActivityRefundDetail.cs (96%) rename src/Square/{ => Default}/Types/PaymentBalanceActivityReleaseAdjustmentDetail.cs (95%) rename src/Square/{ => Default}/Types/PaymentBalanceActivityReserveHoldDetail.cs (95%) rename src/Square/{ => Default}/Types/PaymentBalanceActivityReserveReleaseDetail.cs (95%) rename src/Square/{ => Default}/Types/PaymentBalanceActivitySquareCapitalPaymentDetail.cs (95%) rename src/Square/{ => Default}/Types/PaymentBalanceActivitySquareCapitalReversedPaymentDetail.cs (95%) rename src/Square/{ => Default}/Types/PaymentBalanceActivitySquarePayrollTransferDetail.cs (95%) rename src/Square/{ => Default}/Types/PaymentBalanceActivitySquarePayrollTransferReversedDetail.cs (95%) rename src/Square/{ => Default}/Types/PaymentBalanceActivityTaxOnFeeDetail.cs (96%) rename src/Square/{ => Default}/Types/PaymentBalanceActivityThirdPartyFeeDetail.cs (95%) rename src/Square/{ => Default}/Types/PaymentBalanceActivityThirdPartyFeeRefundDetail.cs (96%) rename src/Square/{ => Default}/Types/PaymentCreatedEvent.cs (97%) rename src/Square/{ => Default}/Types/PaymentCreatedEventData.cs (96%) rename src/Square/{ => Default}/Types/PaymentCreatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/PaymentLink.cs (98%) rename src/Square/{ => Default}/Types/PaymentLinkRelatedResources.cs (96%) rename src/Square/{ => Default}/Types/PaymentOptions.cs (98%) rename src/Square/{ => Default}/Types/PaymentOptionsDelayAction.cs (98%) rename src/Square/{ => Default}/Types/PaymentRefund.cs (99%) rename src/Square/{ => Default}/Types/PaymentUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/PaymentUpdatedEventData.cs (96%) rename src/Square/{ => Default}/Types/PaymentUpdatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/Payout.cs (98%) rename src/Square/{ => Default}/Types/PayoutEntry.cs (99%) rename src/Square/{ => Default}/Types/PayoutFailedEvent.cs (97%) rename src/Square/{ => Default}/Types/PayoutFailedEventData.cs (96%) rename src/Square/{ => Default}/Types/PayoutFailedEventObject.cs (95%) rename src/Square/{ => Default}/Types/PayoutFee.cs (97%) rename src/Square/{ => Default}/Types/PayoutFeeType.cs (98%) rename src/Square/{ => Default}/Types/PayoutPaidEvent.cs (97%) rename src/Square/{ => Default}/Types/PayoutPaidEventData.cs (96%) rename src/Square/{ => Default}/Types/PayoutPaidEventObject.cs (95%) rename src/Square/{ => Default}/Types/PayoutSentEvent.cs (97%) rename src/Square/{ => Default}/Types/PayoutSentEventData.cs (96%) rename src/Square/{ => Default}/Types/PayoutSentEventObject.cs (95%) rename src/Square/{ => Default}/Types/PayoutStatus.cs (98%) rename src/Square/{ => Default}/Types/PayoutType.cs (98%) rename src/Square/{ => Default}/Types/Phase.cs (97%) rename src/Square/{ => Default}/Types/PhaseInput.cs (96%) rename src/Square/{ => Default}/Types/PrePopulatedData.cs (97%) rename src/Square/{ => Default}/Types/ProcessingFee.cs (97%) rename src/Square/{ => Default}/Types/Product.cs (98%) rename src/Square/{ => Default}/Types/PublishInvoiceResponse.cs (96%) rename src/Square/{ => Default}/Types/PublishScheduledShiftResponse.cs (96%) rename src/Square/{ => Default}/Types/QrCodeOptions.cs (97%) rename src/Square/{ => Default}/Types/QuickPay.cs (97%) rename src/Square/{ => Default}/Types/Range.cs (96%) rename src/Square/{ => Default}/Types/ReceiptOptions.cs (97%) rename src/Square/{ => Default}/Types/ReceiveTransferOrderResponse.cs (96%) rename src/Square/{ => Default}/Types/RedeemLoyaltyRewardResponse.cs (96%) rename src/Square/{ => Default}/Types/Reference.cs (96%) rename src/Square/{ => Default}/Types/ReferenceType.cs (99%) rename src/Square/{ => Default}/Types/Refund.cs (98%) rename src/Square/{ => Default}/Types/RefundCreatedEvent.cs (97%) rename src/Square/{ => Default}/Types/RefundCreatedEventData.cs (96%) rename src/Square/{ => Default}/Types/RefundCreatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/RefundPaymentResponse.cs (96%) rename src/Square/{ => Default}/Types/RefundStatus.cs (98%) rename src/Square/{ => Default}/Types/RefundUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/RefundUpdatedEventData.cs (96%) rename src/Square/{ => Default}/Types/RefundUpdatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/RegisterDomainResponse.cs (97%) rename src/Square/{ => Default}/Types/RegisterDomainResponseStatus.cs (98%) rename src/Square/{ => Default}/Types/RemoveGroupFromCustomerResponse.cs (96%) rename src/Square/{ => Default}/Types/ResumeSubscriptionResponse.cs (97%) rename src/Square/{ => Default}/Types/RetrieveBookingCustomAttributeDefinitionResponse.cs (97%) rename src/Square/{ => Default}/Types/RetrieveBookingCustomAttributeResponse.cs (97%) rename src/Square/{ => Default}/Types/RetrieveChannelResponse.cs (96%) rename src/Square/{ => Default}/Types/RetrieveJobResponse.cs (96%) rename src/Square/{ => Default}/Types/RetrieveLocationBookingProfileResponse.cs (96%) rename src/Square/{ => Default}/Types/RetrieveLocationCustomAttributeDefinitionResponse.cs (97%) rename src/Square/{ => Default}/Types/RetrieveLocationCustomAttributeResponse.cs (97%) rename src/Square/{ => Default}/Types/RetrieveLocationSettingsResponse.cs (96%) rename src/Square/{ => Default}/Types/RetrieveMerchantCustomAttributeDefinitionResponse.cs (97%) rename src/Square/{ => Default}/Types/RetrieveMerchantCustomAttributeResponse.cs (97%) rename src/Square/{ => Default}/Types/RetrieveMerchantSettingsResponse.cs (96%) rename src/Square/{ => Default}/Types/RetrieveOrderCustomAttributeDefinitionResponse.cs (96%) rename src/Square/{ => Default}/Types/RetrieveOrderCustomAttributeResponse.cs (96%) rename src/Square/{ => Default}/Types/RetrieveScheduledShiftResponse.cs (96%) rename src/Square/{ => Default}/Types/RetrieveTimecardResponse.cs (96%) rename src/Square/{ => Default}/Types/RetrieveTokenStatusResponse.cs (97%) rename src/Square/{ => Default}/Types/RetrieveTransferOrderResponse.cs (96%) rename src/Square/{ => Default}/Types/RevokeTokenResponse.cs (96%) rename src/Square/{ => Default}/Types/RiskEvaluation.cs (97%) rename src/Square/{ => Default}/Types/RiskEvaluationRiskLevel.cs (98%) rename src/Square/{ => Default}/Types/SaveCardOptions.cs (97%) rename src/Square/{ => Default}/Types/ScheduledShift.cs (98%) rename src/Square/{ => Default}/Types/ScheduledShiftDetails.cs (98%) rename src/Square/{ => Default}/Types/ScheduledShiftFilter.cs (98%) rename src/Square/{ => Default}/Types/ScheduledShiftFilterAssignmentStatus.cs (98%) rename src/Square/{ => Default}/Types/ScheduledShiftFilterScheduledShiftStatus.cs (98%) rename src/Square/{ => Default}/Types/ScheduledShiftNotificationAudience.cs (98%) rename src/Square/{ => Default}/Types/ScheduledShiftQuery.cs (96%) rename src/Square/{ => Default}/Types/ScheduledShiftSort.cs (97%) rename src/Square/{ => Default}/Types/ScheduledShiftSortField.cs (98%) rename src/Square/{ => Default}/Types/ScheduledShiftWorkday.cs (97%) rename src/Square/{ => Default}/Types/ScheduledShiftWorkdayMatcher.cs (98%) rename src/Square/{ => Default}/Types/SearchAvailabilityFilter.cs (98%) rename src/Square/{ => Default}/Types/SearchAvailabilityQuery.cs (96%) rename src/Square/{ => Default}/Types/SearchAvailabilityResponse.cs (96%) rename src/Square/{ => Default}/Types/SearchCatalogItemsRequestStockLevel.cs (98%) rename src/Square/{ => Default}/Types/SearchCatalogItemsResponse.cs (97%) rename src/Square/{ => Default}/Types/SearchCatalogObjectsResponse.cs (97%) rename src/Square/{ => Default}/Types/SearchCustomersResponse.cs (98%) rename src/Square/{ => Default}/Types/SearchEventsFilter.cs (97%) rename src/Square/{ => Default}/Types/SearchEventsQuery.cs (96%) rename src/Square/{ => Default}/Types/SearchEventsResponse.cs (97%) rename src/Square/{ => Default}/Types/SearchEventsSort.cs (96%) rename src/Square/{ => Default}/Types/SearchInvoicesResponse.cs (97%) rename src/Square/{ => Default}/Types/SearchLoyaltyAccountsRequestLoyaltyAccountQuery.cs (97%) rename src/Square/{ => Default}/Types/SearchLoyaltyAccountsResponse.cs (97%) rename src/Square/{ => Default}/Types/SearchLoyaltyEventsResponse.cs (97%) rename src/Square/{ => Default}/Types/SearchLoyaltyRewardsRequestLoyaltyRewardQuery.cs (96%) rename src/Square/{ => Default}/Types/SearchLoyaltyRewardsResponse.cs (97%) rename src/Square/{ => Default}/Types/SearchOrdersCustomerFilter.cs (96%) rename src/Square/{ => Default}/Types/SearchOrdersDateTimeFilter.cs (98%) rename src/Square/{ => Default}/Types/SearchOrdersFilter.cs (98%) rename src/Square/{ => Default}/Types/SearchOrdersFulfillmentFilter.cs (97%) rename src/Square/{ => Default}/Types/SearchOrdersQuery.cs (96%) rename src/Square/{ => Default}/Types/SearchOrdersResponse.cs (98%) rename src/Square/{ => Default}/Types/SearchOrdersSort.cs (97%) rename src/Square/{ => Default}/Types/SearchOrdersSortField.cs (98%) rename src/Square/{ => Default}/Types/SearchOrdersSourceFilter.cs (97%) rename src/Square/{ => Default}/Types/SearchOrdersStateFilter.cs (96%) rename src/Square/{ => Default}/Types/SearchScheduledShiftsResponse.cs (97%) rename src/Square/{ => Default}/Types/SearchShiftsResponse.cs (97%) rename src/Square/{ => Default}/Types/SearchSubscriptionsFilter.cs (97%) rename src/Square/{ => Default}/Types/SearchSubscriptionsQuery.cs (95%) rename src/Square/{ => Default}/Types/SearchSubscriptionsResponse.cs (97%) rename src/Square/{ => Default}/Types/SearchTeamMembersFilter.cs (97%) rename src/Square/{ => Default}/Types/SearchTeamMembersQuery.cs (95%) rename src/Square/{ => Default}/Types/SearchTeamMembersResponse.cs (97%) rename src/Square/{ => Default}/Types/SearchTerminalActionsResponse.cs (97%) rename src/Square/{ => Default}/Types/SearchTerminalCheckoutsResponse.cs (97%) rename src/Square/{ => Default}/Types/SearchTerminalRefundsResponse.cs (97%) rename src/Square/{ => Default}/Types/SearchTimecardsResponse.cs (97%) rename src/Square/{ => Default}/Types/SearchTransferOrdersResponse.cs (96%) rename src/Square/{ => Default}/Types/SearchVendorsRequestFilter.cs (96%) rename src/Square/{ => Default}/Types/SearchVendorsRequestSort.cs (96%) rename src/Square/{ => Default}/Types/SearchVendorsRequestSortField.cs (98%) rename src/Square/{ => Default}/Types/SearchVendorsResponse.cs (97%) rename src/Square/{ => Default}/Types/SegmentFilter.cs (97%) rename src/Square/{ => Default}/Types/SelectOption.cs (96%) rename src/Square/{ => Default}/Types/SelectOptions.cs (97%) rename src/Square/{ => Default}/Types/Shift.cs (99%) rename src/Square/{ => Default}/Types/ShiftFilter.cs (98%) rename src/Square/{ => Default}/Types/ShiftFilterStatus.cs (98%) rename src/Square/{ => Default}/Types/ShiftQuery.cs (96%) rename src/Square/{ => Default}/Types/ShiftSort.cs (97%) rename src/Square/{ => Default}/Types/ShiftSortField.cs (98%) rename src/Square/{ => Default}/Types/ShiftStatus.cs (98%) rename src/Square/{ => Default}/Types/ShiftWage.cs (97%) rename src/Square/{ => Default}/Types/ShiftWorkday.cs (97%) rename src/Square/{ => Default}/Types/ShiftWorkdayMatcher.cs (98%) rename src/Square/{ => Default}/Types/ShippingFee.cs (95%) rename src/Square/{ => Default}/Types/SignatureImage.cs (96%) rename src/Square/{ => Default}/Types/SignatureOptions.cs (96%) rename src/Square/{ => Default}/Types/Site.cs (97%) rename src/Square/{ => Default}/Types/Snippet.cs (97%) rename src/Square/{ => Default}/Types/SortOrder.cs (98%) rename src/Square/{ => Default}/Types/SourceApplication.cs (97%) rename src/Square/{ => Default}/Types/SquareAccountDetails.cs (96%) rename src/Square/{ => Default}/Types/StandardUnitDescription.cs (97%) rename src/Square/{ => Default}/Types/StandardUnitDescriptionGroup.cs (96%) rename src/Square/{ => Default}/Types/StartTransferOrderResponse.cs (96%) rename src/Square/{ => Default}/Types/SubmitEvidenceResponse.cs (96%) rename src/Square/{ => Default}/Types/Subscription.cs (99%) rename src/Square/{ => Default}/Types/SubscriptionAction.cs (98%) rename src/Square/{ => Default}/Types/SubscriptionActionType.cs (98%) rename src/Square/{ => Default}/Types/SubscriptionCadence.cs (99%) rename src/Square/{ => Default}/Types/SubscriptionCreatedEvent.cs (97%) rename src/Square/{ => Default}/Types/SubscriptionCreatedEventData.cs (96%) rename src/Square/{ => Default}/Types/SubscriptionCreatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/SubscriptionEvent.cs (98%) rename src/Square/{ => Default}/Types/SubscriptionEventInfo.cs (96%) rename src/Square/{ => Default}/Types/SubscriptionEventInfoCode.cs (98%) rename src/Square/{ => Default}/Types/SubscriptionEventSubscriptionEventType.cs (99%) rename src/Square/{ => Default}/Types/SubscriptionPhase.cs (98%) rename src/Square/{ => Default}/Types/SubscriptionPricing.cs (97%) rename src/Square/{ => Default}/Types/SubscriptionPricingType.cs (98%) rename src/Square/{ => Default}/Types/SubscriptionSource.cs (96%) rename src/Square/{ => Default}/Types/SubscriptionStatus.cs (98%) rename src/Square/{ => Default}/Types/SubscriptionTestResult.cs (98%) rename src/Square/{ => Default}/Types/SubscriptionUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/SubscriptionUpdatedEventData.cs (96%) rename src/Square/{ => Default}/Types/SubscriptionUpdatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/SwapPlanResponse.cs (97%) rename src/Square/{ => Default}/Types/TaxCalculationPhase.cs (98%) rename src/Square/{ => Default}/Types/TaxIds.cs (98%) rename src/Square/{ => Default}/Types/TaxInclusionType.cs (98%) rename src/Square/{ => Default}/Types/TeamMember.cs (98%) rename src/Square/{ => Default}/Types/TeamMemberAssignedLocations.cs (97%) rename src/Square/{ => Default}/Types/TeamMemberAssignedLocationsAssignmentType.cs (98%) rename src/Square/{ => Default}/Types/TeamMemberBookingProfile.cs (98%) rename src/Square/{ => Default}/Types/TeamMemberCreatedEvent.cs (97%) rename src/Square/{ => Default}/Types/TeamMemberCreatedEventData.cs (96%) rename src/Square/{ => Default}/Types/TeamMemberCreatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/TeamMemberInvitationStatus.cs (98%) rename src/Square/{ => Default}/Types/TeamMemberStatus.cs (98%) rename src/Square/{ => Default}/Types/TeamMemberUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/TeamMemberUpdatedEventData.cs (96%) rename src/Square/{ => Default}/Types/TeamMemberUpdatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/TeamMemberWage.cs (98%) rename src/Square/{ => Default}/Types/TeamMemberWageSettingUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/TeamMemberWageSettingUpdatedEventData.cs (96%) rename src/Square/{ => Default}/Types/TeamMemberWageSettingUpdatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/Tender.cs (99%) rename src/Square/{ => Default}/Types/TenderBankAccountDetails.cs (96%) rename src/Square/{ => Default}/Types/TenderBankAccountDetailsStatus.cs (98%) rename src/Square/{ => Default}/Types/TenderBuyNowPayLaterDetails.cs (97%) rename src/Square/{ => Default}/Types/TenderBuyNowPayLaterDetailsBrand.cs (98%) rename src/Square/{ => Default}/Types/TenderBuyNowPayLaterDetailsStatus.cs (98%) rename src/Square/{ => Default}/Types/TenderCardDetails.cs (97%) rename src/Square/{ => Default}/Types/TenderCardDetailsEntryMethod.cs (98%) rename src/Square/{ => Default}/Types/TenderCardDetailsStatus.cs (98%) rename src/Square/{ => Default}/Types/TenderCashDetails.cs (96%) rename src/Square/{ => Default}/Types/TenderSquareAccountDetails.cs (96%) rename src/Square/{ => Default}/Types/TenderSquareAccountDetailsStatus.cs (98%) rename src/Square/{ => Default}/Types/TenderType.cs (99%) rename src/Square/{ => Default}/Types/TerminalAction.cs (99%) rename src/Square/{ => Default}/Types/TerminalActionActionType.cs (98%) rename src/Square/{ => Default}/Types/TerminalActionCreatedEvent.cs (97%) rename src/Square/{ => Default}/Types/TerminalActionCreatedEventData.cs (96%) rename src/Square/{ => Default}/Types/TerminalActionCreatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/TerminalActionQuery.cs (96%) rename src/Square/{ => Default}/Types/TerminalActionQueryFilter.cs (97%) rename src/Square/{ => Default}/Types/TerminalActionQuerySort.cs (96%) rename src/Square/{ => Default}/Types/TerminalActionUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/TerminalActionUpdatedEventData.cs (96%) rename src/Square/{ => Default}/Types/TerminalActionUpdatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/TerminalCheckout.cs (99%) rename src/Square/{ => Default}/Types/TerminalCheckoutCreatedEvent.cs (97%) rename src/Square/{ => Default}/Types/TerminalCheckoutCreatedEventData.cs (96%) rename src/Square/{ => Default}/Types/TerminalCheckoutCreatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/TerminalCheckoutQuery.cs (96%) rename src/Square/{ => Default}/Types/TerminalCheckoutQueryFilter.cs (97%) rename src/Square/{ => Default}/Types/TerminalCheckoutQuerySort.cs (95%) rename src/Square/{ => Default}/Types/TerminalCheckoutUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/TerminalCheckoutUpdatedEventData.cs (96%) rename src/Square/{ => Default}/Types/TerminalCheckoutUpdatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/TerminalRefund.cs (99%) rename src/Square/{ => Default}/Types/TerminalRefundCreatedEvent.cs (97%) rename src/Square/{ => Default}/Types/TerminalRefundCreatedEventData.cs (96%) rename src/Square/{ => Default}/Types/TerminalRefundCreatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/TerminalRefundQuery.cs (96%) rename src/Square/{ => Default}/Types/TerminalRefundQueryFilter.cs (97%) rename src/Square/{ => Default}/Types/TerminalRefundQuerySort.cs (95%) rename src/Square/{ => Default}/Types/TerminalRefundUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/TerminalRefundUpdatedEventData.cs (96%) rename src/Square/{ => Default}/Types/TerminalRefundUpdatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/TestWebhookSubscriptionResponse.cs (98%) rename src/Square/{ => Default}/Types/TimeRange.cs (97%) rename src/Square/{ => Default}/Types/Timecard.cs (99%) rename src/Square/{ => Default}/Types/TimecardFilter.cs (98%) rename src/Square/{ => Default}/Types/TimecardFilterStatus.cs (98%) rename src/Square/{ => Default}/Types/TimecardQuery.cs (96%) rename src/Square/{ => Default}/Types/TimecardSort.cs (96%) rename src/Square/{ => Default}/Types/TimecardSortField.cs (98%) rename src/Square/{ => Default}/Types/TimecardStatus.cs (98%) rename src/Square/{ => Default}/Types/TimecardWage.cs (97%) rename src/Square/{ => Default}/Types/TimecardWorkday.cs (97%) rename src/Square/{ => Default}/Types/TimecardWorkdayMatcher.cs (98%) rename src/Square/{ => Default}/Types/TipSettings.cs (98%) rename src/Square/{ => Default}/Types/Transaction.cs (98%) rename src/Square/{ => Default}/Types/TransactionProduct.cs (98%) rename src/Square/{ => Default}/Types/TransactionType.cs (98%) rename src/Square/{ => Default}/Types/TransferOrder.cs (99%) rename src/Square/{ => Default}/Types/TransferOrderCreatedEvent.cs (97%) rename src/Square/{ => Default}/Types/TransferOrderCreatedEventData.cs (96%) rename src/Square/{ => Default}/Types/TransferOrderCreatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/TransferOrderDeletedEvent.cs (97%) rename src/Square/{ => Default}/Types/TransferOrderDeletedEventData.cs (96%) rename src/Square/{ => Default}/Types/TransferOrderFilter.cs (97%) rename src/Square/{ => Default}/Types/TransferOrderGoodsReceipt.cs (98%) rename src/Square/{ => Default}/Types/TransferOrderGoodsReceiptLineItem.cs (98%) rename src/Square/{ => Default}/Types/TransferOrderLine.cs (98%) rename src/Square/{ => Default}/Types/TransferOrderQuery.cs (96%) rename src/Square/{ => Default}/Types/TransferOrderSort.cs (96%) rename src/Square/{ => Default}/Types/TransferOrderSortField.cs (98%) rename src/Square/{ => Default}/Types/TransferOrderStatus.cs (98%) rename src/Square/{ => Default}/Types/TransferOrderUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/TransferOrderUpdatedEventData.cs (96%) rename src/Square/{ => Default}/Types/TransferOrderUpdatedEventObject.cs (95%) rename src/Square/{ => Default}/Types/UnlinkCustomerFromGiftCardResponse.cs (97%) rename src/Square/{ => Default}/Types/UpdateBookingCustomAttributeDefinitionResponse.cs (97%) rename src/Square/{ => Default}/Types/UpdateBookingResponse.cs (96%) rename src/Square/{ => Default}/Types/UpdateBreakTypeResponse.cs (96%) rename src/Square/{ => Default}/Types/UpdateCatalogImageRequest.cs (96%) rename src/Square/{ => Default}/Types/UpdateCatalogImageResponse.cs (96%) rename src/Square/{ => Default}/Types/UpdateCustomerCustomAttributeDefinitionResponse.cs (97%) rename src/Square/{ => Default}/Types/UpdateCustomerGroupResponse.cs (96%) rename src/Square/{ => Default}/Types/UpdateCustomerResponse.cs (97%) rename src/Square/{ => Default}/Types/UpdateInvoiceResponse.cs (96%) rename src/Square/{ => Default}/Types/UpdateItemModifierListsResponse.cs (96%) rename src/Square/{ => Default}/Types/UpdateItemTaxesResponse.cs (96%) rename src/Square/{ => Default}/Types/UpdateJobResponse.cs (96%) rename src/Square/{ => Default}/Types/UpdateLocationCustomAttributeDefinitionResponse.cs (97%) rename src/Square/{ => Default}/Types/UpdateLocationResponse.cs (96%) rename src/Square/{ => Default}/Types/UpdateLocationSettingsResponse.cs (96%) rename src/Square/{ => Default}/Types/UpdateMerchantCustomAttributeDefinitionResponse.cs (97%) rename src/Square/{ => Default}/Types/UpdateMerchantSettingsResponse.cs (96%) rename src/Square/{ => Default}/Types/UpdateOrderCustomAttributeDefinitionResponse.cs (96%) rename src/Square/{ => Default}/Types/UpdateOrderResponse.cs (96%) rename src/Square/{ => Default}/Types/UpdatePaymentLinkResponse.cs (96%) rename src/Square/{ => Default}/Types/UpdatePaymentResponse.cs (96%) rename src/Square/{ => Default}/Types/UpdateScheduledShiftResponse.cs (97%) rename src/Square/{ => Default}/Types/UpdateShiftResponse.cs (96%) rename src/Square/{ => Default}/Types/UpdateSubscriptionResponse.cs (96%) rename src/Square/{ => Default}/Types/UpdateTeamMemberRequest.cs (96%) rename src/Square/{ => Default}/Types/UpdateTeamMemberResponse.cs (96%) rename src/Square/{ => Default}/Types/UpdateTimecardResponse.cs (96%) rename src/Square/{ => Default}/Types/UpdateTransferOrderData.cs (98%) rename src/Square/{ => Default}/Types/UpdateTransferOrderLineData.cs (97%) rename src/Square/{ => Default}/Types/UpdateTransferOrderResponse.cs (96%) rename src/Square/{ => Default}/Types/UpdateVendorRequest.cs (97%) rename src/Square/{ => Default}/Types/UpdateVendorResponse.cs (96%) rename src/Square/{ => Default}/Types/UpdateWageSettingResponse.cs (96%) rename src/Square/{ => Default}/Types/UpdateWebhookSubscriptionResponse.cs (97%) rename src/Square/{ => Default}/Types/UpdateWebhookSubscriptionSignatureKeyResponse.cs (97%) rename src/Square/{ => Default}/Types/UpdateWorkweekConfigResponse.cs (96%) rename src/Square/{ => Default}/Types/UpsertBookingCustomAttributeResponse.cs (96%) rename src/Square/{ => Default}/Types/UpsertCatalogObjectResponse.cs (96%) rename src/Square/{ => Default}/Types/UpsertCustomerCustomAttributeResponse.cs (96%) rename src/Square/{ => Default}/Types/UpsertLocationCustomAttributeResponse.cs (96%) rename src/Square/{ => Default}/Types/UpsertMerchantCustomAttributeResponse.cs (96%) rename src/Square/{ => Default}/Types/UpsertOrderCustomAttributeResponse.cs (96%) rename src/Square/{ => Default}/Types/UpsertSnippetResponse.cs (96%) rename src/Square/{ => Default}/Types/V1Money.cs (96%) rename src/Square/{ => Default}/Types/V1Order.cs (99%) rename src/Square/{ => Default}/Types/V1OrderHistoryEntry.cs (96%) rename src/Square/{ => Default}/Types/V1OrderHistoryEntryAction.cs (98%) rename src/Square/{ => Default}/Types/V1OrderState.cs (98%) rename src/Square/{ => Default}/Types/V1Tender.cs (99%) rename src/Square/{ => Default}/Types/V1TenderCardBrand.cs (99%) rename src/Square/{ => Default}/Types/V1TenderEntryMethod.cs (98%) rename src/Square/{ => Default}/Types/V1TenderType.cs (98%) rename src/Square/{ => Default}/Types/V1UpdateOrderRequestAction.cs (98%) rename src/Square/{ => Default}/Types/Vendor.cs (98%) rename src/Square/{ => Default}/Types/VendorContact.cs (98%) rename src/Square/{ => Default}/Types/VendorCreatedEvent.cs (97%) rename src/Square/{ => Default}/Types/VendorCreatedEventData.cs (96%) rename src/Square/{ => Default}/Types/VendorCreatedEventObject.cs (96%) rename src/Square/{ => Default}/Types/VendorStatus.cs (98%) rename src/Square/{ => Default}/Types/VendorUpdatedEvent.cs (97%) rename src/Square/{ => Default}/Types/VendorUpdatedEventData.cs (96%) rename src/Square/{ => Default}/Types/VendorUpdatedEventObject.cs (96%) rename src/Square/{ => Default}/Types/VisibilityFilter.cs (98%) rename src/Square/{ => Default}/Types/VoidTransactionResponse.cs (96%) rename src/Square/{ => Default}/Types/WageSetting.cs (98%) rename src/Square/{ => Default}/Types/WebhookSubscription.cs (98%) rename src/Square/{ => Default}/Types/Weekday.cs (98%) rename src/Square/{ => Default}/Types/WorkweekConfig.cs (98%) rename src/Square/{ => Default}/V1Transactions/IV1TransactionsClient.cs (96%) rename src/Square/{ => Default}/V1Transactions/Requests/V1ListOrdersRequest.cs (95%) rename src/Square/{ => Default}/V1Transactions/Requests/V1RetrieveOrderRequest.cs (94%) rename src/Square/{ => Default}/V1Transactions/Requests/V1UpdateOrderRequest.cs (97%) rename src/Square/{ => Default}/V1Transactions/V1TransactionsClient.cs (96%) rename src/Square/{ => Default}/Vendors/IVendorsClient.cs (98%) rename src/Square/{ => Default}/Vendors/Requests/BatchCreateVendorsRequest.cs (93%) rename src/Square/{ => Default}/Vendors/Requests/BatchGetVendorsRequest.cs (94%) rename src/Square/{ => Default}/Vendors/Requests/BatchUpdateVendorsRequest.cs (94%) rename src/Square/{ => Default}/Vendors/Requests/CreateVendorRequest.cs (95%) rename src/Square/{ => Default}/Vendors/Requests/GetVendorsRequest.cs (93%) rename src/Square/{ => Default}/Vendors/Requests/SearchVendorsRequest.cs (96%) rename src/Square/{ => Default}/Vendors/Requests/UpdateVendorsRequest.cs (92%) rename src/Square/{ => Default}/Vendors/VendorsClient.cs (97%) rename src/Square/{ => Default}/Webhooks/EventTypes/EventTypesClient.cs (90%) rename src/Square/{ => Default}/Webhooks/EventTypes/IEventTypesClient.cs (86%) rename src/Square/{ => Default}/Webhooks/EventTypes/Requests/ListEventTypesRequest.cs (92%) create mode 100644 src/Square/Default/Webhooks/IWebhooksClient.cs rename src/Square/{ => Default}/Webhooks/Subscriptions/ISubscriptionsClient.cs (97%) rename src/Square/{ => Default}/Webhooks/Subscriptions/Requests/CreateWebhookSubscriptionRequest.cs (92%) rename src/Square/{ => Default}/Webhooks/Subscriptions/Requests/DeleteSubscriptionsRequest.cs (91%) rename src/Square/{ => Default}/Webhooks/Subscriptions/Requests/GetSubscriptionsRequest.cs (91%) rename src/Square/{ => Default}/Webhooks/Subscriptions/Requests/ListSubscriptionsRequest.cs (96%) rename src/Square/{ => Default}/Webhooks/Subscriptions/Requests/TestWebhookSubscriptionRequest.cs (94%) rename src/Square/{ => Default}/Webhooks/Subscriptions/Requests/UpdateWebhookSubscriptionRequest.cs (91%) rename src/Square/{ => Default}/Webhooks/Subscriptions/Requests/UpdateWebhookSubscriptionSignatureKeyRequest.cs (94%) rename src/Square/{ => Default}/Webhooks/Subscriptions/SubscriptionsClient.cs (96%) rename src/Square/{ => Default}/Webhooks/WebhooksClient.cs (56%) delete mode 100644 src/Square/Merchants/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs delete mode 100644 src/Square/Mobile/IMobileClient.cs delete mode 100644 src/Square/Mobile/MobileClient.cs delete mode 100644 src/Square/Webhooks/IWebhooksClient.cs diff --git a/.fern/metadata.json b/.fern/metadata.json index 13a9367f..9fa46eac 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -1,5 +1,5 @@ { - "cliVersion": "3.38.0", + "cliVersion": "3.49.0", "generatorName": "fernapi/fern-csharp-sdk", "generatorVersion": "2.13.0", "generatorConfig": { @@ -10,10 +10,10 @@ "client-class-name": "SquareClient", "environment-class-name": "SquareEnvironment", "experimental-enable-forward-compatible-enums": true, - "explicit-namespaces": true, + "explicit-namespaces": false, "generate-mock-server-tests": true, "inline-path-parameters": true, "use-discriminated-unions": true }, - "sdkVersion": "43.0.0" + "sdkVersion": "43.0.1" } \ No newline at end of file diff --git a/reference.md b/reference.md index a1b42fa2..1a404e26 100644 --- a/reference.md +++ b/reference.md @@ -1,6 +1,6 @@ # Reference -## OAuth -
client.OAuth.RevokeTokenAsync(RevokeTokenRequest { ... }) -> RevokeTokenResponse +## Default OAuth +
client.Default.OAuth.RevokeTokenAsync(RevokeTokenRequest { ... }) -> RevokeTokenResponse
@@ -40,7 +40,7 @@ page for your application in the Developer Dashboard.
```csharp -await client.OAuth.RevokeTokenAsync( +await client.Default.OAuth.RevokeTokenAsync( new RevokeTokenRequest { ClientId = "CLIENT_ID", AccessToken = "ACCESS_TOKEN" } ); ``` @@ -69,7 +69,7 @@ await client.OAuth.RevokeTokenAsync(
-
client.OAuth.ObtainTokenAsync(ObtainTokenRequest { ... }) -> ObtainTokenResponse +
client.Default.OAuth.ObtainTokenAsync(ObtainTokenRequest { ... }) -> ObtainTokenResponse
@@ -116,7 +116,7 @@ Application clients should never interact directly with OAuth tokens.
```csharp -await client.OAuth.ObtainTokenAsync( +await client.Default.OAuth.ObtainTokenAsync( new ObtainTokenRequest { ClientId = "sq0idp-uaPHILoPzWZk3tlJqlML0g", @@ -151,7 +151,7 @@ await client.OAuth.ObtainTokenAsync(
-
client.OAuth.RetrieveTokenStatusAsync() -> RetrieveTokenStatusResponse +
client.Default.OAuth.RetrieveTokenStatusAsync() -> RetrieveTokenStatusResponse
@@ -191,7 +191,7 @@ If the access token is expired or not a valid access token, the endpoint returns
```csharp -await client.OAuth.RetrieveTokenStatusAsync(); +await client.Default.OAuth.RetrieveTokenStatusAsync(); ```
@@ -203,7 +203,7 @@ await client.OAuth.RetrieveTokenStatusAsync();
-
client.OAuth.AuthorizeAsync() +
client.Default.OAuth.AuthorizeAsync()
@@ -216,7 +216,7 @@ await client.OAuth.RetrieveTokenStatusAsync();
```csharp -await client.OAuth.AuthorizeAsync(); +await client.Default.OAuth.AuthorizeAsync(); ```
@@ -228,8 +228,8 @@ await client.OAuth.AuthorizeAsync();
-## V1Transactions -
client.V1Transactions.V1ListOrdersAsync(V1ListOrdersRequest { ... }) -> IEnumerable<V1Order> +## Default V1Transactions +
client.Default.V1Transactions.V1ListOrdersAsync(V1ListOrdersRequest { ... }) -> IEnumerable<V1Order>
@@ -256,7 +256,7 @@ Provides summary information for a merchant's online store orders.
```csharp -await client.V1Transactions.V1ListOrdersAsync( +await client.Default.V1Transactions.V1ListOrdersAsync( new V1ListOrdersRequest { LocationId = "location_id", @@ -291,7 +291,7 @@ await client.V1Transactions.V1ListOrdersAsync(
-
client.V1Transactions.V1RetrieveOrderAsync(V1RetrieveOrderRequest { ... }) -> V1Order +
client.Default.V1Transactions.V1RetrieveOrderAsync(V1RetrieveOrderRequest { ... }) -> V1Order
@@ -318,7 +318,7 @@ Provides comprehensive information for a single online store order, including th
```csharp -await client.V1Transactions.V1RetrieveOrderAsync( +await client.Default.V1Transactions.V1RetrieveOrderAsync( new V1RetrieveOrderRequest { LocationId = "location_id", OrderId = "order_id" } ); ``` @@ -347,7 +347,7 @@ await client.V1Transactions.V1RetrieveOrderAsync(
-
client.V1Transactions.V1UpdateOrderAsync(V1UpdateOrderRequest { ... }) -> V1Order +
client.Default.V1Transactions.V1UpdateOrderAsync(V1UpdateOrderRequest { ... }) -> V1Order
@@ -374,7 +374,7 @@ Updates the details of an online store order. Every update you perform on an ord
```csharp -await client.V1Transactions.V1UpdateOrderAsync( +await client.Default.V1Transactions.V1UpdateOrderAsync( new V1UpdateOrderRequest { LocationId = "location_id", @@ -408,8 +408,8 @@ await client.V1Transactions.V1UpdateOrderAsync(
-## ApplePay -
client.ApplePay.RegisterDomainAsync(RegisterDomainRequest { ... }) -> RegisterDomainResponse +## Default ApplePay +
client.Default.ApplePay.RegisterDomainAsync(RegisterDomainRequest { ... }) -> RegisterDomainResponse
@@ -449,7 +449,9 @@ To learn more about the Web Payments SDK and how to add Apple Pay, see [Take an
```csharp -await client.ApplePay.RegisterDomainAsync(new RegisterDomainRequest { DomainName = "example.com" }); +await client.Default.ApplePay.RegisterDomainAsync( + new RegisterDomainRequest { DomainName = "example.com" } +); ```
@@ -476,8 +478,8 @@ await client.ApplePay.RegisterDomainAsync(new RegisterDomainRequest { DomainName
-## BankAccounts -
client.BankAccounts.ListAsync(ListBankAccountsRequest { ... }) -> Pager<BankAccount> +## Default BankAccounts +
client.Default.BankAccounts.ListAsync(ListBankAccountsRequest { ... }) -> Pager<BankAccount>
@@ -504,7 +506,7 @@ Returns a list of [BankAccount](entity:BankAccount) objects linked to a Square a
```csharp -await client.BankAccounts.ListAsync( +await client.Default.BankAccounts.ListAsync( new ListBankAccountsRequest { Cursor = "cursor", @@ -539,7 +541,7 @@ await client.BankAccounts.ListAsync(
-
client.BankAccounts.CreateBankAccountAsync(CreateBankAccountRequest { ... }) -> CreateBankAccountResponse +
client.Default.BankAccounts.CreateBankAccountAsync(CreateBankAccountRequest { ... }) -> CreateBankAccountResponse
@@ -566,7 +568,7 @@ Store a bank account on file for a square account
```csharp -await client.BankAccounts.CreateBankAccountAsync( +await client.Default.BankAccounts.CreateBankAccountAsync( new CreateBankAccountRequest { IdempotencyKey = "4e43559a-f0fd-47d3-9da2-7ea1f97d94be", @@ -600,7 +602,7 @@ await client.BankAccounts.CreateBankAccountAsync(
-
client.BankAccounts.GetByV1IdAsync(GetByV1IdBankAccountsRequest { ... }) -> GetBankAccountByV1IdResponse +
client.Default.BankAccounts.GetByV1IdAsync(GetByV1IdBankAccountsRequest { ... }) -> GetBankAccountByV1IdResponse
@@ -627,7 +629,7 @@ Returns details of a [BankAccount](entity:BankAccount) identified by V1 bank acc
```csharp -await client.BankAccounts.GetByV1IdAsync( +await client.Default.BankAccounts.GetByV1IdAsync( new GetByV1IdBankAccountsRequest { V1BankAccountId = "v1_bank_account_id" } ); ``` @@ -656,7 +658,7 @@ await client.BankAccounts.GetByV1IdAsync(
-
client.BankAccounts.GetAsync(GetBankAccountsRequest { ... }) -> GetBankAccountResponse +
client.Default.BankAccounts.GetAsync(GetBankAccountsRequest { ... }) -> GetBankAccountResponse
@@ -683,7 +685,7 @@ Retrieve details of a [BankAccount](entity:BankAccount) bank account linked to a
```csharp -await client.BankAccounts.GetAsync( +await client.Default.BankAccounts.GetAsync( new GetBankAccountsRequest { BankAccountId = "bank_account_id" } ); ``` @@ -712,7 +714,7 @@ await client.BankAccounts.GetAsync(
-
client.BankAccounts.DisableBankAccountAsync(DisableBankAccountRequest { ... }) -> DisableBankAccountResponse +
client.Default.BankAccounts.DisableBankAccountAsync(DisableBankAccountRequest { ... }) -> DisableBankAccountResponse
@@ -739,7 +741,7 @@ Disable a bank account.
```csharp -await client.BankAccounts.DisableBankAccountAsync( +await client.Default.BankAccounts.DisableBankAccountAsync( new DisableBankAccountRequest { BankAccountId = "bank_account_id" } ); ``` @@ -768,8 +770,8 @@ await client.BankAccounts.DisableBankAccountAsync(
-## Bookings -
client.Bookings.ListAsync(ListBookingsRequest { ... }) -> Pager<Booking> +## Default Bookings +
client.Default.Bookings.ListAsync(ListBookingsRequest { ... }) -> Pager<Booking>
@@ -799,7 +801,7 @@ To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ`
```csharp -await client.Bookings.ListAsync( +await client.Default.Bookings.ListAsync( new ListBookingsRequest { Limit = 1, @@ -837,7 +839,7 @@ await client.Bookings.ListAsync(
-
client.Bookings.CreateAsync(CreateBookingRequest { ... }) -> CreateBookingResponse +
client.Default.Bookings.CreateAsync(CreateBookingRequest { ... }) -> CreateBookingResponse
@@ -877,7 +879,7 @@ or *Appointments Premium*.
```csharp -await client.Bookings.CreateAsync(new CreateBookingRequest { Booking = new Booking() }); +await client.Default.Bookings.CreateAsync(new CreateBookingRequest { Booking = new Booking() }); ```
@@ -904,7 +906,7 @@ await client.Bookings.CreateAsync(new CreateBookingRequest { Booking = new Booki
-
client.Bookings.SearchAvailabilityAsync(SearchAvailabilityRequest { ... }) -> SearchAvailabilityResponse +
client.Default.Bookings.SearchAvailabilityAsync(SearchAvailabilityRequest { ... }) -> SearchAvailabilityResponse
@@ -934,7 +936,7 @@ To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ`
```csharp -await client.Bookings.SearchAvailabilityAsync( +await client.Default.Bookings.SearchAvailabilityAsync( new SearchAvailabilityRequest { Query = new SearchAvailabilityQuery @@ -969,7 +971,7 @@ await client.Bookings.SearchAvailabilityAsync(
-
client.Bookings.BulkRetrieveBookingsAsync(BulkRetrieveBookingsRequest { ... }) -> BulkRetrieveBookingsResponse +
client.Default.Bookings.BulkRetrieveBookingsAsync(BulkRetrieveBookingsRequest { ... }) -> BulkRetrieveBookingsResponse
@@ -999,7 +1001,7 @@ To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ`
```csharp -await client.Bookings.BulkRetrieveBookingsAsync( +await client.Default.Bookings.BulkRetrieveBookingsAsync( new BulkRetrieveBookingsRequest { BookingIds = new List() { "booking_ids" } } ); ``` @@ -1028,7 +1030,7 @@ await client.Bookings.BulkRetrieveBookingsAsync(
-
client.Bookings.GetBusinessProfileAsync() -> GetBusinessBookingProfileResponse +
client.Default.Bookings.GetBusinessProfileAsync() -> GetBusinessBookingProfileResponse
@@ -1055,7 +1057,7 @@ Retrieves a seller's booking profile.
```csharp -await client.Bookings.GetBusinessProfileAsync(); +await client.Default.Bookings.GetBusinessProfileAsync(); ```
@@ -1067,7 +1069,7 @@ await client.Bookings.GetBusinessProfileAsync();
-
client.Bookings.RetrieveLocationBookingProfileAsync(RetrieveLocationBookingProfileRequest { ... }) -> RetrieveLocationBookingProfileResponse +
client.Default.Bookings.RetrieveLocationBookingProfileAsync(RetrieveLocationBookingProfileRequest { ... }) -> RetrieveLocationBookingProfileResponse
@@ -1094,7 +1096,7 @@ Retrieves a seller's location booking profile.
```csharp -await client.Bookings.RetrieveLocationBookingProfileAsync( +await client.Default.Bookings.RetrieveLocationBookingProfileAsync( new RetrieveLocationBookingProfileRequest { LocationId = "location_id" } ); ``` @@ -1123,7 +1125,7 @@ await client.Bookings.RetrieveLocationBookingProfileAsync(
-
client.Bookings.BulkRetrieveTeamMemberBookingProfilesAsync(BulkRetrieveTeamMemberBookingProfilesRequest { ... }) -> BulkRetrieveTeamMemberBookingProfilesResponse +
client.Default.Bookings.BulkRetrieveTeamMemberBookingProfilesAsync(BulkRetrieveTeamMemberBookingProfilesRequest { ... }) -> BulkRetrieveTeamMemberBookingProfilesResponse
@@ -1150,7 +1152,7 @@ Retrieves one or more team members' booking profiles.
```csharp -await client.Bookings.BulkRetrieveTeamMemberBookingProfilesAsync( +await client.Default.Bookings.BulkRetrieveTeamMemberBookingProfilesAsync( new BulkRetrieveTeamMemberBookingProfilesRequest { TeamMemberIds = new List() { "team_member_ids" }, @@ -1182,7 +1184,7 @@ await client.Bookings.BulkRetrieveTeamMemberBookingProfilesAsync(
-
client.Bookings.GetAsync(GetBookingsRequest { ... }) -> GetBookingResponse +
client.Default.Bookings.GetAsync(GetBookingsRequest { ... }) -> GetBookingResponse
@@ -1212,7 +1214,7 @@ To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ`
```csharp -await client.Bookings.GetAsync(new GetBookingsRequest { BookingId = "booking_id" }); +await client.Default.Bookings.GetAsync(new GetBookingsRequest { BookingId = "booking_id" }); ```
@@ -1239,7 +1241,7 @@ await client.Bookings.GetAsync(new GetBookingsRequest { BookingId = "booking_id"
-
client.Bookings.UpdateAsync(UpdateBookingRequest { ... }) -> UpdateBookingResponse +
client.Default.Bookings.UpdateAsync(UpdateBookingRequest { ... }) -> UpdateBookingResponse
@@ -1272,7 +1274,7 @@ or *Appointments Premium*.
```csharp -await client.Bookings.UpdateAsync( +await client.Default.Bookings.UpdateAsync( new UpdateBookingRequest { BookingId = "booking_id", Booking = new Booking() } ); ``` @@ -1301,7 +1303,7 @@ await client.Bookings.UpdateAsync(
-
client.Bookings.CancelAsync(CancelBookingRequest { ... }) -> CancelBookingResponse +
client.Default.Bookings.CancelAsync(CancelBookingRequest { ... }) -> CancelBookingResponse
@@ -1334,7 +1336,7 @@ or *Appointments Premium*.
```csharp -await client.Bookings.CancelAsync(new CancelBookingRequest { BookingId = "booking_id" }); +await client.Default.Bookings.CancelAsync(new CancelBookingRequest { BookingId = "booking_id" }); ```
@@ -1361,8 +1363,8 @@ await client.Bookings.CancelAsync(new CancelBookingRequest { BookingId = "bookin
-## Cards -
client.Cards.ListAsync(ListCardsRequest { ... }) -> Pager<Card> +## Default Cards +
client.Default.Cards.ListAsync(ListCardsRequest { ... }) -> Pager<Card>
@@ -1390,7 +1392,7 @@ A max of 25 cards will be returned.
```csharp -await client.Cards.ListAsync( +await client.Default.Cards.ListAsync( new ListCardsRequest { Cursor = "cursor", @@ -1426,7 +1428,7 @@ await client.Cards.ListAsync(
-
client.Cards.CreateAsync(CreateCardRequest { ... }) -> CreateCardResponse +
client.Default.Cards.CreateAsync(CreateCardRequest { ... }) -> CreateCardResponse
@@ -1453,7 +1455,7 @@ Adds a card on file to an existing merchant.
```csharp -await client.Cards.CreateAsync( +await client.Default.Cards.CreateAsync( new CreateCardRequest { IdempotencyKey = "4935a656-a929-4792-b97c-8848be85c27c", @@ -1501,7 +1503,7 @@ await client.Cards.CreateAsync(
-
client.Cards.GetAsync(GetCardsRequest { ... }) -> GetCardResponse +
client.Default.Cards.GetAsync(GetCardsRequest { ... }) -> GetCardResponse
@@ -1528,7 +1530,7 @@ Retrieves details for a specific Card.
```csharp -await client.Cards.GetAsync(new GetCardsRequest { CardId = "card_id" }); +await client.Default.Cards.GetAsync(new GetCardsRequest { CardId = "card_id" }); ```
@@ -1555,7 +1557,7 @@ await client.Cards.GetAsync(new GetCardsRequest { CardId = "card_id" });
-
client.Cards.DisableAsync(DisableCardsRequest { ... }) -> DisableCardResponse +
client.Default.Cards.DisableAsync(DisableCardsRequest { ... }) -> DisableCardResponse
@@ -1583,7 +1585,7 @@ Disabling an already disabled card is allowed but has no effect.
```csharp -await client.Cards.DisableAsync(new DisableCardsRequest { CardId = "card_id" }); +await client.Default.Cards.DisableAsync(new DisableCardsRequest { CardId = "card_id" }); ```
@@ -1610,8 +1612,8 @@ await client.Cards.DisableAsync(new DisableCardsRequest { CardId = "card_id" });
-## Catalog -
client.Catalog.BatchDeleteAsync(BatchDeleteCatalogObjectsRequest { ... }) -> BatchDeleteCatalogObjectsResponse +## Default Catalog +
client.Default.Catalog.BatchDeleteAsync(BatchDeleteCatalogObjectsRequest { ... }) -> BatchDeleteCatalogObjectsResponse
@@ -1651,7 +1653,7 @@ delete requests are rejected with the `429` error code.
```csharp -await client.Catalog.BatchDeleteAsync( +await client.Default.Catalog.BatchDeleteAsync( new BatchDeleteCatalogObjectsRequest { ObjectIds = new List() { "W62UWFY35CWMYGVWK6TWJDNI", "AA27W3M2GGTF3H6AVPNB77CK" }, @@ -1683,7 +1685,7 @@ await client.Catalog.BatchDeleteAsync(
-
client.Catalog.BatchGetAsync(BatchGetCatalogObjectsRequest { ... }) -> BatchGetCatalogObjectsResponse +
client.Default.Catalog.BatchGetAsync(BatchGetCatalogObjectsRequest { ... }) -> BatchGetCatalogObjectsResponse
@@ -1715,7 +1717,7 @@ any [CatalogTax](entity:CatalogTax) objects that apply to it.
```csharp -await client.Catalog.BatchGetAsync( +await client.Default.Catalog.BatchGetAsync( new BatchGetCatalogObjectsRequest { ObjectIds = new List() { "W62UWFY35CWMYGVWK6TWJDNI", "AA27W3M2GGTF3H6AVPNB77CK" }, @@ -1748,7 +1750,7 @@ await client.Catalog.BatchGetAsync(
-
client.Catalog.BatchUpsertAsync(BatchUpsertCatalogObjectsRequest { ... }) -> BatchUpsertCatalogObjectsResponse +
client.Default.Catalog.BatchUpsertAsync(BatchUpsertCatalogObjectsRequest { ... }) -> BatchUpsertCatalogObjectsResponse
@@ -1787,7 +1789,7 @@ update requests are rejected with the `429` error code.
```csharp -await client.Catalog.BatchUpsertAsync( +await client.Default.Catalog.BatchUpsertAsync( new BatchUpsertCatalogObjectsRequest { IdempotencyKey = "789ff020-f723-43a9-b4b5-43b5dc1fa3dc", @@ -1832,7 +1834,7 @@ await client.Catalog.BatchUpsertAsync(
-
client.Catalog.InfoAsync() -> CatalogInfoResponse +
client.Default.Catalog.InfoAsync() -> CatalogInfoResponse
@@ -1860,7 +1862,7 @@ limits that can be used by the `BatchUpsertCatalogObjects` endpoint.
```csharp -await client.Catalog.InfoAsync(); +await client.Default.Catalog.InfoAsync(); ```
@@ -1872,7 +1874,7 @@ await client.Catalog.InfoAsync();
-
client.Catalog.ListAsync(ListCatalogRequest { ... }) -> Pager<CatalogObject> +
client.Default.Catalog.ListAsync(ListCatalogRequest { ... }) -> Pager<CatalogObject>
@@ -1906,7 +1908,7 @@ and set the `include_deleted_objects` attribute value to `true`.
```csharp -await client.Catalog.ListAsync( +await client.Default.Catalog.ListAsync( new ListCatalogRequest { Cursor = "cursor", @@ -1940,7 +1942,7 @@ await client.Catalog.ListAsync(
-
client.Catalog.SearchAsync(SearchCatalogObjectsRequest { ... }) -> SearchCatalogObjectsResponse +
client.Default.Catalog.SearchAsync(SearchCatalogObjectsRequest { ... }) -> SearchCatalogObjectsResponse
@@ -1976,7 +1978,7 @@ endpoint in the following aspects:
```csharp -await client.Catalog.SearchAsync( +await client.Default.Catalog.SearchAsync( new SearchCatalogObjectsRequest { ObjectTypes = new List() { CatalogObjectType.Item }, @@ -2017,7 +2019,7 @@ await client.Catalog.SearchAsync(
-
client.Catalog.SearchItemsAsync(SearchCatalogItemsRequest { ... }) -> SearchCatalogItemsResponse +
client.Default.Catalog.SearchItemsAsync(SearchCatalogItemsRequest { ... }) -> SearchCatalogItemsResponse
@@ -2053,7 +2055,7 @@ endpoint in the following aspects:
```csharp -await client.Catalog.SearchItemsAsync( +await client.Default.Catalog.SearchItemsAsync( new SearchCatalogItemsRequest { TextFilter = "red", @@ -2082,7 +2084,7 @@ await client.Catalog.SearchItemsAsync( new CustomAttributeFilter { Key = "VINTAGE", - NumberFilter = new Square.Range { Min = "min", Max = "max" }, + NumberFilter = new Square.Default.Range { Min = "min", Max = "max" }, }, new CustomAttributeFilter { CustomAttributeDefinitionId = "VARIETAL_DEFINITION_ID" }, }, @@ -2114,7 +2116,7 @@ await client.Catalog.SearchItemsAsync(
-
client.Catalog.UpdateItemModifierListsAsync(UpdateItemModifierListsRequest { ... }) -> UpdateItemModifierListsResponse +
client.Default.Catalog.UpdateItemModifierListsAsync(UpdateItemModifierListsRequest { ... }) -> UpdateItemModifierListsResponse
@@ -2143,7 +2145,7 @@ to perform an upsert on the entire item.
```csharp -await client.Catalog.UpdateItemModifierListsAsync( +await client.Default.Catalog.UpdateItemModifierListsAsync( new UpdateItemModifierListsRequest { ItemIds = new List() { "H42BRLUJ5KTZTTMPVSLFAACQ", "2JXOBJIHCWBQ4NZ3RIXQGJA6" }, @@ -2181,7 +2183,7 @@ await client.Catalog.UpdateItemModifierListsAsync(
-
client.Catalog.UpdateItemTaxesAsync(UpdateItemTaxesRequest { ... }) -> UpdateItemTaxesResponse +
client.Default.Catalog.UpdateItemTaxesAsync(UpdateItemTaxesRequest { ... }) -> UpdateItemTaxesResponse
@@ -2210,7 +2212,7 @@ upsert on the entire item.
```csharp -await client.Catalog.UpdateItemTaxesAsync( +await client.Default.Catalog.UpdateItemTaxesAsync( new UpdateItemTaxesRequest { ItemIds = new List() { "H42BRLUJ5KTZTTMPVSLFAACQ", "2JXOBJIHCWBQ4NZ3RIXQGJA6" }, @@ -2244,8 +2246,8 @@ await client.Catalog.UpdateItemTaxesAsync(
-## Channels -
client.Channels.ListAsync(ListChannelsRequest { ... }) -> Pager<Channel> +## Default Channels +
client.Default.Channels.ListAsync(ListChannelsRequest { ... }) -> Pager<Channel>
@@ -2272,7 +2274,7 @@ await client.Catalog.UpdateItemTaxesAsync(
```csharp -await client.Channels.ListAsync( +await client.Default.Channels.ListAsync( new ListChannelsRequest { ReferenceType = ReferenceType.UnknownType, @@ -2308,7 +2310,7 @@ await client.Channels.ListAsync(
-
client.Channels.BulkRetrieveAsync(BulkRetrieveChannelsRequest { ... }) -> BulkRetrieveChannelsResponse +
client.Default.Channels.BulkRetrieveAsync(BulkRetrieveChannelsRequest { ... }) -> BulkRetrieveChannelsResponse
@@ -2335,7 +2337,7 @@ await client.Channels.ListAsync(
```csharp -await client.Channels.BulkRetrieveAsync( +await client.Default.Channels.BulkRetrieveAsync( new BulkRetrieveChannelsRequest { ChannelIds = new List() { "CH_9C03D0B59", "CH_6X139B5MN", "NOT_EXISTING" }, @@ -2367,7 +2369,7 @@ await client.Channels.BulkRetrieveAsync(
-
client.Channels.GetAsync(GetChannelsRequest { ... }) -> RetrieveChannelResponse +
client.Default.Channels.GetAsync(GetChannelsRequest { ... }) -> RetrieveChannelResponse
@@ -2394,7 +2396,7 @@ await client.Channels.BulkRetrieveAsync(
```csharp -await client.Channels.GetAsync(new GetChannelsRequest { ChannelId = "channel_id" }); +await client.Default.Channels.GetAsync(new GetChannelsRequest { ChannelId = "channel_id" }); ```
@@ -2421,8 +2423,8 @@ await client.Channels.GetAsync(new GetChannelsRequest { ChannelId = "channel_id"
-## Customers -
client.Customers.ListAsync(ListCustomersRequest { ... }) -> Pager<Customer> +## Default Customers +
client.Default.Customers.ListAsync(ListCustomersRequest { ... }) -> Pager<Customer>
@@ -2453,7 +2455,7 @@ profiles can take closer to one minute or longer, especially during network inci
```csharp -await client.Customers.ListAsync( +await client.Default.Customers.ListAsync( new ListCustomersRequest { Cursor = "cursor", @@ -2489,7 +2491,7 @@ await client.Customers.ListAsync(
-
client.Customers.CreateAsync(CreateCustomerRequest { ... }) -> CreateCustomerResponse +
client.Default.Customers.CreateAsync(CreateCustomerRequest { ... }) -> CreateCustomerResponse
@@ -2525,7 +2527,7 @@ endpoint:
```csharp -await client.Customers.CreateAsync( +await client.Default.Customers.CreateAsync( new CreateCustomerRequest { GivenName = "Amelia", @@ -2571,7 +2573,7 @@ await client.Customers.CreateAsync(
-
client.Customers.BatchCreateAsync(BulkCreateCustomersRequest { ... }) -> BulkCreateCustomersResponse +
client.Default.Customers.BatchCreateAsync(BulkCreateCustomersRequest { ... }) -> BulkCreateCustomersResponse
@@ -2608,7 +2610,7 @@ You must provide at least one of the following values in each create request:
```csharp -await client.Customers.BatchCreateAsync( +await client.Default.Customers.BatchCreateAsync( new BulkCreateCustomersRequest { Customers = new Dictionary() @@ -2684,7 +2686,7 @@ await client.Customers.BatchCreateAsync(
-
client.Customers.BulkDeleteCustomersAsync(BulkDeleteCustomersRequest { ... }) -> BulkDeleteCustomersResponse +
client.Default.Customers.BulkDeleteCustomersAsync(BulkDeleteCustomersRequest { ... }) -> BulkDeleteCustomersResponse
@@ -2713,7 +2715,7 @@ The endpoint takes a list of customer IDs and returns a map of responses.
```csharp -await client.Customers.BulkDeleteCustomersAsync( +await client.Default.Customers.BulkDeleteCustomersAsync( new BulkDeleteCustomersRequest { CustomerIds = new List() @@ -2750,7 +2752,7 @@ await client.Customers.BulkDeleteCustomersAsync(
-
client.Customers.BulkRetrieveCustomersAsync(BulkRetrieveCustomersRequest { ... }) -> BulkRetrieveCustomersResponse +
client.Default.Customers.BulkRetrieveCustomersAsync(BulkRetrieveCustomersRequest { ... }) -> BulkRetrieveCustomersResponse
@@ -2779,7 +2781,7 @@ This endpoint takes a list of customer IDs and returns a map of responses.
```csharp -await client.Customers.BulkRetrieveCustomersAsync( +await client.Default.Customers.BulkRetrieveCustomersAsync( new BulkRetrieveCustomersRequest { CustomerIds = new List() @@ -2816,7 +2818,7 @@ await client.Customers.BulkRetrieveCustomersAsync(
-
client.Customers.BulkUpdateCustomersAsync(BulkUpdateCustomersRequest { ... }) -> BulkUpdateCustomersResponse +
client.Default.Customers.BulkUpdateCustomersAsync(BulkUpdateCustomersRequest { ... }) -> BulkUpdateCustomersResponse
@@ -2845,7 +2847,7 @@ This endpoint takes a map of individual update requests and returns a map of res
```csharp -await client.Customers.BulkUpdateCustomersAsync( +await client.Default.Customers.BulkUpdateCustomersAsync( new BulkUpdateCustomersRequest { Customers = new Dictionary() @@ -2897,7 +2899,7 @@ await client.Customers.BulkUpdateCustomersAsync(
-
client.Customers.SearchAsync(SearchCustomersRequest { ... }) -> SearchCustomersResponse +
client.Default.Customers.SearchAsync(SearchCustomersRequest { ... }) -> SearchCustomersResponse
@@ -2932,7 +2934,7 @@ profiles can take closer to one minute or longer, especially during network inci
```csharp -await client.Customers.SearchAsync( +await client.Default.Customers.SearchAsync( new SearchCustomersRequest { Limit = 2, @@ -2989,7 +2991,7 @@ await client.Customers.SearchAsync(
-
client.Customers.GetAsync(GetCustomersRequest { ... }) -> GetCustomerResponse +
client.Default.Customers.GetAsync(GetCustomersRequest { ... }) -> GetCustomerResponse
@@ -3016,7 +3018,7 @@ Returns details for a single customer.
```csharp -await client.Customers.GetAsync(new GetCustomersRequest { CustomerId = "customer_id" }); +await client.Default.Customers.GetAsync(new GetCustomersRequest { CustomerId = "customer_id" }); ```
@@ -3043,7 +3045,7 @@ await client.Customers.GetAsync(new GetCustomersRequest { CustomerId = "customer
-
client.Customers.UpdateAsync(UpdateCustomerRequest { ... }) -> UpdateCustomerResponse +
client.Default.Customers.UpdateAsync(UpdateCustomerRequest { ... }) -> UpdateCustomerResponse
@@ -3073,7 +3075,7 @@ To update a customer profile that was created by merging existing profiles, you
```csharp -await client.Customers.UpdateAsync( +await client.Default.Customers.UpdateAsync( new UpdateCustomerRequest { CustomerId = "customer_id", @@ -3108,7 +3110,7 @@ await client.Customers.UpdateAsync(
-
client.Customers.DeleteAsync(DeleteCustomersRequest { ... }) -> DeleteCustomerResponse +
client.Default.Customers.DeleteAsync(DeleteCustomersRequest { ... }) -> DeleteCustomerResponse
@@ -3137,7 +3139,7 @@ To delete a customer profile that was created by merging existing profiles, you
```csharp -await client.Customers.DeleteAsync( +await client.Default.Customers.DeleteAsync( new DeleteCustomersRequest { CustomerId = "customer_id", Version = 1000000 } ); ``` @@ -3166,8 +3168,8 @@ await client.Customers.DeleteAsync(
-## Devices -
client.Devices.ListAsync(ListDevicesRequest { ... }) -> Pager<Device> +## Default Devices +
client.Default.Devices.ListAsync(ListDevicesRequest { ... }) -> Pager<Device>
@@ -3195,7 +3197,7 @@ devices are supported.
```csharp -await client.Devices.ListAsync( +await client.Default.Devices.ListAsync( new ListDevicesRequest { Cursor = "cursor", @@ -3230,7 +3232,7 @@ await client.Devices.ListAsync(
-
client.Devices.GetAsync(GetDevicesRequest { ... }) -> GetDeviceResponse +
client.Default.Devices.GetAsync(GetDevicesRequest { ... }) -> GetDeviceResponse
@@ -3257,7 +3259,7 @@ Retrieves Device with the associated `device_id`.
```csharp -await client.Devices.GetAsync(new GetDevicesRequest { DeviceId = "device_id" }); +await client.Default.Devices.GetAsync(new GetDevicesRequest { DeviceId = "device_id" }); ```
@@ -3284,8 +3286,8 @@ await client.Devices.GetAsync(new GetDevicesRequest { DeviceId = "device_id" });
-## Disputes -
client.Disputes.ListAsync(ListDisputesRequest { ... }) -> Pager<Dispute> +## Default Disputes +
client.Default.Disputes.ListAsync(ListDisputesRequest { ... }) -> Pager<Dispute>
@@ -3312,7 +3314,7 @@ Returns a list of disputes associated with a particular account.
```csharp -await client.Disputes.ListAsync( +await client.Default.Disputes.ListAsync( new ListDisputesRequest { Cursor = "cursor", @@ -3346,7 +3348,7 @@ await client.Disputes.ListAsync(
-
client.Disputes.GetAsync(GetDisputesRequest { ... }) -> GetDisputeResponse +
client.Default.Disputes.GetAsync(GetDisputesRequest { ... }) -> GetDisputeResponse
@@ -3373,7 +3375,7 @@ Returns details about a specific dispute.
```csharp -await client.Disputes.GetAsync(new GetDisputesRequest { DisputeId = "dispute_id" }); +await client.Default.Disputes.GetAsync(new GetDisputesRequest { DisputeId = "dispute_id" }); ```
@@ -3400,7 +3402,7 @@ await client.Disputes.GetAsync(new GetDisputesRequest { DisputeId = "dispute_id"
-
client.Disputes.AcceptAsync(AcceptDisputesRequest { ... }) -> AcceptDisputeResponse +
client.Default.Disputes.AcceptAsync(AcceptDisputesRequest { ... }) -> AcceptDisputeResponse
@@ -3431,7 +3433,7 @@ does not have sufficient funds, Square debits the associated bank account.
```csharp -await client.Disputes.AcceptAsync(new AcceptDisputesRequest { DisputeId = "dispute_id" }); +await client.Default.Disputes.AcceptAsync(new AcceptDisputesRequest { DisputeId = "dispute_id" }); ```
@@ -3458,7 +3460,7 @@ await client.Disputes.AcceptAsync(new AcceptDisputesRequest { DisputeId = "dispu
-
client.Disputes.CreateEvidenceFileAsync(CreateEvidenceFileDisputesRequest { ... }) -> CreateDisputeEvidenceFileResponse +
client.Default.Disputes.CreateEvidenceFileAsync(CreateEvidenceFileDisputesRequest { ... }) -> CreateDisputeEvidenceFileResponse
@@ -3486,7 +3488,7 @@ multipart/form-data file uploads in HEIC, HEIF, JPEG, PDF, PNG, and TIFF formats
```csharp -await client.Disputes.CreateEvidenceFileAsync( +await client.Default.Disputes.CreateEvidenceFileAsync( new CreateEvidenceFileDisputesRequest { DisputeId = "dispute_id" } ); ``` @@ -3515,7 +3517,7 @@ await client.Disputes.CreateEvidenceFileAsync(
-
client.Disputes.CreateEvidenceTextAsync(CreateDisputeEvidenceTextRequest { ... }) -> CreateDisputeEvidenceTextResponse +
client.Default.Disputes.CreateEvidenceTextAsync(CreateDisputeEvidenceTextRequest { ... }) -> CreateDisputeEvidenceTextResponse
@@ -3542,7 +3544,7 @@ Uploads text to use as evidence for a dispute challenge.
```csharp -await client.Disputes.CreateEvidenceTextAsync( +await client.Default.Disputes.CreateEvidenceTextAsync( new CreateDisputeEvidenceTextRequest { DisputeId = "dispute_id", @@ -3577,7 +3579,7 @@ await client.Disputes.CreateEvidenceTextAsync(
-
client.Disputes.SubmitEvidenceAsync(SubmitEvidenceDisputesRequest { ... }) -> SubmitEvidenceResponse +
client.Default.Disputes.SubmitEvidenceAsync(SubmitEvidenceDisputesRequest { ... }) -> SubmitEvidenceResponse
@@ -3610,7 +3612,7 @@ a dispute after submission.
```csharp -await client.Disputes.SubmitEvidenceAsync( +await client.Default.Disputes.SubmitEvidenceAsync( new SubmitEvidenceDisputesRequest { DisputeId = "dispute_id" } ); ``` @@ -3639,8 +3641,8 @@ await client.Disputes.SubmitEvidenceAsync(
-## Employees -
client.Employees.ListAsync(ListEmployeesRequest { ... }) -> Pager<Employee> +## Default Employees +
client.Default.Employees.ListAsync(ListEmployeesRequest { ... }) -> Pager<Employee>
@@ -3667,7 +3669,7 @@ await client.Disputes.SubmitEvidenceAsync(
```csharp -await client.Employees.ListAsync( +await client.Default.Employees.ListAsync( new ListEmployeesRequest { LocationId = "location_id", @@ -3702,7 +3704,7 @@ await client.Employees.ListAsync(
-
client.Employees.GetAsync(GetEmployeesRequest { ... }) -> GetEmployeeResponse +
client.Default.Employees.GetAsync(GetEmployeesRequest { ... }) -> GetEmployeeResponse
@@ -3729,7 +3731,7 @@ await client.Employees.ListAsync(
```csharp -await client.Employees.GetAsync(new GetEmployeesRequest { Id = "id" }); +await client.Default.Employees.GetAsync(new GetEmployeesRequest { Id = "id" }); ```
@@ -3756,8 +3758,8 @@ await client.Employees.GetAsync(new GetEmployeesRequest { Id = "id" });
-## Events -
client.Events.SearchEventsAsync(SearchEventsRequest { ... }) -> SearchEventsResponse +## Default Events +
client.Default.Events.SearchEventsAsync(SearchEventsRequest { ... }) -> SearchEventsResponse
@@ -3784,7 +3786,7 @@ Search for Square API events that occur within a 28-day timeframe.
```csharp -await client.Events.SearchEventsAsync(new SearchEventsRequest()); +await client.Default.Events.SearchEventsAsync(new SearchEventsRequest()); ```
@@ -3811,7 +3813,7 @@ await client.Events.SearchEventsAsync(new SearchEventsRequest());
-
client.Events.DisableEventsAsync() -> DisableEventsResponse +
client.Default.Events.DisableEventsAsync() -> DisableEventsResponse
@@ -3840,7 +3842,7 @@ Disabling events for a specific time period prevents them from being searchable,
```csharp -await client.Events.DisableEventsAsync(); +await client.Default.Events.DisableEventsAsync(); ```
@@ -3852,7 +3854,7 @@ await client.Events.DisableEventsAsync();
-
client.Events.EnableEventsAsync() -> EnableEventsResponse +
client.Default.Events.EnableEventsAsync() -> EnableEventsResponse
@@ -3879,7 +3881,7 @@ Enables events to make them searchable. Only events that occur while in the enab
```csharp -await client.Events.EnableEventsAsync(); +await client.Default.Events.EnableEventsAsync(); ```
@@ -3891,7 +3893,7 @@ await client.Events.EnableEventsAsync();
-
client.Events.ListEventTypesAsync(ListEventTypesRequest { ... }) -> ListEventTypesResponse +
client.Default.Events.ListEventTypesAsync(ListEventTypesRequest { ... }) -> ListEventTypesResponse
@@ -3918,8 +3920,8 @@ Lists all event types that you can subscribe to as webhooks or query using the E
```csharp -await client.Events.ListEventTypesAsync( - new Square.Events.ListEventTypesRequest { ApiVersion = "api_version" } +await client.Default.Events.ListEventTypesAsync( + new Square.Default.ListEventTypesRequest { ApiVersion = "api_version" } ); ```
@@ -3947,8 +3949,8 @@ await client.Events.ListEventTypesAsync(
-## GiftCards -
client.GiftCards.ListAsync(ListGiftCardsRequest { ... }) -> Pager<GiftCard> +## Default GiftCards +
client.Default.GiftCards.ListAsync(ListGiftCardsRequest { ... }) -> Pager<GiftCard>
@@ -3976,7 +3978,7 @@ a subset of the gift cards. Results are sorted by `created_at` in ascending orde
```csharp -await client.GiftCards.ListAsync( +await client.Default.GiftCards.ListAsync( new ListGiftCardsRequest { Type = "type", @@ -4012,7 +4014,7 @@ await client.GiftCards.ListAsync(
-
client.GiftCards.CreateAsync(CreateGiftCardRequest { ... }) -> CreateGiftCardResponse +
client.Default.GiftCards.CreateAsync(CreateGiftCardRequest { ... }) -> CreateGiftCardResponse
@@ -4043,7 +4045,7 @@ to refund a payment to the new gift card.
```csharp -await client.GiftCards.CreateAsync( +await client.Default.GiftCards.CreateAsync( new CreateGiftCardRequest { IdempotencyKey = "NC9Tm69EjbjtConu", @@ -4077,7 +4079,7 @@ await client.GiftCards.CreateAsync(
-
client.GiftCards.GetFromGanAsync(GetGiftCardFromGanRequest { ... }) -> GetGiftCardFromGanResponse +
client.Default.GiftCards.GetFromGanAsync(GetGiftCardFromGanRequest { ... }) -> GetGiftCardFromGanResponse
@@ -4104,7 +4106,9 @@ Retrieves a gift card using the gift card account number (GAN).
```csharp -await client.GiftCards.GetFromGanAsync(new GetGiftCardFromGanRequest { Gan = "7783320001001635" }); +await client.Default.GiftCards.GetFromGanAsync( + new GetGiftCardFromGanRequest { Gan = "7783320001001635" } +); ```
@@ -4131,7 +4135,7 @@ await client.GiftCards.GetFromGanAsync(new GetGiftCardFromGanRequest { Gan = "77
-
client.GiftCards.GetFromNonceAsync(GetGiftCardFromNonceRequest { ... }) -> GetGiftCardFromNonceResponse +
client.Default.GiftCards.GetFromNonceAsync(GetGiftCardFromNonceRequest { ... }) -> GetGiftCardFromNonceResponse
@@ -4158,7 +4162,7 @@ Retrieves a gift card using a secure payment token that represents the gift card
```csharp -await client.GiftCards.GetFromNonceAsync( +await client.Default.GiftCards.GetFromNonceAsync( new GetGiftCardFromNonceRequest { Nonce = "cnon:7783322135245171" } ); ``` @@ -4187,7 +4191,7 @@ await client.GiftCards.GetFromNonceAsync(
-
client.GiftCards.LinkCustomerAsync(LinkCustomerToGiftCardRequest { ... }) -> LinkCustomerToGiftCardResponse +
client.Default.GiftCards.LinkCustomerAsync(LinkCustomerToGiftCardRequest { ... }) -> LinkCustomerToGiftCardResponse
@@ -4214,7 +4218,7 @@ Links a customer to a gift card, which is also referred to as adding a card on f
```csharp -await client.GiftCards.LinkCustomerAsync( +await client.Default.GiftCards.LinkCustomerAsync( new LinkCustomerToGiftCardRequest { GiftCardId = "gift_card_id", @@ -4247,7 +4251,7 @@ await client.GiftCards.LinkCustomerAsync(
-
client.GiftCards.UnlinkCustomerAsync(UnlinkCustomerFromGiftCardRequest { ... }) -> UnlinkCustomerFromGiftCardResponse +
client.Default.GiftCards.UnlinkCustomerAsync(UnlinkCustomerFromGiftCardRequest { ... }) -> UnlinkCustomerFromGiftCardResponse
@@ -4274,7 +4278,7 @@ Unlinks a customer from a gift card, which is also referred to as removing a car
```csharp -await client.GiftCards.UnlinkCustomerAsync( +await client.Default.GiftCards.UnlinkCustomerAsync( new UnlinkCustomerFromGiftCardRequest { GiftCardId = "gift_card_id", @@ -4307,7 +4311,7 @@ await client.GiftCards.UnlinkCustomerAsync(
-
client.GiftCards.GetAsync(GetGiftCardsRequest { ... }) -> GetGiftCardResponse +
client.Default.GiftCards.GetAsync(GetGiftCardsRequest { ... }) -> GetGiftCardResponse
@@ -4334,7 +4338,7 @@ Retrieves a gift card using the gift card ID.
```csharp -await client.GiftCards.GetAsync(new GetGiftCardsRequest { Id = "id" }); +await client.Default.GiftCards.GetAsync(new GetGiftCardsRequest { Id = "id" }); ```
@@ -4361,8 +4365,8 @@ await client.GiftCards.GetAsync(new GetGiftCardsRequest { Id = "id" });
-## Inventory -
client.Inventory.DeprecatedGetAdjustmentAsync(DeprecatedGetAdjustmentInventoryRequest { ... }) -> GetInventoryAdjustmentResponse +## Default Inventory +
client.Default.Inventory.DeprecatedGetAdjustmentAsync(DeprecatedGetAdjustmentInventoryRequest { ... }) -> GetInventoryAdjustmentResponse
@@ -4390,7 +4394,7 @@ is updated to conform to the standard convention.
```csharp -await client.Inventory.DeprecatedGetAdjustmentAsync( +await client.Default.Inventory.DeprecatedGetAdjustmentAsync( new DeprecatedGetAdjustmentInventoryRequest { AdjustmentId = "adjustment_id" } ); ``` @@ -4419,7 +4423,7 @@ await client.Inventory.DeprecatedGetAdjustmentAsync(
-
client.Inventory.GetAdjustmentAsync(GetAdjustmentInventoryRequest { ... }) -> GetInventoryAdjustmentResponse +
client.Default.Inventory.GetAdjustmentAsync(GetAdjustmentInventoryRequest { ... }) -> GetInventoryAdjustmentResponse
@@ -4447,7 +4451,7 @@ with the provided `adjustment_id`.
```csharp -await client.Inventory.GetAdjustmentAsync( +await client.Default.Inventory.GetAdjustmentAsync( new GetAdjustmentInventoryRequest { AdjustmentId = "adjustment_id" } ); ``` @@ -4476,7 +4480,7 @@ await client.Inventory.GetAdjustmentAsync(
-
client.Inventory.DeprecatedBatchChangeAsync(BatchChangeInventoryRequest { ... }) -> BatchChangeInventoryResponse +
client.Default.Inventory.DeprecatedBatchChangeAsync(BatchChangeInventoryRequest { ... }) -> BatchChangeInventoryResponse
@@ -4504,7 +4508,7 @@ is updated to conform to the standard convention.
```csharp -await client.Inventory.DeprecatedBatchChangeAsync( +await client.Default.Inventory.DeprecatedBatchChangeAsync( new BatchChangeInventoryRequest { IdempotencyKey = "8fc6a5b0-9fe8-4b46-b46b-2ef95793abbe", @@ -4554,7 +4558,7 @@ await client.Inventory.DeprecatedBatchChangeAsync(
-
client.Inventory.DeprecatedBatchGetChangesAsync(BatchRetrieveInventoryChangesRequest { ... }) -> BatchGetInventoryChangesResponse +
client.Default.Inventory.DeprecatedBatchGetChangesAsync(BatchRetrieveInventoryChangesRequest { ... }) -> BatchGetInventoryChangesResponse
@@ -4582,7 +4586,7 @@ is updated to conform to the standard convention.
```csharp -await client.Inventory.DeprecatedBatchGetChangesAsync( +await client.Default.Inventory.DeprecatedBatchGetChangesAsync( new BatchRetrieveInventoryChangesRequest { CatalogObjectIds = new List() { "W62UWFY35CWMYGVWK6TWJDNI" }, @@ -4619,7 +4623,7 @@ await client.Inventory.DeprecatedBatchGetChangesAsync(
-
client.Inventory.DeprecatedBatchGetCountsAsync(BatchGetInventoryCountsRequest { ... }) -> BatchGetInventoryCountsResponse +
client.Default.Inventory.DeprecatedBatchGetCountsAsync(BatchGetInventoryCountsRequest { ... }) -> BatchGetInventoryCountsResponse
@@ -4647,7 +4651,7 @@ is updated to conform to the standard convention.
```csharp -await client.Inventory.DeprecatedBatchGetCountsAsync( +await client.Default.Inventory.DeprecatedBatchGetCountsAsync( new BatchGetInventoryCountsRequest { CatalogObjectIds = new List() { "W62UWFY35CWMYGVWK6TWJDNI" }, @@ -4681,7 +4685,7 @@ await client.Inventory.DeprecatedBatchGetCountsAsync(
-
client.Inventory.BatchCreateChangesAsync(BatchChangeInventoryRequest { ... }) -> BatchChangeInventoryResponse +
client.Default.Inventory.BatchCreateChangesAsync(BatchChangeInventoryRequest { ... }) -> BatchChangeInventoryResponse
@@ -4712,7 +4716,7 @@ On failure: returns a list of related errors.
```csharp -await client.Inventory.BatchCreateChangesAsync( +await client.Default.Inventory.BatchCreateChangesAsync( new BatchChangeInventoryRequest { IdempotencyKey = "8fc6a5b0-9fe8-4b46-b46b-2ef95793abbe", @@ -4762,7 +4766,7 @@ await client.Inventory.BatchCreateChangesAsync(
-
client.Inventory.BatchGetChangesAsync(BatchRetrieveInventoryChangesRequest { ... }) -> Pager<InventoryChange> +
client.Default.Inventory.BatchGetChangesAsync(BatchRetrieveInventoryChangesRequest { ... }) -> Pager<InventoryChange>
@@ -4796,7 +4800,7 @@ that cannot be handled by other, simpler endpoints.
```csharp -await client.Inventory.BatchGetChangesAsync( +await client.Default.Inventory.BatchGetChangesAsync( new BatchRetrieveInventoryChangesRequest { CatalogObjectIds = new List() { "W62UWFY35CWMYGVWK6TWJDNI" }, @@ -4833,7 +4837,7 @@ await client.Inventory.BatchGetChangesAsync(
-
client.Inventory.BatchGetCountsAsync(BatchGetInventoryCountsRequest { ... }) -> Pager<InventoryCount> +
client.Default.Inventory.BatchGetCountsAsync(BatchGetInventoryCountsRequest { ... }) -> Pager<InventoryCount>
@@ -4870,7 +4874,7 @@ in response to receiving a Webhook notification.
```csharp -await client.Inventory.BatchGetCountsAsync( +await client.Default.Inventory.BatchGetCountsAsync( new BatchGetInventoryCountsRequest { CatalogObjectIds = new List() { "W62UWFY35CWMYGVWK6TWJDNI" }, @@ -4904,7 +4908,7 @@ await client.Inventory.BatchGetCountsAsync(
-
client.Inventory.DeprecatedGetPhysicalCountAsync(DeprecatedGetPhysicalCountInventoryRequest { ... }) -> GetInventoryPhysicalCountResponse +
client.Default.Inventory.DeprecatedGetPhysicalCountAsync(DeprecatedGetPhysicalCountInventoryRequest { ... }) -> GetInventoryPhysicalCountResponse
@@ -4932,7 +4936,7 @@ is updated to conform to the standard convention.
```csharp -await client.Inventory.DeprecatedGetPhysicalCountAsync( +await client.Default.Inventory.DeprecatedGetPhysicalCountAsync( new DeprecatedGetPhysicalCountInventoryRequest { PhysicalCountId = "physical_count_id" } ); ``` @@ -4961,7 +4965,7 @@ await client.Inventory.DeprecatedGetPhysicalCountAsync(
-
client.Inventory.GetPhysicalCountAsync(GetPhysicalCountInventoryRequest { ... }) -> GetInventoryPhysicalCountResponse +
client.Default.Inventory.GetPhysicalCountAsync(GetPhysicalCountInventoryRequest { ... }) -> GetInventoryPhysicalCountResponse
@@ -4989,7 +4993,7 @@ object with the provided `physical_count_id`.
```csharp -await client.Inventory.GetPhysicalCountAsync( +await client.Default.Inventory.GetPhysicalCountAsync( new GetPhysicalCountInventoryRequest { PhysicalCountId = "physical_count_id" } ); ``` @@ -5018,7 +5022,7 @@ await client.Inventory.GetPhysicalCountAsync(
-
client.Inventory.GetTransferAsync(GetTransferInventoryRequest { ... }) -> GetInventoryTransferResponse +
client.Default.Inventory.GetTransferAsync(GetTransferInventoryRequest { ... }) -> GetInventoryTransferResponse
@@ -5046,7 +5050,7 @@ with the provided `transfer_id`.
```csharp -await client.Inventory.GetTransferAsync( +await client.Default.Inventory.GetTransferAsync( new GetTransferInventoryRequest { TransferId = "transfer_id" } ); ``` @@ -5075,7 +5079,7 @@ await client.Inventory.GetTransferAsync(
-
client.Inventory.GetAsync(GetInventoryRequest { ... }) -> Pager<InventoryCount> +
client.Default.Inventory.GetAsync(GetInventoryRequest { ... }) -> Pager<InventoryCount>
@@ -5105,7 +5109,7 @@ For more sophisticated queries, use a batch endpoint.
```csharp -await client.Inventory.GetAsync( +await client.Default.Inventory.GetAsync( new GetInventoryRequest { CatalogObjectId = "catalog_object_id", @@ -5139,7 +5143,7 @@ await client.Inventory.GetAsync(
-
client.Inventory.ChangesAsync(ChangesInventoryRequest { ... }) -> Pager<InventoryChange> +
client.Default.Inventory.ChangesAsync(ChangesInventoryRequest { ... }) -> Pager<InventoryChange>
@@ -5178,7 +5182,7 @@ sophisticated queries, use a batch endpoint.
```csharp -await client.Inventory.ChangesAsync( +await client.Default.Inventory.ChangesAsync( new ChangesInventoryRequest { CatalogObjectId = "catalog_object_id", @@ -5212,8 +5216,8 @@ await client.Inventory.ChangesAsync(
-## Invoices -
client.Invoices.ListAsync(ListInvoicesRequest { ... }) -> Pager<Invoice> +## Default Invoices +
client.Default.Invoices.ListAsync(ListInvoicesRequest { ... }) -> Pager<Invoice>
@@ -5242,7 +5246,7 @@ use in a subsequent request to retrieve the next set of invoices.
```csharp -await client.Invoices.ListAsync( +await client.Default.Invoices.ListAsync( new ListInvoicesRequest { LocationId = "location_id", @@ -5276,7 +5280,7 @@ await client.Invoices.ListAsync(
-
client.Invoices.CreateAsync(CreateInvoiceRequest { ... }) -> CreateInvoiceResponse +
client.Default.Invoices.CreateAsync(CreateInvoiceRequest { ... }) -> CreateInvoiceResponse
@@ -5307,7 +5311,7 @@ You must publish the invoice before Square can process it (send it to the custom
```csharp -await client.Invoices.CreateAsync( +await client.Default.Invoices.CreateAsync( new CreateInvoiceRequest { Invoice = new Invoice @@ -5393,7 +5397,7 @@ await client.Invoices.CreateAsync(
-
client.Invoices.SearchAsync(SearchInvoicesRequest { ... }) -> SearchInvoicesResponse +
client.Default.Invoices.SearchAsync(SearchInvoicesRequest { ... }) -> SearchInvoicesResponse
@@ -5426,7 +5430,7 @@ that you use in a subsequent request to retrieve the next set of invoices.
```csharp -await client.Invoices.SearchAsync( +await client.Default.Invoices.SearchAsync( new SearchInvoicesRequest { Query = new InvoiceQuery @@ -5467,7 +5471,7 @@ await client.Invoices.SearchAsync(
-
client.Invoices.GetAsync(GetInvoicesRequest { ... }) -> GetInvoiceResponse +
client.Default.Invoices.GetAsync(GetInvoicesRequest { ... }) -> GetInvoiceResponse
@@ -5494,7 +5498,7 @@ Retrieves an invoice by invoice ID.
```csharp -await client.Invoices.GetAsync(new GetInvoicesRequest { InvoiceId = "invoice_id" }); +await client.Default.Invoices.GetAsync(new GetInvoicesRequest { InvoiceId = "invoice_id" }); ```
@@ -5521,7 +5525,7 @@ await client.Invoices.GetAsync(new GetInvoicesRequest { InvoiceId = "invoice_id"
-
client.Invoices.UpdateAsync(UpdateInvoiceRequest { ... }) -> UpdateInvoiceResponse +
client.Default.Invoices.UpdateAsync(UpdateInvoiceRequest { ... }) -> UpdateInvoiceResponse
@@ -5551,7 +5555,7 @@ Some restrictions apply to updating invoices. For example, you cannot change the
```csharp -await client.Invoices.UpdateAsync( +await client.Default.Invoices.UpdateAsync( new UpdateInvoiceRequest { InvoiceId = "invoice_id", @@ -5596,7 +5600,7 @@ await client.Invoices.UpdateAsync(
-
client.Invoices.DeleteAsync(DeleteInvoicesRequest { ... }) -> DeleteInvoiceResponse +
client.Default.Invoices.DeleteAsync(DeleteInvoicesRequest { ... }) -> DeleteInvoiceResponse
@@ -5625,7 +5629,7 @@ invoice (you cannot delete a published invoice, including one that is scheduled
```csharp -await client.Invoices.DeleteAsync( +await client.Default.Invoices.DeleteAsync( new DeleteInvoicesRequest { InvoiceId = "invoice_id", Version = 1 } ); ``` @@ -5654,7 +5658,7 @@ await client.Invoices.DeleteAsync(
-
client.Invoices.CreateInvoiceAttachmentAsync(CreateInvoiceAttachmentRequest { ... }) -> CreateInvoiceAttachmentResponse +
client.Default.Invoices.CreateInvoiceAttachmentAsync(CreateInvoiceAttachmentRequest { ... }) -> CreateInvoiceAttachmentResponse
@@ -5688,7 +5692,7 @@ __NOTE:__ When testing in the Sandbox environment, the total file size is limite
```csharp -await client.Invoices.CreateInvoiceAttachmentAsync( +await client.Default.Invoices.CreateInvoiceAttachmentAsync( new CreateInvoiceAttachmentRequest { InvoiceId = "invoice_id" } ); ``` @@ -5717,7 +5721,7 @@ await client.Invoices.CreateInvoiceAttachmentAsync(
-
client.Invoices.DeleteInvoiceAttachmentAsync(DeleteInvoiceAttachmentRequest { ... }) -> DeleteInvoiceAttachmentResponse +
client.Default.Invoices.DeleteInvoiceAttachmentAsync(DeleteInvoiceAttachmentRequest { ... }) -> DeleteInvoiceAttachmentResponse
@@ -5745,7 +5749,7 @@ from invoices in the `DRAFT`, `SCHEDULED`, `UNPAID`, or `PARTIALLY_PAID` state.
```csharp -await client.Invoices.DeleteInvoiceAttachmentAsync( +await client.Default.Invoices.DeleteInvoiceAttachmentAsync( new DeleteInvoiceAttachmentRequest { InvoiceId = "invoice_id", AttachmentId = "attachment_id" } ); ``` @@ -5774,7 +5778,7 @@ await client.Invoices.DeleteInvoiceAttachmentAsync(
-
client.Invoices.CancelAsync(CancelInvoiceRequest { ... }) -> CancelInvoiceResponse +
client.Default.Invoices.CancelAsync(CancelInvoiceRequest { ... }) -> CancelInvoiceResponse
@@ -5804,7 +5808,7 @@ You cannot cancel an invoice in the `DRAFT` state or in a terminal state: `PAID`
```csharp -await client.Invoices.CancelAsync( +await client.Default.Invoices.CancelAsync( new CancelInvoiceRequest { InvoiceId = "invoice_id", Version = 0 } ); ``` @@ -5833,7 +5837,7 @@ await client.Invoices.CancelAsync(
-
client.Invoices.PublishAsync(PublishInvoiceRequest { ... }) -> PublishInvoiceResponse +
client.Default.Invoices.PublishAsync(PublishInvoiceRequest { ... }) -> PublishInvoiceResponse
@@ -5873,7 +5877,7 @@ and `PAYMENTS_WRITE` are required when publishing invoices configured for card-o
```csharp -await client.Invoices.PublishAsync( +await client.Default.Invoices.PublishAsync( new PublishInvoiceRequest { InvoiceId = "invoice_id", @@ -5907,8 +5911,8 @@ await client.Invoices.PublishAsync(
-## Labor -
client.Labor.CreateScheduledShiftAsync(CreateScheduledShiftRequest { ... }) -> CreateScheduledShiftResponse +## Default Labor +
client.Default.Labor.CreateScheduledShiftAsync(CreateScheduledShiftRequest { ... }) -> CreateScheduledShiftResponse
@@ -5942,7 +5946,7 @@ The following `draft_shift_details` fields are required:
```csharp -await client.Labor.CreateScheduledShiftAsync( +await client.Default.Labor.CreateScheduledShiftAsync( new CreateScheduledShiftRequest { IdempotencyKey = "HIDSNG5KS478L", @@ -5987,7 +5991,7 @@ await client.Labor.CreateScheduledShiftAsync(
-
client.Labor.BulkPublishScheduledShiftsAsync(BulkPublishScheduledShiftsRequest { ... }) -> BulkPublishScheduledShiftsResponse +
client.Default.Labor.BulkPublishScheduledShiftsAsync(BulkPublishScheduledShiftsRequest { ... }) -> BulkPublishScheduledShiftsResponse
@@ -6019,7 +6023,7 @@ The minimum `start_at` and maximum `end_at` timestamps of all shifts in a
```csharp -await client.Labor.BulkPublishScheduledShiftsAsync( +await client.Default.Labor.BulkPublishScheduledShiftsAsync( new BulkPublishScheduledShiftsRequest { ScheduledShifts = new Dictionary() @@ -6055,7 +6059,7 @@ await client.Labor.BulkPublishScheduledShiftsAsync(
-
client.Labor.SearchScheduledShiftsAsync(SearchScheduledShiftsRequest { ... }) -> SearchScheduledShiftsResponse +
client.Default.Labor.SearchScheduledShiftsAsync(SearchScheduledShiftsRequest { ... }) -> SearchScheduledShiftsResponse
@@ -6083,7 +6087,7 @@ By default, results are sorted by `start_at` in ascending order.
```csharp -await client.Labor.SearchScheduledShiftsAsync( +await client.Default.Labor.SearchScheduledShiftsAsync( new SearchScheduledShiftsRequest { Query = new ScheduledShiftQuery @@ -6128,7 +6132,7 @@ await client.Labor.SearchScheduledShiftsAsync(
-
client.Labor.RetrieveScheduledShiftAsync(RetrieveScheduledShiftRequest { ... }) -> RetrieveScheduledShiftResponse +
client.Default.Labor.RetrieveScheduledShiftAsync(RetrieveScheduledShiftRequest { ... }) -> RetrieveScheduledShiftResponse
@@ -6155,7 +6159,9 @@ Retrieves a scheduled shift by ID.
```csharp -await client.Labor.RetrieveScheduledShiftAsync(new RetrieveScheduledShiftRequest { Id = "id" }); +await client.Default.Labor.RetrieveScheduledShiftAsync( + new RetrieveScheduledShiftRequest { Id = "id" } +); ```
@@ -6182,7 +6188,7 @@ await client.Labor.RetrieveScheduledShiftAsync(new RetrieveScheduledShiftRequest
-
client.Labor.UpdateScheduledShiftAsync(UpdateScheduledShiftRequest { ... }) -> UpdateScheduledShiftResponse +
client.Default.Labor.UpdateScheduledShiftAsync(UpdateScheduledShiftRequest { ... }) -> UpdateScheduledShiftResponse
@@ -6218,7 +6224,7 @@ and then publish the shift.
```csharp -await client.Labor.UpdateScheduledShiftAsync( +await client.Default.Labor.UpdateScheduledShiftAsync( new UpdateScheduledShiftRequest { Id = "id", @@ -6264,7 +6270,7 @@ await client.Labor.UpdateScheduledShiftAsync(
-
client.Labor.PublishScheduledShiftAsync(PublishScheduledShiftRequest { ... }) -> PublishScheduledShiftResponse +
client.Default.Labor.PublishScheduledShiftAsync(PublishScheduledShiftRequest { ... }) -> PublishScheduledShiftResponse
@@ -6292,7 +6298,7 @@ Publishes a scheduled shift. When a scheduled shift is published, Square keeps t
```csharp -await client.Labor.PublishScheduledShiftAsync( +await client.Default.Labor.PublishScheduledShiftAsync( new PublishScheduledShiftRequest { Id = "id", @@ -6327,7 +6333,7 @@ await client.Labor.PublishScheduledShiftAsync(
-
client.Labor.CreateTimecardAsync(CreateTimecardRequest { ... }) -> CreateTimecardResponse +
client.Default.Labor.CreateTimecardAsync(CreateTimecardRequest { ... }) -> CreateTimecardResponse
@@ -6371,7 +6377,7 @@ the `Timecard.end_at`, or both.
```csharp -await client.Labor.CreateTimecardAsync( +await client.Default.Labor.CreateTimecardAsync( new CreateTimecardRequest { IdempotencyKey = "HIDSNG5KS478L", @@ -6429,7 +6435,7 @@ await client.Labor.CreateTimecardAsync(
-
client.Labor.SearchTimecardsAsync(SearchTimecardsRequest { ... }) -> SearchTimecardsResponse +
client.Default.Labor.SearchTimecardsAsync(SearchTimecardsRequest { ... }) -> SearchTimecardsResponse
@@ -6469,7 +6475,7 @@ The list can be sorted by:
```csharp -await client.Labor.SearchTimecardsAsync( +await client.Default.Labor.SearchTimecardsAsync( new SearchTimecardsRequest { Query = new TimecardQuery @@ -6513,7 +6519,7 @@ await client.Labor.SearchTimecardsAsync(
-
client.Labor.RetrieveTimecardAsync(RetrieveTimecardRequest { ... }) -> RetrieveTimecardResponse +
client.Default.Labor.RetrieveTimecardAsync(RetrieveTimecardRequest { ... }) -> RetrieveTimecardResponse
@@ -6540,7 +6546,7 @@ Returns a single `Timecard` specified by `id`.
```csharp -await client.Labor.RetrieveTimecardAsync(new RetrieveTimecardRequest { Id = "id" }); +await client.Default.Labor.RetrieveTimecardAsync(new RetrieveTimecardRequest { Id = "id" }); ```
@@ -6567,7 +6573,7 @@ await client.Labor.RetrieveTimecardAsync(new RetrieveTimecardRequest { Id = "id"
-
client.Labor.UpdateTimecardAsync(UpdateTimecardRequest { ... }) -> UpdateTimecardResponse +
client.Default.Labor.UpdateTimecardAsync(UpdateTimecardRequest { ... }) -> UpdateTimecardResponse
@@ -6600,7 +6606,7 @@ set on each `Break`.
```csharp -await client.Labor.UpdateTimecardAsync( +await client.Default.Labor.UpdateTimecardAsync( new UpdateTimecardRequest { Id = "id", @@ -6661,7 +6667,7 @@ await client.Labor.UpdateTimecardAsync(
-
client.Labor.DeleteTimecardAsync(DeleteTimecardRequest { ... }) -> DeleteTimecardResponse +
client.Default.Labor.DeleteTimecardAsync(DeleteTimecardRequest { ... }) -> DeleteTimecardResponse
@@ -6688,7 +6694,7 @@ Deletes a `Timecard`.
```csharp -await client.Labor.DeleteTimecardAsync(new DeleteTimecardRequest { Id = "id" }); +await client.Default.Labor.DeleteTimecardAsync(new DeleteTimecardRequest { Id = "id" }); ```
@@ -6715,8 +6721,8 @@ await client.Labor.DeleteTimecardAsync(new DeleteTimecardRequest { Id = "id" });
-## Locations -
client.Locations.ListAsync() -> ListLocationsResponse +## Default Locations +
client.Default.Locations.ListAsync() -> ListLocationsResponse
@@ -6744,7 +6750,7 @@ including those with an inactive status. Locations are listed alphabetically by
```csharp -await client.Locations.ListAsync(); +await client.Default.Locations.ListAsync(); ```
@@ -6756,7 +6762,7 @@ await client.Locations.ListAsync();
-
client.Locations.CreateAsync(CreateLocationRequest { ... }) -> CreateLocationResponse +
client.Default.Locations.CreateAsync(CreateLocationRequest { ... }) -> CreateLocationResponse
@@ -6789,7 +6795,7 @@ each location has a sensible and unique name.
```csharp -await client.Locations.CreateAsync( +await client.Default.Locations.CreateAsync( new CreateLocationRequest { Location = new Location @@ -6832,7 +6838,7 @@ await client.Locations.CreateAsync(
-
client.Locations.GetAsync(GetLocationsRequest { ... }) -> GetLocationResponse +
client.Default.Locations.GetAsync(GetLocationsRequest { ... }) -> GetLocationResponse
@@ -6860,7 +6866,7 @@ as the location ID to retrieve details of the [main location](https://developer.
```csharp -await client.Locations.GetAsync(new GetLocationsRequest { LocationId = "location_id" }); +await client.Default.Locations.GetAsync(new GetLocationsRequest { LocationId = "location_id" }); ```
@@ -6887,7 +6893,7 @@ await client.Locations.GetAsync(new GetLocationsRequest { LocationId = "location
-
client.Locations.UpdateAsync(UpdateLocationRequest { ... }) -> UpdateLocationResponse +
client.Default.Locations.UpdateAsync(UpdateLocationRequest { ... }) -> UpdateLocationResponse
@@ -6914,7 +6920,7 @@ Updates a [location](https://developer.squareup.com/docs/locations-api).
```csharp -await client.Locations.UpdateAsync( +await client.Default.Locations.UpdateAsync( new UpdateLocationRequest { LocationId = "location_id", @@ -6926,19 +6932,19 @@ await client.Locations.UpdateAsync( { new BusinessHoursPeriod { - DayOfWeek = Square.DayOfWeek.Fri, + DayOfWeek = Square.Default.DayOfWeek.Fri, StartLocalTime = "07:00", EndLocalTime = "18:00", }, new BusinessHoursPeriod { - DayOfWeek = Square.DayOfWeek.Sat, + DayOfWeek = Square.Default.DayOfWeek.Sat, StartLocalTime = "07:00", EndLocalTime = "18:00", }, new BusinessHoursPeriod { - DayOfWeek = Square.DayOfWeek.Sun, + DayOfWeek = Square.Default.DayOfWeek.Sun, StartLocalTime = "09:00", EndLocalTime = "15:00", }, @@ -6974,7 +6980,7 @@ await client.Locations.UpdateAsync(
-
client.Locations.CheckoutsAsync(CreateCheckoutRequest { ... }) -> CreateCheckoutResponse +
client.Default.Locations.CheckoutsAsync(CreateCheckoutRequest { ... }) -> CreateCheckoutResponse
@@ -7007,7 +7013,7 @@ For more information, see [Checkout API highlights](https://developer.squareup.c
```csharp -await client.Locations.CheckoutsAsync( +await client.Default.Locations.CheckoutsAsync( new CreateCheckoutRequest { LocationId = "location_id", @@ -7129,8 +7135,8 @@ await client.Locations.CheckoutsAsync(
-## Loyalty -
client.Loyalty.SearchEventsAsync(SearchLoyaltyEventsRequest { ... }) -> SearchLoyaltyEventsResponse +## Default Loyalty +
client.Default.Loyalty.SearchEventsAsync(SearchLoyaltyEventsRequest { ... }) -> SearchLoyaltyEventsResponse
@@ -7164,7 +7170,7 @@ Search results are sorted by `created_at` in descending order.
```csharp -await client.Loyalty.SearchEventsAsync( +await client.Default.Loyalty.SearchEventsAsync( new SearchLoyaltyEventsRequest { Query = new LoyaltyEventQuery @@ -7206,8 +7212,8 @@ await client.Loyalty.SearchEventsAsync(
-## Merchants -
client.Merchants.ListAsync(ListMerchantsRequest { ... }) -> Pager<Merchant> +## Default Merchants +
client.Default.Merchants.ListAsync(ListMerchantsRequest { ... }) -> Pager<Merchant>
@@ -7243,7 +7249,7 @@ endpoint to retrieve the merchant information.
```csharp -await client.Merchants.ListAsync(new ListMerchantsRequest { Cursor = 1 }); +await client.Default.Merchants.ListAsync(new ListMerchantsRequest { Cursor = 1 }); ```
@@ -7270,7 +7276,7 @@ await client.Merchants.ListAsync(new ListMerchantsRequest { Cursor = 1 });
-
client.Merchants.GetAsync(GetMerchantsRequest { ... }) -> GetMerchantResponse +
client.Default.Merchants.GetAsync(GetMerchantsRequest { ... }) -> GetMerchantResponse
@@ -7297,7 +7303,7 @@ Retrieves the `Merchant` object for the given `merchant_id`.
```csharp -await client.Merchants.GetAsync(new GetMerchantsRequest { MerchantId = "merchant_id" }); +await client.Default.Merchants.GetAsync(new GetMerchantsRequest { MerchantId = "merchant_id" }); ```
@@ -7324,8 +7330,8 @@ await client.Merchants.GetAsync(new GetMerchantsRequest { MerchantId = "merchant
-## Checkout -
client.Checkout.RetrieveLocationSettingsAsync(RetrieveLocationSettingsRequest { ... }) -> RetrieveLocationSettingsResponse +## Default Checkout +
client.Default.Checkout.RetrieveLocationSettingsAsync(RetrieveLocationSettingsRequest { ... }) -> RetrieveLocationSettingsResponse
@@ -7352,7 +7358,7 @@ Retrieves the location-level settings for a Square-hosted checkout page.
```csharp -await client.Checkout.RetrieveLocationSettingsAsync( +await client.Default.Checkout.RetrieveLocationSettingsAsync( new RetrieveLocationSettingsRequest { LocationId = "location_id" } ); ``` @@ -7381,7 +7387,7 @@ await client.Checkout.RetrieveLocationSettingsAsync(
-
client.Checkout.UpdateLocationSettingsAsync(UpdateLocationSettingsRequest { ... }) -> UpdateLocationSettingsResponse +
client.Default.Checkout.UpdateLocationSettingsAsync(UpdateLocationSettingsRequest { ... }) -> UpdateLocationSettingsResponse
@@ -7408,7 +7414,7 @@ Updates the location-level settings for a Square-hosted checkout page.
```csharp -await client.Checkout.UpdateLocationSettingsAsync( +await client.Default.Checkout.UpdateLocationSettingsAsync( new UpdateLocationSettingsRequest { LocationId = "location_id", @@ -7441,7 +7447,7 @@ await client.Checkout.UpdateLocationSettingsAsync(
-
client.Checkout.RetrieveMerchantSettingsAsync() -> RetrieveMerchantSettingsResponse +
client.Default.Checkout.RetrieveMerchantSettingsAsync() -> RetrieveMerchantSettingsResponse
@@ -7468,7 +7474,7 @@ Retrieves the merchant-level settings for a Square-hosted checkout page.
```csharp -await client.Checkout.RetrieveMerchantSettingsAsync(); +await client.Default.Checkout.RetrieveMerchantSettingsAsync(); ```
@@ -7480,7 +7486,7 @@ await client.Checkout.RetrieveMerchantSettingsAsync();
-
client.Checkout.UpdateMerchantSettingsAsync(UpdateMerchantSettingsRequest { ... }) -> UpdateMerchantSettingsResponse +
client.Default.Checkout.UpdateMerchantSettingsAsync(UpdateMerchantSettingsRequest { ... }) -> UpdateMerchantSettingsResponse
@@ -7507,7 +7513,7 @@ Updates the merchant-level settings for a Square-hosted checkout page.
```csharp -await client.Checkout.UpdateMerchantSettingsAsync( +await client.Default.Checkout.UpdateMerchantSettingsAsync( new UpdateMerchantSettingsRequest { MerchantSettings = new CheckoutMerchantSettings() } ); ``` @@ -7536,8 +7542,8 @@ await client.Checkout.UpdateMerchantSettingsAsync(
-## Orders -
client.Orders.CreateAsync(CreateOrderRequest { ... }) -> CreateOrderResponse +## Default Orders +
client.Default.Orders.CreateAsync(CreateOrderRequest { ... }) -> CreateOrderResponse
@@ -7570,7 +7576,7 @@ You can modify open orders using the [UpdateOrder](api-endpoint:Orders-UpdateOrd
```csharp -await client.Orders.CreateAsync( +await client.Default.Orders.CreateAsync( new CreateOrderRequest { Order = new Order @@ -7662,7 +7668,7 @@ await client.Orders.CreateAsync(
-
client.Orders.BatchGetAsync(BatchGetOrdersRequest { ... }) -> BatchGetOrdersResponse +
client.Default.Orders.BatchGetAsync(BatchGetOrdersRequest { ... }) -> BatchGetOrdersResponse
@@ -7691,7 +7697,7 @@ If a given order ID does not exist, the ID is ignored instead of generating an e
```csharp -await client.Orders.BatchGetAsync( +await client.Default.Orders.BatchGetAsync( new BatchGetOrdersRequest { LocationId = "057P5VYJ4A5X1", @@ -7728,7 +7734,7 @@ await client.Orders.BatchGetAsync(
-
client.Orders.CalculateAsync(CalculateOrderRequest { ... }) -> CalculateOrderResponse +
client.Default.Orders.CalculateAsync(CalculateOrderRequest { ... }) -> CalculateOrderResponse
@@ -7755,7 +7761,7 @@ Enables applications to preview order pricing without creating an order.
```csharp -await client.Orders.CalculateAsync( +await client.Default.Orders.CalculateAsync( new CalculateOrderRequest { Order = new Order @@ -7814,7 +7820,7 @@ await client.Orders.CalculateAsync(
-
client.Orders.CloneAsync(CloneOrderRequest { ... }) -> CloneOrderResponse +
client.Default.Orders.CloneAsync(CloneOrderRequest { ... }) -> CloneOrderResponse
@@ -7842,7 +7848,7 @@ only the core fields (such as line items, taxes, and discounts) copied from the
```csharp -await client.Orders.CloneAsync( +await client.Default.Orders.CloneAsync( new CloneOrderRequest { OrderId = "ZAISEM52YcpmcWAzERDOyiWS123", @@ -7876,7 +7882,7 @@ await client.Orders.CloneAsync(
-
client.Orders.SearchAsync(SearchOrdersRequest { ... }) -> SearchOrdersResponse +
client.Default.Orders.SearchAsync(SearchOrdersRequest { ... }) -> SearchOrdersResponse
@@ -7919,7 +7925,7 @@ not the time it was subsequently transmitted to Square.
```csharp -await client.Orders.SearchAsync( +await client.Default.Orders.SearchAsync( new SearchOrdersRequest { LocationIds = new List() { "057P5VYJ4A5X1", "18YC4JDH91E1H" }, @@ -7976,7 +7982,7 @@ await client.Orders.SearchAsync(
-
client.Orders.GetAsync(GetOrdersRequest { ... }) -> GetOrderResponse +
client.Default.Orders.GetAsync(GetOrdersRequest { ... }) -> GetOrderResponse
@@ -8003,7 +8009,7 @@ Retrieves an [Order](entity:Order) by ID.
```csharp -await client.Orders.GetAsync(new GetOrdersRequest { OrderId = "order_id" }); +await client.Default.Orders.GetAsync(new GetOrdersRequest { OrderId = "order_id" }); ```
@@ -8030,7 +8036,7 @@ await client.Orders.GetAsync(new GetOrdersRequest { OrderId = "order_id" });
-
client.Orders.UpdateAsync(UpdateOrderRequest { ... }) -> UpdateOrderResponse +
client.Default.Orders.UpdateAsync(UpdateOrderRequest { ... }) -> UpdateOrderResponse
@@ -8071,7 +8077,7 @@ To pay for an order, see
```csharp -await client.Orders.UpdateAsync( +await client.Default.Orders.UpdateAsync( new UpdateOrderRequest { OrderId = "order_id", @@ -8120,7 +8126,7 @@ await client.Orders.UpdateAsync(
-
client.Orders.PayAsync(PayOrderRequest { ... }) -> PayOrderResponse +
client.Default.Orders.PayAsync(PayOrderRequest { ... }) -> PayOrderResponse
@@ -8160,7 +8166,7 @@ Using a delayed capture payment with `PayOrder` completes the approved payment.
```csharp -await client.Orders.PayAsync( +await client.Default.Orders.PayAsync( new PayOrderRequest { OrderId = "order_id", @@ -8198,8 +8204,8 @@ await client.Orders.PayAsync(
-## Payments -
client.Payments.ListAsync(ListPaymentsRequest { ... }) -> Pager<Payment> +## Default Payments +
client.Default.Payments.ListAsync(ListPaymentsRequest { ... }) -> Pager<Payment>
@@ -8231,7 +8237,7 @@ The maximum results per page is 100.
```csharp -await client.Payments.ListAsync( +await client.Default.Payments.ListAsync( new ListPaymentsRequest { BeginTime = "begin_time", @@ -8277,7 +8283,7 @@ await client.Payments.ListAsync(
-
client.Payments.CreateAsync(CreatePaymentRequest { ... }) -> CreatePaymentResponse +
client.Default.Payments.CreateAsync(CreatePaymentRequest { ... }) -> CreatePaymentResponse
@@ -8311,7 +8317,7 @@ The endpoint creates a
```csharp -await client.Payments.CreateAsync( +await client.Default.Payments.CreateAsync( new CreatePaymentRequest { SourceId = "ccof:GaJGNaZa8x4OgDJn4GB", @@ -8351,7 +8357,7 @@ await client.Payments.CreateAsync(
-
client.Payments.CancelByIdempotencyKeyAsync(CancelPaymentByIdempotencyKeyRequest { ... }) -> CancelPaymentByIdempotencyKeyResponse +
client.Default.Payments.CancelByIdempotencyKeyAsync(CancelPaymentByIdempotencyKeyRequest { ... }) -> CancelPaymentByIdempotencyKeyResponse
@@ -8388,7 +8394,7 @@ returns successfully.
```csharp -await client.Payments.CancelByIdempotencyKeyAsync( +await client.Default.Payments.CancelByIdempotencyKeyAsync( new CancelPaymentByIdempotencyKeyRequest { IdempotencyKey = "a7e36d40-d24b-11e8-b568-0800200c9a66", @@ -8420,7 +8426,7 @@ await client.Payments.CancelByIdempotencyKeyAsync(
-
client.Payments.GetAsync(GetPaymentsRequest { ... }) -> GetPaymentResponse +
client.Default.Payments.GetAsync(GetPaymentsRequest { ... }) -> GetPaymentResponse
@@ -8447,7 +8453,7 @@ Retrieves details for a specific payment.
```csharp -await client.Payments.GetAsync(new GetPaymentsRequest { PaymentId = "payment_id" }); +await client.Default.Payments.GetAsync(new GetPaymentsRequest { PaymentId = "payment_id" }); ```
@@ -8474,7 +8480,7 @@ await client.Payments.GetAsync(new GetPaymentsRequest { PaymentId = "payment_id"
-
client.Payments.UpdateAsync(UpdatePaymentRequest { ... }) -> UpdatePaymentResponse +
client.Default.Payments.UpdateAsync(UpdatePaymentRequest { ... }) -> UpdatePaymentResponse
@@ -8502,7 +8508,7 @@ You can update the `amount_money` and `tip_money` using this endpoint.
```csharp -await client.Payments.UpdateAsync( +await client.Default.Payments.UpdateAsync( new UpdatePaymentRequest { PaymentId = "payment_id", @@ -8541,7 +8547,7 @@ await client.Payments.UpdateAsync(
-
client.Payments.CancelAsync(CancelPaymentsRequest { ... }) -> CancelPaymentResponse +
client.Default.Payments.CancelAsync(CancelPaymentsRequest { ... }) -> CancelPaymentResponse
@@ -8569,7 +8575,7 @@ the APPROVED `status`.
```csharp -await client.Payments.CancelAsync(new CancelPaymentsRequest { PaymentId = "payment_id" }); +await client.Default.Payments.CancelAsync(new CancelPaymentsRequest { PaymentId = "payment_id" }); ```
@@ -8596,7 +8602,7 @@ await client.Payments.CancelAsync(new CancelPaymentsRequest { PaymentId = "payme
-
client.Payments.CompleteAsync(CompletePaymentRequest { ... }) -> CompletePaymentResponse +
client.Default.Payments.CompleteAsync(CompletePaymentRequest { ... }) -> CompletePaymentResponse
@@ -8626,7 +8632,9 @@ You can use this endpoint to complete a payment with the APPROVED `status`.
```csharp -await client.Payments.CompleteAsync(new CompletePaymentRequest { PaymentId = "payment_id" }); +await client.Default.Payments.CompleteAsync( + new CompletePaymentRequest { PaymentId = "payment_id" } +); ```
@@ -8653,8 +8661,8 @@ await client.Payments.CompleteAsync(new CompletePaymentRequest { PaymentId = "pa
-## Payouts -
client.Payouts.ListAsync(ListPayoutsRequest { ... }) -> Pager<Payout> +## Default Payouts +
client.Default.Payouts.ListAsync(ListPayoutsRequest { ... }) -> Pager<Payout>
@@ -8683,7 +8691,7 @@ To call this endpoint, set `PAYOUTS_READ` for the OAuth scope.
```csharp -await client.Payouts.ListAsync( +await client.Default.Payouts.ListAsync( new ListPayoutsRequest { LocationId = "location_id", @@ -8721,7 +8729,7 @@ await client.Payouts.ListAsync(
-
client.Payouts.GetAsync(GetPayoutsRequest { ... }) -> GetPayoutResponse +
client.Default.Payouts.GetAsync(GetPayoutsRequest { ... }) -> GetPayoutResponse
@@ -8749,7 +8757,7 @@ To call this endpoint, set `PAYOUTS_READ` for the OAuth scope.
```csharp -await client.Payouts.GetAsync(new GetPayoutsRequest { PayoutId = "payout_id" }); +await client.Default.Payouts.GetAsync(new GetPayoutsRequest { PayoutId = "payout_id" }); ```
@@ -8776,7 +8784,7 @@ await client.Payouts.GetAsync(new GetPayoutsRequest { PayoutId = "payout_id" });
-
client.Payouts.ListEntriesAsync(ListEntriesPayoutsRequest { ... }) -> Pager<PayoutEntry> +
client.Default.Payouts.ListEntriesAsync(ListEntriesPayoutsRequest { ... }) -> Pager<PayoutEntry>
@@ -8804,7 +8812,7 @@ To call this endpoint, set `PAYOUTS_READ` for the OAuth scope.
```csharp -await client.Payouts.ListEntriesAsync( +await client.Default.Payouts.ListEntriesAsync( new ListEntriesPayoutsRequest { PayoutId = "payout_id", @@ -8839,8 +8847,8 @@ await client.Payouts.ListEntriesAsync(
-## Refunds -
client.Refunds.ListAsync(ListRefundsRequest { ... }) -> Pager<PaymentRefund> +## Default Refunds +
client.Default.Refunds.ListAsync(ListRefundsRequest { ... }) -> Pager<PaymentRefund>
@@ -8872,7 +8880,7 @@ The maximum results per page is 100.
```csharp -await client.Refunds.ListAsync( +await client.Default.Refunds.ListAsync( new ListRefundsRequest { BeginTime = "begin_time", @@ -8914,7 +8922,7 @@ await client.Refunds.ListAsync(
-
client.Refunds.RefundPaymentAsync(RefundPaymentRequest { ... }) -> RefundPaymentResponse +
client.Default.Refunds.RefundPaymentAsync(RefundPaymentRequest { ... }) -> RefundPaymentResponse
@@ -8944,7 +8952,7 @@ refund of a cash or external payment. For more information, see
```csharp -await client.Refunds.RefundPaymentAsync( +await client.Default.Refunds.RefundPaymentAsync( new RefundPaymentRequest { IdempotencyKey = "9b7f2dcf-49da-4411-b23e-a2d6af21333a", @@ -8980,7 +8988,7 @@ await client.Refunds.RefundPaymentAsync(
-
client.Refunds.GetAsync(GetRefundsRequest { ... }) -> GetPaymentRefundResponse +
client.Default.Refunds.GetAsync(GetRefundsRequest { ... }) -> GetPaymentRefundResponse
@@ -9007,7 +9015,9 @@ Retrieves a specific refund using the `refund_id`.
```csharp -await client.Refunds.GetAsync(new Square.Refunds.GetRefundsRequest { RefundId = "refund_id" }); +await client.Default.Refunds.GetAsync( + new Square.Default.GetRefundsRequest { RefundId = "refund_id" } +); ```
@@ -9034,8 +9044,8 @@ await client.Refunds.GetAsync(new Square.Refunds.GetRefundsRequest { RefundId =
-## Sites -
client.Sites.ListAsync() -> ListSitesResponse +## Default Sites +
client.Default.Sites.ListAsync() -> ListSitesResponse
@@ -9065,7 +9075,7 @@ __Note:__ Square Online APIs are publicly available as part of an early access p
```csharp -await client.Sites.ListAsync(); +await client.Default.Sites.ListAsync(); ```
@@ -9077,8 +9087,8 @@ await client.Sites.ListAsync();
-## Snippets -
client.Snippets.GetAsync(GetSnippetsRequest { ... }) -> GetSnippetResponse +## Default Snippets +
client.Default.Snippets.GetAsync(GetSnippetsRequest { ... }) -> GetSnippetResponse
@@ -9110,7 +9120,7 @@ __Note:__ Square Online APIs are publicly available as part of an early access p
```csharp -await client.Snippets.GetAsync(new GetSnippetsRequest { SiteId = "site_id" }); +await client.Default.Snippets.GetAsync(new GetSnippetsRequest { SiteId = "site_id" }); ```
@@ -9137,7 +9147,7 @@ await client.Snippets.GetAsync(new GetSnippetsRequest { SiteId = "site_id" });
-
client.Snippets.UpsertAsync(UpsertSnippetRequest { ... }) -> UpsertSnippetResponse +
client.Default.Snippets.UpsertAsync(UpsertSnippetRequest { ... }) -> UpsertSnippetResponse
@@ -9170,7 +9180,7 @@ __Note:__ Square Online APIs are publicly available as part of an early access p
```csharp -await client.Snippets.UpsertAsync( +await client.Default.Snippets.UpsertAsync( new UpsertSnippetRequest { SiteId = "site_id", @@ -9203,7 +9213,7 @@ await client.Snippets.UpsertAsync(
-
client.Snippets.DeleteAsync(DeleteSnippetsRequest { ... }) -> DeleteSnippetResponse +
client.Default.Snippets.DeleteAsync(DeleteSnippetsRequest { ... }) -> DeleteSnippetResponse
@@ -9235,7 +9245,7 @@ __Note:__ Square Online APIs are publicly available as part of an early access p
```csharp -await client.Snippets.DeleteAsync(new DeleteSnippetsRequest { SiteId = "site_id" }); +await client.Default.Snippets.DeleteAsync(new DeleteSnippetsRequest { SiteId = "site_id" }); ```
@@ -9262,8 +9272,8 @@ await client.Snippets.DeleteAsync(new DeleteSnippetsRequest { SiteId = "site_id"
-## Subscriptions -
client.Subscriptions.CreateAsync(CreateSubscriptionRequest { ... }) -> CreateSubscriptionResponse +## Default Subscriptions +
client.Default.Subscriptions.CreateAsync(CreateSubscriptionRequest { ... }) -> CreateSubscriptionResponse
@@ -9297,7 +9307,7 @@ For more information, see [Create a subscription](https://developer.squareup.com
```csharp -await client.Subscriptions.CreateAsync( +await client.Default.Subscriptions.CreateAsync( new CreateSubscriptionRequest { IdempotencyKey = "8193148c-9586-11e6-99f9-28cfe92138cf", @@ -9340,7 +9350,7 @@ await client.Subscriptions.CreateAsync(
-
client.Subscriptions.BulkSwapPlanAsync(BulkSwapPlanRequest { ... }) -> BulkSwapPlanResponse +
client.Default.Subscriptions.BulkSwapPlanAsync(BulkSwapPlanRequest { ... }) -> BulkSwapPlanResponse
@@ -9368,7 +9378,7 @@ variation. For more information, see [Swap Subscription Plan Variations](https:/
```csharp -await client.Subscriptions.BulkSwapPlanAsync( +await client.Default.Subscriptions.BulkSwapPlanAsync( new BulkSwapPlanRequest { NewPlanVariationId = "FQ7CDXXWSLUJRPM3GFJSJGZ7", @@ -9402,7 +9412,7 @@ await client.Subscriptions.BulkSwapPlanAsync(
-
client.Subscriptions.SearchAsync(SearchSubscriptionsRequest { ... }) -> SearchSubscriptionsResponse +
client.Default.Subscriptions.SearchAsync(SearchSubscriptionsRequest { ... }) -> SearchSubscriptionsResponse
@@ -9442,7 +9452,7 @@ customer by subscription creation date.
```csharp -await client.Subscriptions.SearchAsync( +await client.Default.Subscriptions.SearchAsync( new SearchSubscriptionsRequest { Query = new SearchSubscriptionsQuery @@ -9482,7 +9492,7 @@ await client.Subscriptions.SearchAsync(
-
client.Subscriptions.GetAsync(GetSubscriptionsRequest { ... }) -> GetSubscriptionResponse +
client.Default.Subscriptions.GetAsync(GetSubscriptionsRequest { ... }) -> GetSubscriptionResponse
@@ -9509,8 +9519,8 @@ Retrieves a specific subscription.
```csharp -await client.Subscriptions.GetAsync( - new Square.Subscriptions.GetSubscriptionsRequest +await client.Default.Subscriptions.GetAsync( + new Square.Default.GetSubscriptionsRequest { SubscriptionId = "subscription_id", Include = "include", @@ -9542,7 +9552,7 @@ await client.Subscriptions.GetAsync(
-
client.Subscriptions.UpdateAsync(UpdateSubscriptionRequest { ... }) -> UpdateSubscriptionResponse +
client.Default.Subscriptions.UpdateAsync(UpdateSubscriptionRequest { ... }) -> UpdateSubscriptionResponse
@@ -9570,7 +9580,7 @@ To clear a field, set its value to `null`.
```csharp -await client.Subscriptions.UpdateAsync( +await client.Default.Subscriptions.UpdateAsync( new UpdateSubscriptionRequest { SubscriptionId = "subscription_id", @@ -9603,7 +9613,7 @@ await client.Subscriptions.UpdateAsync(
-
client.Subscriptions.DeleteActionAsync(DeleteActionSubscriptionsRequest { ... }) -> DeleteSubscriptionActionResponse +
client.Default.Subscriptions.DeleteActionAsync(DeleteActionSubscriptionsRequest { ... }) -> DeleteSubscriptionActionResponse
@@ -9630,7 +9640,7 @@ Deletes a scheduled action for a subscription.
```csharp -await client.Subscriptions.DeleteActionAsync( +await client.Default.Subscriptions.DeleteActionAsync( new DeleteActionSubscriptionsRequest { SubscriptionId = "subscription_id", @@ -9663,7 +9673,7 @@ await client.Subscriptions.DeleteActionAsync(
-
client.Subscriptions.ChangeBillingAnchorDateAsync(ChangeBillingAnchorDateRequest { ... }) -> ChangeBillingAnchorDateResponse +
client.Default.Subscriptions.ChangeBillingAnchorDateAsync(ChangeBillingAnchorDateRequest { ... }) -> ChangeBillingAnchorDateResponse
@@ -9691,7 +9701,7 @@ for a subscription.
```csharp -await client.Subscriptions.ChangeBillingAnchorDateAsync( +await client.Default.Subscriptions.ChangeBillingAnchorDateAsync( new ChangeBillingAnchorDateRequest { SubscriptionId = "subscription_id", @@ -9724,7 +9734,7 @@ await client.Subscriptions.ChangeBillingAnchorDateAsync(
-
client.Subscriptions.CancelAsync(CancelSubscriptionsRequest { ... }) -> CancelSubscriptionResponse +
client.Default.Subscriptions.CancelAsync(CancelSubscriptionsRequest { ... }) -> CancelSubscriptionResponse
@@ -9753,7 +9763,7 @@ the subscription status changes from ACTIVE to CANCELED.
```csharp -await client.Subscriptions.CancelAsync( +await client.Default.Subscriptions.CancelAsync( new CancelSubscriptionsRequest { SubscriptionId = "subscription_id" } ); ``` @@ -9782,7 +9792,7 @@ await client.Subscriptions.CancelAsync(
-
client.Subscriptions.ListEventsAsync(ListEventsSubscriptionsRequest { ... }) -> Pager<SubscriptionEvent> +
client.Default.Subscriptions.ListEventsAsync(ListEventsSubscriptionsRequest { ... }) -> Pager<SubscriptionEvent>
@@ -9809,7 +9819,7 @@ Lists all [events](https://developer.squareup.com/docs/subscriptions-api/actions
```csharp -await client.Subscriptions.ListEventsAsync( +await client.Default.Subscriptions.ListEventsAsync( new ListEventsSubscriptionsRequest { SubscriptionId = "subscription_id", @@ -9843,7 +9853,7 @@ await client.Subscriptions.ListEventsAsync(
-
client.Subscriptions.PauseAsync(PauseSubscriptionRequest { ... }) -> PauseSubscriptionResponse +
client.Default.Subscriptions.PauseAsync(PauseSubscriptionRequest { ... }) -> PauseSubscriptionResponse
@@ -9870,7 +9880,7 @@ Schedules a `PAUSE` action to pause an active subscription.
```csharp -await client.Subscriptions.PauseAsync( +await client.Default.Subscriptions.PauseAsync( new PauseSubscriptionRequest { SubscriptionId = "subscription_id" } ); ``` @@ -9899,7 +9909,7 @@ await client.Subscriptions.PauseAsync(
-
client.Subscriptions.ResumeAsync(ResumeSubscriptionRequest { ... }) -> ResumeSubscriptionResponse +
client.Default.Subscriptions.ResumeAsync(ResumeSubscriptionRequest { ... }) -> ResumeSubscriptionResponse
@@ -9926,7 +9936,7 @@ Schedules a `RESUME` action to resume a paused or a deactivated subscription.
```csharp -await client.Subscriptions.ResumeAsync( +await client.Default.Subscriptions.ResumeAsync( new ResumeSubscriptionRequest { SubscriptionId = "subscription_id" } ); ``` @@ -9955,7 +9965,7 @@ await client.Subscriptions.ResumeAsync(
-
client.Subscriptions.SwapPlanAsync(SwapPlanRequest { ... }) -> SwapPlanResponse +
client.Default.Subscriptions.SwapPlanAsync(SwapPlanRequest { ... }) -> SwapPlanResponse
@@ -9983,7 +9993,7 @@ For more information, see [Swap Subscription Plan Variations](https://developer.
```csharp -await client.Subscriptions.SwapPlanAsync( +await client.Default.Subscriptions.SwapPlanAsync( new SwapPlanRequest { SubscriptionId = "subscription_id", @@ -10020,8 +10030,8 @@ await client.Subscriptions.SwapPlanAsync(
-## TeamMembers -
client.TeamMembers.CreateAsync(CreateTeamMemberRequest { ... }) -> CreateTeamMemberResponse +## Default TeamMembers +
client.Default.TeamMembers.CreateAsync(CreateTeamMemberRequest { ... }) -> CreateTeamMemberResponse
@@ -10053,7 +10063,7 @@ Learn about [Troubleshooting the Team API](https://developer.squareup.com/docs/t
```csharp -await client.TeamMembers.CreateAsync( +await client.Default.TeamMembers.CreateAsync( new CreateTeamMemberRequest { IdempotencyKey = "idempotency-key-0", @@ -10070,7 +10080,7 @@ await client.TeamMembers.CreateAsync( AssignmentType = TeamMemberAssignedLocationsAssignmentType.ExplicitLocations, LocationIds = new List() { "YSGH2WBKG94QZ", "GA2Y9HSJ8KRYT" }, }, - WageSetting = new Square.WageSetting + WageSetting = new WageSetting { JobAssignments = new List() { @@ -10119,7 +10129,7 @@ await client.TeamMembers.CreateAsync(
-
client.TeamMembers.BatchCreateAsync(BatchCreateTeamMembersRequest { ... }) -> BatchCreateTeamMembersResponse +
client.Default.TeamMembers.BatchCreateAsync(BatchCreateTeamMembersRequest { ... }) -> BatchCreateTeamMembersResponse
@@ -10151,7 +10161,7 @@ Learn about [Troubleshooting the Team API](https://developer.squareup.com/docs/t
```csharp -await client.TeamMembers.BatchCreateAsync( +await client.Default.TeamMembers.BatchCreateAsync( new BatchCreateTeamMembersRequest { TeamMembers = new Dictionary() @@ -10224,7 +10234,7 @@ await client.TeamMembers.BatchCreateAsync(
-
client.TeamMembers.BatchUpdateAsync(BatchUpdateTeamMembersRequest { ... }) -> BatchUpdateTeamMembersResponse +
client.Default.TeamMembers.BatchUpdateAsync(BatchUpdateTeamMembersRequest { ... }) -> BatchUpdateTeamMembersResponse
@@ -10255,7 +10265,7 @@ Learn about [Troubleshooting the Team API](https://developer.squareup.com/docs/t
```csharp -await client.TeamMembers.BatchUpdateAsync( +await client.Default.TeamMembers.BatchUpdateAsync( new BatchUpdateTeamMembersRequest { TeamMembers = new Dictionary() @@ -10332,7 +10342,7 @@ await client.TeamMembers.BatchUpdateAsync(
-
client.TeamMembers.SearchAsync(SearchTeamMembersRequest { ... }) -> SearchTeamMembersResponse +
client.Default.TeamMembers.SearchAsync(SearchTeamMembersRequest { ... }) -> SearchTeamMembersResponse
@@ -10361,7 +10371,7 @@ the team member is the Square account owner.
```csharp -await client.TeamMembers.SearchAsync( +await client.Default.TeamMembers.SearchAsync( new SearchTeamMembersRequest { Query = new SearchTeamMembersQuery @@ -10401,7 +10411,7 @@ await client.TeamMembers.SearchAsync(
-
client.TeamMembers.GetAsync(GetTeamMembersRequest { ... }) -> GetTeamMemberResponse +
client.Default.TeamMembers.GetAsync(GetTeamMembersRequest { ... }) -> GetTeamMemberResponse
@@ -10429,7 +10439,9 @@ Learn about [Troubleshooting the Team API](https://developer.squareup.com/docs/t
```csharp -await client.TeamMembers.GetAsync(new GetTeamMembersRequest { TeamMemberId = "team_member_id" }); +await client.Default.TeamMembers.GetAsync( + new GetTeamMembersRequest { TeamMemberId = "team_member_id" } +); ```
@@ -10456,7 +10468,7 @@ await client.TeamMembers.GetAsync(new GetTeamMembersRequest { TeamMemberId = "te
-
client.TeamMembers.UpdateAsync(UpdateTeamMembersRequest { ... }) -> UpdateTeamMemberResponse +
client.Default.TeamMembers.UpdateAsync(UpdateTeamMembersRequest { ... }) -> UpdateTeamMemberResponse
@@ -10484,7 +10496,7 @@ Learn about [Troubleshooting the Team API](https://developer.squareup.com/docs/t
```csharp -await client.TeamMembers.UpdateAsync( +await client.Default.TeamMembers.UpdateAsync( new UpdateTeamMembersRequest { TeamMemberId = "team_member_id", @@ -10503,7 +10515,7 @@ await client.TeamMembers.UpdateAsync( AssignmentType = TeamMemberAssignedLocationsAssignmentType.ExplicitLocations, LocationIds = new List() { "YSGH2WBKG94QZ", "GA2Y9HSJ8KRYT" }, }, - WageSetting = new Square.WageSetting + WageSetting = new WageSetting { JobAssignments = new List() { @@ -10553,8 +10565,8 @@ await client.TeamMembers.UpdateAsync(
-## Team -
client.Team.ListJobsAsync(ListJobsRequest { ... }) -> ListJobsResponse +## Default Team +
client.Default.Team.ListJobsAsync(ListJobsRequest { ... }) -> ListJobsResponse
@@ -10581,7 +10593,7 @@ Lists jobs in a seller account. Results are sorted by title in ascending order.
```csharp -await client.Team.ListJobsAsync(new ListJobsRequest { Cursor = "cursor" }); +await client.Default.Team.ListJobsAsync(new ListJobsRequest { Cursor = "cursor" }); ```
@@ -10608,7 +10620,7 @@ await client.Team.ListJobsAsync(new ListJobsRequest { Cursor = "cursor" });
-
client.Team.CreateJobAsync(CreateJobRequest { ... }) -> CreateJobResponse +
client.Default.Team.CreateJobAsync(CreateJobRequest { ... }) -> CreateJobResponse
@@ -10636,7 +10648,7 @@ compensation is defined in a [job assignment](entity:JobAssignment) in a team me
```csharp -await client.Team.CreateJobAsync( +await client.Default.Team.CreateJobAsync( new CreateJobRequest { Job = new Job { Title = "Cashier", IsTipEligible = true }, @@ -10669,7 +10681,7 @@ await client.Team.CreateJobAsync(
-
client.Team.RetrieveJobAsync(RetrieveJobRequest { ... }) -> RetrieveJobResponse +
client.Default.Team.RetrieveJobAsync(RetrieveJobRequest { ... }) -> RetrieveJobResponse
@@ -10696,7 +10708,7 @@ Retrieves a specified job.
```csharp -await client.Team.RetrieveJobAsync(new RetrieveJobRequest { JobId = "job_id" }); +await client.Default.Team.RetrieveJobAsync(new RetrieveJobRequest { JobId = "job_id" }); ```
@@ -10723,7 +10735,7 @@ await client.Team.RetrieveJobAsync(new RetrieveJobRequest { JobId = "job_id" });
-
client.Team.UpdateJobAsync(UpdateJobRequest { ... }) -> UpdateJobResponse +
client.Default.Team.UpdateJobAsync(UpdateJobRequest { ... }) -> UpdateJobResponse
@@ -10752,7 +10764,7 @@ tip eligibility propagate to all `TeamMemberWage` objects that reference the job
```csharp -await client.Team.UpdateJobAsync( +await client.Default.Team.UpdateJobAsync( new UpdateJobRequest { JobId = "job_id", @@ -10785,8 +10797,8 @@ await client.Team.UpdateJobAsync(
-## Terminal -
client.Terminal.DismissTerminalActionAsync(DismissTerminalActionRequest { ... }) -> DismissTerminalActionResponse +## Default Terminal +
client.Default.Terminal.DismissTerminalActionAsync(DismissTerminalActionRequest { ... }) -> DismissTerminalActionResponse
@@ -10815,7 +10827,7 @@ See [Link and Dismiss Actions](https://developer.squareup.com/docs/terminal-api/
```csharp -await client.Terminal.DismissTerminalActionAsync( +await client.Default.Terminal.DismissTerminalActionAsync( new DismissTerminalActionRequest { ActionId = "action_id" } ); ``` @@ -10844,7 +10856,7 @@ await client.Terminal.DismissTerminalActionAsync(
-
client.Terminal.DismissTerminalCheckoutAsync(DismissTerminalCheckoutRequest { ... }) -> DismissTerminalCheckoutResponse +
client.Default.Terminal.DismissTerminalCheckoutAsync(DismissTerminalCheckoutRequest { ... }) -> DismissTerminalCheckoutResponse
@@ -10871,7 +10883,7 @@ Dismisses a Terminal checkout request if the status and type of the request perm
```csharp -await client.Terminal.DismissTerminalCheckoutAsync( +await client.Default.Terminal.DismissTerminalCheckoutAsync( new DismissTerminalCheckoutRequest { CheckoutId = "checkout_id" } ); ``` @@ -10900,7 +10912,7 @@ await client.Terminal.DismissTerminalCheckoutAsync(
-
client.Terminal.DismissTerminalRefundAsync(DismissTerminalRefundRequest { ... }) -> DismissTerminalRefundResponse +
client.Default.Terminal.DismissTerminalRefundAsync(DismissTerminalRefundRequest { ... }) -> DismissTerminalRefundResponse
@@ -10927,7 +10939,7 @@ Dismisses a Terminal refund request if the status and type of the request permit
```csharp -await client.Terminal.DismissTerminalRefundAsync( +await client.Default.Terminal.DismissTerminalRefundAsync( new DismissTerminalRefundRequest { TerminalRefundId = "terminal_refund_id" } ); ``` @@ -10956,8 +10968,8 @@ await client.Terminal.DismissTerminalRefundAsync(
-## TransferOrders -
client.TransferOrders.CreateAsync(CreateTransferOrderRequest { ... }) -> CreateTransferOrderResponse +## Default TransferOrders +
client.Default.TransferOrders.CreateAsync(CreateTransferOrderRequest { ... }) -> CreateTransferOrderResponse
@@ -11003,7 +11015,7 @@ Creates a [transfer_order.created](webhook:transfer_order.created) webhook event
```csharp -await client.TransferOrders.CreateAsync( +await client.Default.TransferOrders.CreateAsync( new CreateTransferOrderRequest { IdempotencyKey = "65cc0586-3e82-384s-b524-3885cffd52", @@ -11057,7 +11069,7 @@ await client.TransferOrders.CreateAsync(
-
client.TransferOrders.SearchAsync(SearchTransferOrdersRequest { ... }) -> Pager<TransferOrder> +
client.Default.TransferOrders.SearchAsync(SearchTransferOrdersRequest { ... }) -> Pager<TransferOrder>
@@ -11090,7 +11102,7 @@ Common search scenarios:
```csharp -await client.TransferOrders.SearchAsync( +await client.Default.TransferOrders.SearchAsync( new SearchTransferOrdersRequest { Query = new TransferOrderQuery @@ -11141,7 +11153,7 @@ await client.TransferOrders.SearchAsync(
-
client.TransferOrders.GetAsync(GetTransferOrdersRequest { ... }) -> RetrieveTransferOrderResponse +
client.Default.TransferOrders.GetAsync(GetTransferOrdersRequest { ... }) -> RetrieveTransferOrderResponse
@@ -11174,7 +11186,7 @@ order details including:
```csharp -await client.TransferOrders.GetAsync( +await client.Default.TransferOrders.GetAsync( new GetTransferOrdersRequest { TransferOrderId = "transfer_order_id" } ); ``` @@ -11203,7 +11215,7 @@ await client.TransferOrders.GetAsync(
-
client.TransferOrders.UpdateAsync(UpdateTransferOrderRequest { ... }) -> UpdateTransferOrderResponse +
client.Default.TransferOrders.UpdateAsync(UpdateTransferOrderRequest { ... }) -> UpdateTransferOrderResponse
@@ -11233,7 +11245,7 @@ Creates a [transfer_order.updated](webhook:transfer_order.updated) webhook event
```csharp -await client.TransferOrders.UpdateAsync( +await client.Default.TransferOrders.UpdateAsync( new UpdateTransferOrderRequest { TransferOrderId = "transfer_order_id", @@ -11285,7 +11297,7 @@ await client.TransferOrders.UpdateAsync(
-
client.TransferOrders.DeleteAsync(DeleteTransferOrdersRequest { ... }) -> DeleteTransferOrderResponse +
client.Default.TransferOrders.DeleteAsync(DeleteTransferOrdersRequest { ... }) -> DeleteTransferOrderResponse
@@ -11316,7 +11328,7 @@ Creates a [transfer_order.deleted](webhook:transfer_order.deleted) webhook event
```csharp -await client.TransferOrders.DeleteAsync( +await client.Default.TransferOrders.DeleteAsync( new DeleteTransferOrdersRequest { TransferOrderId = "transfer_order_id", Version = 1000000 } ); ``` @@ -11345,7 +11357,7 @@ await client.TransferOrders.DeleteAsync(
-
client.TransferOrders.CancelAsync(CancelTransferOrderRequest { ... }) -> CancelTransferOrderResponse +
client.Default.TransferOrders.CancelAsync(CancelTransferOrderRequest { ... }) -> CancelTransferOrderResponse
@@ -11381,7 +11393,7 @@ Creates a [transfer_order.updated](webhook:transfer_order.updated) webhook event
```csharp -await client.TransferOrders.CancelAsync( +await client.Default.TransferOrders.CancelAsync( new CancelTransferOrderRequest { TransferOrderId = "transfer_order_id", @@ -11415,7 +11427,7 @@ await client.TransferOrders.CancelAsync(
-
client.TransferOrders.ReceiveAsync(ReceiveTransferOrderRequest { ... }) -> ReceiveTransferOrderResponse +
client.Default.TransferOrders.ReceiveAsync(ReceiveTransferOrderRequest { ... }) -> ReceiveTransferOrderResponse
@@ -11457,7 +11469,7 @@ Creates a [transfer_order.updated](webhook:transfer_order.updated) webhook event
```csharp -await client.TransferOrders.ReceiveAsync( +await client.Default.TransferOrders.ReceiveAsync( new ReceiveTransferOrderRequest { TransferOrderId = "transfer_order_id", @@ -11510,7 +11522,7 @@ await client.TransferOrders.ReceiveAsync(
-
client.TransferOrders.StartAsync(StartTransferOrderRequest { ... }) -> StartTransferOrderResponse +
client.Default.TransferOrders.StartAsync(StartTransferOrderRequest { ... }) -> StartTransferOrderResponse
@@ -11544,7 +11556,7 @@ Creates a [transfer_order.updated](webhook:transfer_order.updated) webhook event
```csharp -await client.TransferOrders.StartAsync( +await client.Default.TransferOrders.StartAsync( new StartTransferOrderRequest { TransferOrderId = "transfer_order_id", @@ -11578,8 +11590,8 @@ await client.TransferOrders.StartAsync(
-## Vendors -
client.Vendors.BatchCreateAsync(BatchCreateVendorsRequest { ... }) -> BatchCreateVendorsResponse +## Default Vendors +
client.Default.Vendors.BatchCreateAsync(BatchCreateVendorsRequest { ... }) -> BatchCreateVendorsResponse
@@ -11606,7 +11618,7 @@ Creates one or more [Vendor](entity:Vendor) objects to represent suppliers to a
```csharp -await client.Vendors.BatchCreateAsync( +await client.Default.Vendors.BatchCreateAsync( new BatchCreateVendorsRequest { Vendors = new Dictionary() @@ -11668,7 +11680,7 @@ await client.Vendors.BatchCreateAsync(
-
client.Vendors.BatchGetAsync(BatchGetVendorsRequest { ... }) -> BatchGetVendorsResponse +
client.Default.Vendors.BatchGetAsync(BatchGetVendorsRequest { ... }) -> BatchGetVendorsResponse
@@ -11695,7 +11707,7 @@ Retrieves one or more vendors of specified [Vendor](entity:Vendor) IDs.
```csharp -await client.Vendors.BatchGetAsync( +await client.Default.Vendors.BatchGetAsync( new BatchGetVendorsRequest { VendorIds = new List() { "INV_V_JDKYHBWT1D4F8MFH63DBMEN8Y4" }, @@ -11727,7 +11739,7 @@ await client.Vendors.BatchGetAsync(
-
client.Vendors.BatchUpdateAsync(BatchUpdateVendorsRequest { ... }) -> BatchUpdateVendorsResponse +
client.Default.Vendors.BatchUpdateAsync(BatchUpdateVendorsRequest { ... }) -> BatchUpdateVendorsResponse
@@ -11754,7 +11766,7 @@ Updates one or more of existing [Vendor](entity:Vendor) objects as suppliers to
```csharp -await client.Vendors.BatchUpdateAsync( +await client.Default.Vendors.BatchUpdateAsync( new BatchUpdateVendorsRequest { Vendors = new Dictionary() @@ -11796,7 +11808,7 @@ await client.Vendors.BatchUpdateAsync(
-
client.Vendors.CreateAsync(CreateVendorRequest { ... }) -> CreateVendorResponse +
client.Default.Vendors.CreateAsync(CreateVendorRequest { ... }) -> CreateVendorResponse
@@ -11823,7 +11835,7 @@ Creates a single [Vendor](entity:Vendor) object to represent a supplier to a sel
```csharp -await client.Vendors.CreateAsync( +await client.Default.Vendors.CreateAsync( new CreateVendorRequest { IdempotencyKey = "8fc6a5b0-9fe8-4b46-b46b-2ef95793abbe", @@ -11880,7 +11892,7 @@ await client.Vendors.CreateAsync(
-
client.Vendors.SearchAsync(SearchVendorsRequest { ... }) -> SearchVendorsResponse +
client.Default.Vendors.SearchAsync(SearchVendorsRequest { ... }) -> SearchVendorsResponse
@@ -11907,7 +11919,7 @@ Searches for vendors using a filter against supported [Vendor](entity:Vendor) pr
```csharp -await client.Vendors.SearchAsync(new SearchVendorsRequest()); +await client.Default.Vendors.SearchAsync(new SearchVendorsRequest()); ```
@@ -11934,7 +11946,7 @@ await client.Vendors.SearchAsync(new SearchVendorsRequest());
-
client.Vendors.GetAsync(GetVendorsRequest { ... }) -> GetVendorResponse +
client.Default.Vendors.GetAsync(GetVendorsRequest { ... }) -> GetVendorResponse
@@ -11961,7 +11973,7 @@ Retrieves the vendor of a specified [Vendor](entity:Vendor) ID.
```csharp -await client.Vendors.GetAsync(new GetVendorsRequest { VendorId = "vendor_id" }); +await client.Default.Vendors.GetAsync(new GetVendorsRequest { VendorId = "vendor_id" }); ```
@@ -11988,7 +12000,7 @@ await client.Vendors.GetAsync(new GetVendorsRequest { VendorId = "vendor_id" });
-
client.Vendors.UpdateAsync(UpdateVendorsRequest { ... }) -> UpdateVendorResponse +
client.Default.Vendors.UpdateAsync(UpdateVendorsRequest { ... }) -> UpdateVendorResponse
@@ -12015,7 +12027,7 @@ Updates an existing [Vendor](entity:Vendor) object as a supplier to a seller.
```csharp -await client.Vendors.UpdateAsync( +await client.Default.Vendors.UpdateAsync( new UpdateVendorsRequest { VendorId = "vendor_id", @@ -12058,34 +12070,8 @@ await client.Vendors.UpdateAsync(
-## Mobile -
client.Mobile.AuthorizationCodeAsync() -
-
- -#### 🔌 Usage - -
-
- -
-
- -```csharp -await client.Mobile.AuthorizationCodeAsync(); -``` -
-
-
-
- - -
-
-
- -## Bookings CustomAttributeDefinitions -
client.Bookings.CustomAttributeDefinitions.ListAsync(ListCustomAttributeDefinitionsRequest { ... }) -> Pager<CustomAttributeDefinition> +## Default Bookings CustomAttributeDefinitions +
client.Default.Bookings.CustomAttributeDefinitions.ListAsync(ListCustomAttributeDefinitionsRequest { ... }) -> Pager<CustomAttributeDefinition>
@@ -12115,8 +12101,8 @@ To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ`
```csharp -await client.Bookings.CustomAttributeDefinitions.ListAsync( - new Square.Bookings.CustomAttributeDefinitions.ListCustomAttributeDefinitionsRequest +await client.Default.Bookings.CustomAttributeDefinitions.ListAsync( + new Square.Default.Bookings.ListCustomAttributeDefinitionsRequest { Limit = 1, Cursor = "cursor", @@ -12148,7 +12134,7 @@ await client.Bookings.CustomAttributeDefinitions.ListAsync(
-
client.Bookings.CustomAttributeDefinitions.CreateAsync(CreateBookingCustomAttributeDefinitionRequest { ... }) -> CreateBookingCustomAttributeDefinitionResponse +
client.Default.Bookings.CustomAttributeDefinitions.CreateAsync(CreateBookingCustomAttributeDefinitionRequest { ... }) -> CreateBookingCustomAttributeDefinitionResponse
@@ -12181,7 +12167,7 @@ or *Appointments Premium*.
```csharp -await client.Bookings.CustomAttributeDefinitions.CreateAsync( +await client.Default.Bookings.CustomAttributeDefinitions.CreateAsync( new CreateBookingCustomAttributeDefinitionRequest { CustomAttributeDefinition = new CustomAttributeDefinition(), @@ -12213,7 +12199,7 @@ await client.Bookings.CustomAttributeDefinitions.CreateAsync(
-
client.Bookings.CustomAttributeDefinitions.GetAsync(GetCustomAttributeDefinitionsRequest { ... }) -> RetrieveBookingCustomAttributeDefinitionResponse +
client.Default.Bookings.CustomAttributeDefinitions.GetAsync(GetCustomAttributeDefinitionsRequest { ... }) -> RetrieveBookingCustomAttributeDefinitionResponse
@@ -12243,12 +12229,8 @@ To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ`
```csharp -await client.Bookings.CustomAttributeDefinitions.GetAsync( - new Square.Bookings.CustomAttributeDefinitions.GetCustomAttributeDefinitionsRequest - { - Key = "key", - Version = 1, - } +await client.Default.Bookings.CustomAttributeDefinitions.GetAsync( + new Square.Default.Bookings.GetCustomAttributeDefinitionsRequest { Key = "key", Version = 1 } ); ```
@@ -12276,7 +12258,7 @@ await client.Bookings.CustomAttributeDefinitions.GetAsync(
-
client.Bookings.CustomAttributeDefinitions.UpdateAsync(UpdateBookingCustomAttributeDefinitionRequest { ... }) -> UpdateBookingCustomAttributeDefinitionResponse +
client.Default.Bookings.CustomAttributeDefinitions.UpdateAsync(UpdateBookingCustomAttributeDefinitionRequest { ... }) -> UpdateBookingCustomAttributeDefinitionResponse
@@ -12309,7 +12291,7 @@ or *Appointments Premium*.
```csharp -await client.Bookings.CustomAttributeDefinitions.UpdateAsync( +await client.Default.Bookings.CustomAttributeDefinitions.UpdateAsync( new UpdateBookingCustomAttributeDefinitionRequest { Key = "key", @@ -12342,7 +12324,7 @@ await client.Bookings.CustomAttributeDefinitions.UpdateAsync(
-
client.Bookings.CustomAttributeDefinitions.DeleteAsync(DeleteCustomAttributeDefinitionsRequest { ... }) -> DeleteBookingCustomAttributeDefinitionResponse +
client.Default.Bookings.CustomAttributeDefinitions.DeleteAsync(DeleteCustomAttributeDefinitionsRequest { ... }) -> DeleteBookingCustomAttributeDefinitionResponse
@@ -12375,11 +12357,8 @@ or *Appointments Premium*.
```csharp -await client.Bookings.CustomAttributeDefinitions.DeleteAsync( - new Square.Bookings.CustomAttributeDefinitions.DeleteCustomAttributeDefinitionsRequest - { - Key = "key", - } +await client.Default.Bookings.CustomAttributeDefinitions.DeleteAsync( + new Square.Default.Bookings.DeleteCustomAttributeDefinitionsRequest { Key = "key" } ); ```
@@ -12407,8 +12386,8 @@ await client.Bookings.CustomAttributeDefinitions.DeleteAsync(
-## Bookings CustomAttributes -
client.Bookings.CustomAttributes.BatchDeleteAsync(BulkDeleteBookingCustomAttributesRequest { ... }) -> BulkDeleteBookingCustomAttributesResponse +## Default Bookings CustomAttributes +
client.Default.Bookings.CustomAttributes.BatchDeleteAsync(BulkDeleteBookingCustomAttributesRequest { ... }) -> BulkDeleteBookingCustomAttributesResponse
@@ -12441,7 +12420,7 @@ or *Appointments Premium*.
```csharp -await client.Bookings.CustomAttributes.BatchDeleteAsync( +await client.Default.Bookings.CustomAttributes.BatchDeleteAsync( new BulkDeleteBookingCustomAttributesRequest { Values = new Dictionary() @@ -12479,7 +12458,7 @@ await client.Bookings.CustomAttributes.BatchDeleteAsync(
-
client.Bookings.CustomAttributes.BatchUpsertAsync(BulkUpsertBookingCustomAttributesRequest { ... }) -> BulkUpsertBookingCustomAttributesResponse +
client.Default.Bookings.CustomAttributes.BatchUpsertAsync(BulkUpsertBookingCustomAttributesRequest { ... }) -> BulkUpsertBookingCustomAttributesResponse
@@ -12512,7 +12491,7 @@ or *Appointments Premium*.
```csharp -await client.Bookings.CustomAttributes.BatchUpsertAsync( +await client.Default.Bookings.CustomAttributes.BatchUpsertAsync( new BulkUpsertBookingCustomAttributesRequest { Values = new Dictionary() @@ -12554,7 +12533,7 @@ await client.Bookings.CustomAttributes.BatchUpsertAsync(
-
client.Bookings.CustomAttributes.ListAsync(ListCustomAttributesRequest { ... }) -> Pager<CustomAttribute> +
client.Default.Bookings.CustomAttributes.ListAsync(ListCustomAttributesRequest { ... }) -> Pager<CustomAttribute>
@@ -12584,8 +12563,8 @@ To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ`
```csharp -await client.Bookings.CustomAttributes.ListAsync( - new Square.Bookings.CustomAttributes.ListCustomAttributesRequest +await client.Default.Bookings.CustomAttributes.ListAsync( + new Square.Default.Bookings.ListCustomAttributesRequest { BookingId = "booking_id", Limit = 1, @@ -12619,7 +12598,7 @@ await client.Bookings.CustomAttributes.ListAsync(
-
client.Bookings.CustomAttributes.GetAsync(GetCustomAttributesRequest { ... }) -> RetrieveBookingCustomAttributeResponse +
client.Default.Bookings.CustomAttributes.GetAsync(GetCustomAttributesRequest { ... }) -> RetrieveBookingCustomAttributeResponse
@@ -12649,8 +12628,8 @@ To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ`
```csharp -await client.Bookings.CustomAttributes.GetAsync( - new Square.Bookings.CustomAttributes.GetCustomAttributesRequest +await client.Default.Bookings.CustomAttributes.GetAsync( + new Square.Default.Bookings.GetCustomAttributesRequest { BookingId = "booking_id", Key = "key", @@ -12684,7 +12663,7 @@ await client.Bookings.CustomAttributes.GetAsync(
-
client.Bookings.CustomAttributes.UpsertAsync(UpsertBookingCustomAttributeRequest { ... }) -> UpsertBookingCustomAttributeResponse +
client.Default.Bookings.CustomAttributes.UpsertAsync(UpsertBookingCustomAttributeRequest { ... }) -> UpsertBookingCustomAttributeResponse
@@ -12717,7 +12696,7 @@ or *Appointments Premium*.
```csharp -await client.Bookings.CustomAttributes.UpsertAsync( +await client.Default.Bookings.CustomAttributes.UpsertAsync( new UpsertBookingCustomAttributeRequest { BookingId = "booking_id", @@ -12751,7 +12730,7 @@ await client.Bookings.CustomAttributes.UpsertAsync(
-
client.Bookings.CustomAttributes.DeleteAsync(DeleteCustomAttributesRequest { ... }) -> DeleteBookingCustomAttributeResponse +
client.Default.Bookings.CustomAttributes.DeleteAsync(DeleteCustomAttributesRequest { ... }) -> DeleteBookingCustomAttributeResponse
@@ -12784,8 +12763,8 @@ or *Appointments Premium*.
```csharp -await client.Bookings.CustomAttributes.DeleteAsync( - new Square.Bookings.CustomAttributes.DeleteCustomAttributesRequest +await client.Default.Bookings.CustomAttributes.DeleteAsync( + new Square.Default.Bookings.DeleteCustomAttributesRequest { BookingId = "booking_id", Key = "key", @@ -12817,8 +12796,8 @@ await client.Bookings.CustomAttributes.DeleteAsync(
-## Bookings LocationProfiles -
client.Bookings.LocationProfiles.ListAsync(ListLocationProfilesRequest { ... }) -> Pager<LocationBookingProfile> +## Default Bookings LocationProfiles +
client.Default.Bookings.LocationProfiles.ListAsync(ListLocationProfilesRequest { ... }) -> Pager<LocationBookingProfile>
@@ -12845,7 +12824,7 @@ Lists location booking profiles of a seller.
```csharp -await client.Bookings.LocationProfiles.ListAsync( +await client.Default.Bookings.LocationProfiles.ListAsync( new ListLocationProfilesRequest { Limit = 1, Cursor = "cursor" } ); ``` @@ -12874,8 +12853,8 @@ await client.Bookings.LocationProfiles.ListAsync(
-## Bookings TeamMemberProfiles -
client.Bookings.TeamMemberProfiles.ListAsync(ListTeamMemberProfilesRequest { ... }) -> Pager<TeamMemberBookingProfile> +## Default Bookings TeamMemberProfiles +
client.Default.Bookings.TeamMemberProfiles.ListAsync(ListTeamMemberProfilesRequest { ... }) -> Pager<TeamMemberBookingProfile>
@@ -12902,7 +12881,7 @@ Lists booking profiles for team members.
```csharp -await client.Bookings.TeamMemberProfiles.ListAsync( +await client.Default.Bookings.TeamMemberProfiles.ListAsync( new ListTeamMemberProfilesRequest { BookableOnly = true, @@ -12937,7 +12916,7 @@ await client.Bookings.TeamMemberProfiles.ListAsync(
-
client.Bookings.TeamMemberProfiles.GetAsync(GetTeamMemberProfilesRequest { ... }) -> GetTeamMemberBookingProfileResponse +
client.Default.Bookings.TeamMemberProfiles.GetAsync(GetTeamMemberProfilesRequest { ... }) -> GetTeamMemberBookingProfileResponse
@@ -12964,7 +12943,7 @@ Retrieves a team member's booking profile.
```csharp -await client.Bookings.TeamMemberProfiles.GetAsync( +await client.Default.Bookings.TeamMemberProfiles.GetAsync( new GetTeamMemberProfilesRequest { TeamMemberId = "team_member_id" } ); ``` @@ -12993,8 +12972,8 @@ await client.Bookings.TeamMemberProfiles.GetAsync(
-## CashDrawers Shifts -
client.CashDrawers.Shifts.ListAsync(ListShiftsRequest { ... }) -> Pager<CashDrawerShiftSummary> +## Default CashDrawers Shifts +
client.Default.CashDrawers.Shifts.ListAsync(ListShiftsRequest { ... }) -> Pager<CashDrawerShiftSummary>
@@ -13022,7 +13001,7 @@ in a date range.
```csharp -await client.CashDrawers.Shifts.ListAsync( +await client.Default.CashDrawers.Shifts.ListAsync( new ListShiftsRequest { LocationId = "location_id", @@ -13059,7 +13038,7 @@ await client.CashDrawers.Shifts.ListAsync(
-
client.CashDrawers.Shifts.GetAsync(GetShiftsRequest { ... }) -> GetCashDrawerShiftResponse +
client.Default.CashDrawers.Shifts.GetAsync(GetShiftsRequest { ... }) -> GetCashDrawerShiftResponse
@@ -13087,8 +13066,8 @@ Provides the summary details for a single cash drawer shift. See
```csharp -await client.CashDrawers.Shifts.GetAsync( - new Square.CashDrawers.Shifts.GetShiftsRequest +await client.Default.CashDrawers.Shifts.GetAsync( + new Square.Default.CashDrawers.GetShiftsRequest { ShiftId = "shift_id", LocationId = "location_id", @@ -13120,7 +13099,7 @@ await client.CashDrawers.Shifts.GetAsync(
-
client.CashDrawers.Shifts.ListEventsAsync(ListEventsShiftsRequest { ... }) -> Pager<CashDrawerShiftEvent> +
client.Default.CashDrawers.Shifts.ListEventsAsync(ListEventsShiftsRequest { ... }) -> Pager<CashDrawerShiftEvent>
@@ -13147,7 +13126,7 @@ Provides a paginated list of events for a single cash drawer shift.
```csharp -await client.CashDrawers.Shifts.ListEventsAsync( +await client.Default.CashDrawers.Shifts.ListEventsAsync( new ListEventsShiftsRequest { ShiftId = "shift_id", @@ -13182,8 +13161,8 @@ await client.CashDrawers.Shifts.ListEventsAsync(
-## Catalog Images -
client.Catalog.Images.CreateAsync(CreateImagesRequest { ... }) -> CreateCatalogImageResponse +## Default Catalog Images +
client.Default.Catalog.Images.CreateAsync(CreateImagesRequest { ... }) -> CreateCatalogImageResponse
@@ -13215,7 +13194,7 @@ JPEG, PJPEG, PNG, or GIF format. The maximum file size is 15MB.
```csharp -await client.Catalog.Images.CreateAsync(new CreateImagesRequest()); +await client.Default.Catalog.Images.CreateAsync(new CreateImagesRequest()); ```
@@ -13242,7 +13221,7 @@ await client.Catalog.Images.CreateAsync(new CreateImagesRequest());
-
client.Catalog.Images.UpdateAsync(UpdateImagesRequest { ... }) -> UpdateCatalogImageResponse +
client.Default.Catalog.Images.UpdateAsync(UpdateImagesRequest { ... }) -> UpdateCatalogImageResponse
@@ -13272,7 +13251,7 @@ JPEG, PJPEG, PNG, or GIF format. The maximum file size is 15MB.
```csharp -await client.Catalog.Images.UpdateAsync(new UpdateImagesRequest { ImageId = "image_id" }); +await client.Default.Catalog.Images.UpdateAsync(new UpdateImagesRequest { ImageId = "image_id" }); ```
@@ -13299,8 +13278,8 @@ await client.Catalog.Images.UpdateAsync(new UpdateImagesRequest { ImageId = "ima
-## Catalog Object -
client.Catalog.Object.UpsertAsync(UpsertCatalogObjectRequest { ... }) -> UpsertCatalogObjectResponse +## Default Catalog Object +
client.Default.Catalog.Object.UpsertAsync(UpsertCatalogObjectRequest { ... }) -> UpsertCatalogObjectResponse
@@ -13331,7 +13310,7 @@ update requests are rejected with the `429` error code.
```csharp -await client.Catalog.Object.UpsertAsync( +await client.Default.Catalog.Object.UpsertAsync( new UpsertCatalogObjectRequest { IdempotencyKey = "af3d1afc-7212-4300-b463-0bfc5314a5ae", @@ -13364,7 +13343,7 @@ await client.Catalog.Object.UpsertAsync(
-
client.Catalog.Object.GetAsync(GetObjectRequest { ... }) -> GetCatalogObjectResponse +
client.Default.Catalog.Object.GetAsync(GetObjectRequest { ... }) -> GetCatalogObjectResponse
@@ -13397,7 +13376,7 @@ any [CatalogTax](entity:CatalogTax) objects that apply to it.
```csharp -await client.Catalog.Object.GetAsync( +await client.Default.Catalog.Object.GetAsync( new GetObjectRequest { ObjectId = "object_id", @@ -13432,7 +13411,7 @@ await client.Catalog.Object.GetAsync(
-
client.Catalog.Object.DeleteAsync(DeleteObjectRequest { ... }) -> DeleteCatalogObjectResponse +
client.Default.Catalog.Object.DeleteAsync(DeleteObjectRequest { ... }) -> DeleteCatalogObjectResponse
@@ -13468,7 +13447,7 @@ delete requests are rejected with the `429` error code.
```csharp -await client.Catalog.Object.DeleteAsync(new DeleteObjectRequest { ObjectId = "object_id" }); +await client.Default.Catalog.Object.DeleteAsync(new DeleteObjectRequest { ObjectId = "object_id" }); ```
@@ -13495,8 +13474,8 @@ await client.Catalog.Object.DeleteAsync(new DeleteObjectRequest { ObjectId = "ob
-## Checkout PaymentLinks -
client.Checkout.PaymentLinks.ListAsync(ListPaymentLinksRequest { ... }) -> Pager<PaymentLink> +## Default Checkout PaymentLinks +
client.Default.Checkout.PaymentLinks.ListAsync(ListPaymentLinksRequest { ... }) -> Pager<PaymentLink>
@@ -13523,7 +13502,7 @@ Lists all payment links.
```csharp -await client.Checkout.PaymentLinks.ListAsync( +await client.Default.Checkout.PaymentLinks.ListAsync( new ListPaymentLinksRequest { Cursor = "cursor", Limit = 1 } ); ``` @@ -13552,7 +13531,7 @@ await client.Checkout.PaymentLinks.ListAsync(
-
client.Checkout.PaymentLinks.CreateAsync(CreatePaymentLinkRequest { ... }) -> CreatePaymentLinkResponse +
client.Default.Checkout.PaymentLinks.CreateAsync(CreatePaymentLinkRequest { ... }) -> CreatePaymentLinkResponse
@@ -13579,7 +13558,7 @@ Creates a Square-hosted checkout page. Applications can share the resulting paym
```csharp -await client.Checkout.PaymentLinks.CreateAsync( +await client.Default.Checkout.PaymentLinks.CreateAsync( new CreatePaymentLinkRequest { IdempotencyKey = "cd9e25dc-d9f2-4430-aedb-61605070e95f", @@ -13617,7 +13596,7 @@ await client.Checkout.PaymentLinks.CreateAsync(
-
client.Checkout.PaymentLinks.GetAsync(GetPaymentLinksRequest { ... }) -> GetPaymentLinkResponse +
client.Default.Checkout.PaymentLinks.GetAsync(GetPaymentLinksRequest { ... }) -> GetPaymentLinkResponse
@@ -13644,7 +13623,7 @@ Retrieves a payment link.
```csharp -await client.Checkout.PaymentLinks.GetAsync(new GetPaymentLinksRequest { Id = "id" }); +await client.Default.Checkout.PaymentLinks.GetAsync(new GetPaymentLinksRequest { Id = "id" }); ```
@@ -13671,7 +13650,7 @@ await client.Checkout.PaymentLinks.GetAsync(new GetPaymentLinksRequest { Id = "i
-
client.Checkout.PaymentLinks.UpdateAsync(UpdatePaymentLinkRequest { ... }) -> UpdatePaymentLinkResponse +
client.Default.Checkout.PaymentLinks.UpdateAsync(UpdatePaymentLinkRequest { ... }) -> UpdatePaymentLinkResponse
@@ -13700,7 +13679,7 @@ You cannot update other fields such as the `order_id`, `version`, `URL`, or `tim
```csharp -await client.Checkout.PaymentLinks.UpdateAsync( +await client.Default.Checkout.PaymentLinks.UpdateAsync( new UpdatePaymentLinkRequest { Id = "id", @@ -13737,7 +13716,7 @@ await client.Checkout.PaymentLinks.UpdateAsync(
-
client.Checkout.PaymentLinks.DeleteAsync(DeletePaymentLinksRequest { ... }) -> DeletePaymentLinkResponse +
client.Default.Checkout.PaymentLinks.DeleteAsync(DeletePaymentLinksRequest { ... }) -> DeletePaymentLinkResponse
@@ -13764,7 +13743,7 @@ Deletes a payment link.
```csharp -await client.Checkout.PaymentLinks.DeleteAsync(new DeletePaymentLinksRequest { Id = "id" }); +await client.Default.Checkout.PaymentLinks.DeleteAsync(new DeletePaymentLinksRequest { Id = "id" }); ```
@@ -13791,8 +13770,8 @@ await client.Checkout.PaymentLinks.DeleteAsync(new DeletePaymentLinksRequest { I
-## Customers CustomAttributeDefinitions -
client.Customers.CustomAttributeDefinitions.ListAsync(ListCustomAttributeDefinitionsRequest { ... }) -> Pager<CustomAttributeDefinition> +## Default Customers CustomAttributeDefinitions +
client.Default.Customers.CustomAttributeDefinitions.ListAsync(ListCustomAttributeDefinitionsRequest { ... }) -> Pager<CustomAttributeDefinition>
@@ -13824,8 +13803,8 @@ seller-defined custom attributes (also known as custom fields) are always set to
```csharp -await client.Customers.CustomAttributeDefinitions.ListAsync( - new Square.Customers.CustomAttributeDefinitions.ListCustomAttributeDefinitionsRequest +await client.Default.Customers.CustomAttributeDefinitions.ListAsync( + new Square.Default.Customers.ListCustomAttributeDefinitionsRequest { Limit = 1, Cursor = "cursor", @@ -13857,7 +13836,7 @@ await client.Customers.CustomAttributeDefinitions.ListAsync(
-
client.Customers.CustomAttributeDefinitions.CreateAsync(CreateCustomerCustomAttributeDefinitionRequest { ... }) -> CreateCustomerCustomAttributeDefinitionResponse +
client.Default.Customers.CustomAttributeDefinitions.CreateAsync(CreateCustomerCustomAttributeDefinitionRequest { ... }) -> CreateCustomerCustomAttributeDefinitionResponse
@@ -13894,7 +13873,7 @@ Sellers can view all custom attributes in exported customer data, including thos
```csharp -await client.Customers.CustomAttributeDefinitions.CreateAsync( +await client.Default.Customers.CustomAttributeDefinitions.CreateAsync( new CreateCustomerCustomAttributeDefinitionRequest { CustomAttributeDefinition = new CustomAttributeDefinition @@ -13939,7 +13918,7 @@ await client.Customers.CustomAttributeDefinitions.CreateAsync(
-
client.Customers.CustomAttributeDefinitions.GetAsync(GetCustomAttributeDefinitionsRequest { ... }) -> GetCustomerCustomAttributeDefinitionResponse +
client.Default.Customers.CustomAttributeDefinitions.GetAsync(GetCustomAttributeDefinitionsRequest { ... }) -> GetCustomerCustomAttributeDefinitionResponse
@@ -13970,12 +13949,8 @@ setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note t
```csharp -await client.Customers.CustomAttributeDefinitions.GetAsync( - new Square.Customers.CustomAttributeDefinitions.GetCustomAttributeDefinitionsRequest - { - Key = "key", - Version = 1, - } +await client.Default.Customers.CustomAttributeDefinitions.GetAsync( + new Square.Default.Customers.GetCustomAttributeDefinitionsRequest { Key = "key", Version = 1 } ); ```
@@ -14003,7 +13978,7 @@ await client.Customers.CustomAttributeDefinitions.GetAsync(
-
client.Customers.CustomAttributeDefinitions.UpdateAsync(UpdateCustomerCustomAttributeDefinitionRequest { ... }) -> UpdateCustomerCustomAttributeDefinitionResponse +
client.Default.Customers.CustomAttributeDefinitions.UpdateAsync(UpdateCustomerCustomAttributeDefinitionRequest { ... }) -> UpdateCustomerCustomAttributeDefinitionResponse
@@ -14036,7 +14011,7 @@ all custom attributes in exported customer data, including those set to `VISIBIL
```csharp -await client.Customers.CustomAttributeDefinitions.UpdateAsync( +await client.Default.Customers.CustomAttributeDefinitions.UpdateAsync( new UpdateCustomerCustomAttributeDefinitionRequest { Key = "key", @@ -14073,7 +14048,7 @@ await client.Customers.CustomAttributeDefinitions.UpdateAsync(
-
client.Customers.CustomAttributeDefinitions.DeleteAsync(DeleteCustomAttributeDefinitionsRequest { ... }) -> DeleteCustomerCustomAttributeDefinitionResponse +
client.Default.Customers.CustomAttributeDefinitions.DeleteAsync(DeleteCustomAttributeDefinitionsRequest { ... }) -> DeleteCustomerCustomAttributeDefinitionResponse
@@ -14105,11 +14080,8 @@ Only the definition owner can delete a custom attribute definition.
```csharp -await client.Customers.CustomAttributeDefinitions.DeleteAsync( - new Square.Customers.CustomAttributeDefinitions.DeleteCustomAttributeDefinitionsRequest - { - Key = "key", - } +await client.Default.Customers.CustomAttributeDefinitions.DeleteAsync( + new Square.Default.Customers.DeleteCustomAttributeDefinitionsRequest { Key = "key" } ); ```
@@ -14137,7 +14109,7 @@ await client.Customers.CustomAttributeDefinitions.DeleteAsync(
-
client.Customers.CustomAttributeDefinitions.BatchUpsertAsync(BatchUpsertCustomerCustomAttributesRequest { ... }) -> BatchUpsertCustomerCustomAttributesResponse +
client.Default.Customers.CustomAttributeDefinitions.BatchUpsertAsync(BatchUpsertCustomerCustomAttributesRequest { ... }) -> BatchUpsertCustomerCustomAttributesResponse
@@ -14177,7 +14149,7 @@ must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attribut
```csharp -await client.Customers.CustomAttributeDefinitions.BatchUpsertAsync( +await client.Default.Customers.CustomAttributeDefinitions.BatchUpsertAsync( new BatchUpsertCustomerCustomAttributesRequest { Values = new Dictionary< @@ -14266,8 +14238,8 @@ await client.Customers.CustomAttributeDefinitions.BatchUpsertAsync(
-## Customers Groups -
client.Customers.Groups.ListAsync(ListGroupsRequest { ... }) -> Pager<CustomerGroup> +## Default Customers Groups +
client.Default.Customers.Groups.ListAsync(ListGroupsRequest { ... }) -> Pager<CustomerGroup>
@@ -14294,7 +14266,9 @@ Retrieves the list of customer groups of a business.
```csharp -await client.Customers.Groups.ListAsync(new ListGroupsRequest { Cursor = "cursor", Limit = 1 }); +await client.Default.Customers.Groups.ListAsync( + new ListGroupsRequest { Cursor = "cursor", Limit = 1 } +); ```
@@ -14321,7 +14295,7 @@ await client.Customers.Groups.ListAsync(new ListGroupsRequest { Cursor = "cursor
-
client.Customers.Groups.CreateAsync(CreateCustomerGroupRequest { ... }) -> CreateCustomerGroupResponse +
client.Default.Customers.Groups.CreateAsync(CreateCustomerGroupRequest { ... }) -> CreateCustomerGroupResponse
@@ -14350,7 +14324,7 @@ The request must include the `name` value of the group.
```csharp -await client.Customers.Groups.CreateAsync( +await client.Default.Customers.Groups.CreateAsync( new CreateCustomerGroupRequest { Group = new CustomerGroup { Name = "Loyal Customers" } } ); ``` @@ -14379,7 +14353,7 @@ await client.Customers.Groups.CreateAsync(
-
client.Customers.Groups.GetAsync(GetGroupsRequest { ... }) -> GetCustomerGroupResponse +
client.Default.Customers.Groups.GetAsync(GetGroupsRequest { ... }) -> GetCustomerGroupResponse
@@ -14406,7 +14380,7 @@ Retrieves a specific customer group as identified by the `group_id` value.
```csharp -await client.Customers.Groups.GetAsync(new GetGroupsRequest { GroupId = "group_id" }); +await client.Default.Customers.Groups.GetAsync(new GetGroupsRequest { GroupId = "group_id" }); ```
@@ -14433,7 +14407,7 @@ await client.Customers.Groups.GetAsync(new GetGroupsRequest { GroupId = "group_i
-
client.Customers.Groups.UpdateAsync(UpdateCustomerGroupRequest { ... }) -> UpdateCustomerGroupResponse +
client.Default.Customers.Groups.UpdateAsync(UpdateCustomerGroupRequest { ... }) -> UpdateCustomerGroupResponse
@@ -14460,7 +14434,7 @@ Updates a customer group as identified by the `group_id` value.
```csharp -await client.Customers.Groups.UpdateAsync( +await client.Default.Customers.Groups.UpdateAsync( new UpdateCustomerGroupRequest { GroupId = "group_id", @@ -14493,7 +14467,7 @@ await client.Customers.Groups.UpdateAsync(
-
client.Customers.Groups.DeleteAsync(DeleteGroupsRequest { ... }) -> DeleteCustomerGroupResponse +
client.Default.Customers.Groups.DeleteAsync(DeleteGroupsRequest { ... }) -> DeleteCustomerGroupResponse
@@ -14520,7 +14494,7 @@ Deletes a customer group as identified by the `group_id` value.
```csharp -await client.Customers.Groups.DeleteAsync(new DeleteGroupsRequest { GroupId = "group_id" }); +await client.Default.Customers.Groups.DeleteAsync(new DeleteGroupsRequest { GroupId = "group_id" }); ```
@@ -14547,7 +14521,7 @@ await client.Customers.Groups.DeleteAsync(new DeleteGroupsRequest { GroupId = "g
-
client.Customers.Groups.AddAsync(AddGroupsRequest { ... }) -> AddGroupToCustomerResponse +
client.Default.Customers.Groups.AddAsync(AddGroupsRequest { ... }) -> AddGroupToCustomerResponse
@@ -14577,7 +14551,7 @@ and the customer group is identified by the `group_id` value.
```csharp -await client.Customers.Groups.AddAsync( +await client.Default.Customers.Groups.AddAsync( new AddGroupsRequest { CustomerId = "customer_id", GroupId = "group_id" } ); ``` @@ -14606,7 +14580,7 @@ await client.Customers.Groups.AddAsync(
-
client.Customers.Groups.RemoveAsync(RemoveGroupsRequest { ... }) -> RemoveGroupFromCustomerResponse +
client.Default.Customers.Groups.RemoveAsync(RemoveGroupsRequest { ... }) -> RemoveGroupFromCustomerResponse
@@ -14636,7 +14610,7 @@ and the customer group is identified by the `group_id` value.
```csharp -await client.Customers.Groups.RemoveAsync( +await client.Default.Customers.Groups.RemoveAsync( new RemoveGroupsRequest { CustomerId = "customer_id", GroupId = "group_id" } ); ``` @@ -14665,8 +14639,8 @@ await client.Customers.Groups.RemoveAsync(
-## Customers Segments -
client.Customers.Segments.ListAsync(ListSegmentsRequest { ... }) -> Pager<CustomerSegment> +## Default Customers Segments +
client.Default.Customers.Segments.ListAsync(ListSegmentsRequest { ... }) -> Pager<CustomerSegment>
@@ -14693,7 +14667,9 @@ Retrieves the list of customer segments of a business.
```csharp -await client.Customers.Segments.ListAsync(new ListSegmentsRequest { Cursor = "cursor", Limit = 1 }); +await client.Default.Customers.Segments.ListAsync( + new ListSegmentsRequest { Cursor = "cursor", Limit = 1 } +); ```
@@ -14720,7 +14696,7 @@ await client.Customers.Segments.ListAsync(new ListSegmentsRequest { Cursor = "cu
-
client.Customers.Segments.GetAsync(GetSegmentsRequest { ... }) -> GetCustomerSegmentResponse +
client.Default.Customers.Segments.GetAsync(GetSegmentsRequest { ... }) -> GetCustomerSegmentResponse
@@ -14747,7 +14723,9 @@ Retrieves a specific customer segment as identified by the `segment_id` value.
```csharp -await client.Customers.Segments.GetAsync(new GetSegmentsRequest { SegmentId = "segment_id" }); +await client.Default.Customers.Segments.GetAsync( + new GetSegmentsRequest { SegmentId = "segment_id" } +); ```
@@ -14774,8 +14752,8 @@ await client.Customers.Segments.GetAsync(new GetSegmentsRequest { SegmentId = "s
-## Customers Cards -
client.Customers.Cards.CreateAsync(CreateCustomerCardRequest { ... }) -> CreateCustomerCardResponse +## Default Customers Cards +
client.Default.Customers.Cards.CreateAsync(CreateCustomerCardRequest { ... }) -> CreateCustomerCardResponse
@@ -14806,7 +14784,7 @@ with the provided nonce during the _first_ call.
```csharp -await client.Customers.Cards.CreateAsync( +await client.Default.Customers.Cards.CreateAsync( new CreateCustomerCardRequest { CustomerId = "customer_id", @@ -14849,7 +14827,7 @@ await client.Customers.Cards.CreateAsync(
-
client.Customers.Cards.DeleteAsync(DeleteCardsRequest { ... }) -> DeleteCustomerCardResponse +
client.Default.Customers.Cards.DeleteAsync(DeleteCardsRequest { ... }) -> DeleteCustomerCardResponse
@@ -14876,7 +14854,7 @@ Removes a card on file from a customer.
```csharp -await client.Customers.Cards.DeleteAsync( +await client.Default.Customers.Cards.DeleteAsync( new DeleteCardsRequest { CustomerId = "customer_id", CardId = "card_id" } ); ``` @@ -14905,8 +14883,8 @@ await client.Customers.Cards.DeleteAsync(
-## Customers CustomAttributes -
client.Customers.CustomAttributes.ListAsync(ListCustomAttributesRequest { ... }) -> Pager<CustomAttribute> +## Default Customers CustomAttributes +
client.Default.Customers.CustomAttributes.ListAsync(ListCustomAttributesRequest { ... }) -> Pager<CustomAttribute>
@@ -14940,8 +14918,8 @@ and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
```csharp -await client.Customers.CustomAttributes.ListAsync( - new Square.Customers.CustomAttributes.ListCustomAttributesRequest +await client.Default.Customers.CustomAttributes.ListAsync( + new Square.Default.Customers.ListCustomAttributesRequest { CustomerId = "customer_id", Limit = 1, @@ -14975,7 +14953,7 @@ await client.Customers.CustomAttributes.ListAsync(
-
client.Customers.CustomAttributes.GetAsync(GetCustomAttributesRequest { ... }) -> GetCustomerCustomAttributeResponse +
client.Default.Customers.CustomAttributes.GetAsync(GetCustomAttributesRequest { ... }) -> GetCustomerCustomAttributeResponse
@@ -15009,8 +14987,8 @@ To retrieve a custom attribute owned by another application, the `visibility` se
```csharp -await client.Customers.CustomAttributes.GetAsync( - new Square.Customers.CustomAttributes.GetCustomAttributesRequest +await client.Default.Customers.CustomAttributes.GetAsync( + new Square.Default.Customers.GetCustomAttributesRequest { CustomerId = "customer_id", Key = "key", @@ -15044,7 +15022,7 @@ await client.Customers.CustomAttributes.GetAsync(
-
client.Customers.CustomAttributes.UpsertAsync(UpsertCustomerCustomAttributeRequest { ... }) -> UpsertCustomerCustomAttributeResponse +
client.Default.Customers.CustomAttributes.UpsertAsync(UpsertCustomerCustomAttributeRequest { ... }) -> UpsertCustomerCustomAttributeResponse
@@ -15079,7 +15057,7 @@ must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attribut
```csharp -await client.Customers.CustomAttributes.UpsertAsync( +await client.Default.Customers.CustomAttributes.UpsertAsync( new UpsertCustomerCustomAttributeRequest { CustomerId = "customer_id", @@ -15113,7 +15091,7 @@ await client.Customers.CustomAttributes.UpsertAsync(
-
client.Customers.CustomAttributes.DeleteAsync(DeleteCustomAttributesRequest { ... }) -> DeleteCustomerCustomAttributeResponse +
client.Default.Customers.CustomAttributes.DeleteAsync(DeleteCustomAttributesRequest { ... }) -> DeleteCustomerCustomAttributeResponse
@@ -15144,8 +15122,8 @@ To delete a custom attribute owned by another application, the `visibility` sett
```csharp -await client.Customers.CustomAttributes.DeleteAsync( - new Square.Customers.CustomAttributes.DeleteCustomAttributesRequest +await client.Default.Customers.CustomAttributes.DeleteAsync( + new Square.Default.Customers.DeleteCustomAttributesRequest { CustomerId = "customer_id", Key = "key", @@ -15177,8 +15155,8 @@ await client.Customers.CustomAttributes.DeleteAsync(
-## Devices Codes -
client.Devices.Codes.ListAsync(ListCodesRequest { ... }) -> Pager<DeviceCode> +## Default Devices Codes +
client.Default.Devices.Codes.ListAsync(ListCodesRequest { ... }) -> Pager<DeviceCode>
@@ -15205,7 +15183,7 @@ Lists all DeviceCodes associated with the merchant.
```csharp -await client.Devices.Codes.ListAsync( +await client.Default.Devices.Codes.ListAsync( new ListCodesRequest { Cursor = "cursor", @@ -15240,7 +15218,7 @@ await client.Devices.Codes.ListAsync(
-
client.Devices.Codes.CreateAsync(CreateDeviceCodeRequest { ... }) -> CreateDeviceCodeResponse +
client.Default.Devices.Codes.CreateAsync(CreateDeviceCodeRequest { ... }) -> CreateDeviceCodeResponse
@@ -15268,7 +15246,7 @@ terminal mode.
```csharp -await client.Devices.Codes.CreateAsync( +await client.Default.Devices.Codes.CreateAsync( new CreateDeviceCodeRequest { IdempotencyKey = "01bb00a6-0c86-4770-94ed-f5fca973cd56", @@ -15306,7 +15284,7 @@ await client.Devices.Codes.CreateAsync(
-
client.Devices.Codes.GetAsync(GetCodesRequest { ... }) -> GetDeviceCodeResponse +
client.Default.Devices.Codes.GetAsync(GetCodesRequest { ... }) -> GetDeviceCodeResponse
@@ -15333,7 +15311,7 @@ Retrieves DeviceCode with the associated ID.
```csharp -await client.Devices.Codes.GetAsync(new GetCodesRequest { Id = "id" }); +await client.Default.Devices.Codes.GetAsync(new GetCodesRequest { Id = "id" }); ```
@@ -15360,8 +15338,8 @@ await client.Devices.Codes.GetAsync(new GetCodesRequest { Id = "id" });
-## Disputes Evidence -
client.Disputes.Evidence.ListAsync(ListEvidenceRequest { ... }) -> Pager<DisputeEvidence> +## Default Disputes Evidence +
client.Default.Disputes.Evidence.ListAsync(ListEvidenceRequest { ... }) -> Pager<DisputeEvidence>
@@ -15388,7 +15366,7 @@ Returns a list of evidence associated with a dispute.
```csharp -await client.Disputes.Evidence.ListAsync( +await client.Default.Disputes.Evidence.ListAsync( new ListEvidenceRequest { DisputeId = "dispute_id", Cursor = "cursor" } ); ``` @@ -15417,7 +15395,7 @@ await client.Disputes.Evidence.ListAsync(
-
client.Disputes.Evidence.GetAsync(GetEvidenceRequest { ... }) -> GetDisputeEvidenceResponse +
client.Default.Disputes.Evidence.GetAsync(GetEvidenceRequest { ... }) -> GetDisputeEvidenceResponse
@@ -15446,7 +15424,7 @@ You must maintain a copy of any evidence uploaded if you want to reference it la
```csharp -await client.Disputes.Evidence.GetAsync( +await client.Default.Disputes.Evidence.GetAsync( new GetEvidenceRequest { DisputeId = "dispute_id", EvidenceId = "evidence_id" } ); ``` @@ -15475,7 +15453,7 @@ await client.Disputes.Evidence.GetAsync(
-
client.Disputes.Evidence.DeleteAsync(DeleteEvidenceRequest { ... }) -> DeleteDisputeEvidenceResponse +
client.Default.Disputes.Evidence.DeleteAsync(DeleteEvidenceRequest { ... }) -> DeleteDisputeEvidenceResponse
@@ -15503,7 +15481,7 @@ Square does not send the bank any evidence that is removed.
```csharp -await client.Disputes.Evidence.DeleteAsync( +await client.Default.Disputes.Evidence.DeleteAsync( new DeleteEvidenceRequest { DisputeId = "dispute_id", EvidenceId = "evidence_id" } ); ``` @@ -15532,8 +15510,8 @@ await client.Disputes.Evidence.DeleteAsync(
-## GiftCards Activities -
client.GiftCards.Activities.ListAsync(ListActivitiesRequest { ... }) -> Pager<GiftCardActivity> +## Default GiftCards Activities +
client.Default.GiftCards.Activities.ListAsync(ListActivitiesRequest { ... }) -> Pager<GiftCardActivity>
@@ -15563,7 +15541,7 @@ for all gift cards in a specific region, or for activities within a time window.
```csharp -await client.GiftCards.Activities.ListAsync( +await client.Default.GiftCards.Activities.ListAsync( new ListActivitiesRequest { GiftCardId = "gift_card_id", @@ -15602,7 +15580,7 @@ await client.GiftCards.Activities.ListAsync(
-
client.GiftCards.Activities.CreateAsync(CreateGiftCardActivityRequest { ... }) -> CreateGiftCardActivityResponse +
client.Default.GiftCards.Activities.CreateAsync(CreateGiftCardActivityRequest { ... }) -> CreateGiftCardActivityResponse
@@ -15630,7 +15608,7 @@ For example, create an `ACTIVATE` activity to activate a gift card with an initi
```csharp -await client.GiftCards.Activities.CreateAsync( +await client.Default.GiftCards.Activities.CreateAsync( new CreateGiftCardActivityRequest { IdempotencyKey = "U16kfr-kA70er-q4Rsym-7U7NnY", @@ -15673,8 +15651,8 @@ await client.GiftCards.Activities.CreateAsync(
-## Labor BreakTypes -
client.Labor.BreakTypes.ListAsync(ListBreakTypesRequest { ... }) -> Pager<BreakType> +## Default Labor BreakTypes +
client.Default.Labor.BreakTypes.ListAsync(ListBreakTypesRequest { ... }) -> Pager<BreakType>
@@ -15701,7 +15679,7 @@ Returns a paginated list of `BreakType` instances for a business.
```csharp -await client.Labor.BreakTypes.ListAsync( +await client.Default.Labor.BreakTypes.ListAsync( new ListBreakTypesRequest { LocationId = "location_id", @@ -15735,7 +15713,7 @@ await client.Labor.BreakTypes.ListAsync(
-
client.Labor.BreakTypes.CreateAsync(CreateBreakTypeRequest { ... }) -> CreateBreakTypeResponse +
client.Default.Labor.BreakTypes.CreateAsync(CreateBreakTypeRequest { ... }) -> CreateBreakTypeResponse
@@ -15775,7 +15753,7 @@ is returned.
```csharp -await client.Labor.BreakTypes.CreateAsync( +await client.Default.Labor.BreakTypes.CreateAsync( new CreateBreakTypeRequest { IdempotencyKey = "PAD3NG5KSN2GL", @@ -15814,7 +15792,7 @@ await client.Labor.BreakTypes.CreateAsync(
-
client.Labor.BreakTypes.GetAsync(GetBreakTypesRequest { ... }) -> GetBreakTypeResponse +
client.Default.Labor.BreakTypes.GetAsync(GetBreakTypesRequest { ... }) -> GetBreakTypeResponse
@@ -15841,7 +15819,7 @@ Returns a single `BreakType` specified by `id`.
```csharp -await client.Labor.BreakTypes.GetAsync(new GetBreakTypesRequest { Id = "id" }); +await client.Default.Labor.BreakTypes.GetAsync(new GetBreakTypesRequest { Id = "id" }); ```
@@ -15868,7 +15846,7 @@ await client.Labor.BreakTypes.GetAsync(new GetBreakTypesRequest { Id = "id" });
-
client.Labor.BreakTypes.UpdateAsync(UpdateBreakTypeRequest { ... }) -> UpdateBreakTypeResponse +
client.Default.Labor.BreakTypes.UpdateAsync(UpdateBreakTypeRequest { ... }) -> UpdateBreakTypeResponse
@@ -15895,7 +15873,7 @@ Updates an existing `BreakType`.
```csharp -await client.Labor.BreakTypes.UpdateAsync( +await client.Default.Labor.BreakTypes.UpdateAsync( new UpdateBreakTypeRequest { Id = "id", @@ -15935,7 +15913,7 @@ await client.Labor.BreakTypes.UpdateAsync(
-
client.Labor.BreakTypes.DeleteAsync(DeleteBreakTypesRequest { ... }) -> DeleteBreakTypeResponse +
client.Default.Labor.BreakTypes.DeleteAsync(DeleteBreakTypesRequest { ... }) -> DeleteBreakTypeResponse
@@ -15964,7 +15942,7 @@ A `BreakType` can be deleted even if it is referenced from a `Shift`.
```csharp -await client.Labor.BreakTypes.DeleteAsync(new DeleteBreakTypesRequest { Id = "id" }); +await client.Default.Labor.BreakTypes.DeleteAsync(new DeleteBreakTypesRequest { Id = "id" }); ```
@@ -15991,8 +15969,8 @@ await client.Labor.BreakTypes.DeleteAsync(new DeleteBreakTypesRequest { Id = "id
-## Labor EmployeeWages -
client.Labor.EmployeeWages.ListAsync(ListEmployeeWagesRequest { ... }) -> Pager<EmployeeWage> +## Default Labor EmployeeWages +
client.Default.Labor.EmployeeWages.ListAsync(ListEmployeeWagesRequest { ... }) -> Pager<EmployeeWage>
@@ -16019,7 +15997,7 @@ Returns a paginated list of `EmployeeWage` instances for a business.
```csharp -await client.Labor.EmployeeWages.ListAsync( +await client.Default.Labor.EmployeeWages.ListAsync( new ListEmployeeWagesRequest { EmployeeId = "employee_id", @@ -16053,7 +16031,7 @@ await client.Labor.EmployeeWages.ListAsync(
-
client.Labor.EmployeeWages.GetAsync(GetEmployeeWagesRequest { ... }) -> GetEmployeeWageResponse +
client.Default.Labor.EmployeeWages.GetAsync(GetEmployeeWagesRequest { ... }) -> GetEmployeeWageResponse
@@ -16080,7 +16058,7 @@ Returns a single `EmployeeWage` specified by `id`.
```csharp -await client.Labor.EmployeeWages.GetAsync(new GetEmployeeWagesRequest { Id = "id" }); +await client.Default.Labor.EmployeeWages.GetAsync(new GetEmployeeWagesRequest { Id = "id" }); ```
@@ -16107,8 +16085,8 @@ await client.Labor.EmployeeWages.GetAsync(new GetEmployeeWagesRequest { Id = "id
-## Labor Shifts -
client.Labor.Shifts.CreateAsync(CreateShiftRequest { ... }) -> CreateShiftResponse +## Default Labor Shifts +
client.Default.Labor.Shifts.CreateAsync(CreateShiftRequest { ... }) -> CreateShiftResponse
@@ -16152,7 +16130,7 @@ the `Shift.end_at`, or both.
```csharp -await client.Labor.Shifts.CreateAsync( +await client.Default.Labor.Shifts.CreateAsync( new CreateShiftRequest { IdempotencyKey = "HIDSNG5KS478L", @@ -16210,7 +16188,7 @@ await client.Labor.Shifts.CreateAsync(
-
client.Labor.Shifts.SearchAsync(SearchShiftsRequest { ... }) -> SearchShiftsResponse +
client.Default.Labor.Shifts.SearchAsync(SearchShiftsRequest { ... }) -> SearchShiftsResponse
@@ -16250,7 +16228,7 @@ The list can be sorted by:
```csharp -await client.Labor.Shifts.SearchAsync( +await client.Default.Labor.Shifts.SearchAsync( new SearchShiftsRequest { Query = new ShiftQuery @@ -16294,7 +16272,7 @@ await client.Labor.Shifts.SearchAsync(
-
client.Labor.Shifts.GetAsync(GetShiftsRequest { ... }) -> GetShiftResponse +
client.Default.Labor.Shifts.GetAsync(GetShiftsRequest { ... }) -> GetShiftResponse
@@ -16321,7 +16299,7 @@ Returns a single `Shift` specified by `id`.
```csharp -await client.Labor.Shifts.GetAsync(new Square.Labor.Shifts.GetShiftsRequest { Id = "id" }); +await client.Default.Labor.Shifts.GetAsync(new Square.Default.Labor.GetShiftsRequest { Id = "id" }); ```
@@ -16348,7 +16326,7 @@ await client.Labor.Shifts.GetAsync(new Square.Labor.Shifts.GetShiftsRequest { Id
-
client.Labor.Shifts.UpdateAsync(UpdateShiftRequest { ... }) -> UpdateShiftResponse +
client.Default.Labor.Shifts.UpdateAsync(UpdateShiftRequest { ... }) -> UpdateShiftResponse
@@ -16381,7 +16359,7 @@ set on each `Break`.
```csharp -await client.Labor.Shifts.UpdateAsync( +await client.Default.Labor.Shifts.UpdateAsync( new UpdateShiftRequest { Id = "id", @@ -16441,7 +16419,7 @@ await client.Labor.Shifts.UpdateAsync(
-
client.Labor.Shifts.DeleteAsync(DeleteShiftsRequest { ... }) -> DeleteShiftResponse +
client.Default.Labor.Shifts.DeleteAsync(DeleteShiftsRequest { ... }) -> DeleteShiftResponse
@@ -16468,7 +16446,7 @@ Deletes a `Shift`.
```csharp -await client.Labor.Shifts.DeleteAsync(new DeleteShiftsRequest { Id = "id" }); +await client.Default.Labor.Shifts.DeleteAsync(new DeleteShiftsRequest { Id = "id" }); ```
@@ -16495,8 +16473,8 @@ await client.Labor.Shifts.DeleteAsync(new DeleteShiftsRequest { Id = "id" });
-## Labor TeamMemberWages -
client.Labor.TeamMemberWages.ListAsync(ListTeamMemberWagesRequest { ... }) -> Pager<TeamMemberWage> +## Default Labor TeamMemberWages +
client.Default.Labor.TeamMemberWages.ListAsync(ListTeamMemberWagesRequest { ... }) -> Pager<TeamMemberWage>
@@ -16523,7 +16501,7 @@ Returns a paginated list of `TeamMemberWage` instances for a business.
```csharp -await client.Labor.TeamMemberWages.ListAsync( +await client.Default.Labor.TeamMemberWages.ListAsync( new ListTeamMemberWagesRequest { TeamMemberId = "team_member_id", @@ -16557,7 +16535,7 @@ await client.Labor.TeamMemberWages.ListAsync(
-
client.Labor.TeamMemberWages.GetAsync(GetTeamMemberWagesRequest { ... }) -> GetTeamMemberWageResponse +
client.Default.Labor.TeamMemberWages.GetAsync(GetTeamMemberWagesRequest { ... }) -> GetTeamMemberWageResponse
@@ -16584,7 +16562,7 @@ Returns a single `TeamMemberWage` specified by `id`.
```csharp -await client.Labor.TeamMemberWages.GetAsync(new GetTeamMemberWagesRequest { Id = "id" }); +await client.Default.Labor.TeamMemberWages.GetAsync(new GetTeamMemberWagesRequest { Id = "id" }); ```
@@ -16611,8 +16589,8 @@ await client.Labor.TeamMemberWages.GetAsync(new GetTeamMemberWagesRequest { Id =
-## Labor WorkweekConfigs -
client.Labor.WorkweekConfigs.ListAsync(ListWorkweekConfigsRequest { ... }) -> Pager<WorkweekConfig> +## Default Labor WorkweekConfigs +
client.Default.Labor.WorkweekConfigs.ListAsync(ListWorkweekConfigsRequest { ... }) -> Pager<WorkweekConfig>
@@ -16639,7 +16617,7 @@ Returns a list of `WorkweekConfig` instances for a business.
```csharp -await client.Labor.WorkweekConfigs.ListAsync( +await client.Default.Labor.WorkweekConfigs.ListAsync( new ListWorkweekConfigsRequest { Limit = 1, Cursor = "cursor" } ); ``` @@ -16668,7 +16646,7 @@ await client.Labor.WorkweekConfigs.ListAsync(
-
client.Labor.WorkweekConfigs.GetAsync(UpdateWorkweekConfigRequest { ... }) -> UpdateWorkweekConfigResponse +
client.Default.Labor.WorkweekConfigs.GetAsync(UpdateWorkweekConfigRequest { ... }) -> UpdateWorkweekConfigResponse
@@ -16695,7 +16673,7 @@ Updates a `WorkweekConfig`.
```csharp -await client.Labor.WorkweekConfigs.GetAsync( +await client.Default.Labor.WorkweekConfigs.GetAsync( new UpdateWorkweekConfigRequest { Id = "id", @@ -16733,8 +16711,8 @@ await client.Labor.WorkweekConfigs.GetAsync(
-## Locations CustomAttributeDefinitions -
client.Locations.CustomAttributeDefinitions.ListAsync(ListCustomAttributeDefinitionsRequest { ... }) -> Pager<CustomAttributeDefinition> +## Default Locations CustomAttributeDefinitions +
client.Default.Locations.CustomAttributeDefinitions.ListAsync(ListCustomAttributeDefinitionsRequest { ... }) -> Pager<CustomAttributeDefinition>
@@ -16764,8 +16742,8 @@ applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`
```csharp -await client.Locations.CustomAttributeDefinitions.ListAsync( - new Square.Locations.CustomAttributeDefinitions.ListCustomAttributeDefinitionsRequest +await client.Default.Locations.CustomAttributeDefinitions.ListAsync( + new Square.Default.Locations.ListCustomAttributeDefinitionsRequest { VisibilityFilter = VisibilityFilter.All, Limit = 1, @@ -16798,7 +16776,7 @@ await client.Locations.CustomAttributeDefinitions.ListAsync(
-
client.Locations.CustomAttributeDefinitions.CreateAsync(CreateLocationCustomAttributeDefinitionRequest { ... }) -> CreateLocationCustomAttributeDefinitionResponse +
client.Default.Locations.CustomAttributeDefinitions.CreateAsync(CreateLocationCustomAttributeDefinitionRequest { ... }) -> CreateLocationCustomAttributeDefinitionResponse
@@ -16831,7 +16809,7 @@ to set the custom attribute for locations.
```csharp -await client.Locations.CustomAttributeDefinitions.CreateAsync( +await client.Default.Locations.CustomAttributeDefinitions.CreateAsync( new CreateLocationCustomAttributeDefinitionRequest { CustomAttributeDefinition = new CustomAttributeDefinition @@ -16876,7 +16854,7 @@ await client.Locations.CustomAttributeDefinitions.CreateAsync(
-
client.Locations.CustomAttributeDefinitions.GetAsync(GetCustomAttributeDefinitionsRequest { ... }) -> RetrieveLocationCustomAttributeDefinitionResponse +
client.Default.Locations.CustomAttributeDefinitions.GetAsync(GetCustomAttributeDefinitionsRequest { ... }) -> RetrieveLocationCustomAttributeDefinitionResponse
@@ -16905,12 +16883,8 @@ setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
```csharp -await client.Locations.CustomAttributeDefinitions.GetAsync( - new Square.Locations.CustomAttributeDefinitions.GetCustomAttributeDefinitionsRequest - { - Key = "key", - Version = 1, - } +await client.Default.Locations.CustomAttributeDefinitions.GetAsync( + new Square.Default.Locations.GetCustomAttributeDefinitionsRequest { Key = "key", Version = 1 } ); ```
@@ -16938,7 +16912,7 @@ await client.Locations.CustomAttributeDefinitions.GetAsync(
-
client.Locations.CustomAttributeDefinitions.UpdateAsync(UpdateLocationCustomAttributeDefinitionRequest { ... }) -> UpdateLocationCustomAttributeDefinitionResponse +
client.Default.Locations.CustomAttributeDefinitions.UpdateAsync(UpdateLocationCustomAttributeDefinitionRequest { ... }) -> UpdateLocationCustomAttributeDefinitionResponse
@@ -16968,7 +16942,7 @@ Only the definition owner can update a custom attribute definition.
```csharp -await client.Locations.CustomAttributeDefinitions.UpdateAsync( +await client.Default.Locations.CustomAttributeDefinitions.UpdateAsync( new UpdateLocationCustomAttributeDefinitionRequest { Key = "key", @@ -17005,7 +16979,7 @@ await client.Locations.CustomAttributeDefinitions.UpdateAsync(
-
client.Locations.CustomAttributeDefinitions.DeleteAsync(DeleteCustomAttributeDefinitionsRequest { ... }) -> DeleteLocationCustomAttributeDefinitionResponse +
client.Default.Locations.CustomAttributeDefinitions.DeleteAsync(DeleteCustomAttributeDefinitionsRequest { ... }) -> DeleteLocationCustomAttributeDefinitionResponse
@@ -17035,11 +17009,8 @@ Only the definition owner can delete a custom attribute definition.
```csharp -await client.Locations.CustomAttributeDefinitions.DeleteAsync( - new Square.Locations.CustomAttributeDefinitions.DeleteCustomAttributeDefinitionsRequest - { - Key = "key", - } +await client.Default.Locations.CustomAttributeDefinitions.DeleteAsync( + new Square.Default.Locations.DeleteCustomAttributeDefinitionsRequest { Key = "key" } ); ```
@@ -17067,8 +17038,8 @@ await client.Locations.CustomAttributeDefinitions.DeleteAsync(
-## Locations CustomAttributes -
client.Locations.CustomAttributes.BatchDeleteAsync(BulkDeleteLocationCustomAttributesRequest { ... }) -> BulkDeleteLocationCustomAttributesResponse +## Default Locations CustomAttributes +
client.Default.Locations.CustomAttributes.BatchDeleteAsync(BulkDeleteLocationCustomAttributesRequest { ... }) -> BulkDeleteLocationCustomAttributesResponse
@@ -17097,7 +17068,7 @@ To delete a custom attribute owned by another application, the `visibility` sett
```csharp -await client.Locations.CustomAttributes.BatchDeleteAsync( +await client.Default.Locations.CustomAttributes.BatchDeleteAsync( new BulkDeleteLocationCustomAttributesRequest { Values = new Dictionary< @@ -17155,7 +17126,7 @@ await client.Locations.CustomAttributes.BatchDeleteAsync(
-
client.Locations.CustomAttributes.BatchUpsertAsync(BulkUpsertLocationCustomAttributesRequest { ... }) -> BulkUpsertLocationCustomAttributesResponse +
client.Default.Locations.CustomAttributes.BatchUpsertAsync(BulkUpsertLocationCustomAttributesRequest { ... }) -> BulkUpsertLocationCustomAttributesResponse
@@ -17191,7 +17162,7 @@ must be `VISIBILITY_READ_WRITE_VALUES`.
```csharp -await client.Locations.CustomAttributes.BatchUpsertAsync( +await client.Default.Locations.CustomAttributes.BatchUpsertAsync( new BulkUpsertLocationCustomAttributesRequest { Values = new Dictionary< @@ -17264,7 +17235,7 @@ await client.Locations.CustomAttributes.BatchUpsertAsync(
-
client.Locations.CustomAttributes.ListAsync(ListCustomAttributesRequest { ... }) -> Pager<CustomAttribute> +
client.Default.Locations.CustomAttributes.ListAsync(ListCustomAttributesRequest { ... }) -> Pager<CustomAttribute>
@@ -17296,8 +17267,8 @@ and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
```csharp -await client.Locations.CustomAttributes.ListAsync( - new Square.Locations.CustomAttributes.ListCustomAttributesRequest +await client.Default.Locations.CustomAttributes.ListAsync( + new Square.Default.Locations.ListCustomAttributesRequest { LocationId = "location_id", VisibilityFilter = VisibilityFilter.All, @@ -17332,7 +17303,7 @@ await client.Locations.CustomAttributes.ListAsync(
-
client.Locations.CustomAttributes.GetAsync(GetCustomAttributesRequest { ... }) -> RetrieveLocationCustomAttributeResponse +
client.Default.Locations.CustomAttributes.GetAsync(GetCustomAttributesRequest { ... }) -> RetrieveLocationCustomAttributeResponse
@@ -17363,8 +17334,8 @@ To retrieve a custom attribute owned by another application, the `visibility` se
```csharp -await client.Locations.CustomAttributes.GetAsync( - new Square.Locations.CustomAttributes.GetCustomAttributesRequest +await client.Default.Locations.CustomAttributes.GetAsync( + new Square.Default.Locations.GetCustomAttributesRequest { LocationId = "location_id", Key = "key", @@ -17398,7 +17369,7 @@ await client.Locations.CustomAttributes.GetAsync(
-
client.Locations.CustomAttributes.UpsertAsync(UpsertLocationCustomAttributeRequest { ... }) -> UpsertLocationCustomAttributeResponse +
client.Default.Locations.CustomAttributes.UpsertAsync(UpsertLocationCustomAttributeRequest { ... }) -> UpsertLocationCustomAttributeResponse
@@ -17430,7 +17401,7 @@ must be `VISIBILITY_READ_WRITE_VALUES`.
```csharp -await client.Locations.CustomAttributes.UpsertAsync( +await client.Default.Locations.CustomAttributes.UpsertAsync( new UpsertLocationCustomAttributeRequest { LocationId = "location_id", @@ -17464,7 +17435,7 @@ await client.Locations.CustomAttributes.UpsertAsync(
-
client.Locations.CustomAttributes.DeleteAsync(DeleteCustomAttributesRequest { ... }) -> DeleteLocationCustomAttributeResponse +
client.Default.Locations.CustomAttributes.DeleteAsync(DeleteCustomAttributesRequest { ... }) -> DeleteLocationCustomAttributeResponse
@@ -17493,8 +17464,8 @@ To delete a custom attribute owned by another application, the `visibility` sett
```csharp -await client.Locations.CustomAttributes.DeleteAsync( - new Square.Locations.CustomAttributes.DeleteCustomAttributesRequest +await client.Default.Locations.CustomAttributes.DeleteAsync( + new Square.Default.Locations.DeleteCustomAttributesRequest { LocationId = "location_id", Key = "key", @@ -17526,8 +17497,8 @@ await client.Locations.CustomAttributes.DeleteAsync(
-## Locations Transactions -
client.Locations.Transactions.ListAsync(ListTransactionsRequest { ... }) -> ListTransactionsResponse +## Default Locations Transactions +
client.Default.Locations.Transactions.ListAsync(ListTransactionsRequest { ... }) -> ListTransactionsResponse
@@ -17559,7 +17530,7 @@ Max results per [page](https://developer.squareup.com/docs/working-with-apis/pag
```csharp -await client.Locations.Transactions.ListAsync( +await client.Default.Locations.Transactions.ListAsync( new ListTransactionsRequest { LocationId = "location_id", @@ -17595,7 +17566,7 @@ await client.Locations.Transactions.ListAsync(
-
client.Locations.Transactions.GetAsync(GetTransactionsRequest { ... }) -> GetTransactionResponse +
client.Default.Locations.Transactions.GetAsync(GetTransactionsRequest { ... }) -> GetTransactionResponse
@@ -17622,7 +17593,7 @@ Retrieves details for a single transaction.
```csharp -await client.Locations.Transactions.GetAsync( +await client.Default.Locations.Transactions.GetAsync( new GetTransactionsRequest { LocationId = "location_id", TransactionId = "transaction_id" } ); ``` @@ -17651,7 +17622,7 @@ await client.Locations.Transactions.GetAsync(
-
client.Locations.Transactions.CaptureAsync(CaptureTransactionsRequest { ... }) -> CaptureTransactionResponse +
client.Default.Locations.Transactions.CaptureAsync(CaptureTransactionsRequest { ... }) -> CaptureTransactionResponse
@@ -17683,7 +17654,7 @@ for more information.
```csharp -await client.Locations.Transactions.CaptureAsync( +await client.Default.Locations.Transactions.CaptureAsync( new CaptureTransactionsRequest { LocationId = "location_id", TransactionId = "transaction_id" } ); ``` @@ -17712,7 +17683,7 @@ await client.Locations.Transactions.CaptureAsync(
-
client.Locations.Transactions.VoidAsync(VoidTransactionsRequest { ... }) -> VoidTransactionResponse +
client.Default.Locations.Transactions.VoidAsync(VoidTransactionsRequest { ... }) -> VoidTransactionResponse
@@ -17744,7 +17715,7 @@ for more information.
```csharp -await client.Locations.Transactions.VoidAsync( +await client.Default.Locations.Transactions.VoidAsync( new VoidTransactionsRequest { LocationId = "location_id", TransactionId = "transaction_id" } ); ``` @@ -17773,8 +17744,8 @@ await client.Locations.Transactions.VoidAsync(
-## Loyalty Accounts -
client.Loyalty.Accounts.CreateAsync(CreateLoyaltyAccountRequest { ... }) -> CreateLoyaltyAccountResponse +## Default Loyalty Accounts +
client.Default.Loyalty.Accounts.CreateAsync(CreateLoyaltyAccountRequest { ... }) -> CreateLoyaltyAccountResponse
@@ -17801,7 +17772,7 @@ Creates a loyalty account. To create a loyalty account, you must provide the `pr
```csharp -await client.Loyalty.Accounts.CreateAsync( +await client.Default.Loyalty.Accounts.CreateAsync( new CreateLoyaltyAccountRequest { LoyaltyAccount = new LoyaltyAccount @@ -17838,7 +17809,7 @@ await client.Loyalty.Accounts.CreateAsync(
-
client.Loyalty.Accounts.SearchAsync(SearchLoyaltyAccountsRequest { ... }) -> SearchLoyaltyAccountsResponse +
client.Default.Loyalty.Accounts.SearchAsync(SearchLoyaltyAccountsRequest { ... }) -> SearchLoyaltyAccountsResponse
@@ -17869,7 +17840,7 @@ Search results are sorted by `created_at` in ascending order.
```csharp -await client.Loyalty.Accounts.SearchAsync( +await client.Default.Loyalty.Accounts.SearchAsync( new SearchLoyaltyAccountsRequest { Query = new SearchLoyaltyAccountsRequestLoyaltyAccountQuery @@ -17908,7 +17879,7 @@ await client.Loyalty.Accounts.SearchAsync(
-
client.Loyalty.Accounts.GetAsync(GetAccountsRequest { ... }) -> GetLoyaltyAccountResponse +
client.Default.Loyalty.Accounts.GetAsync(GetAccountsRequest { ... }) -> GetLoyaltyAccountResponse
@@ -17935,7 +17906,7 @@ Retrieves a loyalty account.
```csharp -await client.Loyalty.Accounts.GetAsync(new GetAccountsRequest { AccountId = "account_id" }); +await client.Default.Loyalty.Accounts.GetAsync(new GetAccountsRequest { AccountId = "account_id" }); ```
@@ -17962,7 +17933,7 @@ await client.Loyalty.Accounts.GetAsync(new GetAccountsRequest { AccountId = "acc
-
client.Loyalty.Accounts.AccumulatePointsAsync(AccumulateLoyaltyPointsRequest { ... }) -> AccumulateLoyaltyPointsResponse +
client.Default.Loyalty.Accounts.AccumulatePointsAsync(AccumulateLoyaltyPointsRequest { ... }) -> AccumulateLoyaltyPointsResponse
@@ -18002,7 +17973,7 @@ to compute the points earned from the base loyalty program. For information abou
```csharp -await client.Loyalty.Accounts.AccumulatePointsAsync( +await client.Default.Loyalty.Accounts.AccumulatePointsAsync( new AccumulateLoyaltyPointsRequest { AccountId = "account_id", @@ -18040,7 +18011,7 @@ await client.Loyalty.Accounts.AccumulatePointsAsync(
-
client.Loyalty.Accounts.AdjustAsync(AdjustLoyaltyPointsRequest { ... }) -> AdjustLoyaltyPointsResponse +
client.Default.Loyalty.Accounts.AdjustAsync(AdjustLoyaltyPointsRequest { ... }) -> AdjustLoyaltyPointsResponse
@@ -18071,7 +18042,7 @@ to add points when a buyer pays for the purchase.
```csharp -await client.Loyalty.Accounts.AdjustAsync( +await client.Default.Loyalty.Accounts.AdjustAsync( new AdjustLoyaltyPointsRequest { AccountId = "account_id", @@ -18109,8 +18080,8 @@ await client.Loyalty.Accounts.AdjustAsync(
-## Loyalty Programs -
client.Loyalty.Programs.ListAsync() -> ListLoyaltyProgramsResponse +## Default Loyalty Programs +
client.Default.Loyalty.Programs.ListAsync() -> ListLoyaltyProgramsResponse
@@ -18141,7 +18112,7 @@ Replaced with [RetrieveLoyaltyProgram](api-endpoint:Loyalty-RetrieveLoyaltyProgr
```csharp -await client.Loyalty.Programs.ListAsync(); +await client.Default.Loyalty.Programs.ListAsync(); ```
@@ -18153,7 +18124,7 @@ await client.Loyalty.Programs.ListAsync();
-
client.Loyalty.Programs.GetAsync(GetProgramsRequest { ... }) -> GetLoyaltyProgramResponse +
client.Default.Loyalty.Programs.GetAsync(GetProgramsRequest { ... }) -> GetLoyaltyProgramResponse
@@ -18182,7 +18153,7 @@ Loyalty programs define how buyers can earn points and redeem points for rewards
```csharp -await client.Loyalty.Programs.GetAsync(new GetProgramsRequest { ProgramId = "program_id" }); +await client.Default.Loyalty.Programs.GetAsync(new GetProgramsRequest { ProgramId = "program_id" }); ```
@@ -18209,7 +18180,7 @@ await client.Loyalty.Programs.GetAsync(new GetProgramsRequest { ProgramId = "pro
-
client.Loyalty.Programs.CalculateAsync(CalculateLoyaltyPointsRequest { ... }) -> CalculateLoyaltyPointsResponse +
client.Default.Loyalty.Programs.CalculateAsync(CalculateLoyaltyPointsRequest { ... }) -> CalculateLoyaltyPointsResponse
@@ -18250,7 +18221,7 @@ to calculate whether the purchase also qualifies for promotion points. For more
```csharp -await client.Loyalty.Programs.CalculateAsync( +await client.Default.Loyalty.Programs.CalculateAsync( new CalculateLoyaltyPointsRequest { ProgramId = "program_id", @@ -18284,8 +18255,8 @@ await client.Loyalty.Programs.CalculateAsync(
-## Loyalty Rewards -
client.Loyalty.Rewards.CreateAsync(CreateLoyaltyRewardRequest { ... }) -> CreateLoyaltyRewardResponse +## Default Loyalty Rewards +
client.Default.Loyalty.Rewards.CreateAsync(CreateLoyaltyRewardRequest { ... }) -> CreateLoyaltyRewardResponse
@@ -18319,7 +18290,7 @@ not available for the buyer to redeem another reward.
```csharp -await client.Loyalty.Rewards.CreateAsync( +await client.Default.Loyalty.Rewards.CreateAsync( new CreateLoyaltyRewardRequest { Reward = new LoyaltyReward @@ -18357,7 +18328,7 @@ await client.Loyalty.Rewards.CreateAsync(
-
client.Loyalty.Rewards.SearchAsync(SearchLoyaltyRewardsRequest { ... }) -> SearchLoyaltyRewardsResponse +
client.Default.Loyalty.Rewards.SearchAsync(SearchLoyaltyRewardsRequest { ... }) -> SearchLoyaltyRewardsResponse
@@ -18390,7 +18361,7 @@ Search results are sorted by `updated_at` in descending order.
```csharp -await client.Loyalty.Rewards.SearchAsync( +await client.Default.Loyalty.Rewards.SearchAsync( new SearchLoyaltyRewardsRequest { Query = new SearchLoyaltyRewardsRequestLoyaltyRewardQuery @@ -18426,7 +18397,7 @@ await client.Loyalty.Rewards.SearchAsync(
-
client.Loyalty.Rewards.GetAsync(GetRewardsRequest { ... }) -> GetLoyaltyRewardResponse +
client.Default.Loyalty.Rewards.GetAsync(GetRewardsRequest { ... }) -> GetLoyaltyRewardResponse
@@ -18453,7 +18424,7 @@ Retrieves a loyalty reward.
```csharp -await client.Loyalty.Rewards.GetAsync(new GetRewardsRequest { RewardId = "reward_id" }); +await client.Default.Loyalty.Rewards.GetAsync(new GetRewardsRequest { RewardId = "reward_id" }); ```
@@ -18480,7 +18451,7 @@ await client.Loyalty.Rewards.GetAsync(new GetRewardsRequest { RewardId = "reward
-
client.Loyalty.Rewards.DeleteAsync(DeleteRewardsRequest { ... }) -> DeleteLoyaltyRewardResponse +
client.Default.Loyalty.Rewards.DeleteAsync(DeleteRewardsRequest { ... }) -> DeleteLoyaltyRewardResponse
@@ -18515,7 +18486,9 @@ You cannot delete a reward that has reached the terminal state (REDEEMED).
```csharp -await client.Loyalty.Rewards.DeleteAsync(new DeleteRewardsRequest { RewardId = "reward_id" }); +await client.Default.Loyalty.Rewards.DeleteAsync( + new DeleteRewardsRequest { RewardId = "reward_id" } +); ```
@@ -18542,7 +18515,7 @@ await client.Loyalty.Rewards.DeleteAsync(new DeleteRewardsRequest { RewardId = "
-
client.Loyalty.Rewards.RedeemAsync(RedeemLoyaltyRewardRequest { ... }) -> RedeemLoyaltyRewardResponse +
client.Default.Loyalty.Rewards.RedeemAsync(RedeemLoyaltyRewardRequest { ... }) -> RedeemLoyaltyRewardResponse
@@ -18579,7 +18552,7 @@ to the account.
```csharp -await client.Loyalty.Rewards.RedeemAsync( +await client.Default.Loyalty.Rewards.RedeemAsync( new RedeemLoyaltyRewardRequest { RewardId = "reward_id", @@ -18613,8 +18586,8 @@ await client.Loyalty.Rewards.RedeemAsync(
-## Loyalty Programs Promotions -
client.Loyalty.Programs.Promotions.ListAsync(ListPromotionsRequest { ... }) -> Pager<LoyaltyPromotion> +## Default Loyalty Programs Promotions +
client.Default.Loyalty.Programs.Promotions.ListAsync(ListPromotionsRequest { ... }) -> Pager<LoyaltyPromotion>
@@ -18642,7 +18615,7 @@ Results are sorted by the `created_at` date in descending order (newest to oldes
```csharp -await client.Loyalty.Programs.Promotions.ListAsync( +await client.Default.Loyalty.Programs.Promotions.ListAsync( new ListPromotionsRequest { ProgramId = "program_id", @@ -18677,7 +18650,7 @@ await client.Loyalty.Programs.Promotions.ListAsync(
-
client.Loyalty.Programs.Promotions.CreateAsync(CreateLoyaltyPromotionRequest { ... }) -> CreateLoyaltyPromotionResponse +
client.Default.Loyalty.Programs.Promotions.CreateAsync(CreateLoyaltyPromotionRequest { ... }) -> CreateLoyaltyPromotionResponse
@@ -18709,7 +18682,7 @@ This endpoint sets the loyalty promotion to the `ACTIVE` or `SCHEDULED` status,
```csharp -await client.Loyalty.Programs.Promotions.CreateAsync( +await client.Default.Loyalty.Programs.Promotions.CreateAsync( new CreateLoyaltyPromotionRequest { ProgramId = "program_id", @@ -18768,7 +18741,7 @@ await client.Loyalty.Programs.Promotions.CreateAsync(
-
client.Loyalty.Programs.Promotions.GetAsync(GetPromotionsRequest { ... }) -> GetLoyaltyPromotionResponse +
client.Default.Loyalty.Programs.Promotions.GetAsync(GetPromotionsRequest { ... }) -> GetLoyaltyPromotionResponse
@@ -18795,7 +18768,7 @@ Retrieves a loyalty promotion.
```csharp -await client.Loyalty.Programs.Promotions.GetAsync( +await client.Default.Loyalty.Programs.Promotions.GetAsync( new GetPromotionsRequest { ProgramId = "program_id", PromotionId = "promotion_id" } ); ``` @@ -18824,7 +18797,7 @@ await client.Loyalty.Programs.Promotions.GetAsync(
-
client.Loyalty.Programs.Promotions.CancelAsync(CancelPromotionsRequest { ... }) -> CancelLoyaltyPromotionResponse +
client.Default.Loyalty.Programs.Promotions.CancelAsync(CancelPromotionsRequest { ... }) -> CancelLoyaltyPromotionResponse
@@ -18856,7 +18829,7 @@ This endpoint sets the loyalty promotion to the `CANCELED` state
```csharp -await client.Loyalty.Programs.Promotions.CancelAsync( +await client.Default.Loyalty.Programs.Promotions.CancelAsync( new CancelPromotionsRequest { ProgramId = "program_id", PromotionId = "promotion_id" } ); ``` @@ -18885,8 +18858,8 @@ await client.Loyalty.Programs.Promotions.CancelAsync(
-## Merchants CustomAttributeDefinitions -
client.Merchants.CustomAttributeDefinitions.ListAsync(ListCustomAttributeDefinitionsRequest { ... }) -> Pager<CustomAttributeDefinition> +## Default Merchants CustomAttributeDefinitions +
client.Default.Merchants.CustomAttributeDefinitions.ListAsync(ListCustomAttributeDefinitionsRequest { ... }) -> Pager<CustomAttributeDefinition>
@@ -18916,8 +18889,8 @@ applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`
```csharp -await client.Merchants.CustomAttributeDefinitions.ListAsync( - new Square.Merchants.CustomAttributeDefinitions.ListCustomAttributeDefinitionsRequest +await client.Default.Merchants.CustomAttributeDefinitions.ListAsync( + new Square.Default.Merchants.ListCustomAttributeDefinitionsRequest { VisibilityFilter = VisibilityFilter.All, Limit = 1, @@ -18950,7 +18923,7 @@ await client.Merchants.CustomAttributeDefinitions.ListAsync(
-
client.Merchants.CustomAttributeDefinitions.CreateAsync(CreateMerchantCustomAttributeDefinitionRequest { ... }) -> CreateMerchantCustomAttributeDefinitionResponse +
client.Default.Merchants.CustomAttributeDefinitions.CreateAsync(CreateMerchantCustomAttributeDefinitionRequest { ... }) -> CreateMerchantCustomAttributeDefinitionResponse
@@ -18983,7 +18956,7 @@ to set the custom attribute for a merchant.
```csharp -await client.Merchants.CustomAttributeDefinitions.CreateAsync( +await client.Default.Merchants.CustomAttributeDefinitions.CreateAsync( new CreateMerchantCustomAttributeDefinitionRequest { CustomAttributeDefinition = new CustomAttributeDefinition @@ -19028,7 +19001,7 @@ await client.Merchants.CustomAttributeDefinitions.CreateAsync(
-
client.Merchants.CustomAttributeDefinitions.GetAsync(GetCustomAttributeDefinitionsRequest { ... }) -> RetrieveMerchantCustomAttributeDefinitionResponse +
client.Default.Merchants.CustomAttributeDefinitions.GetAsync(GetCustomAttributeDefinitionsRequest { ... }) -> RetrieveMerchantCustomAttributeDefinitionResponse
@@ -19057,12 +19030,8 @@ setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
```csharp -await client.Merchants.CustomAttributeDefinitions.GetAsync( - new Square.Merchants.CustomAttributeDefinitions.GetCustomAttributeDefinitionsRequest - { - Key = "key", - Version = 1, - } +await client.Default.Merchants.CustomAttributeDefinitions.GetAsync( + new Square.Default.Merchants.GetCustomAttributeDefinitionsRequest { Key = "key", Version = 1 } ); ```
@@ -19090,7 +19059,7 @@ await client.Merchants.CustomAttributeDefinitions.GetAsync(
-
client.Merchants.CustomAttributeDefinitions.UpdateAsync(UpdateMerchantCustomAttributeDefinitionRequest { ... }) -> UpdateMerchantCustomAttributeDefinitionResponse +
client.Default.Merchants.CustomAttributeDefinitions.UpdateAsync(UpdateMerchantCustomAttributeDefinitionRequest { ... }) -> UpdateMerchantCustomAttributeDefinitionResponse
@@ -19120,7 +19089,7 @@ Only the definition owner can update a custom attribute definition.
```csharp -await client.Merchants.CustomAttributeDefinitions.UpdateAsync( +await client.Default.Merchants.CustomAttributeDefinitions.UpdateAsync( new UpdateMerchantCustomAttributeDefinitionRequest { Key = "key", @@ -19157,7 +19126,7 @@ await client.Merchants.CustomAttributeDefinitions.UpdateAsync(
-
client.Merchants.CustomAttributeDefinitions.DeleteAsync(DeleteCustomAttributeDefinitionsRequest { ... }) -> DeleteMerchantCustomAttributeDefinitionResponse +
client.Default.Merchants.CustomAttributeDefinitions.DeleteAsync(DeleteCustomAttributeDefinitionsRequest { ... }) -> DeleteMerchantCustomAttributeDefinitionResponse
@@ -19187,11 +19156,8 @@ Only the definition owner can delete a custom attribute definition.
```csharp -await client.Merchants.CustomAttributeDefinitions.DeleteAsync( - new Square.Merchants.CustomAttributeDefinitions.DeleteCustomAttributeDefinitionsRequest - { - Key = "key", - } +await client.Default.Merchants.CustomAttributeDefinitions.DeleteAsync( + new Square.Default.Merchants.DeleteCustomAttributeDefinitionsRequest { Key = "key" } ); ```
@@ -19219,8 +19185,8 @@ await client.Merchants.CustomAttributeDefinitions.DeleteAsync(
-## Merchants CustomAttributes -
client.Merchants.CustomAttributes.BatchDeleteAsync(BulkDeleteMerchantCustomAttributesRequest { ... }) -> BulkDeleteMerchantCustomAttributesResponse +## Default Merchants CustomAttributes +
client.Default.Merchants.CustomAttributes.BatchDeleteAsync(BulkDeleteMerchantCustomAttributesRequest { ... }) -> BulkDeleteMerchantCustomAttributesResponse
@@ -19249,7 +19215,7 @@ To delete a custom attribute owned by another application, the `visibility` sett
```csharp -await client.Merchants.CustomAttributes.BatchDeleteAsync( +await client.Default.Merchants.CustomAttributes.BatchDeleteAsync( new BulkDeleteMerchantCustomAttributesRequest { Values = new Dictionary< @@ -19300,7 +19266,7 @@ await client.Merchants.CustomAttributes.BatchDeleteAsync(
-
client.Merchants.CustomAttributes.BatchUpsertAsync(BulkUpsertMerchantCustomAttributesRequest { ... }) -> BulkUpsertMerchantCustomAttributesResponse +
client.Default.Merchants.CustomAttributes.BatchUpsertAsync(BulkUpsertMerchantCustomAttributesRequest { ... }) -> BulkUpsertMerchantCustomAttributesResponse
@@ -19336,7 +19302,7 @@ must be `VISIBILITY_READ_WRITE_VALUES`.
```csharp -await client.Merchants.CustomAttributes.BatchUpsertAsync( +await client.Default.Merchants.CustomAttributes.BatchUpsertAsync( new BulkUpsertMerchantCustomAttributesRequest { Values = new Dictionary< @@ -19397,7 +19363,7 @@ await client.Merchants.CustomAttributes.BatchUpsertAsync(
-
client.Merchants.CustomAttributes.ListAsync(ListCustomAttributesRequest { ... }) -> Pager<CustomAttribute> +
client.Default.Merchants.CustomAttributes.ListAsync(ListCustomAttributesRequest { ... }) -> Pager<CustomAttribute>
@@ -19429,8 +19395,8 @@ and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
```csharp -await client.Merchants.CustomAttributes.ListAsync( - new Square.Merchants.CustomAttributes.ListCustomAttributesRequest +await client.Default.Merchants.CustomAttributes.ListAsync( + new Square.Default.Merchants.ListCustomAttributesRequest { MerchantId = "merchant_id", VisibilityFilter = VisibilityFilter.All, @@ -19465,7 +19431,7 @@ await client.Merchants.CustomAttributes.ListAsync(
-
client.Merchants.CustomAttributes.GetAsync(GetCustomAttributesRequest { ... }) -> RetrieveMerchantCustomAttributeResponse +
client.Default.Merchants.CustomAttributes.GetAsync(GetCustomAttributesRequest { ... }) -> RetrieveMerchantCustomAttributeResponse
@@ -19496,8 +19462,8 @@ To retrieve a custom attribute owned by another application, the `visibility` se
```csharp -await client.Merchants.CustomAttributes.GetAsync( - new Square.Merchants.CustomAttributes.GetCustomAttributesRequest +await client.Default.Merchants.CustomAttributes.GetAsync( + new Square.Default.Merchants.GetCustomAttributesRequest { MerchantId = "merchant_id", Key = "key", @@ -19531,7 +19497,7 @@ await client.Merchants.CustomAttributes.GetAsync(
-
client.Merchants.CustomAttributes.UpsertAsync(UpsertMerchantCustomAttributeRequest { ... }) -> UpsertMerchantCustomAttributeResponse +
client.Default.Merchants.CustomAttributes.UpsertAsync(UpsertMerchantCustomAttributeRequest { ... }) -> UpsertMerchantCustomAttributeResponse
@@ -19563,7 +19529,7 @@ must be `VISIBILITY_READ_WRITE_VALUES`.
```csharp -await client.Merchants.CustomAttributes.UpsertAsync( +await client.Default.Merchants.CustomAttributes.UpsertAsync( new UpsertMerchantCustomAttributeRequest { MerchantId = "merchant_id", @@ -19597,7 +19563,7 @@ await client.Merchants.CustomAttributes.UpsertAsync(
-
client.Merchants.CustomAttributes.DeleteAsync(DeleteCustomAttributesRequest { ... }) -> DeleteMerchantCustomAttributeResponse +
client.Default.Merchants.CustomAttributes.DeleteAsync(DeleteCustomAttributesRequest { ... }) -> DeleteMerchantCustomAttributeResponse
@@ -19626,8 +19592,8 @@ To delete a custom attribute owned by another application, the `visibility` sett
```csharp -await client.Merchants.CustomAttributes.DeleteAsync( - new Square.Merchants.CustomAttributes.DeleteCustomAttributesRequest +await client.Default.Merchants.CustomAttributes.DeleteAsync( + new Square.Default.Merchants.DeleteCustomAttributesRequest { MerchantId = "merchant_id", Key = "key", @@ -19659,8 +19625,8 @@ await client.Merchants.CustomAttributes.DeleteAsync(
-## Orders CustomAttributeDefinitions -
client.Orders.CustomAttributeDefinitions.ListAsync(ListCustomAttributeDefinitionsRequest { ... }) -> Pager<CustomAttributeDefinition> +## Default Orders CustomAttributeDefinitions +
client.Default.Orders.CustomAttributeDefinitions.ListAsync(ListCustomAttributeDefinitionsRequest { ... }) -> Pager<CustomAttributeDefinition>
@@ -19692,8 +19658,8 @@ seller-defined custom attributes (also known as custom fields) are always set to
```csharp -await client.Orders.CustomAttributeDefinitions.ListAsync( - new Square.Orders.CustomAttributeDefinitions.ListCustomAttributeDefinitionsRequest +await client.Default.Orders.CustomAttributeDefinitions.ListAsync( + new Square.Default.Orders.ListCustomAttributeDefinitionsRequest { VisibilityFilter = VisibilityFilter.All, Cursor = "cursor", @@ -19726,7 +19692,7 @@ await client.Orders.CustomAttributeDefinitions.ListAsync(
-
client.Orders.CustomAttributeDefinitions.CreateAsync(CreateOrderCustomAttributeDefinitionRequest { ... }) -> CreateOrderCustomAttributeDefinitionResponse +
client.Default.Orders.CustomAttributeDefinitions.CreateAsync(CreateOrderCustomAttributeDefinitionRequest { ... }) -> CreateOrderCustomAttributeDefinitionResponse
@@ -19757,7 +19723,7 @@ in the Square seller account.
```csharp -await client.Orders.CustomAttributeDefinitions.CreateAsync( +await client.Default.Orders.CustomAttributeDefinitions.CreateAsync( new CreateOrderCustomAttributeDefinitionRequest { CustomAttributeDefinition = new CustomAttributeDefinition @@ -19803,7 +19769,7 @@ await client.Orders.CustomAttributeDefinitions.CreateAsync(
-
client.Orders.CustomAttributeDefinitions.GetAsync(GetCustomAttributeDefinitionsRequest { ... }) -> RetrieveOrderCustomAttributeDefinitionResponse +
client.Default.Orders.CustomAttributeDefinitions.GetAsync(GetCustomAttributeDefinitionsRequest { ... }) -> RetrieveOrderCustomAttributeDefinitionResponse
@@ -19834,12 +19800,8 @@ setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note t
```csharp -await client.Orders.CustomAttributeDefinitions.GetAsync( - new Square.Orders.CustomAttributeDefinitions.GetCustomAttributeDefinitionsRequest - { - Key = "key", - Version = 1, - } +await client.Default.Orders.CustomAttributeDefinitions.GetAsync( + new Square.Default.Orders.GetCustomAttributeDefinitionsRequest { Key = "key", Version = 1 } ); ```
@@ -19867,7 +19829,7 @@ await client.Orders.CustomAttributeDefinitions.GetAsync(
-
client.Orders.CustomAttributeDefinitions.UpdateAsync(UpdateOrderCustomAttributeDefinitionRequest { ... }) -> UpdateOrderCustomAttributeDefinitionResponse +
client.Default.Orders.CustomAttributeDefinitions.UpdateAsync(UpdateOrderCustomAttributeDefinitionRequest { ... }) -> UpdateOrderCustomAttributeDefinitionResponse
@@ -19896,7 +19858,7 @@ Only the definition owner can update a custom attribute definition. Note that se
```csharp -await client.Orders.CustomAttributeDefinitions.UpdateAsync( +await client.Default.Orders.CustomAttributeDefinitions.UpdateAsync( new UpdateOrderCustomAttributeDefinitionRequest { Key = "key", @@ -19935,7 +19897,7 @@ await client.Orders.CustomAttributeDefinitions.UpdateAsync(
-
client.Orders.CustomAttributeDefinitions.DeleteAsync(DeleteCustomAttributeDefinitionsRequest { ... }) -> DeleteOrderCustomAttributeDefinitionResponse +
client.Default.Orders.CustomAttributeDefinitions.DeleteAsync(DeleteCustomAttributeDefinitionsRequest { ... }) -> DeleteOrderCustomAttributeDefinitionResponse
@@ -19964,11 +19926,8 @@ Only the definition owner can delete a custom attribute definition.
```csharp -await client.Orders.CustomAttributeDefinitions.DeleteAsync( - new Square.Orders.CustomAttributeDefinitions.DeleteCustomAttributeDefinitionsRequest - { - Key = "key", - } +await client.Default.Orders.CustomAttributeDefinitions.DeleteAsync( + new Square.Default.Orders.DeleteCustomAttributeDefinitionsRequest { Key = "key" } ); ```
@@ -19996,8 +19955,8 @@ await client.Orders.CustomAttributeDefinitions.DeleteAsync(
-## Orders CustomAttributes -
client.Orders.CustomAttributes.BatchDeleteAsync(BulkDeleteOrderCustomAttributesRequest { ... }) -> BulkDeleteOrderCustomAttributesResponse +## Default Orders CustomAttributes +
client.Default.Orders.CustomAttributes.BatchDeleteAsync(BulkDeleteOrderCustomAttributesRequest { ... }) -> BulkDeleteOrderCustomAttributesResponse
@@ -20037,7 +19996,7 @@ must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attribut
```csharp -await client.Orders.CustomAttributes.BatchDeleteAsync( +await client.Default.Orders.CustomAttributes.BatchDeleteAsync( new BulkDeleteOrderCustomAttributesRequest { Values = new Dictionary< @@ -20090,7 +20049,7 @@ await client.Orders.CustomAttributes.BatchDeleteAsync(
-
client.Orders.CustomAttributes.BatchUpsertAsync(BulkUpsertOrderCustomAttributesRequest { ... }) -> BulkUpsertOrderCustomAttributesResponse +
client.Default.Orders.CustomAttributes.BatchUpsertAsync(BulkUpsertOrderCustomAttributesRequest { ... }) -> BulkUpsertOrderCustomAttributesResponse
@@ -20130,7 +20089,7 @@ must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attribut
```csharp -await client.Orders.CustomAttributes.BatchUpsertAsync( +await client.Default.Orders.CustomAttributes.BatchUpsertAsync( new BulkUpsertOrderCustomAttributesRequest { Values = new Dictionary< @@ -20193,7 +20152,7 @@ await client.Orders.CustomAttributes.BatchUpsertAsync(
-
client.Orders.CustomAttributes.ListAsync(ListCustomAttributesRequest { ... }) -> Pager<CustomAttribute> +
client.Default.Orders.CustomAttributes.ListAsync(ListCustomAttributesRequest { ... }) -> Pager<CustomAttribute>
@@ -20227,8 +20186,8 @@ and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
```csharp -await client.Orders.CustomAttributes.ListAsync( - new Square.Orders.CustomAttributes.ListCustomAttributesRequest +await client.Default.Orders.CustomAttributes.ListAsync( + new Square.Default.Orders.ListCustomAttributesRequest { OrderId = "order_id", VisibilityFilter = VisibilityFilter.All, @@ -20263,7 +20222,7 @@ await client.Orders.CustomAttributes.ListAsync(
-
client.Orders.CustomAttributes.GetAsync(GetCustomAttributesRequest { ... }) -> RetrieveOrderCustomAttributeResponse +
client.Default.Orders.CustomAttributes.GetAsync(GetCustomAttributesRequest { ... }) -> RetrieveOrderCustomAttributeResponse
@@ -20297,8 +20256,8 @@ also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
```csharp -await client.Orders.CustomAttributes.GetAsync( - new Square.Orders.CustomAttributes.GetCustomAttributesRequest +await client.Default.Orders.CustomAttributes.GetAsync( + new Square.Default.Orders.GetCustomAttributesRequest { OrderId = "order_id", CustomAttributeKey = "custom_attribute_key", @@ -20332,7 +20291,7 @@ await client.Orders.CustomAttributes.GetAsync(
-
client.Orders.CustomAttributes.UpsertAsync(UpsertOrderCustomAttributeRequest { ... }) -> UpsertOrderCustomAttributeResponse +
client.Default.Orders.CustomAttributes.UpsertAsync(UpsertOrderCustomAttributeRequest { ... }) -> UpsertOrderCustomAttributeResponse
@@ -20367,7 +20326,7 @@ must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attribut
```csharp -await client.Orders.CustomAttributes.UpsertAsync( +await client.Default.Orders.CustomAttributes.UpsertAsync( new UpsertOrderCustomAttributeRequest { OrderId = "order_id", @@ -20406,7 +20365,7 @@ await client.Orders.CustomAttributes.UpsertAsync(
-
client.Orders.CustomAttributes.DeleteAsync(DeleteCustomAttributesRequest { ... }) -> DeleteOrderCustomAttributeResponse +
client.Default.Orders.CustomAttributes.DeleteAsync(DeleteCustomAttributesRequest { ... }) -> DeleteOrderCustomAttributeResponse
@@ -20437,8 +20396,8 @@ To delete a custom attribute owned by another application, the `visibility` sett
```csharp -await client.Orders.CustomAttributes.DeleteAsync( - new Square.Orders.CustomAttributes.DeleteCustomAttributesRequest +await client.Default.Orders.CustomAttributes.DeleteAsync( + new Square.Default.Orders.DeleteCustomAttributesRequest { OrderId = "order_id", CustomAttributeKey = "custom_attribute_key", @@ -20470,8 +20429,8 @@ await client.Orders.CustomAttributes.DeleteAsync(
-## TeamMembers WageSetting -
client.TeamMembers.WageSetting.GetAsync(GetWageSettingRequest { ... }) -> GetWageSettingResponse +## Default TeamMembers WageSetting +
client.Default.TeamMembers.WageSetting.GetAsync(GetWageSettingRequest { ... }) -> GetWageSettingResponse
@@ -20503,8 +20462,8 @@ to get this information directly from the `TeamMember.wage_setting` field.
```csharp -await client.TeamMembers.WageSetting.GetAsync( - new Square.TeamMembers.WageSetting.GetWageSettingRequest { TeamMemberId = "team_member_id" } +await client.Default.TeamMembers.WageSetting.GetAsync( + new Square.Default.TeamMembers.GetWageSettingRequest { TeamMemberId = "team_member_id" } ); ```
@@ -20532,7 +20491,7 @@ await client.TeamMembers.WageSetting.GetAsync(
-
client.TeamMembers.WageSetting.UpdateAsync(UpdateWageSettingRequest { ... }) -> UpdateWageSettingResponse +
client.Default.TeamMembers.WageSetting.UpdateAsync(UpdateWageSettingRequest { ... }) -> UpdateWageSettingResponse
@@ -20566,11 +20525,11 @@ to manage the `TeamMember.wage_setting` field directly.
```csharp -await client.TeamMembers.WageSetting.UpdateAsync( +await client.Default.TeamMembers.WageSetting.UpdateAsync( new UpdateWageSettingRequest { TeamMemberId = "team_member_id", - WageSetting = new Square.WageSetting + WageSetting = new WageSetting { JobAssignments = new List() { @@ -20618,8 +20577,8 @@ await client.TeamMembers.WageSetting.UpdateAsync(
-## Terminal Actions -
client.Terminal.Actions.CreateAsync(CreateTerminalActionRequest { ... }) -> CreateTerminalActionResponse +## Default Terminal Actions +
client.Default.Terminal.Actions.CreateAsync(CreateTerminalActionRequest { ... }) -> CreateTerminalActionResponse
@@ -20646,7 +20605,7 @@ Creates a Terminal action request and sends it to the specified device.
```csharp -await client.Terminal.Actions.CreateAsync( +await client.Default.Terminal.Actions.CreateAsync( new CreateTerminalActionRequest { IdempotencyKey = "thahn-70e75c10-47f7-4ab6-88cc-aaa4076d065e", @@ -20689,7 +20648,7 @@ await client.Terminal.Actions.CreateAsync(
-
client.Terminal.Actions.SearchAsync(SearchTerminalActionsRequest { ... }) -> SearchTerminalActionsResponse +
client.Default.Terminal.Actions.SearchAsync(SearchTerminalActionsRequest { ... }) -> SearchTerminalActionsResponse
@@ -20716,7 +20675,7 @@ Retrieves a filtered list of Terminal action requests created by the account mak
```csharp -await client.Terminal.Actions.SearchAsync( +await client.Default.Terminal.Actions.SearchAsync( new SearchTerminalActionsRequest { Query = new TerminalActionQuery @@ -20756,7 +20715,7 @@ await client.Terminal.Actions.SearchAsync(
-
client.Terminal.Actions.GetAsync(GetActionsRequest { ... }) -> GetTerminalActionResponse +
client.Default.Terminal.Actions.GetAsync(GetActionsRequest { ... }) -> GetTerminalActionResponse
@@ -20783,7 +20742,7 @@ Retrieves a Terminal action request by `action_id`. Terminal action requests are
```csharp -await client.Terminal.Actions.GetAsync(new GetActionsRequest { ActionId = "action_id" }); +await client.Default.Terminal.Actions.GetAsync(new GetActionsRequest { ActionId = "action_id" }); ```
@@ -20810,7 +20769,7 @@ await client.Terminal.Actions.GetAsync(new GetActionsRequest { ActionId = "actio
-
client.Terminal.Actions.CancelAsync(CancelActionsRequest { ... }) -> CancelTerminalActionResponse +
client.Default.Terminal.Actions.CancelAsync(CancelActionsRequest { ... }) -> CancelTerminalActionResponse
@@ -20837,7 +20796,9 @@ Cancels a Terminal action request if the status of the request permits it.
```csharp -await client.Terminal.Actions.CancelAsync(new CancelActionsRequest { ActionId = "action_id" }); +await client.Default.Terminal.Actions.CancelAsync( + new CancelActionsRequest { ActionId = "action_id" } +); ```
@@ -20864,8 +20825,8 @@ await client.Terminal.Actions.CancelAsync(new CancelActionsRequest { ActionId =
-## Terminal Checkouts -
client.Terminal.Checkouts.CreateAsync(CreateTerminalCheckoutRequest { ... }) -> CreateTerminalCheckoutResponse +## Default Terminal Checkouts +
client.Default.Terminal.Checkouts.CreateAsync(CreateTerminalCheckoutRequest { ... }) -> CreateTerminalCheckoutResponse
@@ -20893,7 +20854,7 @@ for the requested amount.
```csharp -await client.Terminal.Checkouts.CreateAsync( +await client.Default.Terminal.Checkouts.CreateAsync( new CreateTerminalCheckoutRequest { IdempotencyKey = "28a0c3bc-7839-11ea-bc55-0242ac130003", @@ -20935,7 +20896,7 @@ await client.Terminal.Checkouts.CreateAsync(
-
client.Terminal.Checkouts.SearchAsync(SearchTerminalCheckoutsRequest { ... }) -> SearchTerminalCheckoutsResponse +
client.Default.Terminal.Checkouts.SearchAsync(SearchTerminalCheckoutsRequest { ... }) -> SearchTerminalCheckoutsResponse
@@ -20962,7 +20923,7 @@ Returns a filtered list of Terminal checkout requests created by the application
```csharp -await client.Terminal.Checkouts.SearchAsync( +await client.Default.Terminal.Checkouts.SearchAsync( new SearchTerminalCheckoutsRequest { Query = new TerminalCheckoutQuery @@ -20998,7 +20959,7 @@ await client.Terminal.Checkouts.SearchAsync(
-
client.Terminal.Checkouts.GetAsync(GetCheckoutsRequest { ... }) -> GetTerminalCheckoutResponse +
client.Default.Terminal.Checkouts.GetAsync(GetCheckoutsRequest { ... }) -> GetTerminalCheckoutResponse
@@ -21025,7 +20986,9 @@ Retrieves a Terminal checkout request by `checkout_id`. Terminal checkout reques
```csharp -await client.Terminal.Checkouts.GetAsync(new GetCheckoutsRequest { CheckoutId = "checkout_id" }); +await client.Default.Terminal.Checkouts.GetAsync( + new GetCheckoutsRequest { CheckoutId = "checkout_id" } +); ```
@@ -21052,7 +21015,7 @@ await client.Terminal.Checkouts.GetAsync(new GetCheckoutsRequest { CheckoutId =
-
client.Terminal.Checkouts.CancelAsync(CancelCheckoutsRequest { ... }) -> CancelTerminalCheckoutResponse +
client.Default.Terminal.Checkouts.CancelAsync(CancelCheckoutsRequest { ... }) -> CancelTerminalCheckoutResponse
@@ -21079,7 +21042,7 @@ Cancels a Terminal checkout request if the status of the request permits it.
```csharp -await client.Terminal.Checkouts.CancelAsync( +await client.Default.Terminal.Checkouts.CancelAsync( new CancelCheckoutsRequest { CheckoutId = "checkout_id" } ); ``` @@ -21108,8 +21071,8 @@ await client.Terminal.Checkouts.CancelAsync(
-## Terminal Refunds -
client.Terminal.Refunds.CreateAsync(CreateTerminalRefundRequest { ... }) -> CreateTerminalRefundResponse +## Default Terminal Refunds +
client.Default.Terminal.Refunds.CreateAsync(CreateTerminalRefundRequest { ... }) -> CreateTerminalRefundResponse
@@ -21136,7 +21099,7 @@ Creates a request to refund an Interac payment completed on a Square Terminal. R
```csharp -await client.Terminal.Refunds.CreateAsync( +await client.Default.Terminal.Refunds.CreateAsync( new CreateTerminalRefundRequest { IdempotencyKey = "402a640b-b26f-401f-b406-46f839590c04", @@ -21175,7 +21138,7 @@ await client.Terminal.Refunds.CreateAsync(
-
client.Terminal.Refunds.SearchAsync(SearchTerminalRefundsRequest { ... }) -> SearchTerminalRefundsResponse +
client.Default.Terminal.Refunds.SearchAsync(SearchTerminalRefundsRequest { ... }) -> SearchTerminalRefundsResponse
@@ -21202,7 +21165,7 @@ Retrieves a filtered list of Interac Terminal refund requests created by the sel
```csharp -await client.Terminal.Refunds.SearchAsync( +await client.Default.Terminal.Refunds.SearchAsync( new SearchTerminalRefundsRequest { Query = new TerminalRefundQuery @@ -21238,7 +21201,7 @@ await client.Terminal.Refunds.SearchAsync(
-
client.Terminal.Refunds.GetAsync(GetRefundsRequest { ... }) -> GetTerminalRefundResponse +
client.Default.Terminal.Refunds.GetAsync(GetRefundsRequest { ... }) -> GetTerminalRefundResponse
@@ -21265,8 +21228,8 @@ Retrieves an Interac Terminal refund object by ID. Terminal refund objects are a
```csharp -await client.Terminal.Refunds.GetAsync( - new Square.Terminal.Refunds.GetRefundsRequest { TerminalRefundId = "terminal_refund_id" } +await client.Default.Terminal.Refunds.GetAsync( + new Square.Default.Terminal.GetRefundsRequest { TerminalRefundId = "terminal_refund_id" } ); ```
@@ -21294,7 +21257,7 @@ await client.Terminal.Refunds.GetAsync(
-
client.Terminal.Refunds.CancelAsync(CancelRefundsRequest { ... }) -> CancelTerminalRefundResponse +
client.Default.Terminal.Refunds.CancelAsync(CancelRefundsRequest { ... }) -> CancelTerminalRefundResponse
@@ -21321,7 +21284,7 @@ Cancels an Interac Terminal refund request by refund request ID if the status of
```csharp -await client.Terminal.Refunds.CancelAsync( +await client.Default.Terminal.Refunds.CancelAsync( new CancelRefundsRequest { TerminalRefundId = "terminal_refund_id" } ); ``` @@ -21350,8 +21313,8 @@ await client.Terminal.Refunds.CancelAsync(
-## Webhooks EventTypes -
client.Webhooks.EventTypes.ListAsync(ListEventTypesRequest { ... }) -> ListWebhookEventTypesResponse +## Default Webhooks EventTypes +
client.Default.Webhooks.EventTypes.ListAsync(ListEventTypesRequest { ... }) -> ListWebhookEventTypesResponse
@@ -21378,8 +21341,8 @@ Lists all webhook event types that can be subscribed to.
```csharp -await client.Webhooks.EventTypes.ListAsync( - new Square.Webhooks.EventTypes.ListEventTypesRequest { ApiVersion = "api_version" } +await client.Default.Webhooks.EventTypes.ListAsync( + new Square.Default.Webhooks.ListEventTypesRequest { ApiVersion = "api_version" } ); ```
@@ -21407,8 +21370,8 @@ await client.Webhooks.EventTypes.ListAsync(
-## Webhooks Subscriptions -
client.Webhooks.Subscriptions.ListAsync(ListSubscriptionsRequest { ... }) -> Pager<WebhookSubscription> +## Default Webhooks Subscriptions +
client.Default.Webhooks.Subscriptions.ListAsync(ListSubscriptionsRequest { ... }) -> Pager<WebhookSubscription>
@@ -21435,7 +21398,7 @@ Lists all webhook subscriptions owned by your application.
```csharp -await client.Webhooks.Subscriptions.ListAsync( +await client.Default.Webhooks.Subscriptions.ListAsync( new ListSubscriptionsRequest { Cursor = "cursor", @@ -21470,7 +21433,7 @@ await client.Webhooks.Subscriptions.ListAsync(
-
client.Webhooks.Subscriptions.CreateAsync(CreateWebhookSubscriptionRequest { ... }) -> CreateWebhookSubscriptionResponse +
client.Default.Webhooks.Subscriptions.CreateAsync(CreateWebhookSubscriptionRequest { ... }) -> CreateWebhookSubscriptionResponse
@@ -21497,7 +21460,7 @@ Creates a webhook subscription.
```csharp -await client.Webhooks.Subscriptions.CreateAsync( +await client.Default.Webhooks.Subscriptions.CreateAsync( new CreateWebhookSubscriptionRequest { IdempotencyKey = "63f84c6c-2200-4c99-846c-2670a1311fbf", @@ -21536,7 +21499,7 @@ await client.Webhooks.Subscriptions.CreateAsync(
-
client.Webhooks.Subscriptions.GetAsync(GetSubscriptionsRequest { ... }) -> GetWebhookSubscriptionResponse +
client.Default.Webhooks.Subscriptions.GetAsync(GetSubscriptionsRequest { ... }) -> GetWebhookSubscriptionResponse
@@ -21563,8 +21526,8 @@ Retrieves a webhook subscription identified by its ID.
```csharp -await client.Webhooks.Subscriptions.GetAsync( - new Square.Webhooks.Subscriptions.GetSubscriptionsRequest { SubscriptionId = "subscription_id" } +await client.Default.Webhooks.Subscriptions.GetAsync( + new Square.Default.Webhooks.GetSubscriptionsRequest { SubscriptionId = "subscription_id" } ); ```
@@ -21592,7 +21555,7 @@ await client.Webhooks.Subscriptions.GetAsync(
-
client.Webhooks.Subscriptions.UpdateAsync(UpdateWebhookSubscriptionRequest { ... }) -> UpdateWebhookSubscriptionResponse +
client.Default.Webhooks.Subscriptions.UpdateAsync(UpdateWebhookSubscriptionRequest { ... }) -> UpdateWebhookSubscriptionResponse
@@ -21619,7 +21582,7 @@ Updates a webhook subscription.
```csharp -await client.Webhooks.Subscriptions.UpdateAsync( +await client.Default.Webhooks.Subscriptions.UpdateAsync( new UpdateWebhookSubscriptionRequest { SubscriptionId = "subscription_id", @@ -21656,7 +21619,7 @@ await client.Webhooks.Subscriptions.UpdateAsync(
-
client.Webhooks.Subscriptions.DeleteAsync(DeleteSubscriptionsRequest { ... }) -> DeleteWebhookSubscriptionResponse +
client.Default.Webhooks.Subscriptions.DeleteAsync(DeleteSubscriptionsRequest { ... }) -> DeleteWebhookSubscriptionResponse
@@ -21683,7 +21646,7 @@ Deletes a webhook subscription.
```csharp -await client.Webhooks.Subscriptions.DeleteAsync( +await client.Default.Webhooks.Subscriptions.DeleteAsync( new DeleteSubscriptionsRequest { SubscriptionId = "subscription_id" } ); ``` @@ -21712,7 +21675,7 @@ await client.Webhooks.Subscriptions.DeleteAsync(
-
client.Webhooks.Subscriptions.UpdateSignatureKeyAsync(UpdateWebhookSubscriptionSignatureKeyRequest { ... }) -> UpdateWebhookSubscriptionSignatureKeyResponse +
client.Default.Webhooks.Subscriptions.UpdateSignatureKeyAsync(UpdateWebhookSubscriptionSignatureKeyRequest { ... }) -> UpdateWebhookSubscriptionSignatureKeyResponse
@@ -21739,7 +21702,7 @@ Updates a webhook subscription by replacing the existing signature key with a ne
```csharp -await client.Webhooks.Subscriptions.UpdateSignatureKeyAsync( +await client.Default.Webhooks.Subscriptions.UpdateSignatureKeyAsync( new UpdateWebhookSubscriptionSignatureKeyRequest { SubscriptionId = "subscription_id", @@ -21772,7 +21735,7 @@ await client.Webhooks.Subscriptions.UpdateSignatureKeyAsync(
-
client.Webhooks.Subscriptions.TestAsync(TestWebhookSubscriptionRequest { ... }) -> TestWebhookSubscriptionResponse +
client.Default.Webhooks.Subscriptions.TestAsync(TestWebhookSubscriptionRequest { ... }) -> TestWebhookSubscriptionResponse
@@ -21799,7 +21762,7 @@ Tests a webhook subscription by sending a test event to the notification URL.
```csharp -await client.Webhooks.Subscriptions.TestAsync( +await client.Default.Webhooks.Subscriptions.TestAsync( new TestWebhookSubscriptionRequest { SubscriptionId = "subscription_id", diff --git a/src/Square.Test/Unit/MockServer/Bookings/CustomAttributes/GetTest.cs b/src/Square.Test/Unit/MockServer/Bookings/CustomAttributes/GetTest.cs deleted file mode 100644 index 4665da89..00000000 --- a/src/Square.Test/Unit/MockServer/Bookings/CustomAttributes/GetTest.cs +++ /dev/null @@ -1,77 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Bookings.CustomAttributes; - -[TestFixture] -public class GetTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "custom_attribute": { - "key": "favoriteShampoo", - "value": "Dune", - "version": 1, - "visibility": "VISIBILITY_READ_ONLY", - "definition": { - "key": "key", - "schema": { - "key": "value" - }, - "name": "name", - "description": "description", - "visibility": "VISIBILITY_HIDDEN", - "version": 1, - "updated_at": "updated_at", - "created_at": "created_at" - }, - "updated_at": "2022-11-16T15:50:27.000Z", - "created_at": "2022-11-16T15:50:27.000Z" - }, - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/bookings/booking_id/custom-attributes/key") - .WithParam("version", "1") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Bookings.CustomAttributes.GetAsync( - new Square.Bookings.CustomAttributes.GetCustomAttributesRequest - { - BookingId = "booking_id", - Key = "key", - WithDefinition = true, - Version = 1, - } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)) - .UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Bookings/CustomAttributes/ListTest.cs b/src/Square.Test/Unit/MockServer/Bookings/CustomAttributes/ListTest.cs deleted file mode 100644 index d22e7906..00000000 --- a/src/Square.Test/Unit/MockServer/Bookings/CustomAttributes/ListTest.cs +++ /dev/null @@ -1,75 +0,0 @@ -using NUnit.Framework; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Bookings.CustomAttributes; - -[TestFixture] -public class ListTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "custom_attributes": [ - { - "key": "favoriteShampoo", - "value": "Hydro-Cool", - "version": 1, - "visibility": "VISIBILITY_READ_ONLY", - "updated_at": "2022-11-16T15:50:27.000Z", - "created_at": "2022-11-16T15:50:27.000Z" - }, - { - "key": "hasShoes", - "value": false, - "version": 1, - "visibility": "VISIBILITY_HIDDEN", - "updated_at": "2022-11-16T15:51:53.000Z", - "created_at": "2022-11-16T15:51:53.000Z" - } - ], - "cursor": "cursor", - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/bookings/booking_id/custom-attributes") - .WithParam("limit", "1") - .WithParam("cursor", "cursor") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var items = await Client.Bookings.CustomAttributes.ListAsync( - new Square.Bookings.CustomAttributes.ListCustomAttributesRequest - { - BookingId = "booking_id", - Limit = 1, - Cursor = "cursor", - WithDefinitions = true, - } - ); - await foreach (var item in items) - { - Assert.That(item, Is.Not.Null); - break; // Only check the first item - } - } -} diff --git a/src/Square.Test/Unit/MockServer/Bookings/GetTest.cs b/src/Square.Test/Unit/MockServer/Bookings/GetTest.cs deleted file mode 100644 index 8bbe9e54..00000000 --- a/src/Square.Test/Unit/MockServer/Bookings/GetTest.cs +++ /dev/null @@ -1,95 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Bookings; -using Square.Core; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Bookings; - -[TestFixture] -public class GetTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "booking": { - "id": "zkras0xv0xwswx", - "version": 1, - "status": "ACCEPTED", - "created_at": "2020-10-28T15:47:41.000Z", - "updated_at": "2020-10-28T15:49:25.000Z", - "start_at": "2020-11-26T13:00:00.000Z", - "location_id": "LEQHH0YY8B42M", - "customer_id": "EX2QSVGTZN4K1E5QE1CBFNVQ8M", - "customer_note": "", - "seller_note": "", - "appointment_segments": [ - { - "duration_minutes": 60, - "service_variation_id": "RU3PBTZTK7DXZDQFCJHOK2MC", - "team_member_id": "TMXUrsBWWcHTt79t", - "service_variation_version": 1599775456731 - } - ], - "transition_time_minutes": 1, - "all_day": true, - "location_type": "BUSINESS_LOCATION", - "creator_details": { - "creator_type": "TEAM_MEMBER", - "team_member_id": "team_member_id", - "customer_id": "customer_id" - }, - "source": "FIRST_PARTY_MERCHANT", - "address": { - "address_line_1": "address_line_1", - "address_line_2": "address_line_2", - "address_line_3": "address_line_3", - "locality": "locality", - "sublocality": "sublocality", - "sublocality_2": "sublocality_2", - "sublocality_3": "sublocality_3", - "administrative_district_level_1": "administrative_district_level_1", - "administrative_district_level_2": "administrative_district_level_2", - "administrative_district_level_3": "administrative_district_level_3", - "postal_code": "postal_code", - "country": "ZZ", - "first_name": "first_name", - "last_name": "last_name" - } - }, - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/bookings/booking_id") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Bookings.GetAsync( - new GetBookingsRequest { BookingId = "booking_id" } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Bookings/ListTest.cs b/src/Square.Test/Unit/MockServer/Bookings/ListTest.cs deleted file mode 100644 index d886001f..00000000 --- a/src/Square.Test/Unit/MockServer/Bookings/ListTest.cs +++ /dev/null @@ -1,91 +0,0 @@ -using NUnit.Framework; -using Square.Bookings; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Bookings; - -[TestFixture] -public class ListTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "bookings": [ - { - "id": "zkras0xv0xwswx", - "version": 1, - "status": "ACCEPTED", - "created_at": "2020-10-28T15:47:41.000Z", - "updated_at": "2020-10-28T15:49:25.000Z", - "start_at": "2020-11-26T13:00:00.000Z", - "location_id": "LEQHH0YY8B42M", - "customer_id": "EX2QSVGTZN4K1E5QE1CBFNVQ8M", - "customer_note": "", - "seller_note": "", - "appointment_segments": [ - { - "duration_minutes": 60, - "service_variation_id": "RU3PBTZTK7DXZDQFCJHOK2MC", - "team_member_id": "TMXUrsBWWcHTt79t", - "service_variation_version": 1599775456731 - } - ], - "transition_time_minutes": 1, - "all_day": true, - "location_type": "BUSINESS_LOCATION", - "source": "FIRST_PARTY_MERCHANT" - } - ], - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/bookings") - .WithParam("limit", "1") - .WithParam("cursor", "cursor") - .WithParam("customer_id", "customer_id") - .WithParam("team_member_id", "team_member_id") - .WithParam("location_id", "location_id") - .WithParam("start_at_min", "start_at_min") - .WithParam("start_at_max", "start_at_max") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var items = await Client.Bookings.ListAsync( - new ListBookingsRequest - { - Limit = 1, - Cursor = "cursor", - CustomerId = "customer_id", - TeamMemberId = "team_member_id", - LocationId = "location_id", - StartAtMin = "start_at_min", - StartAtMax = "start_at_max", - } - ); - await foreach (var item in items) - { - Assert.That(item, Is.Not.Null); - break; // Only check the first item - } - } -} diff --git a/src/Square.Test/Unit/MockServer/Bookings/LocationProfiles/ListTest.cs b/src/Square.Test/Unit/MockServer/Bookings/LocationProfiles/ListTest.cs deleted file mode 100644 index 919bd178..00000000 --- a/src/Square.Test/Unit/MockServer/Bookings/LocationProfiles/ListTest.cs +++ /dev/null @@ -1,64 +0,0 @@ -using NUnit.Framework; -using Square.Bookings.LocationProfiles; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Bookings.LocationProfiles; - -[TestFixture] -public class ListTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "location_booking_profiles": [ - { - "location_id": "LY6WNBPVM6VGV", - "booking_site_url": "https://squareup.com/book/LY6WNBPVM6VGV/testbusiness", - "online_booking_enabled": true - }, - { - "location_id": "PYTRNBPVMJUPV", - "booking_site_url": "booking_site_url", - "online_booking_enabled": false - } - ], - "cursor": "cursor", - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/bookings/location-booking-profiles") - .WithParam("limit", "1") - .WithParam("cursor", "cursor") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var items = await Client.Bookings.LocationProfiles.ListAsync( - new ListLocationProfilesRequest { Limit = 1, Cursor = "cursor" } - ); - await foreach (var item in items) - { - Assert.That(item, Is.Not.Null); - break; // Only check the first item - } - } -} diff --git a/src/Square.Test/Unit/MockServer/Cards/CreateTest.cs b/src/Square.Test/Unit/MockServer/Cards/CreateTest.cs deleted file mode 100644 index c75936d4..00000000 --- a/src/Square.Test/Unit/MockServer/Cards/CreateTest.cs +++ /dev/null @@ -1,130 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Cards; -using Square.Core; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Cards; - -[TestFixture] -public class CreateTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string requestJson = """ - { - "idempotency_key": "4935a656-a929-4792-b97c-8848be85c27c", - "source_id": "cnon:uIbfJXhXETSP197M3GB", - "card": { - "cardholder_name": "Amelia Earhart", - "billing_address": { - "address_line_1": "500 Electric Ave", - "address_line_2": "Suite 600", - "locality": "New York", - "administrative_district_level_1": "NY", - "postal_code": "10003", - "country": "US" - }, - "customer_id": "VDKXEEKPJN48QDG3BGGFAK05P8", - "reference_id": "user-id-1" - } - } - """; - - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "card": { - "id": "ccof:uIbfJXhXETSP197M3GB", - "card_brand": "VISA", - "last_4": "1111", - "exp_month": 11, - "exp_year": 2022, - "cardholder_name": "Amelia Earhart", - "billing_address": { - "address_line_1": "500 Electric Ave", - "address_line_2": "Suite 600", - "address_line_3": "address_line_3", - "locality": "New York", - "sublocality": "sublocality", - "sublocality_2": "sublocality_2", - "sublocality_3": "sublocality_3", - "administrative_district_level_1": "NY", - "administrative_district_level_2": "administrative_district_level_2", - "administrative_district_level_3": "administrative_district_level_3", - "postal_code": "10003", - "country": "US", - "first_name": "first_name", - "last_name": "last_name" - }, - "fingerprint": "ex-p-cs80EK9Flz7LsCMv-szbptQ_ssAGrhemzSTsPFgt9nzyE6t7okiLIQc-qw_quqKX4Q", - "customer_id": "VDKXEEKPJN48QDG3BGGFAK05P8", - "merchant_id": "6SSW7HV8K2ST5", - "reference_id": "user-id-1", - "enabled": true, - "card_type": "CREDIT", - "prepaid_type": "NOT_PREPAID", - "bin": "411111", - "created_at": "created_at", - "disabled_at": "disabled_at", - "version": 1, - "card_co_brand": "UNKNOWN", - "issuer_alert": "ISSUER_ALERT_CARD_CLOSED", - "issuer_alert_at": "issuer_alert_at", - "hsa_fsa": false - } - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/cards") - .WithHeader("Content-Type", "application/json") - .UsingPost() - .WithBodyAsJson(requestJson) - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Cards.CreateAsync( - new CreateCardRequest - { - IdempotencyKey = "4935a656-a929-4792-b97c-8848be85c27c", - SourceId = "cnon:uIbfJXhXETSP197M3GB", - Card = new Card - { - CardholderName = "Amelia Earhart", - BillingAddress = new Address - { - AddressLine1 = "500 Electric Ave", - AddressLine2 = "Suite 600", - Locality = "New York", - AdministrativeDistrictLevel1 = "NY", - PostalCode = "10003", - Country = Country.Us, - }, - CustomerId = "VDKXEEKPJN48QDG3BGGFAK05P8", - ReferenceId = "user-id-1", - }, - } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Cards/GetTest.cs b/src/Square.Test/Unit/MockServer/Cards/GetTest.cs deleted file mode 100644 index aa519d7a..00000000 --- a/src/Square.Test/Unit/MockServer/Cards/GetTest.cs +++ /dev/null @@ -1,84 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Cards; -using Square.Core; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Cards; - -[TestFixture] -public class GetTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "card": { - "id": "ccof:uIbfJXhXETSP197M3GB", - "card_brand": "VISA", - "last_4": "1111", - "exp_month": 11, - "exp_year": 2022, - "cardholder_name": "Amelia Earhart", - "billing_address": { - "address_line_1": "500 Electric Ave", - "address_line_2": "Suite 600", - "address_line_3": "address_line_3", - "locality": "New York", - "sublocality": "sublocality", - "sublocality_2": "sublocality_2", - "sublocality_3": "sublocality_3", - "administrative_district_level_1": "NY", - "administrative_district_level_2": "administrative_district_level_2", - "administrative_district_level_3": "administrative_district_level_3", - "postal_code": "10003", - "country": "US", - "first_name": "first_name", - "last_name": "last_name" - }, - "fingerprint": "ex-p-cs80EK9Flz7LsCMv-szbptQ_ssAGrhemzSTsPFgt9nzyE6t7okiLIQc-qw_quqKX4Q", - "customer_id": "VDKXEEKPJN48QDG3BGGFAK05P8", - "merchant_id": "6SSW7HV8K2ST5", - "reference_id": "user-id-1", - "enabled": true, - "card_type": "CREDIT", - "prepaid_type": "NOT_PREPAID", - "bin": "411111", - "created_at": "created_at", - "disabled_at": "disabled_at", - "version": 1, - "card_co_brand": "UNKNOWN", - "issuer_alert": "ISSUER_ALERT_CARD_CLOSED", - "issuer_alert_at": "issuer_alert_at", - "hsa_fsa": false - } - } - """; - - Server - .Given( - WireMock.RequestBuilders.Request.Create().WithPath("/v2/cards/card_id").UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Cards.GetAsync(new GetCardsRequest { CardId = "card_id" }); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Cards/ListTest.cs b/src/Square.Test/Unit/MockServer/Cards/ListTest.cs deleted file mode 100644 index c09ab54a..00000000 --- a/src/Square.Test/Unit/MockServer/Cards/ListTest.cs +++ /dev/null @@ -1,95 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Cards; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Cards; - -[TestFixture] -public class ListTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "cards": [ - { - "id": "ccof:uIbfJXhXETSP197M3GB", - "card_brand": "VISA", - "last_4": "1111", - "exp_month": 11, - "exp_year": 2022, - "cardholder_name": "Amelia Earhart", - "billing_address": { - "address_line_1": "500 Electric Ave", - "address_line_2": "Suite 600", - "locality": "New York", - "administrative_district_level_1": "NY", - "postal_code": "10003", - "country": "US" - }, - "fingerprint": "ex-p-cs80EK9Flz7LsCMv-szbptQ_ssAGrhemzSTsPFgt9nzyE6t7okiLIQc-qw_quqKX4Q", - "customer_id": "VDKXEEKPJN48QDG3BGGFAK05P8", - "merchant_id": "6SSW7HV8K2ST5", - "reference_id": "user-id-1", - "enabled": true, - "card_type": "CREDIT", - "prepaid_type": "NOT_PREPAID", - "bin": "411111", - "created_at": "created_at", - "disabled_at": "disabled_at", - "version": 1, - "card_co_brand": "UNKNOWN", - "issuer_alert": "ISSUER_ALERT_CARD_CLOSED", - "issuer_alert_at": "issuer_alert_at", - "hsa_fsa": false - } - ], - "cursor": "cursor" - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/cards") - .WithParam("cursor", "cursor") - .WithParam("customer_id", "customer_id") - .WithParam("reference_id", "reference_id") - .WithParam("sort_order", "DESC") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var items = await Client.Cards.ListAsync( - new ListCardsRequest - { - Cursor = "cursor", - CustomerId = "customer_id", - IncludeDisabled = true, - ReferenceId = "reference_id", - SortOrder = SortOrder.Desc, - } - ); - await foreach (var item in items) - { - Assert.That(item, Is.Not.Null); - break; // Only check the first item - } - } -} diff --git a/src/Square.Test/Unit/MockServer/Catalog/ListTest.cs b/src/Square.Test/Unit/MockServer/Catalog/ListTest.cs deleted file mode 100644 index 218d18f4..00000000 --- a/src/Square.Test/Unit/MockServer/Catalog/ListTest.cs +++ /dev/null @@ -1,103 +0,0 @@ -using NUnit.Framework; -using Square.Catalog; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Catalog; - -[TestFixture] -public class ListTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "cursor": "cursor", - "objects": [ - { - "id": "id", - "updated_at": "updated_at", - "version": 1000000, - "is_deleted": true, - "custom_attribute_values": { - "key": {} - }, - "catalog_v1_ids": [ - {} - ], - "present_at_all_locations": true, - "present_at_location_ids": [ - "present_at_location_ids" - ], - "absent_at_location_ids": [ - "absent_at_location_ids" - ], - "image_id": "image_id", - "ordinal": 1000000, - "type": "CATEGORY" - }, - { - "id": "id", - "updated_at": "updated_at", - "version": 1000000, - "is_deleted": true, - "custom_attribute_values": { - "key": {} - }, - "catalog_v1_ids": [ - {} - ], - "present_at_all_locations": true, - "present_at_location_ids": [ - "present_at_location_ids" - ], - "absent_at_location_ids": [ - "absent_at_location_ids" - ], - "image_id": "image_id", - "type": "TAX" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/catalog/list") - .WithParam("cursor", "cursor") - .WithParam("types", "types") - .WithParam("catalog_version", "1000000") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var items = await Client.Catalog.ListAsync( - new ListCatalogRequest - { - Cursor = "cursor", - Types = "types", - CatalogVersion = 1000000, - } - ); - await foreach (var item in items) - { - Assert.That(item, Is.Not.Null); - break; // Only check the first item - } - } -} diff --git a/src/Square.Test/Unit/MockServer/Channels/GetTest.cs b/src/Square.Test/Unit/MockServer/Channels/GetTest.cs deleted file mode 100644 index 41ec78ff..00000000 --- a/src/Square.Test/Unit/MockServer/Channels/GetTest.cs +++ /dev/null @@ -1,63 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Channels; -using Square.Core; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Channels; - -[TestFixture] -public class GetTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "channel": { - "id": "CH_9C03D0B59", - "merchant_id": "ML64FACEA", - "name": "Contoso Fulfillment Application", - "version": 1, - "reference": { - "type": "OAUTH_APPLICATION", - "id": "OA_9C03D0444" - }, - "status": "ACTIVE", - "created_at": "2022-10-25T16:27:00.000Z", - "updated_at": "2022-10-25T16:48:00.000Z" - } - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/channels/channel_id") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Channels.GetAsync( - new GetChannelsRequest { ChannelId = "channel_id" } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Channels/ListTest.cs b/src/Square.Test/Unit/MockServer/Channels/ListTest.cs deleted file mode 100644 index 62594f63..00000000 --- a/src/Square.Test/Unit/MockServer/Channels/ListTest.cs +++ /dev/null @@ -1,78 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Channels; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Channels; - -[TestFixture] -public class ListTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "channels": [ - { - "id": "CH_9C03D0B59", - "merchant_id": "ML64FACEA", - "name": "Contoso Fulfillment Application", - "version": 1, - "reference": { - "type": "OAUTH_APPLICATION", - "id": "OA_9C03D0444" - }, - "status": "ACTIVE", - "created_at": "2022-10-25T16:27:00.000Z", - "updated_at": "2022-10-25T16:48:00.000Z" - } - ], - "cursor": "cursor" - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/channels") - .WithParam("reference_type", "UNKNOWN_TYPE") - .WithParam("reference_id", "reference_id") - .WithParam("status", "ACTIVE") - .WithParam("cursor", "cursor") - .WithParam("limit", "1") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var items = await Client.Channels.ListAsync( - new ListChannelsRequest - { - ReferenceType = ReferenceType.UnknownType, - ReferenceId = "reference_id", - Status = ChannelStatus.Active, - Cursor = "cursor", - Limit = 1, - } - ); - await foreach (var item in items) - { - Assert.That(item, Is.Not.Null); - break; // Only check the first item - } - } -} diff --git a/src/Square.Test/Unit/MockServer/Customers/Cards/DeleteTest.cs b/src/Square.Test/Unit/MockServer/Customers/Cards/DeleteTest.cs deleted file mode 100644 index 791ff1b7..00000000 --- a/src/Square.Test/Unit/MockServer/Customers/Cards/DeleteTest.cs +++ /dev/null @@ -1,51 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Customers.Cards; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Customers.Cards; - -[TestFixture] -public class DeleteTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/customers/customer_id/cards/card_id") - .UsingDelete() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Customers.Cards.DeleteAsync( - new DeleteCardsRequest { CustomerId = "customer_id", CardId = "card_id" } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)) - .UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Customers/CreateTest.cs b/src/Square.Test/Unit/MockServer/Customers/CreateTest.cs deleted file mode 100644 index 6e12d65f..00000000 --- a/src/Square.Test/Unit/MockServer/Customers/CreateTest.cs +++ /dev/null @@ -1,132 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Customers; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Customers; - -[TestFixture] -public class CreateTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string requestJson = """ - { - "given_name": "Amelia", - "family_name": "Earhart", - "email_address": "Amelia.Earhart@example.com", - "address": { - "address_line_1": "500 Electric Ave", - "address_line_2": "Suite 600", - "locality": "New York", - "administrative_district_level_1": "NY", - "postal_code": "10003", - "country": "US" - }, - "phone_number": "+1-212-555-4240", - "reference_id": "YOUR_REFERENCE_ID", - "note": "a customer" - } - """; - - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "customer": { - "id": "JDKYHBWT1D4F8MFH63DBMEN8Y4", - "created_at": "2016-03-23T20:21:54.859Z", - "updated_at": "2016-03-23T20:21:54.859Z", - "given_name": "Amelia", - "family_name": "Earhart", - "nickname": "nickname", - "company_name": "company_name", - "email_address": "Amelia.Earhart@example.com", - "address": { - "address_line_1": "500 Electric Ave", - "address_line_2": "Suite 600", - "address_line_3": "address_line_3", - "locality": "New York", - "sublocality": "sublocality", - "sublocality_2": "sublocality_2", - "sublocality_3": "sublocality_3", - "administrative_district_level_1": "NY", - "administrative_district_level_2": "administrative_district_level_2", - "administrative_district_level_3": "administrative_district_level_3", - "postal_code": "10003", - "country": "US", - "first_name": "first_name", - "last_name": "last_name" - }, - "phone_number": "+1-212-555-4240", - "birthday": "birthday", - "reference_id": "YOUR_REFERENCE_ID", - "note": "a customer", - "preferences": { - "email_unsubscribed": false - }, - "creation_source": "THIRD_PARTY", - "group_ids": [ - "group_ids" - ], - "segment_ids": [ - "segment_ids" - ], - "version": 0, - "tax_ids": { - "eu_vat": "eu_vat" - } - } - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/customers") - .WithHeader("Content-Type", "application/json") - .UsingPost() - .WithBodyAsJson(requestJson) - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Customers.CreateAsync( - new CreateCustomerRequest - { - GivenName = "Amelia", - FamilyName = "Earhart", - EmailAddress = "Amelia.Earhart@example.com", - Address = new Address - { - AddressLine1 = "500 Electric Ave", - AddressLine2 = "Suite 600", - Locality = "New York", - AdministrativeDistrictLevel1 = "NY", - PostalCode = "10003", - Country = Country.Us, - }, - PhoneNumber = "+1-212-555-4240", - ReferenceId = "YOUR_REFERENCE_ID", - Note = "a customer", - } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Customers/GetTest.cs b/src/Square.Test/Unit/MockServer/Customers/GetTest.cs deleted file mode 100644 index a1798c64..00000000 --- a/src/Square.Test/Unit/MockServer/Customers/GetTest.cs +++ /dev/null @@ -1,94 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Customers; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Customers; - -[TestFixture] -public class GetTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "customer": { - "id": "JDKYHBWT1D4F8MFH63DBMEN8Y4", - "created_at": "2016-03-23T20:21:54.859Z", - "updated_at": "2016-03-23T20:21:54.859Z", - "given_name": "Amelia", - "family_name": "Earhart", - "nickname": "nickname", - "company_name": "company_name", - "email_address": "Amelia.Earhart@example.com", - "address": { - "address_line_1": "500 Electric Ave", - "address_line_2": "Suite 600", - "address_line_3": "address_line_3", - "locality": "New York", - "sublocality": "sublocality", - "sublocality_2": "sublocality_2", - "sublocality_3": "sublocality_3", - "administrative_district_level_1": "NY", - "administrative_district_level_2": "administrative_district_level_2", - "administrative_district_level_3": "administrative_district_level_3", - "postal_code": "10003", - "country": "US", - "first_name": "first_name", - "last_name": "last_name" - }, - "phone_number": "+1-212-555-4240", - "birthday": "birthday", - "reference_id": "YOUR_REFERENCE_ID", - "note": "a customer", - "preferences": { - "email_unsubscribed": false - }, - "creation_source": "THIRD_PARTY", - "group_ids": [ - "545AXB44B4XXWMVQ4W8SBT3HHF" - ], - "segment_ids": [ - "1KB9JE5EGJXCW.REACHABLE" - ], - "version": 1, - "tax_ids": { - "eu_vat": "eu_vat" - } - } - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/customers/customer_id") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Customers.GetAsync( - new GetCustomersRequest { CustomerId = "customer_id" } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Customers/Groups/CreateTest.cs b/src/Square.Test/Unit/MockServer/Customers/Groups/CreateTest.cs deleted file mode 100644 index a00f588c..00000000 --- a/src/Square.Test/Unit/MockServer/Customers/Groups/CreateTest.cs +++ /dev/null @@ -1,70 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Customers.Groups; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Customers.Groups; - -[TestFixture] -public class CreateTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string requestJson = """ - { - "group": { - "name": "Loyal Customers" - } - } - """; - - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "group": { - "id": "2TAT3CMH4Q0A9M87XJZED0WMR3", - "name": "Loyal Customers", - "created_at": "2020-04-13T21:54:57.863Z", - "updated_at": "2020-04-13T21:54:58.000Z" - } - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/customers/groups") - .WithHeader("Content-Type", "application/json") - .UsingPost() - .WithBodyAsJson(requestJson) - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Customers.Groups.CreateAsync( - new CreateCustomerGroupRequest - { - Group = new CustomerGroup { Name = "Loyal Customers" }, - } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)) - .UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Customers/Groups/DeleteTest.cs b/src/Square.Test/Unit/MockServer/Customers/Groups/DeleteTest.cs deleted file mode 100644 index f1c51d2e..00000000 --- a/src/Square.Test/Unit/MockServer/Customers/Groups/DeleteTest.cs +++ /dev/null @@ -1,51 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Customers.Groups; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Customers.Groups; - -[TestFixture] -public class DeleteTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/customers/groups/group_id") - .UsingDelete() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Customers.Groups.DeleteAsync( - new DeleteGroupsRequest { GroupId = "group_id" } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)) - .UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Customers/Groups/GetTest.cs b/src/Square.Test/Unit/MockServer/Customers/Groups/GetTest.cs deleted file mode 100644 index 8cdba151..00000000 --- a/src/Square.Test/Unit/MockServer/Customers/Groups/GetTest.cs +++ /dev/null @@ -1,57 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Customers.Groups; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Customers.Groups; - -[TestFixture] -public class GetTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "group": { - "id": "2TAT3CMH4Q0A9M87XJZED0WMR3", - "name": "Loyal Customers", - "created_at": "2020-04-13T21:54:57.863Z", - "updated_at": "2020-04-13T21:54:58.000Z" - } - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/customers/groups/group_id") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Customers.Groups.GetAsync( - new GetGroupsRequest { GroupId = "group_id" } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)) - .UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Customers/Groups/ListTest.cs b/src/Square.Test/Unit/MockServer/Customers/Groups/ListTest.cs deleted file mode 100644 index bfcfa3a0..00000000 --- a/src/Square.Test/Unit/MockServer/Customers/Groups/ListTest.cs +++ /dev/null @@ -1,66 +0,0 @@ -using NUnit.Framework; -using Square.Customers.Groups; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Customers.Groups; - -[TestFixture] -public class ListTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "groups": [ - { - "id": "2TAT3CMH4Q0A9M87XJZED0WMR3", - "name": "Loyal Customers", - "created_at": "2020-04-13T21:54:57.863Z", - "updated_at": "2020-04-13T21:54:58.000Z" - }, - { - "id": "4XMEHESXJBNE9S9JAKZD2FGB14", - "name": "Super Loyal Customers", - "created_at": "2020-04-13T21:55:18.795Z", - "updated_at": "2020-04-13T21:55:19.000Z" - } - ], - "cursor": "cursor" - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/customers/groups") - .WithParam("cursor", "cursor") - .WithParam("limit", "1") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var items = await Client.Customers.Groups.ListAsync( - new ListGroupsRequest { Cursor = "cursor", Limit = 1 } - ); - await foreach (var item in items) - { - Assert.That(item, Is.Not.Null); - break; // Only check the first item - } - } -} diff --git a/src/Square.Test/Unit/MockServer/Customers/ListTest.cs b/src/Square.Test/Unit/MockServer/Customers/ListTest.cs deleted file mode 100644 index a28f2c0b..00000000 --- a/src/Square.Test/Unit/MockServer/Customers/ListTest.cs +++ /dev/null @@ -1,98 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Customers; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Customers; - -[TestFixture] -public class ListTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "customers": [ - { - "id": "JDKYHBWT1D4F8MFH63DBMEN8Y4", - "created_at": "2016-03-23T20:21:54.859Z", - "updated_at": "2016-03-23T20:21:55.000Z", - "given_name": "Amelia", - "family_name": "Earhart", - "nickname": "nickname", - "company_name": "company_name", - "email_address": "Amelia.Earhart@example.com", - "address": { - "address_line_1": "500 Electric Ave", - "address_line_2": "Suite 600", - "locality": "New York", - "administrative_district_level_1": "NY", - "postal_code": "10003", - "country": "US" - }, - "phone_number": "+1-212-555-4240", - "birthday": "birthday", - "reference_id": "YOUR_REFERENCE_ID", - "note": "a customer", - "preferences": { - "email_unsubscribed": false - }, - "creation_source": "THIRD_PARTY", - "group_ids": [ - "545AXB44B4XXWMVQ4W8SBT3HHF" - ], - "segment_ids": [ - "1KB9JE5EGJXCW.REACHABLE" - ], - "version": 1 - } - ], - "cursor": "cursor", - "count": 1000000 - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/customers") - .WithParam("cursor", "cursor") - .WithParam("limit", "1") - .WithParam("sort_field", "DEFAULT") - .WithParam("sort_order", "DESC") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var items = await Client.Customers.ListAsync( - new ListCustomersRequest - { - Cursor = "cursor", - Limit = 1, - SortField = CustomerSortField.Default, - SortOrder = SortOrder.Desc, - Count = true, - } - ); - await foreach (var item in items) - { - Assert.That(item, Is.Not.Null); - break; // Only check the first item - } - } -} diff --git a/src/Square.Test/Unit/MockServer/Customers/SearchTest.cs b/src/Square.Test/Unit/MockServer/Customers/SearchTest.cs deleted file mode 100644 index 4a833fdc..00000000 --- a/src/Square.Test/Unit/MockServer/Customers/SearchTest.cs +++ /dev/null @@ -1,186 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Customers; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Customers; - -[TestFixture] -public class SearchTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string requestJson = """ - { - "limit": 2, - "query": { - "filter": { - "creation_source": { - "values": [ - "THIRD_PARTY" - ], - "rule": "INCLUDE" - }, - "created_at": { - "start_at": "2018-01-01T00:00:00.000Z", - "end_at": "2018-02-01T00:00:00.000Z" - }, - "email_address": { - "fuzzy": "example.com" - }, - "group_ids": { - "all": [ - "545AXB44B4XXWMVQ4W8SBT3HHF" - ] - } - }, - "sort": { - "field": "CREATED_AT", - "order": "ASC" - } - } - } - """; - - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "customers": [ - { - "id": "JDKYHBWT1D4F8MFH63DBMEN8Y4", - "created_at": "2018-01-23T20:21:54.859Z", - "updated_at": "2020-04-20T10:02:43.083Z", - "given_name": "James", - "family_name": "Bond", - "nickname": "nickname", - "company_name": "company_name", - "email_address": "james.bond@example.com", - "address": { - "address_line_1": "505 Electric Ave", - "address_line_2": "Suite 600", - "locality": "New York", - "administrative_district_level_1": "NY", - "postal_code": "10003", - "country": "US" - }, - "phone_number": "+1-212-555-4250", - "birthday": "birthday", - "reference_id": "YOUR_REFERENCE_ID_2", - "note": "note", - "preferences": { - "email_unsubscribed": false - }, - "creation_source": "DIRECTORY", - "group_ids": [ - "545AXB44B4XXWMVQ4W8SBT3HHF" - ], - "segment_ids": [ - "1KB9JE5EGJXCW.REACHABLE" - ], - "version": 7 - }, - { - "id": "A9641GZW2H7Z56YYSD41Q12HDW", - "created_at": "2018-01-30T14:10:54.859Z", - "updated_at": "2018-03-08T18:25:21.342Z", - "given_name": "Amelia", - "family_name": "Earhart", - "nickname": "nickname", - "company_name": "company_name", - "email_address": "amelia.earhart@example.com", - "address": { - "address_line_1": "500 Electric Ave", - "address_line_2": "Suite 600", - "locality": "New York", - "administrative_district_level_1": "NY", - "postal_code": "10003", - "country": "US" - }, - "phone_number": "+1-212-555-9238", - "birthday": "birthday", - "reference_id": "YOUR_REFERENCE_ID_1", - "note": "a customer", - "preferences": { - "email_unsubscribed": false - }, - "creation_source": "THIRD_PARTY", - "group_ids": [ - "545AXB44B4XXWMVQ4W8SBT3HHF" - ], - "segment_ids": [ - "1KB9JE5EGJXCW.REACHABLE" - ], - "version": 1 - } - ], - "cursor": "9dpS093Uy12AzeE", - "count": 1000000 - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/customers/search") - .WithHeader("Content-Type", "application/json") - .UsingPost() - .WithBodyAsJson(requestJson) - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Customers.SearchAsync( - new SearchCustomersRequest - { - Limit = 2, - Query = new CustomerQuery - { - Filter = new CustomerFilter - { - CreationSource = new CustomerCreationSourceFilter - { - Values = new List() - { - CustomerCreationSource.ThirdParty, - }, - Rule = CustomerInclusionExclusion.Include, - }, - CreatedAt = new TimeRange - { - StartAt = "2018-01-01T00:00:00-00:00", - EndAt = "2018-02-01T00:00:00-00:00", - }, - EmailAddress = new CustomerTextFilter { Fuzzy = "example.com" }, - GroupIds = new FilterValue - { - All = new List() { "545AXB44B4XXWMVQ4W8SBT3HHF" }, - }, - }, - Sort = new CustomerSort - { - Field = CustomerSortField.CreatedAt, - Order = SortOrder.Asc, - }, - }, - } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Customers/Segments/GetTest.cs b/src/Square.Test/Unit/MockServer/Customers/Segments/GetTest.cs deleted file mode 100644 index ca48b7b0..00000000 --- a/src/Square.Test/Unit/MockServer/Customers/Segments/GetTest.cs +++ /dev/null @@ -1,57 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Customers.Segments; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Customers.Segments; - -[TestFixture] -public class GetTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "segment": { - "id": "GMNXRZVEXNQDF.CHURN_RISK", - "name": "Lapsed", - "created_at": "2020-01-09T19:33:24.469Z", - "updated_at": "2020-04-13T23:01:13.000Z" - } - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/customers/segments/segment_id") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Customers.Segments.GetAsync( - new GetSegmentsRequest { SegmentId = "segment_id" } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)) - .UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Customers/Segments/ListTest.cs b/src/Square.Test/Unit/MockServer/Customers/Segments/ListTest.cs deleted file mode 100644 index be039f11..00000000 --- a/src/Square.Test/Unit/MockServer/Customers/Segments/ListTest.cs +++ /dev/null @@ -1,78 +0,0 @@ -using NUnit.Framework; -using Square.Customers.Segments; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Customers.Segments; - -[TestFixture] -public class ListTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "segments": [ - { - "id": "GMNXRZVEXNQDF.CHURN_RISK", - "name": "Lapsed", - "created_at": "2020-01-09T19:33:24.469Z", - "updated_at": "2020-04-13T21:47:04.000Z" - }, - { - "id": "GMNXRZVEXNQDF.LOYAL", - "name": "Regulars", - "created_at": "2020-01-09T19:33:24.486Z", - "updated_at": "2020-04-13T21:47:04.000Z" - }, - { - "id": "GMNXRZVEXNQDF.REACHABLE", - "name": "Reachable", - "created_at": "2020-01-09T19:33:21.813Z", - "updated_at": "2020-04-13T21:47:04.000Z" - }, - { - "id": "gv2:KF92J19VXN5FK30GX2E8HSGQ20", - "name": "Instant Profile", - "created_at": "2020-01-09T19:33:25.000Z", - "updated_at": "2020-04-13T23:01:03.000Z" - } - ], - "cursor": "cursor" - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/customers/segments") - .WithParam("cursor", "cursor") - .WithParam("limit", "1") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var items = await Client.Customers.Segments.ListAsync( - new ListSegmentsRequest { Cursor = "cursor", Limit = 1 } - ); - await foreach (var item in items) - { - Assert.That(item, Is.Not.Null); - break; // Only check the first item - } - } -} diff --git a/src/Square.Test/Unit/MockServer/Customers/UpdateTest.cs b/src/Square.Test/Unit/MockServer/Customers/UpdateTest.cs deleted file mode 100644 index 54f49a1c..00000000 --- a/src/Square.Test/Unit/MockServer/Customers/UpdateTest.cs +++ /dev/null @@ -1,110 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Customers; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Customers; - -[TestFixture] -public class UpdateTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string requestJson = """ - { - "email_address": "New.Amelia.Earhart@example.com", - "note": "updated customer note", - "version": 2 - } - """; - - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "customer": { - "id": "JDKYHBWT1D4F8MFH63DBMEN8Y4", - "created_at": "2016-03-23T20:21:54.859Z", - "updated_at": "2016-05-15T20:21:55.000Z", - "given_name": "Amelia", - "family_name": "Earhart", - "nickname": "nickname", - "company_name": "company_name", - "email_address": "New.Amelia.Earhart@example.com", - "address": { - "address_line_1": "500 Electric Ave", - "address_line_2": "Suite 600", - "address_line_3": "address_line_3", - "locality": "New York", - "sublocality": "sublocality", - "sublocality_2": "sublocality_2", - "sublocality_3": "sublocality_3", - "administrative_district_level_1": "NY", - "administrative_district_level_2": "administrative_district_level_2", - "administrative_district_level_3": "administrative_district_level_3", - "postal_code": "10003", - "country": "US", - "first_name": "first_name", - "last_name": "last_name" - }, - "phone_number": "phone_number", - "birthday": "birthday", - "reference_id": "YOUR_REFERENCE_ID", - "note": "updated customer note", - "preferences": { - "email_unsubscribed": false - }, - "creation_source": "THIRD_PARTY", - "group_ids": [ - "group_ids" - ], - "segment_ids": [ - "segment_ids" - ], - "version": 3, - "tax_ids": { - "eu_vat": "eu_vat" - } - } - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/customers/customer_id") - .WithHeader("Content-Type", "application/json") - .UsingPut() - .WithBodyAsJson(requestJson) - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Customers.UpdateAsync( - new UpdateCustomerRequest - { - CustomerId = "customer_id", - EmailAddress = "New.Amelia.Earhart@example.com", - Note = "updated customer note", - Version = 2, - } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Disputes/AcceptTest.cs b/src/Square.Test/Unit/MockServer/Default/AcceptTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Disputes/AcceptTest.cs rename to src/Square.Test/Unit/MockServer/Default/AcceptTest.cs index 1c3355dc..8a197e29 100644 --- a/src/Square.Test/Unit/MockServer/Disputes/AcceptTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/AcceptTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Disputes; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Disputes; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class AcceptTest : BaseMockServerTest @@ -64,7 +63,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Disputes.AcceptAsync( + var response = await Client.Default.Disputes.AcceptAsync( new AcceptDisputesRequest { DisputeId = "dispute_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/OAuth/AuthorizeTest.cs b/src/Square.Test/Unit/MockServer/Default/AuthorizeTest.cs similarity index 76% rename from src/Square.Test/Unit/MockServer/OAuth/AuthorizeTest.cs rename to src/Square.Test/Unit/MockServer/Default/AuthorizeTest.cs index 260ade1b..918b7348 100644 --- a/src/Square.Test/Unit/MockServer/OAuth/AuthorizeTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/AuthorizeTest.cs @@ -1,7 +1,7 @@ using NUnit.Framework; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.OAuth; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class AuthorizeTest : BaseMockServerTest @@ -15,6 +15,6 @@ public void MockServerTest() ) .RespondWith(WireMock.ResponseBuilders.Response.Create().WithStatusCode(200)); - Assert.DoesNotThrowAsync(async () => await Client.OAuth.AuthorizeAsync()); + Assert.DoesNotThrowAsync(async () => await Client.Default.OAuth.AuthorizeAsync()); } } diff --git a/src/Square.Test/Unit/MockServer/Inventory/BatchCreateChangesTest.cs b/src/Square.Test/Unit/MockServer/Default/BatchCreateChangesTest.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/Inventory/BatchCreateChangesTest.cs rename to src/Square.Test/Unit/MockServer/Default/BatchCreateChangesTest.cs index 3e5b4ad0..a8019e84 100644 --- a/src/Square.Test/Unit/MockServer/Inventory/BatchCreateChangesTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/BatchCreateChangesTest.cs @@ -1,9 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Inventory; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class BatchCreateChangesTest : BaseMockServerTest @@ -78,7 +78,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Inventory.BatchCreateChangesAsync( + var response = await Client.Default.Inventory.BatchCreateChangesAsync( new BatchChangeInventoryRequest { IdempotencyKey = "8fc6a5b0-9fe8-4b46-b46b-2ef95793abbe", diff --git a/src/Square.Test/Unit/MockServer/Customers/BatchCreateTest.cs b/src/Square.Test/Unit/MockServer/Default/BatchCreateTest.cs similarity index 98% rename from src/Square.Test/Unit/MockServer/Customers/BatchCreateTest.cs rename to src/Square.Test/Unit/MockServer/Default/BatchCreateTest.cs index cc347aff..91d7860b 100644 --- a/src/Square.Test/Unit/MockServer/Customers/BatchCreateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/BatchCreateTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Customers; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Customers; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class BatchCreateTest : BaseMockServerTest @@ -146,7 +145,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Customers.BatchCreateAsync( + var response = await Client.Default.Customers.BatchCreateAsync( new BulkCreateCustomersRequest { Customers = new Dictionary() diff --git a/src/Square.Test/Unit/MockServer/Vendors/BatchCreateTest.cs b/src/Square.Test/Unit/MockServer/Default/BatchCreateTest_.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/Vendors/BatchCreateTest.cs rename to src/Square.Test/Unit/MockServer/Default/BatchCreateTest_.cs index e9bb7660..2a79bdf8 100644 --- a/src/Square.Test/Unit/MockServer/Vendors/BatchCreateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/BatchCreateTest_.cs @@ -1,13 +1,12 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -using Square.Vendors; -namespace Square.Test.Unit.MockServer.Vendors; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] -public class BatchCreateTest : BaseMockServerTest +public class BatchCreateTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -106,7 +105,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Vendors.BatchCreateAsync( + var response = await Client.Default.Vendors.BatchCreateAsync( new BatchCreateVendorsRequest { Vendors = new Dictionary() diff --git a/src/Square.Test/Unit/MockServer/Catalog/BatchDeleteTest.cs b/src/Square.Test/Unit/MockServer/Default/BatchDeleteTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Catalog/BatchDeleteTest.cs rename to src/Square.Test/Unit/MockServer/Default/BatchDeleteTest.cs index 77c18547..340e1321 100644 --- a/src/Square.Test/Unit/MockServer/Catalog/BatchDeleteTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/BatchDeleteTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; -using Square.Catalog; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Catalog; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class BatchDeleteTest : BaseMockServerTest @@ -55,7 +54,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Catalog.BatchDeleteAsync( + var response = await Client.Default.Catalog.BatchDeleteAsync( new BatchDeleteCatalogObjectsRequest { ObjectIds = new List() diff --git a/src/Square.Test/Unit/MockServer/Inventory/BatchGetChangesTest.cs b/src/Square.Test/Unit/MockServer/Default/BatchGetChangesTest.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/Inventory/BatchGetChangesTest.cs rename to src/Square.Test/Unit/MockServer/Default/BatchGetChangesTest.cs index 83b038a7..c4a23933 100644 --- a/src/Square.Test/Unit/MockServer/Inventory/BatchGetChangesTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/BatchGetChangesTest.cs @@ -1,8 +1,8 @@ using NUnit.Framework; -using Square; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Inventory; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class BatchGetChangesTest : BaseMockServerTest @@ -82,7 +82,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var items = await Client.Inventory.BatchGetChangesAsync( + var items = await Client.Default.Inventory.BatchGetChangesAsync( new BatchRetrieveInventoryChangesRequest { CatalogObjectIds = new List() { "W62UWFY35CWMYGVWK6TWJDNI" }, diff --git a/src/Square.Test/Unit/MockServer/Inventory/BatchGetCountsTest.cs b/src/Square.Test/Unit/MockServer/Default/BatchGetCountsTest.cs similarity index 94% rename from src/Square.Test/Unit/MockServer/Inventory/BatchGetCountsTest.cs rename to src/Square.Test/Unit/MockServer/Default/BatchGetCountsTest.cs index f057ab57..9000b10f 100644 --- a/src/Square.Test/Unit/MockServer/Inventory/BatchGetCountsTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/BatchGetCountsTest.cs @@ -1,8 +1,8 @@ using NUnit.Framework; -using Square; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Inventory; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class BatchGetCountsTest : BaseMockServerTest @@ -63,7 +63,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var items = await Client.Inventory.BatchGetCountsAsync( + var items = await Client.Default.Inventory.BatchGetCountsAsync( new BatchGetInventoryCountsRequest { CatalogObjectIds = new List() { "W62UWFY35CWMYGVWK6TWJDNI" }, diff --git a/src/Square.Test/Unit/MockServer/Catalog/BatchGetTest.cs b/src/Square.Test/Unit/MockServer/Default/BatchGetTest.cs similarity index 97% rename from src/Square.Test/Unit/MockServer/Catalog/BatchGetTest.cs rename to src/Square.Test/Unit/MockServer/Default/BatchGetTest.cs index a7f6ac14..5d3dd7bd 100644 --- a/src/Square.Test/Unit/MockServer/Catalog/BatchGetTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/BatchGetTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; -using Square.Catalog; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Catalog; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class BatchGetTest : BaseMockServerTest @@ -140,7 +139,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Catalog.BatchGetAsync( + var response = await Client.Default.Catalog.BatchGetAsync( new BatchGetCatalogObjectsRequest { ObjectIds = new List() diff --git a/src/Square.Test/Unit/MockServer/Vendors/BatchGetTest.cs b/src/Square.Test/Unit/MockServer/Default/BatchGetTest_.cs similarity index 94% rename from src/Square.Test/Unit/MockServer/Vendors/BatchGetTest.cs rename to src/Square.Test/Unit/MockServer/Default/BatchGetTest_.cs index 9ed4f5bd..f3491ed7 100644 --- a/src/Square.Test/Unit/MockServer/Vendors/BatchGetTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/BatchGetTest_.cs @@ -1,13 +1,12 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -using Square.Vendors; -namespace Square.Test.Unit.MockServer.Vendors; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] -public class BatchGetTest : BaseMockServerTest +public class BatchGetTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -86,7 +85,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Vendors.BatchGetAsync( + var response = await Client.Default.Vendors.BatchGetAsync( new BatchGetVendorsRequest { VendorIds = new List() { "INV_V_JDKYHBWT1D4F8MFH63DBMEN8Y4" }, diff --git a/src/Square.Test/Unit/MockServer/TeamMembers/BatchUpdateTest.cs b/src/Square.Test/Unit/MockServer/Default/BatchUpdateTest.cs similarity index 97% rename from src/Square.Test/Unit/MockServer/TeamMembers/BatchUpdateTest.cs rename to src/Square.Test/Unit/MockServer/Default/BatchUpdateTest.cs index 65000b71..3dd58ce8 100644 --- a/src/Square.Test/Unit/MockServer/TeamMembers/BatchUpdateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/BatchUpdateTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.TeamMembers; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.TeamMembers; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class BatchUpdateTest : BaseMockServerTest @@ -132,7 +131,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.TeamMembers.BatchUpdateAsync( + var response = await Client.Default.TeamMembers.BatchUpdateAsync( new BatchUpdateTeamMembersRequest { TeamMembers = new Dictionary() diff --git a/src/Square.Test/Unit/MockServer/Vendors/BatchUpdateTest.cs b/src/Square.Test/Unit/MockServer/Default/BatchUpdateTest_.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/Vendors/BatchUpdateTest.cs rename to src/Square.Test/Unit/MockServer/Default/BatchUpdateTest_.cs index 10ad37db..8cd9dd70 100644 --- a/src/Square.Test/Unit/MockServer/Vendors/BatchUpdateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/BatchUpdateTest_.cs @@ -1,13 +1,12 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -using Square.Vendors; -namespace Square.Test.Unit.MockServer.Vendors; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] -public class BatchUpdateTest : BaseMockServerTest +public class BatchUpdateTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -123,7 +122,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Vendors.BatchUpdateAsync( + var response = await Client.Default.Vendors.BatchUpdateAsync( new BatchUpdateVendorsRequest { Vendors = new Dictionary() diff --git a/src/Square.Test/Unit/MockServer/Catalog/BatchUpsertTest.cs b/src/Square.Test/Unit/MockServer/Default/BatchUpsertTest.cs similarity index 98% rename from src/Square.Test/Unit/MockServer/Catalog/BatchUpsertTest.cs rename to src/Square.Test/Unit/MockServer/Default/BatchUpsertTest.cs index c7732c62..103df761 100644 --- a/src/Square.Test/Unit/MockServer/Catalog/BatchUpsertTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/BatchUpsertTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; -using Square.Catalog; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Catalog; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class BatchUpsertTest : BaseMockServerTest @@ -187,7 +186,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Catalog.BatchUpsertAsync( + var response = await Client.Default.Catalog.BatchUpsertAsync( new BatchUpsertCatalogObjectsRequest { IdempotencyKey = "789ff020-f723-43a9-b4b5-43b5dc1fa3dc", diff --git a/src/Square.Test/Unit/MockServer/Bookings/CustomAttributes/BatchDeleteTest.cs b/src/Square.Test/Unit/MockServer/Default/Bookings/BatchDeleteTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Bookings/CustomAttributes/BatchDeleteTest.cs rename to src/Square.Test/Unit/MockServer/Default/Bookings/BatchDeleteTest.cs index 39b773e5..f0303f3e 100644 --- a/src/Square.Test/Unit/MockServer/Bookings/CustomAttributes/BatchDeleteTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Bookings/BatchDeleteTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; -using Square.Bookings.CustomAttributes; using Square.Core; +using Square.Default; +using Square.Default.Bookings; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Bookings.CustomAttributes; +namespace Square.Test.Unit.MockServer.Default.Bookings; [TestFixture] public class BatchDeleteTest : BaseMockServerTest @@ -81,7 +81,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Bookings.CustomAttributes.BatchDeleteAsync( + var response = await Client.Default.Bookings.CustomAttributes.BatchDeleteAsync( new BulkDeleteBookingCustomAttributesRequest { Values = new Dictionary() diff --git a/src/Square.Test/Unit/MockServer/Bookings/CustomAttributes/BatchUpsertTest.cs b/src/Square.Test/Unit/MockServer/Default/Bookings/BatchUpsertTest.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/Bookings/CustomAttributes/BatchUpsertTest.cs rename to src/Square.Test/Unit/MockServer/Default/Bookings/BatchUpsertTest.cs index 061dcf13..1960f38a 100644 --- a/src/Square.Test/Unit/MockServer/Bookings/CustomAttributes/BatchUpsertTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Bookings/BatchUpsertTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; -using Square.Bookings.CustomAttributes; using Square.Core; +using Square.Default; +using Square.Default.Bookings; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Bookings.CustomAttributes; +namespace Square.Test.Unit.MockServer.Default.Bookings; [TestFixture] public class BatchUpsertTest : BaseMockServerTest @@ -139,7 +139,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Bookings.CustomAttributes.BatchUpsertAsync( + var response = await Client.Default.Bookings.CustomAttributes.BatchUpsertAsync( new BulkUpsertBookingCustomAttributesRequest { Values = new Dictionary() diff --git a/src/Square.Test/Unit/MockServer/Bookings/CustomAttributeDefinitions/CreateTest.cs b/src/Square.Test/Unit/MockServer/Default/Bookings/CreateTest.cs similarity index 91% rename from src/Square.Test/Unit/MockServer/Bookings/CustomAttributeDefinitions/CreateTest.cs rename to src/Square.Test/Unit/MockServer/Default/Bookings/CreateTest.cs index 2d8be8ef..3ea786c5 100644 --- a/src/Square.Test/Unit/MockServer/Bookings/CustomAttributeDefinitions/CreateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Bookings/CreateTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; -using Square.Bookings.CustomAttributeDefinitions; using Square.Core; +using Square.Default; +using Square.Default.Bookings; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Bookings.CustomAttributeDefinitions; +namespace Square.Test.Unit.MockServer.Default.Bookings; [TestFixture] public class CreateTest : BaseMockServerTest @@ -59,7 +59,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Bookings.CustomAttributeDefinitions.CreateAsync( + var response = await Client.Default.Bookings.CustomAttributeDefinitions.CreateAsync( new CreateBookingCustomAttributeDefinitionRequest { CustomAttributeDefinition = new CustomAttributeDefinition(), diff --git a/src/Square.Test/Unit/MockServer/Bookings/CustomAttributeDefinitions/DeleteTest.cs b/src/Square.Test/Unit/MockServer/Default/Bookings/DeleteTest.cs similarity index 79% rename from src/Square.Test/Unit/MockServer/Bookings/CustomAttributeDefinitions/DeleteTest.cs rename to src/Square.Test/Unit/MockServer/Default/Bookings/DeleteTest.cs index d0c6634b..0a54ae5e 100644 --- a/src/Square.Test/Unit/MockServer/Bookings/CustomAttributeDefinitions/DeleteTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Bookings/DeleteTest.cs @@ -1,9 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Bookings.CustomAttributeDefinitions; +namespace Square.Test.Unit.MockServer.Default.Bookings; [TestFixture] public class DeleteTest : BaseMockServerTest @@ -38,11 +38,8 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Bookings.CustomAttributeDefinitions.DeleteAsync( - new Square.Bookings.CustomAttributeDefinitions.DeleteCustomAttributeDefinitionsRequest - { - Key = "key", - } + var response = await Client.Default.Bookings.CustomAttributeDefinitions.DeleteAsync( + new Square.Default.Bookings.DeleteCustomAttributeDefinitionsRequest { Key = "key" } ); Assert.That( response, diff --git a/src/Square.Test/Unit/MockServer/Bookings/CustomAttributes/DeleteTest.cs b/src/Square.Test/Unit/MockServer/Default/Bookings/DeleteTest_.cs similarity index 81% rename from src/Square.Test/Unit/MockServer/Bookings/CustomAttributes/DeleteTest.cs rename to src/Square.Test/Unit/MockServer/Default/Bookings/DeleteTest_.cs index 96fb9549..5570ae7c 100644 --- a/src/Square.Test/Unit/MockServer/Bookings/CustomAttributes/DeleteTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Bookings/DeleteTest_.cs @@ -1,12 +1,12 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Bookings.CustomAttributes; +namespace Square.Test.Unit.MockServer.Default.Bookings; [TestFixture] -public class DeleteTest : BaseMockServerTest +public class DeleteTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -38,8 +38,8 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Bookings.CustomAttributes.DeleteAsync( - new Square.Bookings.CustomAttributes.DeleteCustomAttributesRequest + var response = await Client.Default.Bookings.CustomAttributes.DeleteAsync( + new Square.Default.Bookings.DeleteCustomAttributesRequest { BookingId = "booking_id", Key = "key", diff --git a/src/Square.Test/Unit/MockServer/Bookings/CustomAttributeDefinitions/GetTest.cs b/src/Square.Test/Unit/MockServer/Default/Bookings/GetTest.cs similarity index 88% rename from src/Square.Test/Unit/MockServer/Bookings/CustomAttributeDefinitions/GetTest.cs rename to src/Square.Test/Unit/MockServer/Default/Bookings/GetTest.cs index 3fcef4af..d5df2edd 100644 --- a/src/Square.Test/Unit/MockServer/Bookings/CustomAttributeDefinitions/GetTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Bookings/GetTest.cs @@ -1,9 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Bookings.CustomAttributeDefinitions; +namespace Square.Test.Unit.MockServer.Default.Bookings; [TestFixture] public class GetTest : BaseMockServerTest @@ -51,8 +51,8 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Bookings.CustomAttributeDefinitions.GetAsync( - new Square.Bookings.CustomAttributeDefinitions.GetCustomAttributeDefinitionsRequest + var response = await Client.Default.Bookings.CustomAttributeDefinitions.GetAsync( + new Square.Default.Bookings.GetCustomAttributeDefinitionsRequest { Key = "key", Version = 1, diff --git a/src/Square.Test/Unit/MockServer/Bookings/TeamMemberProfiles/GetTest.cs b/src/Square.Test/Unit/MockServer/Default/Bookings/GetTest_.cs similarity index 86% rename from src/Square.Test/Unit/MockServer/Bookings/TeamMemberProfiles/GetTest.cs rename to src/Square.Test/Unit/MockServer/Default/Bookings/GetTest_.cs index aa15ee56..b46a7fb7 100644 --- a/src/Square.Test/Unit/MockServer/Bookings/TeamMemberProfiles/GetTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Bookings/GetTest_.cs @@ -1,13 +1,13 @@ using NUnit.Framework; -using Square; -using Square.Bookings.TeamMemberProfiles; using Square.Core; +using Square.Default; +using Square.Default.Bookings; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Bookings.TeamMemberProfiles; +namespace Square.Test.Unit.MockServer.Default.Bookings; [TestFixture] -public class GetTest : BaseMockServerTest +public class GetTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -46,7 +46,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Bookings.TeamMemberProfiles.GetAsync( + var response = await Client.Default.Bookings.TeamMemberProfiles.GetAsync( new GetTeamMemberProfilesRequest { TeamMemberId = "team_member_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Bookings/CustomAttributeDefinitions/ListTest.cs b/src/Square.Test/Unit/MockServer/Default/Bookings/ListTest.cs similarity index 91% rename from src/Square.Test/Unit/MockServer/Bookings/CustomAttributeDefinitions/ListTest.cs rename to src/Square.Test/Unit/MockServer/Default/Bookings/ListTest.cs index d33cfa08..1dbd7c6e 100644 --- a/src/Square.Test/Unit/MockServer/Bookings/CustomAttributeDefinitions/ListTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Bookings/ListTest.cs @@ -1,7 +1,7 @@ using NUnit.Framework; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Bookings.CustomAttributeDefinitions; +namespace Square.Test.Unit.MockServer.Default.Bookings; [TestFixture] public class ListTest : BaseMockServerTest @@ -65,8 +65,8 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var items = await Client.Bookings.CustomAttributeDefinitions.ListAsync( - new Square.Bookings.CustomAttributeDefinitions.ListCustomAttributeDefinitionsRequest + var items = await Client.Default.Bookings.CustomAttributeDefinitions.ListAsync( + new Square.Default.Bookings.ListCustomAttributeDefinitionsRequest { Limit = 1, Cursor = "cursor", diff --git a/src/Square.Test/Unit/MockServer/Bookings/TeamMemberProfiles/ListTest.cs b/src/Square.Test/Unit/MockServer/Default/Bookings/ListTest_.cs similarity index 90% rename from src/Square.Test/Unit/MockServer/Bookings/TeamMemberProfiles/ListTest.cs rename to src/Square.Test/Unit/MockServer/Default/Bookings/ListTest_.cs index 425f6fa4..ae5a02ef 100644 --- a/src/Square.Test/Unit/MockServer/Bookings/TeamMemberProfiles/ListTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Bookings/ListTest_.cs @@ -1,11 +1,11 @@ using NUnit.Framework; -using Square.Bookings.TeamMemberProfiles; +using Square.Default.Bookings; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Bookings.TeamMemberProfiles; +namespace Square.Test.Unit.MockServer.Default.Bookings; [TestFixture] -public class ListTest : BaseMockServerTest +public class ListTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -57,7 +57,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var items = await Client.Bookings.TeamMemberProfiles.ListAsync( + var items = await Client.Default.Bookings.TeamMemberProfiles.ListAsync( new ListTeamMemberProfilesRequest { BookableOnly = true, diff --git a/src/Square.Test/Unit/MockServer/Bookings/CustomAttributeDefinitions/UpdateTest.cs b/src/Square.Test/Unit/MockServer/Default/Bookings/UpdateTest.cs similarity index 91% rename from src/Square.Test/Unit/MockServer/Bookings/CustomAttributeDefinitions/UpdateTest.cs rename to src/Square.Test/Unit/MockServer/Default/Bookings/UpdateTest.cs index 07ca4a6b..01ed497c 100644 --- a/src/Square.Test/Unit/MockServer/Bookings/CustomAttributeDefinitions/UpdateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Bookings/UpdateTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; -using Square.Bookings.CustomAttributeDefinitions; using Square.Core; +using Square.Default; +using Square.Default.Bookings; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Bookings.CustomAttributeDefinitions; +namespace Square.Test.Unit.MockServer.Default.Bookings; [TestFixture] public class UpdateTest : BaseMockServerTest @@ -59,7 +59,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Bookings.CustomAttributeDefinitions.UpdateAsync( + var response = await Client.Default.Bookings.CustomAttributeDefinitions.UpdateAsync( new UpdateBookingCustomAttributeDefinitionRequest { Key = "key", diff --git a/src/Square.Test/Unit/MockServer/Bookings/CustomAttributes/UpsertTest.cs b/src/Square.Test/Unit/MockServer/Default/Bookings/UpsertTest.cs similarity index 92% rename from src/Square.Test/Unit/MockServer/Bookings/CustomAttributes/UpsertTest.cs rename to src/Square.Test/Unit/MockServer/Default/Bookings/UpsertTest.cs index 94588a0a..baac16e5 100644 --- a/src/Square.Test/Unit/MockServer/Bookings/CustomAttributes/UpsertTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Bookings/UpsertTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; -using Square.Bookings.CustomAttributes; using Square.Core; +using Square.Default; +using Square.Default.Bookings; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Bookings.CustomAttributes; +namespace Square.Test.Unit.MockServer.Default.Bookings; [TestFixture] public class UpsertTest : BaseMockServerTest @@ -67,7 +67,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Bookings.CustomAttributes.UpsertAsync( + var response = await Client.Default.Bookings.CustomAttributes.UpsertAsync( new UpsertBookingCustomAttributeRequest { BookingId = "booking_id", diff --git a/src/Square.Test/Unit/MockServer/Customers/BulkDeleteCustomersTest.cs b/src/Square.Test/Unit/MockServer/Default/BulkDeleteCustomersTest.cs similarity index 94% rename from src/Square.Test/Unit/MockServer/Customers/BulkDeleteCustomersTest.cs rename to src/Square.Test/Unit/MockServer/Default/BulkDeleteCustomersTest.cs index 46aae788..4311e112 100644 --- a/src/Square.Test/Unit/MockServer/Customers/BulkDeleteCustomersTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/BulkDeleteCustomersTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Customers; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Customers; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class BulkDeleteCustomersTest : BaseMockServerTest @@ -78,7 +77,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Customers.BulkDeleteCustomersAsync( + var response = await Client.Default.Customers.BulkDeleteCustomersAsync( new BulkDeleteCustomersRequest { CustomerIds = new List() diff --git a/src/Square.Test/Unit/MockServer/Labor/BulkPublishScheduledShiftsTest.cs b/src/Square.Test/Unit/MockServer/Default/BulkPublishScheduledShiftsTest.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/Labor/BulkPublishScheduledShiftsTest.cs rename to src/Square.Test/Unit/MockServer/Default/BulkPublishScheduledShiftsTest.cs index a1a1eccd..38d50c80 100644 --- a/src/Square.Test/Unit/MockServer/Labor/BulkPublishScheduledShiftsTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/BulkPublishScheduledShiftsTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Labor; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Labor; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class BulkPublishScheduledShiftsTest : BaseMockServerTest @@ -96,7 +95,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Labor.BulkPublishScheduledShiftsAsync( + var response = await Client.Default.Labor.BulkPublishScheduledShiftsAsync( new BulkPublishScheduledShiftsRequest { ScheduledShifts = new Dictionary() diff --git a/src/Square.Test/Unit/MockServer/Bookings/BulkRetrieveBookingsTest.cs b/src/Square.Test/Unit/MockServer/Default/BulkRetrieveBookingsTest.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/Bookings/BulkRetrieveBookingsTest.cs rename to src/Square.Test/Unit/MockServer/Default/BulkRetrieveBookingsTest.cs index a0fdf15c..6ebcce3b 100644 --- a/src/Square.Test/Unit/MockServer/Bookings/BulkRetrieveBookingsTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/BulkRetrieveBookingsTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; -using Square.Bookings; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Bookings; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class BulkRetrieveBookingsTest : BaseMockServerTest @@ -117,7 +116,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Bookings.BulkRetrieveBookingsAsync( + var response = await Client.Default.Bookings.BulkRetrieveBookingsAsync( new BulkRetrieveBookingsRequest { BookingIds = new List() { "booking_ids" } } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Customers/BulkRetrieveCustomersTest.cs b/src/Square.Test/Unit/MockServer/Default/BulkRetrieveCustomersTest.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/Customers/BulkRetrieveCustomersTest.cs rename to src/Square.Test/Unit/MockServer/Default/BulkRetrieveCustomersTest.cs index 83439c33..fa572aee 100644 --- a/src/Square.Test/Unit/MockServer/Customers/BulkRetrieveCustomersTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/BulkRetrieveCustomersTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Customers; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Customers; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class BulkRetrieveCustomersTest : BaseMockServerTest @@ -105,7 +104,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Customers.BulkRetrieveCustomersAsync( + var response = await Client.Default.Customers.BulkRetrieveCustomersAsync( new BulkRetrieveCustomersRequest { CustomerIds = new List() diff --git a/src/Square.Test/Unit/MockServer/Bookings/BulkRetrieveTeamMemberBookingProfilesTest.cs b/src/Square.Test/Unit/MockServer/Default/BulkRetrieveTeamMemberBookingProfilesTest.cs similarity index 94% rename from src/Square.Test/Unit/MockServer/Bookings/BulkRetrieveTeamMemberBookingProfilesTest.cs rename to src/Square.Test/Unit/MockServer/Default/BulkRetrieveTeamMemberBookingProfilesTest.cs index ff7015d4..f9ef9b9b 100644 --- a/src/Square.Test/Unit/MockServer/Bookings/BulkRetrieveTeamMemberBookingProfilesTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/BulkRetrieveTeamMemberBookingProfilesTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; -using Square.Bookings; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Bookings; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class BulkRetrieveTeamMemberBookingProfilesTest : BaseMockServerTest @@ -86,7 +85,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Bookings.BulkRetrieveTeamMemberBookingProfilesAsync( + var response = await Client.Default.Bookings.BulkRetrieveTeamMemberBookingProfilesAsync( new BulkRetrieveTeamMemberBookingProfilesRequest { TeamMemberIds = new List() { "team_member_ids" }, diff --git a/src/Square.Test/Unit/MockServer/Channels/BulkRetrieveTest.cs b/src/Square.Test/Unit/MockServer/Default/BulkRetrieveTest.cs similarity index 95% rename from src/Square.Test/Unit/MockServer/Channels/BulkRetrieveTest.cs rename to src/Square.Test/Unit/MockServer/Default/BulkRetrieveTest.cs index a106fb66..7a0f0bf0 100644 --- a/src/Square.Test/Unit/MockServer/Channels/BulkRetrieveTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/BulkRetrieveTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; -using Square.Channels; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Channels; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class BulkRetrieveTest : BaseMockServerTest @@ -103,7 +102,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Channels.BulkRetrieveAsync( + var response = await Client.Default.Channels.BulkRetrieveAsync( new BulkRetrieveChannelsRequest { ChannelIds = new List() { "CH_9C03D0B59", "CH_6X139B5MN", "NOT_EXISTING" }, diff --git a/src/Square.Test/Unit/MockServer/Subscriptions/BulkSwapPlanTest.cs b/src/Square.Test/Unit/MockServer/Default/BulkSwapPlanTest.cs similarity index 91% rename from src/Square.Test/Unit/MockServer/Subscriptions/BulkSwapPlanTest.cs rename to src/Square.Test/Unit/MockServer/Default/BulkSwapPlanTest.cs index 53a71986..8bb7eee6 100644 --- a/src/Square.Test/Unit/MockServer/Subscriptions/BulkSwapPlanTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/BulkSwapPlanTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Subscriptions; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Subscriptions; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class BulkSwapPlanTest : BaseMockServerTest @@ -50,7 +49,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Subscriptions.BulkSwapPlanAsync( + var response = await Client.Default.Subscriptions.BulkSwapPlanAsync( new BulkSwapPlanRequest { NewPlanVariationId = "FQ7CDXXWSLUJRPM3GFJSJGZ7", diff --git a/src/Square.Test/Unit/MockServer/Customers/BulkUpdateCustomersTest.cs b/src/Square.Test/Unit/MockServer/Default/BulkUpdateCustomersTest.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/Customers/BulkUpdateCustomersTest.cs rename to src/Square.Test/Unit/MockServer/Default/BulkUpdateCustomersTest.cs index 1b31222c..0fb30906 100644 --- a/src/Square.Test/Unit/MockServer/Customers/BulkUpdateCustomersTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/BulkUpdateCustomersTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Customers; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Customers; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class BulkUpdateCustomersTest : BaseMockServerTest @@ -103,7 +102,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Customers.BulkUpdateCustomersAsync( + var response = await Client.Default.Customers.BulkUpdateCustomersAsync( new BulkUpdateCustomersRequest { Customers = new Dictionary() diff --git a/src/Square.Test/Unit/MockServer/Orders/CalculateTest.cs b/src/Square.Test/Unit/MockServer/Default/CalculateTest.cs similarity index 98% rename from src/Square.Test/Unit/MockServer/Orders/CalculateTest.cs rename to src/Square.Test/Unit/MockServer/Default/CalculateTest.cs index 8ba8c36d..b10bb48b 100644 --- a/src/Square.Test/Unit/MockServer/Orders/CalculateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/CalculateTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Orders; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Orders; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class CalculateTest : BaseMockServerTest @@ -279,7 +278,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Orders.CalculateAsync( + var response = await Client.Default.Orders.CalculateAsync( new CalculateOrderRequest { Order = new Order diff --git a/src/Square.Test/Unit/MockServer/Payments/CancelByIdempotencyKeyTest.cs b/src/Square.Test/Unit/MockServer/Default/CancelByIdempotencyKeyTest.cs similarity index 91% rename from src/Square.Test/Unit/MockServer/Payments/CancelByIdempotencyKeyTest.cs rename to src/Square.Test/Unit/MockServer/Default/CancelByIdempotencyKeyTest.cs index 86c2b3b7..ad856f9d 100644 --- a/src/Square.Test/Unit/MockServer/Payments/CancelByIdempotencyKeyTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/CancelByIdempotencyKeyTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Payments; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Payments; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class CancelByIdempotencyKeyTest : BaseMockServerTest @@ -47,7 +46,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Payments.CancelByIdempotencyKeyAsync( + var response = await Client.Default.Payments.CancelByIdempotencyKeyAsync( new CancelPaymentByIdempotencyKeyRequest { IdempotencyKey = "a7e36d40-d24b-11e8-b568-0800200c9a66", diff --git a/src/Square.Test/Unit/MockServer/Bookings/CancelTest.cs b/src/Square.Test/Unit/MockServer/Default/CancelTest.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/Bookings/CancelTest.cs rename to src/Square.Test/Unit/MockServer/Default/CancelTest.cs index cd898149..3b5fd8a3 100644 --- a/src/Square.Test/Unit/MockServer/Bookings/CancelTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/CancelTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; -using Square.Bookings; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Bookings; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class CancelTest : BaseMockServerTest @@ -90,7 +89,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Bookings.CancelAsync( + var response = await Client.Default.Bookings.CancelAsync( new CancelBookingRequest { BookingId = "booking_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/TransferOrders/CancelTest.cs b/src/Square.Test/Unit/MockServer/Default/CancelTest_.cs similarity index 94% rename from src/Square.Test/Unit/MockServer/TransferOrders/CancelTest.cs rename to src/Square.Test/Unit/MockServer/Default/CancelTest_.cs index 7088abb8..767a7e04 100644 --- a/src/Square.Test/Unit/MockServer/TransferOrders/CancelTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/CancelTest_.cs @@ -1,13 +1,12 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -using Square.TransferOrders; -namespace Square.Test.Unit.MockServer.TransferOrders; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] -public class CancelTest : BaseMockServerTest +public class CancelTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -82,7 +81,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.TransferOrders.CancelAsync( + var response = await Client.Default.TransferOrders.CancelAsync( new CancelTransferOrderRequest { TransferOrderId = "transfer_order_id", diff --git a/src/Square.Test/Unit/MockServer/CashDrawers/Shifts/GetTest.cs b/src/Square.Test/Unit/MockServer/Default/CashDrawers/GetTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/CashDrawers/Shifts/GetTest.cs rename to src/Square.Test/Unit/MockServer/Default/CashDrawers/GetTest.cs index c4902600..b4b44eec 100644 --- a/src/Square.Test/Unit/MockServer/CashDrawers/Shifts/GetTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/CashDrawers/GetTest.cs @@ -1,9 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.CashDrawers.Shifts; +namespace Square.Test.Unit.MockServer.Default.CashDrawers; [TestFixture] public class GetTest : BaseMockServerTest @@ -88,8 +88,8 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.CashDrawers.Shifts.GetAsync( - new Square.CashDrawers.Shifts.GetShiftsRequest + var response = await Client.Default.CashDrawers.Shifts.GetAsync( + new Square.Default.CashDrawers.GetShiftsRequest { ShiftId = "shift_id", LocationId = "location_id", diff --git a/src/Square.Test/Unit/MockServer/CashDrawers/Shifts/ListEventsTest.cs b/src/Square.Test/Unit/MockServer/Default/CashDrawers/ListEventsTest.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/CashDrawers/Shifts/ListEventsTest.cs rename to src/Square.Test/Unit/MockServer/Default/CashDrawers/ListEventsTest.cs index a5295991..11fb0b1a 100644 --- a/src/Square.Test/Unit/MockServer/CashDrawers/Shifts/ListEventsTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/CashDrawers/ListEventsTest.cs @@ -1,8 +1,8 @@ using NUnit.Framework; -using Square.CashDrawers.Shifts; +using Square.Default.CashDrawers; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.CashDrawers.Shifts; +namespace Square.Test.Unit.MockServer.Default.CashDrawers; [TestFixture] public class ListEventsTest : BaseMockServerTest @@ -109,7 +109,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var items = await Client.CashDrawers.Shifts.ListEventsAsync( + var items = await Client.Default.CashDrawers.Shifts.ListEventsAsync( new ListEventsShiftsRequest { ShiftId = "shift_id", diff --git a/src/Square.Test/Unit/MockServer/CashDrawers/Shifts/ListTest.cs b/src/Square.Test/Unit/MockServer/Default/CashDrawers/ListTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/CashDrawers/Shifts/ListTest.cs rename to src/Square.Test/Unit/MockServer/Default/CashDrawers/ListTest.cs index bfffe6d2..19ae2ca7 100644 --- a/src/Square.Test/Unit/MockServer/CashDrawers/Shifts/ListTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/CashDrawers/ListTest.cs @@ -1,9 +1,9 @@ using NUnit.Framework; -using Square; -using Square.CashDrawers.Shifts; +using Square.Default; +using Square.Default.CashDrawers; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.CashDrawers.Shifts; +namespace Square.Test.Unit.MockServer.Default.CashDrawers; [TestFixture] public class ListTest : BaseMockServerTest @@ -70,7 +70,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var items = await Client.CashDrawers.Shifts.ListAsync( + var items = await Client.Default.CashDrawers.Shifts.ListAsync( new ListShiftsRequest { LocationId = "location_id", diff --git a/src/Square.Test/Unit/MockServer/Catalog/Object/DeleteTest.cs b/src/Square.Test/Unit/MockServer/Default/Catalog/DeleteTest.cs similarity index 88% rename from src/Square.Test/Unit/MockServer/Catalog/Object/DeleteTest.cs rename to src/Square.Test/Unit/MockServer/Default/Catalog/DeleteTest.cs index 4ac4c8e0..9e7d30f2 100644 --- a/src/Square.Test/Unit/MockServer/Catalog/Object/DeleteTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Catalog/DeleteTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; -using Square.Catalog.Object; using Square.Core; +using Square.Default; +using Square.Default.Catalog; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Catalog.Object; +namespace Square.Test.Unit.MockServer.Default.Catalog; [TestFixture] public class DeleteTest : BaseMockServerTest @@ -44,7 +44,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Catalog.Object.DeleteAsync( + var response = await Client.Default.Catalog.Object.DeleteAsync( new DeleteObjectRequest { ObjectId = "object_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Catalog/Object/GetTest.cs b/src/Square.Test/Unit/MockServer/Default/Catalog/GetTest.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/Catalog/Object/GetTest.cs rename to src/Square.Test/Unit/MockServer/Default/Catalog/GetTest.cs index ce6eedc1..e08a9799 100644 --- a/src/Square.Test/Unit/MockServer/Catalog/Object/GetTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Catalog/GetTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; -using Square.Catalog.Object; using Square.Core; +using Square.Default; +using Square.Default.Catalog; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Catalog.Object; +namespace Square.Test.Unit.MockServer.Default.Catalog; [TestFixture] public class GetTest : BaseMockServerTest @@ -144,7 +144,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Catalog.Object.GetAsync( + var response = await Client.Default.Catalog.Object.GetAsync( new GetObjectRequest { ObjectId = "object_id", diff --git a/src/Square.Test/Unit/MockServer/Catalog/Object/UpsertTest.cs b/src/Square.Test/Unit/MockServer/Default/Catalog/UpsertTest.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/Catalog/Object/UpsertTest.cs rename to src/Square.Test/Unit/MockServer/Default/Catalog/UpsertTest.cs index 5c494d0d..b92c03b5 100644 --- a/src/Square.Test/Unit/MockServer/Catalog/Object/UpsertTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Catalog/UpsertTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; -using Square.Catalog.Object; using Square.Core; +using Square.Default; +using Square.Default.Catalog; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Catalog.Object; +namespace Square.Test.Unit.MockServer.Default.Catalog; [TestFixture] public class UpsertTest : BaseMockServerTest @@ -124,7 +124,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Catalog.Object.UpsertAsync( + var response = await Client.Default.Catalog.Object.UpsertAsync( new UpsertCatalogObjectRequest { IdempotencyKey = "af3d1afc-7212-4300-b463-0bfc5314a5ae", diff --git a/src/Square.Test/Unit/MockServer/Subscriptions/ChangeBillingAnchorDateTest.cs b/src/Square.Test/Unit/MockServer/Default/ChangeBillingAnchorDateTest.cs similarity index 95% rename from src/Square.Test/Unit/MockServer/Subscriptions/ChangeBillingAnchorDateTest.cs rename to src/Square.Test/Unit/MockServer/Default/ChangeBillingAnchorDateTest.cs index debba093..e85b8bee 100644 --- a/src/Square.Test/Unit/MockServer/Subscriptions/ChangeBillingAnchorDateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/ChangeBillingAnchorDateTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Subscriptions; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Subscriptions; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class ChangeBillingAnchorDateTest : BaseMockServerTest @@ -97,7 +96,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Subscriptions.ChangeBillingAnchorDateAsync( + var response = await Client.Default.Subscriptions.ChangeBillingAnchorDateAsync( new ChangeBillingAnchorDateRequest { SubscriptionId = "subscription_id", diff --git a/src/Square.Test/Unit/MockServer/Inventory/ChangesTest.cs b/src/Square.Test/Unit/MockServer/Default/ChangesTest.cs similarity index 95% rename from src/Square.Test/Unit/MockServer/Inventory/ChangesTest.cs rename to src/Square.Test/Unit/MockServer/Default/ChangesTest.cs index f9077f69..c06f4cb4 100644 --- a/src/Square.Test/Unit/MockServer/Inventory/ChangesTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/ChangesTest.cs @@ -1,8 +1,8 @@ using NUnit.Framework; -using Square.Inventory; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Inventory; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class ChangesTest : BaseMockServerTest @@ -69,7 +69,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var items = await Client.Inventory.ChangesAsync( + var items = await Client.Default.Inventory.ChangesAsync( new ChangesInventoryRequest { CatalogObjectId = "catalog_object_id", diff --git a/src/Square.Test/Unit/MockServer/Checkout/PaymentLinks/CreateTest.cs b/src/Square.Test/Unit/MockServer/Default/Checkout/CreateTest.cs similarity index 97% rename from src/Square.Test/Unit/MockServer/Checkout/PaymentLinks/CreateTest.cs rename to src/Square.Test/Unit/MockServer/Default/Checkout/CreateTest.cs index 8867631e..74c4dd0e 100644 --- a/src/Square.Test/Unit/MockServer/Checkout/PaymentLinks/CreateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Checkout/CreateTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; -using Square.Checkout.PaymentLinks; using Square.Core; +using Square.Default; +using Square.Default.Checkout_; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Checkout.PaymentLinks; +namespace Square.Test.Unit.MockServer.Default.Checkout; [TestFixture] public class CreateTest : BaseMockServerTest @@ -189,7 +189,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Checkout.PaymentLinks.CreateAsync( + var response = await Client.Default.Checkout.PaymentLinks.CreateAsync( new CreatePaymentLinkRequest { IdempotencyKey = "cd9e25dc-d9f2-4430-aedb-61605070e95f", diff --git a/src/Square.Test/Unit/MockServer/Checkout/PaymentLinks/DeleteTest.cs b/src/Square.Test/Unit/MockServer/Default/Checkout/DeleteTest.cs similarity index 87% rename from src/Square.Test/Unit/MockServer/Checkout/PaymentLinks/DeleteTest.cs rename to src/Square.Test/Unit/MockServer/Default/Checkout/DeleteTest.cs index 83349064..7b02f7c9 100644 --- a/src/Square.Test/Unit/MockServer/Checkout/PaymentLinks/DeleteTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Checkout/DeleteTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; -using Square.Checkout.PaymentLinks; using Square.Core; +using Square.Default; +using Square.Default.Checkout_; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Checkout.PaymentLinks; +namespace Square.Test.Unit.MockServer.Default.Checkout; [TestFixture] public class DeleteTest : BaseMockServerTest @@ -41,7 +41,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Checkout.PaymentLinks.DeleteAsync( + var response = await Client.Default.Checkout.PaymentLinks.DeleteAsync( new DeletePaymentLinksRequest { Id = "id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Checkout/PaymentLinks/GetTest.cs b/src/Square.Test/Unit/MockServer/Default/Checkout/GetTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Checkout/PaymentLinks/GetTest.cs rename to src/Square.Test/Unit/MockServer/Default/Checkout/GetTest.cs index 9766b582..475a0584 100644 --- a/src/Square.Test/Unit/MockServer/Checkout/PaymentLinks/GetTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Checkout/GetTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; -using Square.Checkout.PaymentLinks; using Square.Core; +using Square.Default; +using Square.Default.Checkout_; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Checkout.PaymentLinks; +namespace Square.Test.Unit.MockServer.Default.Checkout; [TestFixture] public class GetTest : BaseMockServerTest @@ -71,7 +71,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Checkout.PaymentLinks.GetAsync( + var response = await Client.Default.Checkout.PaymentLinks.GetAsync( new GetPaymentLinksRequest { Id = "id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Checkout/PaymentLinks/ListTest.cs b/src/Square.Test/Unit/MockServer/Default/Checkout/ListTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Checkout/PaymentLinks/ListTest.cs rename to src/Square.Test/Unit/MockServer/Default/Checkout/ListTest.cs index cdedd515..5404f645 100644 --- a/src/Square.Test/Unit/MockServer/Checkout/PaymentLinks/ListTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Checkout/ListTest.cs @@ -1,8 +1,8 @@ using NUnit.Framework; -using Square.Checkout.PaymentLinks; +using Square.Default.Checkout_; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Checkout.PaymentLinks; +namespace Square.Test.Unit.MockServer.Default.Checkout; [TestFixture] public class ListTest : BaseMockServerTest @@ -67,7 +67,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var items = await Client.Checkout.PaymentLinks.ListAsync( + var items = await Client.Default.Checkout.PaymentLinks.ListAsync( new ListPaymentLinksRequest { Cursor = "cursor", Limit = 1 } ); await foreach (var item in items) diff --git a/src/Square.Test/Unit/MockServer/Checkout/PaymentLinks/UpdateTest.cs b/src/Square.Test/Unit/MockServer/Default/Checkout/UpdateTest.cs similarity index 94% rename from src/Square.Test/Unit/MockServer/Checkout/PaymentLinks/UpdateTest.cs rename to src/Square.Test/Unit/MockServer/Default/Checkout/UpdateTest.cs index 9623dd09..d5756f4e 100644 --- a/src/Square.Test/Unit/MockServer/Checkout/PaymentLinks/UpdateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Checkout/UpdateTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; -using Square.Checkout.PaymentLinks; using Square.Core; +using Square.Default; +using Square.Default.Checkout_; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Checkout.PaymentLinks; +namespace Square.Test.Unit.MockServer.Default.Checkout; [TestFixture] public class UpdateTest : BaseMockServerTest @@ -84,7 +84,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Checkout.PaymentLinks.UpdateAsync( + var response = await Client.Default.Checkout.PaymentLinks.UpdateAsync( new UpdatePaymentLinkRequest { Id = "id", diff --git a/src/Square.Test/Unit/MockServer/Locations/CheckoutsTest.cs b/src/Square.Test/Unit/MockServer/Default/CheckoutsTest.cs similarity index 99% rename from src/Square.Test/Unit/MockServer/Locations/CheckoutsTest.cs rename to src/Square.Test/Unit/MockServer/Default/CheckoutsTest.cs index ef6b0aaf..47c3da79 100644 --- a/src/Square.Test/Unit/MockServer/Locations/CheckoutsTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/CheckoutsTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Locations; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Locations; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class CheckoutsTest : BaseMockServerTest @@ -309,7 +308,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Locations.CheckoutsAsync( + var response = await Client.Default.Locations.CheckoutsAsync( new CreateCheckoutRequest { LocationId = "location_id", diff --git a/src/Square.Test/Unit/MockServer/Orders/CloneTest.cs b/src/Square.Test/Unit/MockServer/Default/CloneTest.cs similarity index 98% rename from src/Square.Test/Unit/MockServer/Orders/CloneTest.cs rename to src/Square.Test/Unit/MockServer/Default/CloneTest.cs index db904c71..14faca5b 100644 --- a/src/Square.Test/Unit/MockServer/Orders/CloneTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/CloneTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Orders; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Orders; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class CloneTest : BaseMockServerTest @@ -351,7 +350,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Orders.CloneAsync( + var response = await Client.Default.Orders.CloneAsync( new CloneOrderRequest { OrderId = "ZAISEM52YcpmcWAzERDOyiWS123", diff --git a/src/Square.Test/Unit/MockServer/Payments/CompleteTest.cs b/src/Square.Test/Unit/MockServer/Default/CompleteTest.cs similarity index 98% rename from src/Square.Test/Unit/MockServer/Payments/CompleteTest.cs rename to src/Square.Test/Unit/MockServer/Default/CompleteTest.cs index 67517038..27ce208b 100644 --- a/src/Square.Test/Unit/MockServer/Payments/CompleteTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/CompleteTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Payments; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Payments; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class CompleteTest : BaseMockServerTest @@ -241,7 +240,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Payments.CompleteAsync( + var response = await Client.Default.Payments.CompleteAsync( new CompletePaymentRequest { PaymentId = "payment_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/BankAccounts/CreateBankAccountTest.cs b/src/Square.Test/Unit/MockServer/Default/CreateBankAccountTest.cs similarity index 94% rename from src/Square.Test/Unit/MockServer/BankAccounts/CreateBankAccountTest.cs rename to src/Square.Test/Unit/MockServer/Default/CreateBankAccountTest.cs index 99ef6dcd..2a04eb37 100644 --- a/src/Square.Test/Unit/MockServer/BankAccounts/CreateBankAccountTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/CreateBankAccountTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; -using Square.BankAccounts; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.BankAccounts; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class CreateBankAccountTest : BaseMockServerTest @@ -69,7 +68,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.BankAccounts.CreateBankAccountAsync( + var response = await Client.Default.BankAccounts.CreateBankAccountAsync( new CreateBankAccountRequest { IdempotencyKey = "4e43559a-f0fd-47d3-9da2-7ea1f97d94be", diff --git a/src/Square.Test/Unit/MockServer/Disputes/CreateEvidenceTextTest.cs b/src/Square.Test/Unit/MockServer/Default/CreateEvidenceTextTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Disputes/CreateEvidenceTextTest.cs rename to src/Square.Test/Unit/MockServer/Default/CreateEvidenceTextTest.cs index a041fd57..46d95afd 100644 --- a/src/Square.Test/Unit/MockServer/Disputes/CreateEvidenceTextTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/CreateEvidenceTextTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Disputes; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Disputes; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class CreateEvidenceTextTest : BaseMockServerTest @@ -61,7 +60,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Disputes.CreateEvidenceTextAsync( + var response = await Client.Default.Disputes.CreateEvidenceTextAsync( new CreateDisputeEvidenceTextRequest { DisputeId = "dispute_id", diff --git a/src/Square.Test/Unit/MockServer/Team/CreateJobTest.cs b/src/Square.Test/Unit/MockServer/Default/CreateJobTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Team/CreateJobTest.cs rename to src/Square.Test/Unit/MockServer/Default/CreateJobTest.cs index e139369b..4f0de17e 100644 --- a/src/Square.Test/Unit/MockServer/Team/CreateJobTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/CreateJobTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Team; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Team; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class CreateJobTest : BaseMockServerTest @@ -59,7 +58,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Team.CreateJobAsync( + var response = await Client.Default.Team.CreateJobAsync( new CreateJobRequest { Job = new Job { Title = "Cashier", IsTipEligible = true }, diff --git a/src/Square.Test/Unit/MockServer/Labor/CreateScheduledShiftTest.cs b/src/Square.Test/Unit/MockServer/Default/CreateScheduledShiftTest.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/Labor/CreateScheduledShiftTest.cs rename to src/Square.Test/Unit/MockServer/Default/CreateScheduledShiftTest.cs index c3f56465..59d15e39 100644 --- a/src/Square.Test/Unit/MockServer/Labor/CreateScheduledShiftTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/CreateScheduledShiftTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Labor; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Labor; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class CreateScheduledShiftTest : BaseMockServerTest @@ -84,7 +83,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Labor.CreateScheduledShiftAsync( + var response = await Client.Default.Labor.CreateScheduledShiftAsync( new CreateScheduledShiftRequest { IdempotencyKey = "HIDSNG5KS478L", diff --git a/src/Square.Test/Unit/MockServer/Bookings/CreateTest.cs b/src/Square.Test/Unit/MockServer/Default/CreateTest.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/Bookings/CreateTest.cs rename to src/Square.Test/Unit/MockServer/Default/CreateTest.cs index 4b409648..a3f2dfec 100644 --- a/src/Square.Test/Unit/MockServer/Bookings/CreateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/CreateTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; -using Square.Bookings; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Bookings; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class CreateTest : BaseMockServerTest @@ -92,7 +91,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Bookings.CreateAsync( + var response = await Client.Default.Bookings.CreateAsync( new CreateBookingRequest { Booking = new Booking() } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Vendors/CreateTest.cs b/src/Square.Test/Unit/MockServer/Default/CreateTest_.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/Vendors/CreateTest.cs rename to src/Square.Test/Unit/MockServer/Default/CreateTest_.cs index c04d8150..547372ce 100644 --- a/src/Square.Test/Unit/MockServer/Vendors/CreateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/CreateTest_.cs @@ -1,13 +1,12 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -using Square.Vendors; -namespace Square.Test.Unit.MockServer.Vendors; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] -public class CreateTest : BaseMockServerTest +public class CreateTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -103,7 +102,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Vendors.CreateAsync( + var response = await Client.Default.Vendors.CreateAsync( new CreateVendorRequest { IdempotencyKey = "8fc6a5b0-9fe8-4b46-b46b-2ef95793abbe", diff --git a/src/Square.Test/Unit/MockServer/Labor/CreateTimecardTest.cs b/src/Square.Test/Unit/MockServer/Default/CreateTimecardTest.cs similarity index 97% rename from src/Square.Test/Unit/MockServer/Labor/CreateTimecardTest.cs rename to src/Square.Test/Unit/MockServer/Default/CreateTimecardTest.cs index 36a0dc8d..ae76b2d1 100644 --- a/src/Square.Test/Unit/MockServer/Labor/CreateTimecardTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/CreateTimecardTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Labor; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Labor; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class CreateTimecardTest : BaseMockServerTest @@ -111,7 +110,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Labor.CreateTimecardAsync( + var response = await Client.Default.Labor.CreateTimecardAsync( new CreateTimecardRequest { IdempotencyKey = "HIDSNG5KS478L", diff --git a/src/Square.Test/Unit/MockServer/Customers/Groups/AddTest.cs b/src/Square.Test/Unit/MockServer/Default/Customers/AddTest.cs similarity index 87% rename from src/Square.Test/Unit/MockServer/Customers/Groups/AddTest.cs rename to src/Square.Test/Unit/MockServer/Default/Customers/AddTest.cs index 3f2f8b40..3f738dd1 100644 --- a/src/Square.Test/Unit/MockServer/Customers/Groups/AddTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Customers/AddTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Customers.Groups; +using Square.Default; +using Square.Default.Customers; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Customers.Groups; +namespace Square.Test.Unit.MockServer.Default.Customers; [TestFixture] public class AddTest : BaseMockServerTest @@ -39,7 +39,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Customers.Groups.AddAsync( + var response = await Client.Default.Customers.Groups.AddAsync( new AddGroupsRequest { CustomerId = "customer_id", GroupId = "group_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Customers/CustomAttributeDefinitions/BatchUpsertTest.cs b/src/Square.Test/Unit/MockServer/Default/Customers/BatchUpsertTest.cs similarity index 97% rename from src/Square.Test/Unit/MockServer/Customers/CustomAttributeDefinitions/BatchUpsertTest.cs rename to src/Square.Test/Unit/MockServer/Default/Customers/BatchUpsertTest.cs index 087d1aef..6bb846c8 100644 --- a/src/Square.Test/Unit/MockServer/Customers/CustomAttributeDefinitions/BatchUpsertTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Customers/BatchUpsertTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Customers.CustomAttributeDefinitions; +using Square.Default; +using Square.Default.Customers; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Customers.CustomAttributeDefinitions; +namespace Square.Test.Unit.MockServer.Default.Customers; [TestFixture] public class BatchUpsertTest : BaseMockServerTest @@ -170,7 +170,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Customers.CustomAttributeDefinitions.BatchUpsertAsync( + var response = await Client.Default.Customers.CustomAttributeDefinitions.BatchUpsertAsync( new BatchUpsertCustomerCustomAttributesRequest { Values = new Dictionary< diff --git a/src/Square.Test/Unit/MockServer/Customers/CustomAttributeDefinitions/CreateTest.cs b/src/Square.Test/Unit/MockServer/Default/Customers/CreateTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Customers/CustomAttributeDefinitions/CreateTest.cs rename to src/Square.Test/Unit/MockServer/Default/Customers/CreateTest.cs index 9a72e3ea..9215fbeb 100644 --- a/src/Square.Test/Unit/MockServer/Customers/CustomAttributeDefinitions/CreateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Customers/CreateTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Customers.CustomAttributeDefinitions; +using Square.Default; +using Square.Default.Customers; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Customers.CustomAttributeDefinitions; +namespace Square.Test.Unit.MockServer.Default.Customers; [TestFixture] public class CreateTest : BaseMockServerTest @@ -67,7 +67,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Customers.CustomAttributeDefinitions.CreateAsync( + var response = await Client.Default.Customers.CustomAttributeDefinitions.CreateAsync( new CreateCustomerCustomAttributeDefinitionRequest { CustomAttributeDefinition = new CustomAttributeDefinition diff --git a/src/Square.Test/Unit/MockServer/Customers/Cards/CreateTest.cs b/src/Square.Test/Unit/MockServer/Default/Customers/CreateTest_.cs similarity index 94% rename from src/Square.Test/Unit/MockServer/Customers/Cards/CreateTest.cs rename to src/Square.Test/Unit/MockServer/Default/Customers/CreateTest_.cs index b45167f9..88ca9883 100644 --- a/src/Square.Test/Unit/MockServer/Customers/Cards/CreateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Customers/CreateTest_.cs @@ -1,13 +1,13 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Customers.Cards; +using Square.Default; +using Square.Default.Customers; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Customers.Cards; +namespace Square.Test.Unit.MockServer.Default.Customers; [TestFixture] -public class CreateTest : BaseMockServerTest +public class CreateTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -95,7 +95,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Customers.Cards.CreateAsync( + var response = await Client.Default.Customers.Cards.CreateAsync( new CreateCustomerCardRequest { CustomerId = "customer_id", diff --git a/src/Square.Test/Unit/MockServer/Customers/CustomAttributeDefinitions/DeleteTest.cs b/src/Square.Test/Unit/MockServer/Default/Customers/DeleteTest.cs similarity index 79% rename from src/Square.Test/Unit/MockServer/Customers/CustomAttributeDefinitions/DeleteTest.cs rename to src/Square.Test/Unit/MockServer/Default/Customers/DeleteTest.cs index aeea620f..d9428c1c 100644 --- a/src/Square.Test/Unit/MockServer/Customers/CustomAttributeDefinitions/DeleteTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Customers/DeleteTest.cs @@ -1,9 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Customers.CustomAttributeDefinitions; +namespace Square.Test.Unit.MockServer.Default.Customers; [TestFixture] public class DeleteTest : BaseMockServerTest @@ -38,11 +38,8 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Customers.CustomAttributeDefinitions.DeleteAsync( - new Square.Customers.CustomAttributeDefinitions.DeleteCustomAttributeDefinitionsRequest - { - Key = "key", - } + var response = await Client.Default.Customers.CustomAttributeDefinitions.DeleteAsync( + new Square.Default.Customers.DeleteCustomAttributeDefinitionsRequest { Key = "key" } ); Assert.That( response, diff --git a/src/Square.Test/Unit/MockServer/Customers/CustomAttributes/DeleteTest.cs b/src/Square.Test/Unit/MockServer/Default/Customers/DeleteTest_.cs similarity index 81% rename from src/Square.Test/Unit/MockServer/Customers/CustomAttributes/DeleteTest.cs rename to src/Square.Test/Unit/MockServer/Default/Customers/DeleteTest_.cs index fbae2fe3..57d66a1e 100644 --- a/src/Square.Test/Unit/MockServer/Customers/CustomAttributes/DeleteTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Customers/DeleteTest_.cs @@ -1,12 +1,12 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Customers.CustomAttributes; +namespace Square.Test.Unit.MockServer.Default.Customers; [TestFixture] -public class DeleteTest : BaseMockServerTest +public class DeleteTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -38,8 +38,8 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Customers.CustomAttributes.DeleteAsync( - new Square.Customers.CustomAttributes.DeleteCustomAttributesRequest + var response = await Client.Default.Customers.CustomAttributes.DeleteAsync( + new Square.Default.Customers.DeleteCustomAttributesRequest { CustomerId = "customer_id", Key = "key", diff --git a/src/Square.Test/Unit/MockServer/Customers/CustomAttributeDefinitions/GetTest.cs b/src/Square.Test/Unit/MockServer/Default/Customers/GetTest.cs similarity index 88% rename from src/Square.Test/Unit/MockServer/Customers/CustomAttributeDefinitions/GetTest.cs rename to src/Square.Test/Unit/MockServer/Default/Customers/GetTest.cs index 94d887dc..af08a65b 100644 --- a/src/Square.Test/Unit/MockServer/Customers/CustomAttributeDefinitions/GetTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Customers/GetTest.cs @@ -1,9 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Customers.CustomAttributeDefinitions; +namespace Square.Test.Unit.MockServer.Default.Customers; [TestFixture] public class GetTest : BaseMockServerTest @@ -51,8 +51,8 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Customers.CustomAttributeDefinitions.GetAsync( - new Square.Customers.CustomAttributeDefinitions.GetCustomAttributeDefinitionsRequest + var response = await Client.Default.Customers.CustomAttributeDefinitions.GetAsync( + new Square.Default.Customers.GetCustomAttributeDefinitionsRequest { Key = "key", Version = 1, diff --git a/src/Square.Test/Unit/MockServer/Customers/CustomAttributes/GetTest.cs b/src/Square.Test/Unit/MockServer/Default/Customers/GetTest_.cs similarity index 88% rename from src/Square.Test/Unit/MockServer/Customers/CustomAttributes/GetTest.cs rename to src/Square.Test/Unit/MockServer/Default/Customers/GetTest_.cs index b75cad5c..de283ea9 100644 --- a/src/Square.Test/Unit/MockServer/Customers/CustomAttributes/GetTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Customers/GetTest_.cs @@ -1,12 +1,12 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Customers.CustomAttributes; +namespace Square.Test.Unit.MockServer.Default.Customers; [TestFixture] -public class GetTest : BaseMockServerTest +public class GetTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -59,8 +59,8 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Customers.CustomAttributes.GetAsync( - new Square.Customers.CustomAttributes.GetCustomAttributesRequest + var response = await Client.Default.Customers.CustomAttributes.GetAsync( + new Square.Default.Customers.GetCustomAttributesRequest { CustomerId = "customer_id", Key = "key", diff --git a/src/Square.Test/Unit/MockServer/Customers/CustomAttributeDefinitions/ListTest.cs b/src/Square.Test/Unit/MockServer/Default/Customers/ListTest.cs similarity index 91% rename from src/Square.Test/Unit/MockServer/Customers/CustomAttributeDefinitions/ListTest.cs rename to src/Square.Test/Unit/MockServer/Default/Customers/ListTest.cs index bab92ee3..f4888a8f 100644 --- a/src/Square.Test/Unit/MockServer/Customers/CustomAttributeDefinitions/ListTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Customers/ListTest.cs @@ -1,7 +1,7 @@ using NUnit.Framework; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Customers.CustomAttributeDefinitions; +namespace Square.Test.Unit.MockServer.Default.Customers; [TestFixture] public class ListTest : BaseMockServerTest @@ -65,8 +65,8 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var items = await Client.Customers.CustomAttributeDefinitions.ListAsync( - new Square.Customers.CustomAttributeDefinitions.ListCustomAttributeDefinitionsRequest + var items = await Client.Default.Customers.CustomAttributeDefinitions.ListAsync( + new Square.Default.Customers.ListCustomAttributeDefinitionsRequest { Limit = 1, Cursor = "cursor", diff --git a/src/Square.Test/Unit/MockServer/Customers/CustomAttributes/ListTest.cs b/src/Square.Test/Unit/MockServer/Default/Customers/ListTest_.cs similarity index 89% rename from src/Square.Test/Unit/MockServer/Customers/CustomAttributes/ListTest.cs rename to src/Square.Test/Unit/MockServer/Default/Customers/ListTest_.cs index 00caf339..de7abeaa 100644 --- a/src/Square.Test/Unit/MockServer/Customers/CustomAttributes/ListTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Customers/ListTest_.cs @@ -1,10 +1,10 @@ using NUnit.Framework; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Customers.CustomAttributes; +namespace Square.Test.Unit.MockServer.Default.Customers; [TestFixture] -public class ListTest : BaseMockServerTest +public class ListTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -57,8 +57,8 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var items = await Client.Customers.CustomAttributes.ListAsync( - new Square.Customers.CustomAttributes.ListCustomAttributesRequest + var items = await Client.Default.Customers.CustomAttributes.ListAsync( + new Square.Default.Customers.ListCustomAttributesRequest { CustomerId = "customer_id", Limit = 1, diff --git a/src/Square.Test/Unit/MockServer/Customers/Groups/RemoveTest.cs b/src/Square.Test/Unit/MockServer/Default/Customers/RemoveTest.cs similarity index 87% rename from src/Square.Test/Unit/MockServer/Customers/Groups/RemoveTest.cs rename to src/Square.Test/Unit/MockServer/Default/Customers/RemoveTest.cs index c4d49908..ea91107b 100644 --- a/src/Square.Test/Unit/MockServer/Customers/Groups/RemoveTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Customers/RemoveTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Customers.Groups; +using Square.Default; +using Square.Default.Customers; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Customers.Groups; +namespace Square.Test.Unit.MockServer.Default.Customers; [TestFixture] public class RemoveTest : BaseMockServerTest @@ -39,7 +39,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Customers.Groups.RemoveAsync( + var response = await Client.Default.Customers.Groups.RemoveAsync( new RemoveGroupsRequest { CustomerId = "customer_id", GroupId = "group_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Customers/CustomAttributeDefinitions/UpdateTest.cs b/src/Square.Test/Unit/MockServer/Default/Customers/UpdateTest.cs similarity index 92% rename from src/Square.Test/Unit/MockServer/Customers/CustomAttributeDefinitions/UpdateTest.cs rename to src/Square.Test/Unit/MockServer/Default/Customers/UpdateTest.cs index e86feb53..00445705 100644 --- a/src/Square.Test/Unit/MockServer/Customers/CustomAttributeDefinitions/UpdateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Customers/UpdateTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Customers.CustomAttributeDefinitions; +using Square.Default; +using Square.Default.Customers; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Customers.CustomAttributeDefinitions; +namespace Square.Test.Unit.MockServer.Default.Customers; [TestFixture] public class UpdateTest : BaseMockServerTest @@ -62,7 +62,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Customers.CustomAttributeDefinitions.UpdateAsync( + var response = await Client.Default.Customers.CustomAttributeDefinitions.UpdateAsync( new UpdateCustomerCustomAttributeDefinitionRequest { Key = "key", diff --git a/src/Square.Test/Unit/MockServer/Customers/Groups/UpdateTest.cs b/src/Square.Test/Unit/MockServer/Default/Customers/UpdateTest_.cs similarity index 88% rename from src/Square.Test/Unit/MockServer/Customers/Groups/UpdateTest.cs rename to src/Square.Test/Unit/MockServer/Default/Customers/UpdateTest_.cs index 84244c2b..ab72daca 100644 --- a/src/Square.Test/Unit/MockServer/Customers/Groups/UpdateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Customers/UpdateTest_.cs @@ -1,13 +1,13 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Customers.Groups; +using Square.Default; +using Square.Default.Customers; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Customers.Groups; +namespace Square.Test.Unit.MockServer.Default.Customers; [TestFixture] -public class UpdateTest : BaseMockServerTest +public class UpdateTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -55,7 +55,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Customers.Groups.UpdateAsync( + var response = await Client.Default.Customers.Groups.UpdateAsync( new UpdateCustomerGroupRequest { GroupId = "group_id", diff --git a/src/Square.Test/Unit/MockServer/Customers/CustomAttributes/UpsertTest.cs b/src/Square.Test/Unit/MockServer/Default/Customers/UpsertTest.cs similarity index 92% rename from src/Square.Test/Unit/MockServer/Customers/CustomAttributes/UpsertTest.cs rename to src/Square.Test/Unit/MockServer/Default/Customers/UpsertTest.cs index aafbb360..cc9a7335 100644 --- a/src/Square.Test/Unit/MockServer/Customers/CustomAttributes/UpsertTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Customers/UpsertTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Customers.CustomAttributes; +using Square.Default; +using Square.Default.Customers; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Customers.CustomAttributes; +namespace Square.Test.Unit.MockServer.Default.Customers; [TestFixture] public class UpsertTest : BaseMockServerTest @@ -69,7 +69,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Customers.CustomAttributes.UpsertAsync( + var response = await Client.Default.Customers.CustomAttributes.UpsertAsync( new UpsertCustomerCustomAttributeRequest { CustomerId = "customer_id", diff --git a/src/Square.Test/Unit/MockServer/Subscriptions/DeleteActionTest.cs b/src/Square.Test/Unit/MockServer/Default/DeleteActionTest.cs similarity index 94% rename from src/Square.Test/Unit/MockServer/Subscriptions/DeleteActionTest.cs rename to src/Square.Test/Unit/MockServer/Default/DeleteActionTest.cs index 9df546f8..f4823edc 100644 --- a/src/Square.Test/Unit/MockServer/Subscriptions/DeleteActionTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/DeleteActionTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Subscriptions; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Subscriptions; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class DeleteActionTest : BaseMockServerTest @@ -73,7 +72,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Subscriptions.DeleteActionAsync( + var response = await Client.Default.Subscriptions.DeleteActionAsync( new DeleteActionSubscriptionsRequest { SubscriptionId = "subscription_id", diff --git a/src/Square.Test/Unit/MockServer/Invoices/DeleteInvoiceAttachmentTest.cs b/src/Square.Test/Unit/MockServer/Default/DeleteInvoiceAttachmentTest.cs similarity index 89% rename from src/Square.Test/Unit/MockServer/Invoices/DeleteInvoiceAttachmentTest.cs rename to src/Square.Test/Unit/MockServer/Default/DeleteInvoiceAttachmentTest.cs index 3eafac8e..551d403f 100644 --- a/src/Square.Test/Unit/MockServer/Invoices/DeleteInvoiceAttachmentTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/DeleteInvoiceAttachmentTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Invoices; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Invoices; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class DeleteInvoiceAttachmentTest : BaseMockServerTest @@ -39,7 +38,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Invoices.DeleteInvoiceAttachmentAsync( + var response = await Client.Default.Invoices.DeleteInvoiceAttachmentAsync( new DeleteInvoiceAttachmentRequest { InvoiceId = "invoice_id", diff --git a/src/Square.Test/Unit/MockServer/Customers/DeleteTest.cs b/src/Square.Test/Unit/MockServer/Default/DeleteTest.cs similarity index 89% rename from src/Square.Test/Unit/MockServer/Customers/DeleteTest.cs rename to src/Square.Test/Unit/MockServer/Default/DeleteTest.cs index 0913c86e..2614233e 100644 --- a/src/Square.Test/Unit/MockServer/Customers/DeleteTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/DeleteTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Customers; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Customers; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class DeleteTest : BaseMockServerTest @@ -40,7 +39,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Customers.DeleteAsync( + var response = await Client.Default.Customers.DeleteAsync( new DeleteCustomersRequest { CustomerId = "customer_id", Version = 1000000 } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/TransferOrders/DeleteTest.cs b/src/Square.Test/Unit/MockServer/Default/DeleteTest_.cs similarity index 86% rename from src/Square.Test/Unit/MockServer/TransferOrders/DeleteTest.cs rename to src/Square.Test/Unit/MockServer/Default/DeleteTest_.cs index fd5a12d8..8b453f0f 100644 --- a/src/Square.Test/Unit/MockServer/TransferOrders/DeleteTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/DeleteTest_.cs @@ -1,13 +1,12 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -using Square.TransferOrders; -namespace Square.Test.Unit.MockServer.TransferOrders; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] -public class DeleteTest : BaseMockServerTest +public class DeleteTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -40,7 +39,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.TransferOrders.DeleteAsync( + var response = await Client.Default.TransferOrders.DeleteAsync( new DeleteTransferOrdersRequest { TransferOrderId = "transfer_order_id", diff --git a/src/Square.Test/Unit/MockServer/Labor/DeleteTimecardTest.cs b/src/Square.Test/Unit/MockServer/Default/DeleteTimecardTest.cs similarity index 89% rename from src/Square.Test/Unit/MockServer/Labor/DeleteTimecardTest.cs rename to src/Square.Test/Unit/MockServer/Default/DeleteTimecardTest.cs index d276bb8d..13a75057 100644 --- a/src/Square.Test/Unit/MockServer/Labor/DeleteTimecardTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/DeleteTimecardTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Labor; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Labor; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class DeleteTimecardTest : BaseMockServerTest @@ -39,7 +38,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Labor.DeleteTimecardAsync( + var response = await Client.Default.Labor.DeleteTimecardAsync( new DeleteTimecardRequest { Id = "id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Inventory/DeprecatedBatchChangeTest.cs b/src/Square.Test/Unit/MockServer/Default/DeprecatedBatchChangeTest.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/Inventory/DeprecatedBatchChangeTest.cs rename to src/Square.Test/Unit/MockServer/Default/DeprecatedBatchChangeTest.cs index d2eeb947..37c46d9b 100644 --- a/src/Square.Test/Unit/MockServer/Inventory/DeprecatedBatchChangeTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/DeprecatedBatchChangeTest.cs @@ -1,9 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Inventory; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class DeprecatedBatchChangeTest : BaseMockServerTest @@ -78,7 +78,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Inventory.DeprecatedBatchChangeAsync( + var response = await Client.Default.Inventory.DeprecatedBatchChangeAsync( new BatchChangeInventoryRequest { IdempotencyKey = "8fc6a5b0-9fe8-4b46-b46b-2ef95793abbe", diff --git a/src/Square.Test/Unit/MockServer/Inventory/DeprecatedBatchGetChangesTest.cs b/src/Square.Test/Unit/MockServer/Default/DeprecatedBatchGetChangesTest.cs similarity index 95% rename from src/Square.Test/Unit/MockServer/Inventory/DeprecatedBatchGetChangesTest.cs rename to src/Square.Test/Unit/MockServer/Default/DeprecatedBatchGetChangesTest.cs index 637cd2c9..22c512bb 100644 --- a/src/Square.Test/Unit/MockServer/Inventory/DeprecatedBatchGetChangesTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/DeprecatedBatchGetChangesTest.cs @@ -1,9 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Inventory; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class DeprecatedBatchGetChangesTest : BaseMockServerTest @@ -83,7 +83,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Inventory.DeprecatedBatchGetChangesAsync( + var response = await Client.Default.Inventory.DeprecatedBatchGetChangesAsync( new BatchRetrieveInventoryChangesRequest { CatalogObjectIds = new List() { "W62UWFY35CWMYGVWK6TWJDNI" }, diff --git a/src/Square.Test/Unit/MockServer/Inventory/DeprecatedBatchGetCountsTest.cs b/src/Square.Test/Unit/MockServer/Default/DeprecatedBatchGetCountsTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Inventory/DeprecatedBatchGetCountsTest.cs rename to src/Square.Test/Unit/MockServer/Default/DeprecatedBatchGetCountsTest.cs index ddfc77f9..5cba8553 100644 --- a/src/Square.Test/Unit/MockServer/Inventory/DeprecatedBatchGetCountsTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/DeprecatedBatchGetCountsTest.cs @@ -1,9 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Inventory; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class DeprecatedBatchGetCountsTest : BaseMockServerTest @@ -64,7 +64,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Inventory.DeprecatedBatchGetCountsAsync( + var response = await Client.Default.Inventory.DeprecatedBatchGetCountsAsync( new BatchGetInventoryCountsRequest { CatalogObjectIds = new List() { "W62UWFY35CWMYGVWK6TWJDNI" }, diff --git a/src/Square.Test/Unit/MockServer/Inventory/DeprecatedGetAdjustmentTest.cs b/src/Square.Test/Unit/MockServer/Default/DeprecatedGetAdjustmentTest.cs similarity index 94% rename from src/Square.Test/Unit/MockServer/Inventory/DeprecatedGetAdjustmentTest.cs rename to src/Square.Test/Unit/MockServer/Default/DeprecatedGetAdjustmentTest.cs index 7085e620..42e5fb80 100644 --- a/src/Square.Test/Unit/MockServer/Inventory/DeprecatedGetAdjustmentTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/DeprecatedGetAdjustmentTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Inventory; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Inventory; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class DeprecatedGetAdjustmentTest : BaseMockServerTest @@ -72,7 +71,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Inventory.DeprecatedGetAdjustmentAsync( + var response = await Client.Default.Inventory.DeprecatedGetAdjustmentAsync( new DeprecatedGetAdjustmentInventoryRequest { AdjustmentId = "adjustment_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Inventory/DeprecatedGetPhysicalCountTest.cs b/src/Square.Test/Unit/MockServer/Default/DeprecatedGetPhysicalCountTest.cs similarity index 92% rename from src/Square.Test/Unit/MockServer/Inventory/DeprecatedGetPhysicalCountTest.cs rename to src/Square.Test/Unit/MockServer/Default/DeprecatedGetPhysicalCountTest.cs index 185e6b8f..b5a75f51 100644 --- a/src/Square.Test/Unit/MockServer/Inventory/DeprecatedGetPhysicalCountTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/DeprecatedGetPhysicalCountTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Inventory; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Inventory; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class DeprecatedGetPhysicalCountTest : BaseMockServerTest @@ -57,7 +56,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Inventory.DeprecatedGetPhysicalCountAsync( + var response = await Client.Default.Inventory.DeprecatedGetPhysicalCountAsync( new DeprecatedGetPhysicalCountInventoryRequest { PhysicalCountId = "physical_count_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Devices/Codes/CreateTest.cs b/src/Square.Test/Unit/MockServer/Default/Devices/CreateTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Devices/Codes/CreateTest.cs rename to src/Square.Test/Unit/MockServer/Default/Devices/CreateTest.cs index 80008b25..6fbe54a9 100644 --- a/src/Square.Test/Unit/MockServer/Devices/Codes/CreateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Devices/CreateTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Devices.Codes; +using Square.Default; +using Square.Default.Devices; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Devices.Codes; +namespace Square.Test.Unit.MockServer.Default.Devices; [TestFixture] public class CreateTest : BaseMockServerTest @@ -65,7 +65,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Devices.Codes.CreateAsync( + var response = await Client.Default.Devices.Codes.CreateAsync( new CreateDeviceCodeRequest { IdempotencyKey = "01bb00a6-0c86-4770-94ed-f5fca973cd56", diff --git a/src/Square.Test/Unit/MockServer/Devices/Codes/GetTest.cs b/src/Square.Test/Unit/MockServer/Default/Devices/GetTest.cs similarity index 87% rename from src/Square.Test/Unit/MockServer/Devices/Codes/GetTest.cs rename to src/Square.Test/Unit/MockServer/Default/Devices/GetTest.cs index 703e9640..18babe74 100644 --- a/src/Square.Test/Unit/MockServer/Devices/Codes/GetTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Devices/GetTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Devices.Codes; +using Square.Default; +using Square.Default.Devices; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Devices.Codes; +namespace Square.Test.Unit.MockServer.Default.Devices; [TestFixture] public class GetTest : BaseMockServerTest @@ -52,7 +52,9 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Devices.Codes.GetAsync(new GetCodesRequest { Id = "id" }); + var response = await Client.Default.Devices.Codes.GetAsync( + new GetCodesRequest { Id = "id" } + ); Assert.That( response, Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() diff --git a/src/Square.Test/Unit/MockServer/Devices/Codes/ListTest.cs b/src/Square.Test/Unit/MockServer/Default/Devices/ListTest.cs similarity index 94% rename from src/Square.Test/Unit/MockServer/Devices/Codes/ListTest.cs rename to src/Square.Test/Unit/MockServer/Default/Devices/ListTest.cs index 285c6aee..9b3038ef 100644 --- a/src/Square.Test/Unit/MockServer/Devices/Codes/ListTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Devices/ListTest.cs @@ -1,9 +1,9 @@ using NUnit.Framework; -using Square; -using Square.Devices.Codes; +using Square.Default; +using Square.Default.Devices; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Devices.Codes; +namespace Square.Test.Unit.MockServer.Default.Devices; [TestFixture] public class ListTest : BaseMockServerTest @@ -71,7 +71,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var items = await Client.Devices.Codes.ListAsync( + var items = await Client.Default.Devices.Codes.ListAsync( new ListCodesRequest { Cursor = "cursor", diff --git a/src/Square.Test/Unit/MockServer/BankAccounts/DisableBankAccountTest.cs b/src/Square.Test/Unit/MockServer/Default/DisableBankAccountTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/BankAccounts/DisableBankAccountTest.cs rename to src/Square.Test/Unit/MockServer/Default/DisableBankAccountTest.cs index 57c23d5c..2a4c877a 100644 --- a/src/Square.Test/Unit/MockServer/BankAccounts/DisableBankAccountTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/DisableBankAccountTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; -using Square.BankAccounts; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.BankAccounts; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class DisableBankAccountTest : BaseMockServerTest @@ -59,7 +58,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.BankAccounts.DisableBankAccountAsync( + var response = await Client.Default.BankAccounts.DisableBankAccountAsync( new DisableBankAccountRequest { BankAccountId = "bank_account_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Events/DisableEventsTest.cs b/src/Square.Test/Unit/MockServer/Default/DisableEventsTest.cs similarity index 88% rename from src/Square.Test/Unit/MockServer/Events/DisableEventsTest.cs rename to src/Square.Test/Unit/MockServer/Default/DisableEventsTest.cs index 77eda47d..8f4069cc 100644 --- a/src/Square.Test/Unit/MockServer/Events/DisableEventsTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/DisableEventsTest.cs @@ -1,9 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Events; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class DisableEventsTest : BaseMockServerTest @@ -35,7 +35,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Events.DisableEventsAsync(); + var response = await Client.Default.Events.DisableEventsAsync(); Assert.That( response, Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() diff --git a/src/Square.Test/Unit/MockServer/Cards/DisableTest.cs b/src/Square.Test/Unit/MockServer/Default/DisableTest.cs similarity index 95% rename from src/Square.Test/Unit/MockServer/Cards/DisableTest.cs rename to src/Square.Test/Unit/MockServer/Default/DisableTest.cs index 4a712e60..27bb2deb 100644 --- a/src/Square.Test/Unit/MockServer/Cards/DisableTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/DisableTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; -using Square.Cards; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Cards; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class DisableTest : BaseMockServerTest @@ -78,7 +77,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Cards.DisableAsync( + var response = await Client.Default.Cards.DisableAsync( new DisableCardsRequest { CardId = "card_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Terminal/DismissTerminalActionTest.cs b/src/Square.Test/Unit/MockServer/Default/DismissTerminalActionTest.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/Terminal/DismissTerminalActionTest.cs rename to src/Square.Test/Unit/MockServer/Default/DismissTerminalActionTest.cs index ecac1c21..6c884f3b 100644 --- a/src/Square.Test/Unit/MockServer/Terminal/DismissTerminalActionTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/DismissTerminalActionTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Terminal; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Terminal; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class DismissTerminalActionTest : BaseMockServerTest @@ -117,7 +116,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Terminal.DismissTerminalActionAsync( + var response = await Client.Default.Terminal.DismissTerminalActionAsync( new DismissTerminalActionRequest { ActionId = "action_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Terminal/DismissTerminalCheckoutTest.cs b/src/Square.Test/Unit/MockServer/Default/DismissTerminalCheckoutTest.cs similarity index 95% rename from src/Square.Test/Unit/MockServer/Terminal/DismissTerminalCheckoutTest.cs rename to src/Square.Test/Unit/MockServer/Default/DismissTerminalCheckoutTest.cs index 9d42e28a..7662ae25 100644 --- a/src/Square.Test/Unit/MockServer/Terminal/DismissTerminalCheckoutTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/DismissTerminalCheckoutTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Terminal; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Terminal; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class DismissTerminalCheckoutTest : BaseMockServerTest @@ -89,7 +88,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Terminal.DismissTerminalCheckoutAsync( + var response = await Client.Default.Terminal.DismissTerminalCheckoutAsync( new DismissTerminalCheckoutRequest { CheckoutId = "checkout_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Terminal/DismissTerminalRefundTest.cs b/src/Square.Test/Unit/MockServer/Default/DismissTerminalRefundTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Terminal/DismissTerminalRefundTest.cs rename to src/Square.Test/Unit/MockServer/Default/DismissTerminalRefundTest.cs index c71b36ee..c52000c2 100644 --- a/src/Square.Test/Unit/MockServer/Terminal/DismissTerminalRefundTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/DismissTerminalRefundTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Terminal; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Terminal; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class DismissTerminalRefundTest : BaseMockServerTest @@ -58,7 +57,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Terminal.DismissTerminalRefundAsync( + var response = await Client.Default.Terminal.DismissTerminalRefundAsync( new DismissTerminalRefundRequest { TerminalRefundId = "terminal_refund_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Disputes/Evidence/DeleteTest.cs b/src/Square.Test/Unit/MockServer/Default/Disputes/DeleteTest.cs similarity index 87% rename from src/Square.Test/Unit/MockServer/Disputes/Evidence/DeleteTest.cs rename to src/Square.Test/Unit/MockServer/Default/Disputes/DeleteTest.cs index 3a2de34f..970d59ab 100644 --- a/src/Square.Test/Unit/MockServer/Disputes/Evidence/DeleteTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Disputes/DeleteTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Disputes.Evidence; +using Square.Default; +using Square.Default.Disputes; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Disputes.Evidence; +namespace Square.Test.Unit.MockServer.Default.Disputes; [TestFixture] public class DeleteTest : BaseMockServerTest @@ -39,7 +39,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Disputes.Evidence.DeleteAsync( + var response = await Client.Default.Disputes.Evidence.DeleteAsync( new DeleteEvidenceRequest { DisputeId = "dispute_id", EvidenceId = "evidence_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Disputes/Evidence/GetTest.cs b/src/Square.Test/Unit/MockServer/Default/Disputes/GetTest.cs similarity index 90% rename from src/Square.Test/Unit/MockServer/Disputes/Evidence/GetTest.cs rename to src/Square.Test/Unit/MockServer/Default/Disputes/GetTest.cs index 08cc09fd..f35fdcaf 100644 --- a/src/Square.Test/Unit/MockServer/Disputes/Evidence/GetTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Disputes/GetTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Disputes.Evidence; +using Square.Default; +using Square.Default.Disputes; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Disputes.Evidence; +namespace Square.Test.Unit.MockServer.Default.Disputes; [TestFixture] public class GetTest : BaseMockServerTest @@ -51,7 +51,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Disputes.Evidence.GetAsync( + var response = await Client.Default.Disputes.Evidence.GetAsync( new GetEvidenceRequest { DisputeId = "dispute_id", EvidenceId = "evidence_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Disputes/Evidence/ListTest.cs b/src/Square.Test/Unit/MockServer/Default/Disputes/ListTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Disputes/Evidence/ListTest.cs rename to src/Square.Test/Unit/MockServer/Default/Disputes/ListTest.cs index 0d9e5740..775924ed 100644 --- a/src/Square.Test/Unit/MockServer/Disputes/Evidence/ListTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Disputes/ListTest.cs @@ -1,8 +1,8 @@ using NUnit.Framework; -using Square.Disputes.Evidence; +using Square.Default.Disputes; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Disputes.Evidence; +namespace Square.Test.Unit.MockServer.Default.Disputes; [TestFixture] public class ListTest : BaseMockServerTest @@ -65,7 +65,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var items = await Client.Disputes.Evidence.ListAsync( + var items = await Client.Default.Disputes.Evidence.ListAsync( new ListEvidenceRequest { DisputeId = "dispute_id", Cursor = "cursor" } ); await foreach (var item in items) diff --git a/src/Square.Test/Unit/MockServer/Events/EnableEventsTest.cs b/src/Square.Test/Unit/MockServer/Default/EnableEventsTest.cs similarity index 88% rename from src/Square.Test/Unit/MockServer/Events/EnableEventsTest.cs rename to src/Square.Test/Unit/MockServer/Default/EnableEventsTest.cs index fd5e2f95..f0211962 100644 --- a/src/Square.Test/Unit/MockServer/Events/EnableEventsTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/EnableEventsTest.cs @@ -1,9 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Events; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class EnableEventsTest : BaseMockServerTest @@ -35,7 +35,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Events.EnableEventsAsync(); + var response = await Client.Default.Events.EnableEventsAsync(); Assert.That( response, Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() diff --git a/src/Square.Test/Unit/MockServer/Inventory/GetAdjustmentTest.cs b/src/Square.Test/Unit/MockServer/Default/GetAdjustmentTest.cs similarity index 94% rename from src/Square.Test/Unit/MockServer/Inventory/GetAdjustmentTest.cs rename to src/Square.Test/Unit/MockServer/Default/GetAdjustmentTest.cs index 668c5d97..c71e9228 100644 --- a/src/Square.Test/Unit/MockServer/Inventory/GetAdjustmentTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/GetAdjustmentTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Inventory; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Inventory; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class GetAdjustmentTest : BaseMockServerTest @@ -72,7 +71,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Inventory.GetAdjustmentAsync( + var response = await Client.Default.Inventory.GetAdjustmentAsync( new GetAdjustmentInventoryRequest { AdjustmentId = "adjustment_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Bookings/GetBusinessProfileTest.cs b/src/Square.Test/Unit/MockServer/Default/GetBusinessProfileTest.cs similarity index 94% rename from src/Square.Test/Unit/MockServer/Bookings/GetBusinessProfileTest.cs rename to src/Square.Test/Unit/MockServer/Default/GetBusinessProfileTest.cs index f468fd7f..4e391856 100644 --- a/src/Square.Test/Unit/MockServer/Bookings/GetBusinessProfileTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/GetBusinessProfileTest.cs @@ -1,9 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Bookings; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class GetBusinessProfileTest : BaseMockServerTest @@ -66,7 +66,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Bookings.GetBusinessProfileAsync(); + var response = await Client.Default.Bookings.GetBusinessProfileAsync(); Assert.That( response, Is.EqualTo(JsonUtils.Deserialize(mockResponse)) diff --git a/src/Square.Test/Unit/MockServer/BankAccounts/GetByV1IdTest.cs b/src/Square.Test/Unit/MockServer/Default/GetByV1IdTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/BankAccounts/GetByV1IdTest.cs rename to src/Square.Test/Unit/MockServer/Default/GetByV1IdTest.cs index c9ad208c..527bd33f 100644 --- a/src/Square.Test/Unit/MockServer/BankAccounts/GetByV1IdTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/GetByV1IdTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; -using Square.BankAccounts; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.BankAccounts; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class GetByV1IdTest : BaseMockServerTest @@ -59,7 +58,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.BankAccounts.GetByV1IdAsync( + var response = await Client.Default.BankAccounts.GetByV1IdAsync( new GetByV1IdBankAccountsRequest { V1BankAccountId = "v1_bank_account_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/GiftCards/GetFromGanTest.cs b/src/Square.Test/Unit/MockServer/Default/GetFromGanTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/GiftCards/GetFromGanTest.cs rename to src/Square.Test/Unit/MockServer/Default/GetFromGanTest.cs index 04f32aa9..66cbfba6 100644 --- a/src/Square.Test/Unit/MockServer/GiftCards/GetFromGanTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/GetFromGanTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.GiftCards; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.GiftCards; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class GetFromGanTest : BaseMockServerTest @@ -62,7 +61,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.GiftCards.GetFromGanAsync( + var response = await Client.Default.GiftCards.GetFromGanAsync( new GetGiftCardFromGanRequest { Gan = "7783320001001635" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/GiftCards/GetFromNonceTest.cs b/src/Square.Test/Unit/MockServer/Default/GetFromNonceTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/GiftCards/GetFromNonceTest.cs rename to src/Square.Test/Unit/MockServer/Default/GetFromNonceTest.cs index d2c0d8d2..18a1e90d 100644 --- a/src/Square.Test/Unit/MockServer/GiftCards/GetFromNonceTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/GetFromNonceTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.GiftCards; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.GiftCards; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class GetFromNonceTest : BaseMockServerTest @@ -62,7 +61,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.GiftCards.GetFromNonceAsync( + var response = await Client.Default.GiftCards.GetFromNonceAsync( new GetGiftCardFromNonceRequest { Nonce = "cnon:7783322135245171" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Inventory/GetPhysicalCountTest.cs b/src/Square.Test/Unit/MockServer/Default/GetPhysicalCountTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Inventory/GetPhysicalCountTest.cs rename to src/Square.Test/Unit/MockServer/Default/GetPhysicalCountTest.cs index 5482720d..787788bd 100644 --- a/src/Square.Test/Unit/MockServer/Inventory/GetPhysicalCountTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/GetPhysicalCountTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Inventory; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Inventory; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class GetPhysicalCountTest : BaseMockServerTest @@ -57,7 +56,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Inventory.GetPhysicalCountAsync( + var response = await Client.Default.Inventory.GetPhysicalCountAsync( new GetPhysicalCountInventoryRequest { PhysicalCountId = "physical_count_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/BankAccounts/GetTest.cs b/src/Square.Test/Unit/MockServer/Default/GetTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/BankAccounts/GetTest.cs rename to src/Square.Test/Unit/MockServer/Default/GetTest.cs index fa1507d9..fa620e25 100644 --- a/src/Square.Test/Unit/MockServer/BankAccounts/GetTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/GetTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; -using Square.BankAccounts; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.BankAccounts; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class GetTest : BaseMockServerTest @@ -59,7 +58,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.BankAccounts.GetAsync( + var response = await Client.Default.BankAccounts.GetAsync( new GetBankAccountsRequest { BankAccountId = "bank_account_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Vendors/GetTest.cs b/src/Square.Test/Unit/MockServer/Default/GetTest_.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Vendors/GetTest.cs rename to src/Square.Test/Unit/MockServer/Default/GetTest_.cs index c70ca1c6..43537185 100644 --- a/src/Square.Test/Unit/MockServer/Vendors/GetTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/GetTest_.cs @@ -1,13 +1,12 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -using Square.Vendors; -namespace Square.Test.Unit.MockServer.Vendors; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] -public class GetTest : BaseMockServerTest +public class GetTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -74,7 +73,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Vendors.GetAsync( + var response = await Client.Default.Vendors.GetAsync( new GetVendorsRequest { VendorId = "vendor_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Inventory/GetTransferTest.cs b/src/Square.Test/Unit/MockServer/Default/GetTransferTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Inventory/GetTransferTest.cs rename to src/Square.Test/Unit/MockServer/Default/GetTransferTest.cs index b4855a1e..873d9083 100644 --- a/src/Square.Test/Unit/MockServer/Inventory/GetTransferTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/GetTransferTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Inventory; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Inventory; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class GetTransferTest : BaseMockServerTest @@ -58,7 +57,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Inventory.GetTransferAsync( + var response = await Client.Default.Inventory.GetTransferAsync( new GetTransferInventoryRequest { TransferId = "transfer_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/GiftCards/Activities/CreateTest.cs b/src/Square.Test/Unit/MockServer/Default/GiftCards/CreateTest.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/GiftCards/Activities/CreateTest.cs rename to src/Square.Test/Unit/MockServer/Default/GiftCards/CreateTest.cs index e54daf4e..ff1d3559 100644 --- a/src/Square.Test/Unit/MockServer/GiftCards/Activities/CreateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/GiftCards/CreateTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.GiftCards.Activities; +using Square.Default; +using Square.Default.GiftCards; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.GiftCards.Activities; +namespace Square.Test.Unit.MockServer.Default.GiftCards; [TestFixture] public class CreateTest : BaseMockServerTest @@ -138,7 +138,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.GiftCards.Activities.CreateAsync( + var response = await Client.Default.GiftCards.Activities.CreateAsync( new CreateGiftCardActivityRequest { IdempotencyKey = "U16kfr-kA70er-q4Rsym-7U7NnY", diff --git a/src/Square.Test/Unit/MockServer/GiftCards/Activities/ListTest.cs b/src/Square.Test/Unit/MockServer/Default/GiftCards/ListTest.cs similarity index 97% rename from src/Square.Test/Unit/MockServer/GiftCards/Activities/ListTest.cs rename to src/Square.Test/Unit/MockServer/Default/GiftCards/ListTest.cs index ecc09f9c..42872dc9 100644 --- a/src/Square.Test/Unit/MockServer/GiftCards/Activities/ListTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/GiftCards/ListTest.cs @@ -1,8 +1,8 @@ using NUnit.Framework; -using Square.GiftCards.Activities; +using Square.Default.GiftCards; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.GiftCards.Activities; +namespace Square.Test.Unit.MockServer.Default.GiftCards; [TestFixture] public class ListTest : BaseMockServerTest @@ -163,7 +163,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var items = await Client.GiftCards.Activities.ListAsync( + var items = await Client.Default.GiftCards.Activities.ListAsync( new ListActivitiesRequest { GiftCardId = "gift_card_id", diff --git a/src/Square.Test/Unit/MockServer/Catalog/InfoTest.cs b/src/Square.Test/Unit/MockServer/Default/InfoTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Catalog/InfoTest.cs rename to src/Square.Test/Unit/MockServer/Default/InfoTest.cs index 84e3be2d..c8dc534a 100644 --- a/src/Square.Test/Unit/MockServer/Catalog/InfoTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/InfoTest.cs @@ -1,9 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Catalog; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class InfoTest : BaseMockServerTest @@ -54,7 +54,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Catalog.InfoAsync(); + var response = await Client.Default.Catalog.InfoAsync(); Assert.That( response, Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() diff --git a/src/Square.Test/Unit/MockServer/Labor/BreakTypes/CreateTest.cs b/src/Square.Test/Unit/MockServer/Default/Labor/CreateTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Labor/BreakTypes/CreateTest.cs rename to src/Square.Test/Unit/MockServer/Default/Labor/CreateTest.cs index e17232ea..f16e8ea2 100644 --- a/src/Square.Test/Unit/MockServer/Labor/BreakTypes/CreateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Labor/CreateTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Labor.BreakTypes; +using Square.Default; +using Square.Default.Labor; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Labor.BreakTypes; +namespace Square.Test.Unit.MockServer.Default.Labor; [TestFixture] public class CreateTest : BaseMockServerTest @@ -63,7 +63,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Labor.BreakTypes.CreateAsync( + var response = await Client.Default.Labor.BreakTypes.CreateAsync( new CreateBreakTypeRequest { IdempotencyKey = "PAD3NG5KSN2GL", diff --git a/src/Square.Test/Unit/MockServer/Labor/Shifts/CreateTest.cs b/src/Square.Test/Unit/MockServer/Default/Labor/CreateTest_.cs similarity index 95% rename from src/Square.Test/Unit/MockServer/Labor/Shifts/CreateTest.cs rename to src/Square.Test/Unit/MockServer/Default/Labor/CreateTest_.cs index e109ff6a..398fadb9 100644 --- a/src/Square.Test/Unit/MockServer/Labor/Shifts/CreateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Labor/CreateTest_.cs @@ -1,13 +1,13 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Labor.Shifts; +using Square.Default; +using Square.Default.Labor; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Labor.Shifts; +namespace Square.Test.Unit.MockServer.Default.Labor; [TestFixture] -public class CreateTest : BaseMockServerTest +public class CreateTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -112,7 +112,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Labor.Shifts.CreateAsync( + var response = await Client.Default.Labor.Shifts.CreateAsync( new CreateShiftRequest { IdempotencyKey = "HIDSNG5KS478L", diff --git a/src/Square.Test/Unit/MockServer/Labor/BreakTypes/DeleteTest.cs b/src/Square.Test/Unit/MockServer/Default/Labor/DeleteTest.cs similarity index 87% rename from src/Square.Test/Unit/MockServer/Labor/BreakTypes/DeleteTest.cs rename to src/Square.Test/Unit/MockServer/Default/Labor/DeleteTest.cs index 2fb82906..cf4346a6 100644 --- a/src/Square.Test/Unit/MockServer/Labor/BreakTypes/DeleteTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Labor/DeleteTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Labor.BreakTypes; +using Square.Default; +using Square.Default.Labor; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Labor.BreakTypes; +namespace Square.Test.Unit.MockServer.Default.Labor; [TestFixture] public class DeleteTest : BaseMockServerTest @@ -39,7 +39,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Labor.BreakTypes.DeleteAsync( + var response = await Client.Default.Labor.BreakTypes.DeleteAsync( new DeleteBreakTypesRequest { Id = "id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Labor/Shifts/DeleteTest.cs b/src/Square.Test/Unit/MockServer/Default/Labor/DeleteTest_.cs similarity index 79% rename from src/Square.Test/Unit/MockServer/Labor/Shifts/DeleteTest.cs rename to src/Square.Test/Unit/MockServer/Default/Labor/DeleteTest_.cs index f724f169..a88f006c 100644 --- a/src/Square.Test/Unit/MockServer/Labor/Shifts/DeleteTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Labor/DeleteTest_.cs @@ -1,13 +1,13 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Labor.Shifts; +using Square.Default; +using Square.Default.Labor; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Labor.Shifts; +namespace Square.Test.Unit.MockServer.Default.Labor; [TestFixture] -public class DeleteTest : BaseMockServerTest +public class DeleteTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -39,7 +39,9 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Labor.Shifts.DeleteAsync(new DeleteShiftsRequest { Id = "id" }); + var response = await Client.Default.Labor.Shifts.DeleteAsync( + new DeleteShiftsRequest { Id = "id" } + ); Assert.That( response, Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() diff --git a/src/Square.Test/Unit/MockServer/Labor/BreakTypes/GetTest.cs b/src/Square.Test/Unit/MockServer/Default/Labor/GetTest.cs similarity index 90% rename from src/Square.Test/Unit/MockServer/Labor/BreakTypes/GetTest.cs rename to src/Square.Test/Unit/MockServer/Default/Labor/GetTest.cs index 357d19a2..684b3deb 100644 --- a/src/Square.Test/Unit/MockServer/Labor/BreakTypes/GetTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Labor/GetTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Labor.BreakTypes; +using Square.Default; +using Square.Default.Labor; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Labor.BreakTypes; +namespace Square.Test.Unit.MockServer.Default.Labor; [TestFixture] public class GetTest : BaseMockServerTest @@ -49,7 +49,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Labor.BreakTypes.GetAsync( + var response = await Client.Default.Labor.BreakTypes.GetAsync( new GetBreakTypesRequest { Id = "id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Labor/WorkweekConfigs/GetTest.cs b/src/Square.Test/Unit/MockServer/Default/Labor/GetTest_.cs similarity index 90% rename from src/Square.Test/Unit/MockServer/Labor/WorkweekConfigs/GetTest.cs rename to src/Square.Test/Unit/MockServer/Default/Labor/GetTest_.cs index b409756f..123d3e43 100644 --- a/src/Square.Test/Unit/MockServer/Labor/WorkweekConfigs/GetTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Labor/GetTest_.cs @@ -1,13 +1,13 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Labor.WorkweekConfigs; +using Square.Default; +using Square.Default.Labor; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Labor.WorkweekConfigs; +namespace Square.Test.Unit.MockServer.Default.Labor; [TestFixture] -public class GetTest : BaseMockServerTest +public class GetTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -59,7 +59,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Labor.WorkweekConfigs.GetAsync( + var response = await Client.Default.Labor.WorkweekConfigs.GetAsync( new UpdateWorkweekConfigRequest { Id = "id", diff --git a/src/Square.Test/Unit/MockServer/Labor/BreakTypes/ListTest.cs b/src/Square.Test/Unit/MockServer/Default/Labor/ListTest.cs similarity index 94% rename from src/Square.Test/Unit/MockServer/Labor/BreakTypes/ListTest.cs rename to src/Square.Test/Unit/MockServer/Default/Labor/ListTest.cs index a92ac48d..ed7a662f 100644 --- a/src/Square.Test/Unit/MockServer/Labor/BreakTypes/ListTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Labor/ListTest.cs @@ -1,8 +1,8 @@ using NUnit.Framework; -using Square.Labor.BreakTypes; +using Square.Default.Labor; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Labor.BreakTypes; +namespace Square.Test.Unit.MockServer.Default.Labor; [TestFixture] public class ListTest : BaseMockServerTest @@ -63,7 +63,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var items = await Client.Labor.BreakTypes.ListAsync( + var items = await Client.Default.Labor.BreakTypes.ListAsync( new ListBreakTypesRequest { LocationId = "location_id", diff --git a/src/Square.Test/Unit/MockServer/Labor/WorkweekConfigs/ListTest.cs b/src/Square.Test/Unit/MockServer/Default/Labor/ListTest_.cs similarity index 89% rename from src/Square.Test/Unit/MockServer/Labor/WorkweekConfigs/ListTest.cs rename to src/Square.Test/Unit/MockServer/Default/Labor/ListTest_.cs index ef86f111..44aec044 100644 --- a/src/Square.Test/Unit/MockServer/Labor/WorkweekConfigs/ListTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Labor/ListTest_.cs @@ -1,11 +1,11 @@ using NUnit.Framework; -using Square.Labor.WorkweekConfigs; +using Square.Default.Labor; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Labor.WorkweekConfigs; +namespace Square.Test.Unit.MockServer.Default.Labor; [TestFixture] -public class ListTest : BaseMockServerTest +public class ListTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -50,7 +50,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var items = await Client.Labor.WorkweekConfigs.ListAsync( + var items = await Client.Default.Labor.WorkweekConfigs.ListAsync( new ListWorkweekConfigsRequest { Limit = 1, Cursor = "cursor" } ); await foreach (var item in items) diff --git a/src/Square.Test/Unit/MockServer/Labor/Shifts/SearchTest.cs b/src/Square.Test/Unit/MockServer/Default/Labor/SearchTest.cs similarity index 97% rename from src/Square.Test/Unit/MockServer/Labor/Shifts/SearchTest.cs rename to src/Square.Test/Unit/MockServer/Default/Labor/SearchTest.cs index 2d6aeaa3..03e163c2 100644 --- a/src/Square.Test/Unit/MockServer/Labor/Shifts/SearchTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Labor/SearchTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Labor.Shifts; +using Square.Default; +using Square.Default.Labor; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Labor.Shifts; +namespace Square.Test.Unit.MockServer.Default.Labor; [TestFixture] public class SearchTest : BaseMockServerTest @@ -145,7 +145,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Labor.Shifts.SearchAsync( + var response = await Client.Default.Labor.Shifts.SearchAsync( new SearchShiftsRequest { Query = new ShiftQuery diff --git a/src/Square.Test/Unit/MockServer/Labor/BreakTypes/UpdateTest.cs b/src/Square.Test/Unit/MockServer/Default/Labor/UpdateTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Labor/BreakTypes/UpdateTest.cs rename to src/Square.Test/Unit/MockServer/Default/Labor/UpdateTest.cs index 94e39105..2686b8cb 100644 --- a/src/Square.Test/Unit/MockServer/Labor/BreakTypes/UpdateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Labor/UpdateTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Labor.BreakTypes; +using Square.Default; +using Square.Default.Labor; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Labor.BreakTypes; +namespace Square.Test.Unit.MockServer.Default.Labor; [TestFixture] public class UpdateTest : BaseMockServerTest @@ -63,7 +63,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Labor.BreakTypes.UpdateAsync( + var response = await Client.Default.Labor.BreakTypes.UpdateAsync( new UpdateBreakTypeRequest { Id = "id", diff --git a/src/Square.Test/Unit/MockServer/Labor/Shifts/UpdateTest.cs b/src/Square.Test/Unit/MockServer/Default/Labor/UpdateTest_.cs similarity index 95% rename from src/Square.Test/Unit/MockServer/Labor/Shifts/UpdateTest.cs rename to src/Square.Test/Unit/MockServer/Default/Labor/UpdateTest_.cs index c3bc794c..5e9adf89 100644 --- a/src/Square.Test/Unit/MockServer/Labor/Shifts/UpdateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Labor/UpdateTest_.cs @@ -1,13 +1,13 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Labor.Shifts; +using Square.Default; +using Square.Default.Labor; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Labor.Shifts; +namespace Square.Test.Unit.MockServer.Default.Labor; [TestFixture] -public class UpdateTest : BaseMockServerTest +public class UpdateTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -113,7 +113,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Labor.Shifts.UpdateAsync( + var response = await Client.Default.Labor.Shifts.UpdateAsync( new UpdateShiftRequest { Id = "id", diff --git a/src/Square.Test/Unit/MockServer/GiftCards/LinkCustomerTest.cs b/src/Square.Test/Unit/MockServer/Default/LinkCustomerTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/GiftCards/LinkCustomerTest.cs rename to src/Square.Test/Unit/MockServer/Default/LinkCustomerTest.cs index e81e0c52..936a1d6a 100644 --- a/src/Square.Test/Unit/MockServer/GiftCards/LinkCustomerTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/LinkCustomerTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.GiftCards; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.GiftCards; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class LinkCustomerTest : BaseMockServerTest @@ -62,7 +61,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.GiftCards.LinkCustomerAsync( + var response = await Client.Default.GiftCards.LinkCustomerAsync( new LinkCustomerToGiftCardRequest { GiftCardId = "gift_card_id", diff --git a/src/Square.Test/Unit/MockServer/Payouts/ListEntriesTest.cs b/src/Square.Test/Unit/MockServer/Default/ListEntriesTest.cs similarity index 95% rename from src/Square.Test/Unit/MockServer/Payouts/ListEntriesTest.cs rename to src/Square.Test/Unit/MockServer/Default/ListEntriesTest.cs index 76edea36..60d1eaf2 100644 --- a/src/Square.Test/Unit/MockServer/Payouts/ListEntriesTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/ListEntriesTest.cs @@ -1,9 +1,8 @@ using NUnit.Framework; -using Square; -using Square.Payouts; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Payouts; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class ListEntriesTest : BaseMockServerTest @@ -81,7 +80,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var items = await Client.Payouts.ListEntriesAsync( + var items = await Client.Default.Payouts.ListEntriesAsync( new ListEntriesPayoutsRequest { PayoutId = "payout_id", diff --git a/src/Square.Test/Unit/MockServer/Events/ListEventTypesTest.cs b/src/Square.Test/Unit/MockServer/Default/ListEventTypesTest.cs similarity index 87% rename from src/Square.Test/Unit/MockServer/Events/ListEventTypesTest.cs rename to src/Square.Test/Unit/MockServer/Default/ListEventTypesTest.cs index 19af069a..7007cea1 100644 --- a/src/Square.Test/Unit/MockServer/Events/ListEventTypesTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/ListEventTypesTest.cs @@ -1,9 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Events; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class ListEventTypesTest : BaseMockServerTest @@ -49,8 +49,8 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Events.ListEventTypesAsync( - new Square.Events.ListEventTypesRequest { ApiVersion = "api_version" } + var response = await Client.Default.Events.ListEventTypesAsync( + new Square.Default.ListEventTypesRequest { ApiVersion = "api_version" } ); Assert.That( response, diff --git a/src/Square.Test/Unit/MockServer/Subscriptions/ListEventsTest.cs b/src/Square.Test/Unit/MockServer/Default/ListEventsTest.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/Subscriptions/ListEventsTest.cs rename to src/Square.Test/Unit/MockServer/Default/ListEventsTest.cs index a7314af4..7e8ba275 100644 --- a/src/Square.Test/Unit/MockServer/Subscriptions/ListEventsTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/ListEventsTest.cs @@ -1,8 +1,8 @@ using NUnit.Framework; -using Square.Subscriptions; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Subscriptions; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class ListEventsTest : BaseMockServerTest @@ -116,7 +116,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var items = await Client.Subscriptions.ListEventsAsync( + var items = await Client.Default.Subscriptions.ListEventsAsync( new ListEventsSubscriptionsRequest { SubscriptionId = "subscription_id", diff --git a/src/Square.Test/Unit/MockServer/Team/ListJobsTest.cs b/src/Square.Test/Unit/MockServer/Default/ListJobsTest.cs similarity index 90% rename from src/Square.Test/Unit/MockServer/Team/ListJobsTest.cs rename to src/Square.Test/Unit/MockServer/Default/ListJobsTest.cs index d756ab52..8b164f96 100644 --- a/src/Square.Test/Unit/MockServer/Team/ListJobsTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/ListJobsTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Team; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Team; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class ListJobsTest : BaseMockServerTest @@ -59,7 +58,9 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Team.ListJobsAsync(new ListJobsRequest { Cursor = "cursor" }); + var response = await Client.Default.Team.ListJobsAsync( + new ListJobsRequest { Cursor = "cursor" } + ); Assert.That( response, Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() diff --git a/src/Square.Test/Unit/MockServer/BankAccounts/ListTest.cs b/src/Square.Test/Unit/MockServer/Default/ListTest.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/BankAccounts/ListTest.cs rename to src/Square.Test/Unit/MockServer/Default/ListTest.cs index cb9cde65..492ebc51 100644 --- a/src/Square.Test/Unit/MockServer/BankAccounts/ListTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/ListTest.cs @@ -1,8 +1,8 @@ using NUnit.Framework; -using Square.BankAccounts; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.BankAccounts; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class ListTest : BaseMockServerTest @@ -84,7 +84,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var items = await Client.BankAccounts.ListAsync( + var items = await Client.Default.BankAccounts.ListAsync( new ListBankAccountsRequest { Cursor = "cursor", diff --git a/src/Square.Test/Unit/MockServer/Sites/ListTest.cs b/src/Square.Test/Unit/MockServer/Default/ListTest_.cs similarity index 90% rename from src/Square.Test/Unit/MockServer/Sites/ListTest.cs rename to src/Square.Test/Unit/MockServer/Default/ListTest_.cs index b9a264b3..ab34b1f8 100644 --- a/src/Square.Test/Unit/MockServer/Sites/ListTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/ListTest_.cs @@ -1,12 +1,12 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Sites; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] -public class ListTest : BaseMockServerTest +public class ListTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -51,7 +51,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Sites.ListAsync(); + var response = await Client.Default.Sites.ListAsync(); Assert.That( response, Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() diff --git a/src/Square.Test/Unit/MockServer/Locations/CustomAttributes/BatchDeleteTest.cs b/src/Square.Test/Unit/MockServer/Default/Locations/BatchDeleteTest.cs similarity index 94% rename from src/Square.Test/Unit/MockServer/Locations/CustomAttributes/BatchDeleteTest.cs rename to src/Square.Test/Unit/MockServer/Default/Locations/BatchDeleteTest.cs index 4cf99359..031a4f1e 100644 --- a/src/Square.Test/Unit/MockServer/Locations/CustomAttributes/BatchDeleteTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Locations/BatchDeleteTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Locations.CustomAttributes; +using Square.Default; +using Square.Default.Locations; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Locations.CustomAttributes; +namespace Square.Test.Unit.MockServer.Default.Locations; [TestFixture] public class BatchDeleteTest : BaseMockServerTest @@ -86,7 +86,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Locations.CustomAttributes.BatchDeleteAsync( + var response = await Client.Default.Locations.CustomAttributes.BatchDeleteAsync( new BulkDeleteLocationCustomAttributesRequest { Values = new Dictionary< diff --git a/src/Square.Test/Unit/MockServer/Locations/CustomAttributes/BatchUpsertTest.cs b/src/Square.Test/Unit/MockServer/Default/Locations/BatchUpsertTest.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/Locations/CustomAttributes/BatchUpsertTest.cs rename to src/Square.Test/Unit/MockServer/Default/Locations/BatchUpsertTest.cs index c9649f13..3feb4a82 100644 --- a/src/Square.Test/Unit/MockServer/Locations/CustomAttributes/BatchUpsertTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Locations/BatchUpsertTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Locations.CustomAttributes; +using Square.Default; +using Square.Default.Locations; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Locations.CustomAttributes; +namespace Square.Test.Unit.MockServer.Default.Locations; [TestFixture] public class BatchUpsertTest : BaseMockServerTest @@ -122,7 +122,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Locations.CustomAttributes.BatchUpsertAsync( + var response = await Client.Default.Locations.CustomAttributes.BatchUpsertAsync( new BulkUpsertLocationCustomAttributesRequest { Values = new Dictionary< diff --git a/src/Square.Test/Unit/MockServer/Locations/Transactions/CaptureTest.cs b/src/Square.Test/Unit/MockServer/Default/Locations/CaptureTest.cs similarity index 87% rename from src/Square.Test/Unit/MockServer/Locations/Transactions/CaptureTest.cs rename to src/Square.Test/Unit/MockServer/Default/Locations/CaptureTest.cs index adeede3b..39593eeb 100644 --- a/src/Square.Test/Unit/MockServer/Locations/Transactions/CaptureTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Locations/CaptureTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Locations.Transactions; +using Square.Default; +using Square.Default.Locations; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Locations.Transactions; +namespace Square.Test.Unit.MockServer.Default.Locations; [TestFixture] public class CaptureTest : BaseMockServerTest @@ -39,7 +39,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Locations.Transactions.CaptureAsync( + var response = await Client.Default.Locations.Transactions.CaptureAsync( new CaptureTransactionsRequest { LocationId = "location_id", diff --git a/src/Square.Test/Unit/MockServer/Locations/CustomAttributeDefinitions/CreateTest.cs b/src/Square.Test/Unit/MockServer/Default/Locations/CreateTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Locations/CustomAttributeDefinitions/CreateTest.cs rename to src/Square.Test/Unit/MockServer/Default/Locations/CreateTest.cs index 1b63df0c..40236a1d 100644 --- a/src/Square.Test/Unit/MockServer/Locations/CustomAttributeDefinitions/CreateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Locations/CreateTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Locations.CustomAttributeDefinitions; +using Square.Default; +using Square.Default.Locations; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Locations.CustomAttributeDefinitions; +namespace Square.Test.Unit.MockServer.Default.Locations; [TestFixture] public class CreateTest : BaseMockServerTest @@ -67,7 +67,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Locations.CustomAttributeDefinitions.CreateAsync( + var response = await Client.Default.Locations.CustomAttributeDefinitions.CreateAsync( new CreateLocationCustomAttributeDefinitionRequest { CustomAttributeDefinition = new CustomAttributeDefinition diff --git a/src/Square.Test/Unit/MockServer/Locations/CustomAttributeDefinitions/DeleteTest.cs b/src/Square.Test/Unit/MockServer/Default/Locations/DeleteTest.cs similarity index 79% rename from src/Square.Test/Unit/MockServer/Locations/CustomAttributeDefinitions/DeleteTest.cs rename to src/Square.Test/Unit/MockServer/Default/Locations/DeleteTest.cs index 1deb6e60..ac4fc911 100644 --- a/src/Square.Test/Unit/MockServer/Locations/CustomAttributeDefinitions/DeleteTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Locations/DeleteTest.cs @@ -1,9 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Locations.CustomAttributeDefinitions; +namespace Square.Test.Unit.MockServer.Default.Locations; [TestFixture] public class DeleteTest : BaseMockServerTest @@ -38,11 +38,8 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Locations.CustomAttributeDefinitions.DeleteAsync( - new Square.Locations.CustomAttributeDefinitions.DeleteCustomAttributeDefinitionsRequest - { - Key = "key", - } + var response = await Client.Default.Locations.CustomAttributeDefinitions.DeleteAsync( + new Square.Default.Locations.DeleteCustomAttributeDefinitionsRequest { Key = "key" } ); Assert.That( response, diff --git a/src/Square.Test/Unit/MockServer/Locations/CustomAttributes/DeleteTest.cs b/src/Square.Test/Unit/MockServer/Default/Locations/DeleteTest_.cs similarity index 81% rename from src/Square.Test/Unit/MockServer/Locations/CustomAttributes/DeleteTest.cs rename to src/Square.Test/Unit/MockServer/Default/Locations/DeleteTest_.cs index 540548b8..894a291e 100644 --- a/src/Square.Test/Unit/MockServer/Locations/CustomAttributes/DeleteTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Locations/DeleteTest_.cs @@ -1,12 +1,12 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Locations.CustomAttributes; +namespace Square.Test.Unit.MockServer.Default.Locations; [TestFixture] -public class DeleteTest : BaseMockServerTest +public class DeleteTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -38,8 +38,8 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Locations.CustomAttributes.DeleteAsync( - new Square.Locations.CustomAttributes.DeleteCustomAttributesRequest + var response = await Client.Default.Locations.CustomAttributes.DeleteAsync( + new Square.Default.Locations.DeleteCustomAttributesRequest { LocationId = "location_id", Key = "key", diff --git a/src/Square.Test/Unit/MockServer/Locations/CustomAttributeDefinitions/GetTest.cs b/src/Square.Test/Unit/MockServer/Default/Locations/GetTest.cs similarity index 88% rename from src/Square.Test/Unit/MockServer/Locations/CustomAttributeDefinitions/GetTest.cs rename to src/Square.Test/Unit/MockServer/Default/Locations/GetTest.cs index c486aa41..c6855266 100644 --- a/src/Square.Test/Unit/MockServer/Locations/CustomAttributeDefinitions/GetTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Locations/GetTest.cs @@ -1,9 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Locations.CustomAttributeDefinitions; +namespace Square.Test.Unit.MockServer.Default.Locations; [TestFixture] public class GetTest : BaseMockServerTest @@ -51,8 +51,8 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Locations.CustomAttributeDefinitions.GetAsync( - new Square.Locations.CustomAttributeDefinitions.GetCustomAttributeDefinitionsRequest + var response = await Client.Default.Locations.CustomAttributeDefinitions.GetAsync( + new Square.Default.Locations.GetCustomAttributeDefinitionsRequest { Key = "key", Version = 1, diff --git a/src/Square.Test/Unit/MockServer/Locations/Transactions/GetTest.cs b/src/Square.Test/Unit/MockServer/Default/Locations/GetTest_.cs similarity index 94% rename from src/Square.Test/Unit/MockServer/Locations/Transactions/GetTest.cs rename to src/Square.Test/Unit/MockServer/Default/Locations/GetTest_.cs index 6167f15a..de1b6b17 100644 --- a/src/Square.Test/Unit/MockServer/Locations/Transactions/GetTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Locations/GetTest_.cs @@ -1,13 +1,13 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Locations.Transactions; +using Square.Default; +using Square.Default.Locations; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Locations.Transactions; +namespace Square.Test.Unit.MockServer.Default.Locations; [TestFixture] -public class GetTest : BaseMockServerTest +public class GetTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -109,7 +109,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Locations.Transactions.GetAsync( + var response = await Client.Default.Locations.Transactions.GetAsync( new GetTransactionsRequest { LocationId = "location_id", diff --git a/src/Square.Test/Unit/MockServer/Locations/CustomAttributeDefinitions/ListTest.cs b/src/Square.Test/Unit/MockServer/Default/Locations/ListTest.cs similarity index 91% rename from src/Square.Test/Unit/MockServer/Locations/CustomAttributeDefinitions/ListTest.cs rename to src/Square.Test/Unit/MockServer/Default/Locations/ListTest.cs index 28b104c4..6f287360 100644 --- a/src/Square.Test/Unit/MockServer/Locations/CustomAttributeDefinitions/ListTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Locations/ListTest.cs @@ -1,8 +1,8 @@ using NUnit.Framework; -using Square; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Locations.CustomAttributeDefinitions; +namespace Square.Test.Unit.MockServer.Default.Locations; [TestFixture] public class ListTest : BaseMockServerTest @@ -67,8 +67,8 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var items = await Client.Locations.CustomAttributeDefinitions.ListAsync( - new Square.Locations.CustomAttributeDefinitions.ListCustomAttributeDefinitionsRequest + var items = await Client.Default.Locations.CustomAttributeDefinitions.ListAsync( + new Square.Default.Locations.ListCustomAttributeDefinitionsRequest { VisibilityFilter = VisibilityFilter.All, Limit = 1, diff --git a/src/Square.Test/Unit/MockServer/Locations/Transactions/ListTest.cs b/src/Square.Test/Unit/MockServer/Default/Locations/ListTest_.cs similarity index 95% rename from src/Square.Test/Unit/MockServer/Locations/Transactions/ListTest.cs rename to src/Square.Test/Unit/MockServer/Default/Locations/ListTest_.cs index ae6e6d96..a854e04f 100644 --- a/src/Square.Test/Unit/MockServer/Locations/Transactions/ListTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Locations/ListTest_.cs @@ -1,13 +1,13 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Locations.Transactions; +using Square.Default; +using Square.Default.Locations; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Locations.Transactions; +namespace Square.Test.Unit.MockServer.Default.Locations; [TestFixture] -public class ListTest : BaseMockServerTest +public class ListTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -120,7 +120,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Locations.Transactions.ListAsync( + var response = await Client.Default.Locations.Transactions.ListAsync( new ListTransactionsRequest { LocationId = "location_id", diff --git a/src/Square.Test/Unit/MockServer/Locations/CustomAttributeDefinitions/UpdateTest.cs b/src/Square.Test/Unit/MockServer/Default/Locations/UpdateTest.cs similarity index 92% rename from src/Square.Test/Unit/MockServer/Locations/CustomAttributeDefinitions/UpdateTest.cs rename to src/Square.Test/Unit/MockServer/Default/Locations/UpdateTest.cs index bc87741d..4f9d95c9 100644 --- a/src/Square.Test/Unit/MockServer/Locations/CustomAttributeDefinitions/UpdateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Locations/UpdateTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Locations.CustomAttributeDefinitions; +using Square.Default; +using Square.Default.Locations; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Locations.CustomAttributeDefinitions; +namespace Square.Test.Unit.MockServer.Default.Locations; [TestFixture] public class UpdateTest : BaseMockServerTest @@ -62,7 +62,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Locations.CustomAttributeDefinitions.UpdateAsync( + var response = await Client.Default.Locations.CustomAttributeDefinitions.UpdateAsync( new UpdateLocationCustomAttributeDefinitionRequest { Key = "key", diff --git a/src/Square.Test/Unit/MockServer/Locations/CustomAttributes/UpsertTest.cs b/src/Square.Test/Unit/MockServer/Default/Locations/UpsertTest.cs similarity index 92% rename from src/Square.Test/Unit/MockServer/Locations/CustomAttributes/UpsertTest.cs rename to src/Square.Test/Unit/MockServer/Default/Locations/UpsertTest.cs index d1815090..2a279818 100644 --- a/src/Square.Test/Unit/MockServer/Locations/CustomAttributes/UpsertTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Locations/UpsertTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Locations.CustomAttributes; +using Square.Default; +using Square.Default.Locations; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Locations.CustomAttributes; +namespace Square.Test.Unit.MockServer.Default.Locations; [TestFixture] public class UpsertTest : BaseMockServerTest @@ -69,7 +69,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Locations.CustomAttributes.UpsertAsync( + var response = await Client.Default.Locations.CustomAttributes.UpsertAsync( new UpsertLocationCustomAttributeRequest { LocationId = "location_id", diff --git a/src/Square.Test/Unit/MockServer/Locations/Transactions/VoidTest.cs b/src/Square.Test/Unit/MockServer/Default/Locations/VoidTest.cs similarity index 87% rename from src/Square.Test/Unit/MockServer/Locations/Transactions/VoidTest.cs rename to src/Square.Test/Unit/MockServer/Default/Locations/VoidTest.cs index 0a167fc6..14fc4ed7 100644 --- a/src/Square.Test/Unit/MockServer/Locations/Transactions/VoidTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Locations/VoidTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Locations.Transactions; +using Square.Default; +using Square.Default.Locations; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Locations.Transactions; +namespace Square.Test.Unit.MockServer.Default.Locations; [TestFixture] public class VoidTest : BaseMockServerTest @@ -39,7 +39,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Locations.Transactions.VoidAsync( + var response = await Client.Default.Locations.Transactions.VoidAsync( new VoidTransactionsRequest { LocationId = "location_id", diff --git a/src/Square.Test/Unit/MockServer/Loyalty/Accounts/AccumulatePointsTest.cs b/src/Square.Test/Unit/MockServer/Default/Loyalty/AccumulatePointsTest.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/Loyalty/Accounts/AccumulatePointsTest.cs rename to src/Square.Test/Unit/MockServer/Default/Loyalty/AccumulatePointsTest.cs index 6ef52244..e9f3b567 100644 --- a/src/Square.Test/Unit/MockServer/Loyalty/Accounts/AccumulatePointsTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Loyalty/AccumulatePointsTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Loyalty.Accounts; +using Square.Default; +using Square.Default.Loyalty; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Loyalty.Accounts; +namespace Square.Test.Unit.MockServer.Default.Loyalty; [TestFixture] public class AccumulatePointsTest : BaseMockServerTest @@ -122,7 +122,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Loyalty.Accounts.AccumulatePointsAsync( + var response = await Client.Default.Loyalty.Accounts.AccumulatePointsAsync( new AccumulateLoyaltyPointsRequest { AccountId = "account_id", diff --git a/src/Square.Test/Unit/MockServer/Loyalty/Accounts/AdjustTest.cs b/src/Square.Test/Unit/MockServer/Default/Loyalty/AdjustTest.cs similarity index 95% rename from src/Square.Test/Unit/MockServer/Loyalty/Accounts/AdjustTest.cs rename to src/Square.Test/Unit/MockServer/Default/Loyalty/AdjustTest.cs index 70eb3f4b..c9f19083 100644 --- a/src/Square.Test/Unit/MockServer/Loyalty/Accounts/AdjustTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Loyalty/AdjustTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Loyalty.Accounts; +using Square.Default; +using Square.Default.Loyalty; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Loyalty.Accounts; +namespace Square.Test.Unit.MockServer.Default.Loyalty; [TestFixture] public class AdjustTest : BaseMockServerTest @@ -98,7 +98,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Loyalty.Accounts.AdjustAsync( + var response = await Client.Default.Loyalty.Accounts.AdjustAsync( new AdjustLoyaltyPointsRequest { AccountId = "account_id", diff --git a/src/Square.Test/Unit/MockServer/Loyalty/Programs/CalculateTest.cs b/src/Square.Test/Unit/MockServer/Default/Loyalty/CalculateTest.cs similarity index 90% rename from src/Square.Test/Unit/MockServer/Loyalty/Programs/CalculateTest.cs rename to src/Square.Test/Unit/MockServer/Default/Loyalty/CalculateTest.cs index 26341577..ff37a8ab 100644 --- a/src/Square.Test/Unit/MockServer/Loyalty/Programs/CalculateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Loyalty/CalculateTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Loyalty.Programs; +using Square.Default; +using Square.Default.Loyalty; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Loyalty.Programs; +namespace Square.Test.Unit.MockServer.Default.Loyalty; [TestFixture] public class CalculateTest : BaseMockServerTest @@ -50,7 +50,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Loyalty.Programs.CalculateAsync( + var response = await Client.Default.Loyalty.Programs.CalculateAsync( new CalculateLoyaltyPointsRequest { ProgramId = "program_id", diff --git a/src/Square.Test/Unit/MockServer/Loyalty/Accounts/CreateTest.cs b/src/Square.Test/Unit/MockServer/Default/Loyalty/CreateTest.cs similarity index 94% rename from src/Square.Test/Unit/MockServer/Loyalty/Accounts/CreateTest.cs rename to src/Square.Test/Unit/MockServer/Default/Loyalty/CreateTest.cs index 7e401587..7ea26e78 100644 --- a/src/Square.Test/Unit/MockServer/Loyalty/Accounts/CreateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Loyalty/CreateTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Loyalty.Accounts; +using Square.Default; +using Square.Default.Loyalty; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Loyalty.Accounts; +namespace Square.Test.Unit.MockServer.Default.Loyalty; [TestFixture] public class CreateTest : BaseMockServerTest @@ -74,7 +74,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Loyalty.Accounts.CreateAsync( + var response = await Client.Default.Loyalty.Accounts.CreateAsync( new CreateLoyaltyAccountRequest { LoyaltyAccount = new LoyaltyAccount diff --git a/src/Square.Test/Unit/MockServer/Loyalty/Rewards/CreateTest.cs b/src/Square.Test/Unit/MockServer/Default/Loyalty/CreateTest_.cs similarity index 92% rename from src/Square.Test/Unit/MockServer/Loyalty/Rewards/CreateTest.cs rename to src/Square.Test/Unit/MockServer/Default/Loyalty/CreateTest_.cs index 8c8c0b41..b1915f69 100644 --- a/src/Square.Test/Unit/MockServer/Loyalty/Rewards/CreateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Loyalty/CreateTest_.cs @@ -1,13 +1,13 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Loyalty.Rewards; +using Square.Default; +using Square.Default.Loyalty; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Loyalty.Rewards; +namespace Square.Test.Unit.MockServer.Default.Loyalty; [TestFixture] -public class CreateTest : BaseMockServerTest +public class CreateTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -63,7 +63,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Loyalty.Rewards.CreateAsync( + var response = await Client.Default.Loyalty.Rewards.CreateAsync( new CreateLoyaltyRewardRequest { Reward = new LoyaltyReward diff --git a/src/Square.Test/Unit/MockServer/Loyalty/Rewards/DeleteTest.cs b/src/Square.Test/Unit/MockServer/Default/Loyalty/DeleteTest.cs similarity index 87% rename from src/Square.Test/Unit/MockServer/Loyalty/Rewards/DeleteTest.cs rename to src/Square.Test/Unit/MockServer/Default/Loyalty/DeleteTest.cs index f52e709f..b74c18fa 100644 --- a/src/Square.Test/Unit/MockServer/Loyalty/Rewards/DeleteTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Loyalty/DeleteTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Loyalty.Rewards; +using Square.Default; +using Square.Default.Loyalty; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Loyalty.Rewards; +namespace Square.Test.Unit.MockServer.Default.Loyalty; [TestFixture] public class DeleteTest : BaseMockServerTest @@ -39,7 +39,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Loyalty.Rewards.DeleteAsync( + var response = await Client.Default.Loyalty.Rewards.DeleteAsync( new DeleteRewardsRequest { RewardId = "reward_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Loyalty/Accounts/GetTest.cs b/src/Square.Test/Unit/MockServer/Default/Loyalty/GetTest.cs similarity index 92% rename from src/Square.Test/Unit/MockServer/Loyalty/Accounts/GetTest.cs rename to src/Square.Test/Unit/MockServer/Default/Loyalty/GetTest.cs index ff20fd33..6fdab8e5 100644 --- a/src/Square.Test/Unit/MockServer/Loyalty/Accounts/GetTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Loyalty/GetTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Loyalty.Accounts; +using Square.Default; +using Square.Default.Loyalty; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Loyalty.Accounts; +namespace Square.Test.Unit.MockServer.Default.Loyalty; [TestFixture] public class GetTest : BaseMockServerTest @@ -60,7 +60,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Loyalty.Accounts.GetAsync( + var response = await Client.Default.Loyalty.Accounts.GetAsync( new GetAccountsRequest { AccountId = "account_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Loyalty/Rewards/GetTest.cs b/src/Square.Test/Unit/MockServer/Default/Loyalty/GetTest_.cs similarity index 88% rename from src/Square.Test/Unit/MockServer/Loyalty/Rewards/GetTest.cs rename to src/Square.Test/Unit/MockServer/Default/Loyalty/GetTest_.cs index 9f6880e0..26bf3ae7 100644 --- a/src/Square.Test/Unit/MockServer/Loyalty/Rewards/GetTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Loyalty/GetTest_.cs @@ -1,13 +1,13 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Loyalty.Rewards; +using Square.Default; +using Square.Default.Loyalty; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Loyalty.Rewards; +namespace Square.Test.Unit.MockServer.Default.Loyalty; [TestFixture] -public class GetTest : BaseMockServerTest +public class GetTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -50,7 +50,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Loyalty.Rewards.GetAsync( + var response = await Client.Default.Loyalty.Rewards.GetAsync( new GetRewardsRequest { RewardId = "reward_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Loyalty/Programs/ListTest.cs b/src/Square.Test/Unit/MockServer/Default/Loyalty/ListTest.cs similarity index 95% rename from src/Square.Test/Unit/MockServer/Loyalty/Programs/ListTest.cs rename to src/Square.Test/Unit/MockServer/Default/Loyalty/ListTest.cs index 488da3bd..90ad51d9 100644 --- a/src/Square.Test/Unit/MockServer/Loyalty/Programs/ListTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Loyalty/ListTest.cs @@ -1,9 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Loyalty.Programs; +namespace Square.Test.Unit.MockServer.Default.Loyalty; [TestFixture] public class ListTest : BaseMockServerTest @@ -89,7 +89,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Loyalty.Programs.ListAsync(); + var response = await Client.Default.Loyalty.Programs.ListAsync(); Assert.That( response, Is.EqualTo(JsonUtils.Deserialize(mockResponse)) diff --git a/src/Square.Test/Unit/MockServer/Loyalty/Programs/Promotions/CancelTest.cs b/src/Square.Test/Unit/MockServer/Default/Loyalty/Programs/CancelTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Loyalty/Programs/Promotions/CancelTest.cs rename to src/Square.Test/Unit/MockServer/Default/Loyalty/Programs/CancelTest.cs index c7e21e75..d1bec164 100644 --- a/src/Square.Test/Unit/MockServer/Loyalty/Programs/Promotions/CancelTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Loyalty/Programs/CancelTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Loyalty.Programs.Promotions; +using Square.Default; +using Square.Default.Loyalty.Programs; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Loyalty.Programs.Promotions; +namespace Square.Test.Unit.MockServer.Default.Loyalty.Programs; [TestFixture] public class CancelTest : BaseMockServerTest @@ -79,7 +79,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Loyalty.Programs.Promotions.CancelAsync( + var response = await Client.Default.Loyalty.Programs.Promotions.CancelAsync( new CancelPromotionsRequest { ProgramId = "program_id", PromotionId = "promotion_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Loyalty/Programs/Promotions/CreateTest.cs b/src/Square.Test/Unit/MockServer/Default/Loyalty/Programs/CreateTest.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/Loyalty/Programs/Promotions/CreateTest.cs rename to src/Square.Test/Unit/MockServer/Default/Loyalty/Programs/CreateTest.cs index 970cd5ab..12e65fd5 100644 --- a/src/Square.Test/Unit/MockServer/Loyalty/Programs/Promotions/CreateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Loyalty/Programs/CreateTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Loyalty.Programs.Promotions; +using Square.Default; +using Square.Default.Loyalty.Programs; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Loyalty.Programs.Promotions; +namespace Square.Test.Unit.MockServer.Default.Loyalty.Programs; [TestFixture] public class CreateTest : BaseMockServerTest @@ -112,7 +112,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Loyalty.Programs.Promotions.CreateAsync( + var response = await Client.Default.Loyalty.Programs.Promotions.CreateAsync( new CreateLoyaltyPromotionRequest { ProgramId = "program_id", diff --git a/src/Square.Test/Unit/MockServer/Loyalty/Programs/Promotions/GetTest.cs b/src/Square.Test/Unit/MockServer/Default/Loyalty/Programs/GetTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Loyalty/Programs/Promotions/GetTest.cs rename to src/Square.Test/Unit/MockServer/Default/Loyalty/Programs/GetTest.cs index c2ffd13b..2e9b8a60 100644 --- a/src/Square.Test/Unit/MockServer/Loyalty/Programs/Promotions/GetTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Loyalty/Programs/GetTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Loyalty.Programs.Promotions; +using Square.Default; +using Square.Default.Loyalty.Programs; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Loyalty.Programs.Promotions; +namespace Square.Test.Unit.MockServer.Default.Loyalty.Programs; [TestFixture] public class GetTest : BaseMockServerTest @@ -80,7 +80,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Loyalty.Programs.Promotions.GetAsync( + var response = await Client.Default.Loyalty.Programs.Promotions.GetAsync( new GetPromotionsRequest { ProgramId = "program_id", PromotionId = "promotion_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Loyalty/Programs/Promotions/ListTest.cs b/src/Square.Test/Unit/MockServer/Default/Loyalty/Programs/ListTest.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/Loyalty/Programs/Promotions/ListTest.cs rename to src/Square.Test/Unit/MockServer/Default/Loyalty/Programs/ListTest.cs index e47b1b54..ec0a63f6 100644 --- a/src/Square.Test/Unit/MockServer/Loyalty/Programs/Promotions/ListTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Loyalty/Programs/ListTest.cs @@ -1,9 +1,9 @@ using NUnit.Framework; -using Square; -using Square.Loyalty.Programs.Promotions; +using Square.Default; +using Square.Default.Loyalty.Programs; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Loyalty.Programs.Promotions; +namespace Square.Test.Unit.MockServer.Default.Loyalty.Programs; [TestFixture] public class ListTest : BaseMockServerTest @@ -118,7 +118,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var items = await Client.Loyalty.Programs.Promotions.ListAsync( + var items = await Client.Default.Loyalty.Programs.Promotions.ListAsync( new ListPromotionsRequest { ProgramId = "program_id", diff --git a/src/Square.Test/Unit/MockServer/Loyalty/Rewards/RedeemTest.cs b/src/Square.Test/Unit/MockServer/Default/Loyalty/RedeemTest.cs similarity index 95% rename from src/Square.Test/Unit/MockServer/Loyalty/Rewards/RedeemTest.cs rename to src/Square.Test/Unit/MockServer/Default/Loyalty/RedeemTest.cs index 9161f1b7..292fb38d 100644 --- a/src/Square.Test/Unit/MockServer/Loyalty/Rewards/RedeemTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Loyalty/RedeemTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Loyalty.Rewards; +using Square.Default; +using Square.Default.Loyalty; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Loyalty.Rewards; +namespace Square.Test.Unit.MockServer.Default.Loyalty; [TestFixture] public class RedeemTest : BaseMockServerTest @@ -95,7 +95,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Loyalty.Rewards.RedeemAsync( + var response = await Client.Default.Loyalty.Rewards.RedeemAsync( new RedeemLoyaltyRewardRequest { RewardId = "reward_id", diff --git a/src/Square.Test/Unit/MockServer/Loyalty/Accounts/SearchTest.cs b/src/Square.Test/Unit/MockServer/Default/Loyalty/SearchTest.cs similarity index 94% rename from src/Square.Test/Unit/MockServer/Loyalty/Accounts/SearchTest.cs rename to src/Square.Test/Unit/MockServer/Default/Loyalty/SearchTest.cs index fbe18698..68149ae4 100644 --- a/src/Square.Test/Unit/MockServer/Loyalty/Accounts/SearchTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Loyalty/SearchTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Loyalty.Accounts; +using Square.Default; +using Square.Default.Loyalty; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Loyalty.Accounts; +namespace Square.Test.Unit.MockServer.Default.Loyalty; [TestFixture] public class SearchTest : BaseMockServerTest @@ -78,7 +78,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Loyalty.Accounts.SearchAsync( + var response = await Client.Default.Loyalty.Accounts.SearchAsync( new SearchLoyaltyAccountsRequest { Query = new SearchLoyaltyAccountsRequestLoyaltyAccountQuery diff --git a/src/Square.Test/Unit/MockServer/Loyalty/Rewards/SearchTest.cs b/src/Square.Test/Unit/MockServer/Default/Loyalty/SearchTest_.cs similarity index 94% rename from src/Square.Test/Unit/MockServer/Loyalty/Rewards/SearchTest.cs rename to src/Square.Test/Unit/MockServer/Default/Loyalty/SearchTest_.cs index 25e8fd63..6a60fb5d 100644 --- a/src/Square.Test/Unit/MockServer/Loyalty/Rewards/SearchTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Loyalty/SearchTest_.cs @@ -1,13 +1,13 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Loyalty.Rewards; +using Square.Default; +using Square.Default.Loyalty; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Loyalty.Rewards; +namespace Square.Test.Unit.MockServer.Default.Loyalty; [TestFixture] -public class SearchTest : BaseMockServerTest +public class SearchTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -97,7 +97,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Loyalty.Rewards.SearchAsync( + var response = await Client.Default.Loyalty.Rewards.SearchAsync( new SearchLoyaltyRewardsRequest { Query = new SearchLoyaltyRewardsRequestLoyaltyRewardQuery diff --git a/src/Square.Test/Unit/MockServer/Merchants/CustomAttributes/BatchDeleteTest.cs b/src/Square.Test/Unit/MockServer/Default/Merchants/BatchDeleteTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Merchants/CustomAttributes/BatchDeleteTest.cs rename to src/Square.Test/Unit/MockServer/Default/Merchants/BatchDeleteTest.cs index 1c58f17c..967b3732 100644 --- a/src/Square.Test/Unit/MockServer/Merchants/CustomAttributes/BatchDeleteTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Merchants/BatchDeleteTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Merchants.CustomAttributes; +using Square.Default; +using Square.Default.Merchants; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Merchants.CustomAttributes; +namespace Square.Test.Unit.MockServer.Default.Merchants; [TestFixture] public class BatchDeleteTest : BaseMockServerTest @@ -72,7 +72,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Merchants.CustomAttributes.BatchDeleteAsync( + var response = await Client.Default.Merchants.CustomAttributes.BatchDeleteAsync( new BulkDeleteMerchantCustomAttributesRequest { Values = new Dictionary< diff --git a/src/Square.Test/Unit/MockServer/Merchants/CustomAttributes/BatchUpsertTest.cs b/src/Square.Test/Unit/MockServer/Default/Merchants/BatchUpsertTest.cs similarity index 95% rename from src/Square.Test/Unit/MockServer/Merchants/CustomAttributes/BatchUpsertTest.cs rename to src/Square.Test/Unit/MockServer/Default/Merchants/BatchUpsertTest.cs index 81a461d3..02ce98c0 100644 --- a/src/Square.Test/Unit/MockServer/Merchants/CustomAttributes/BatchUpsertTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Merchants/BatchUpsertTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Merchants.CustomAttributes; +using Square.Default; +using Square.Default.Merchants; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Merchants.CustomAttributes; +namespace Square.Test.Unit.MockServer.Default.Merchants; [TestFixture] public class BatchUpsertTest : BaseMockServerTest @@ -98,7 +98,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Merchants.CustomAttributes.BatchUpsertAsync( + var response = await Client.Default.Merchants.CustomAttributes.BatchUpsertAsync( new BulkUpsertMerchantCustomAttributesRequest { Values = new Dictionary< diff --git a/src/Square.Test/Unit/MockServer/Merchants/CustomAttributeDefinitions/CreateTest.cs b/src/Square.Test/Unit/MockServer/Default/Merchants/CreateTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Merchants/CustomAttributeDefinitions/CreateTest.cs rename to src/Square.Test/Unit/MockServer/Default/Merchants/CreateTest.cs index 1b42df0c..1b19b15f 100644 --- a/src/Square.Test/Unit/MockServer/Merchants/CustomAttributeDefinitions/CreateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Merchants/CreateTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Merchants.CustomAttributeDefinitions; +using Square.Default; +using Square.Default.Merchants; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Merchants.CustomAttributeDefinitions; +namespace Square.Test.Unit.MockServer.Default.Merchants; [TestFixture] public class CreateTest : BaseMockServerTest @@ -67,7 +67,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Merchants.CustomAttributeDefinitions.CreateAsync( + var response = await Client.Default.Merchants.CustomAttributeDefinitions.CreateAsync( new CreateMerchantCustomAttributeDefinitionRequest { CustomAttributeDefinition = new CustomAttributeDefinition diff --git a/src/Square.Test/Unit/MockServer/Merchants/CustomAttributeDefinitions/DeleteTest.cs b/src/Square.Test/Unit/MockServer/Default/Merchants/DeleteTest.cs similarity index 79% rename from src/Square.Test/Unit/MockServer/Merchants/CustomAttributeDefinitions/DeleteTest.cs rename to src/Square.Test/Unit/MockServer/Default/Merchants/DeleteTest.cs index edf3cd0c..cc55873b 100644 --- a/src/Square.Test/Unit/MockServer/Merchants/CustomAttributeDefinitions/DeleteTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Merchants/DeleteTest.cs @@ -1,9 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Merchants.CustomAttributeDefinitions; +namespace Square.Test.Unit.MockServer.Default.Merchants; [TestFixture] public class DeleteTest : BaseMockServerTest @@ -38,11 +38,8 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Merchants.CustomAttributeDefinitions.DeleteAsync( - new Square.Merchants.CustomAttributeDefinitions.DeleteCustomAttributeDefinitionsRequest - { - Key = "key", - } + var response = await Client.Default.Merchants.CustomAttributeDefinitions.DeleteAsync( + new Square.Default.Merchants.DeleteCustomAttributeDefinitionsRequest { Key = "key" } ); Assert.That( response, diff --git a/src/Square.Test/Unit/MockServer/Merchants/CustomAttributes/DeleteTest.cs b/src/Square.Test/Unit/MockServer/Default/Merchants/DeleteTest_.cs similarity index 81% rename from src/Square.Test/Unit/MockServer/Merchants/CustomAttributes/DeleteTest.cs rename to src/Square.Test/Unit/MockServer/Default/Merchants/DeleteTest_.cs index d9742968..d2c324cf 100644 --- a/src/Square.Test/Unit/MockServer/Merchants/CustomAttributes/DeleteTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Merchants/DeleteTest_.cs @@ -1,12 +1,12 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Merchants.CustomAttributes; +namespace Square.Test.Unit.MockServer.Default.Merchants; [TestFixture] -public class DeleteTest : BaseMockServerTest +public class DeleteTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -38,8 +38,8 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Merchants.CustomAttributes.DeleteAsync( - new Square.Merchants.CustomAttributes.DeleteCustomAttributesRequest + var response = await Client.Default.Merchants.CustomAttributes.DeleteAsync( + new Square.Default.Merchants.DeleteCustomAttributesRequest { MerchantId = "merchant_id", Key = "key", diff --git a/src/Square.Test/Unit/MockServer/Merchants/CustomAttributeDefinitions/GetTest.cs b/src/Square.Test/Unit/MockServer/Default/Merchants/GetTest.cs similarity index 88% rename from src/Square.Test/Unit/MockServer/Merchants/CustomAttributeDefinitions/GetTest.cs rename to src/Square.Test/Unit/MockServer/Default/Merchants/GetTest.cs index 31909328..97142550 100644 --- a/src/Square.Test/Unit/MockServer/Merchants/CustomAttributeDefinitions/GetTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Merchants/GetTest.cs @@ -1,9 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Merchants.CustomAttributeDefinitions; +namespace Square.Test.Unit.MockServer.Default.Merchants; [TestFixture] public class GetTest : BaseMockServerTest @@ -51,8 +51,8 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Merchants.CustomAttributeDefinitions.GetAsync( - new Square.Merchants.CustomAttributeDefinitions.GetCustomAttributeDefinitionsRequest + var response = await Client.Default.Merchants.CustomAttributeDefinitions.GetAsync( + new Square.Default.Merchants.GetCustomAttributeDefinitionsRequest { Key = "key", Version = 1, diff --git a/src/Square.Test/Unit/MockServer/Merchants/CustomAttributes/GetTest.cs b/src/Square.Test/Unit/MockServer/Default/Merchants/GetTest_.cs similarity index 88% rename from src/Square.Test/Unit/MockServer/Merchants/CustomAttributes/GetTest.cs rename to src/Square.Test/Unit/MockServer/Default/Merchants/GetTest_.cs index 51375141..b4c2100d 100644 --- a/src/Square.Test/Unit/MockServer/Merchants/CustomAttributes/GetTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Merchants/GetTest_.cs @@ -1,12 +1,12 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Merchants.CustomAttributes; +namespace Square.Test.Unit.MockServer.Default.Merchants; [TestFixture] -public class GetTest : BaseMockServerTest +public class GetTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -59,8 +59,8 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Merchants.CustomAttributes.GetAsync( - new Square.Merchants.CustomAttributes.GetCustomAttributesRequest + var response = await Client.Default.Merchants.CustomAttributes.GetAsync( + new Square.Default.Merchants.GetCustomAttributesRequest { MerchantId = "merchant_id", Key = "key", diff --git a/src/Square.Test/Unit/MockServer/Merchants/CustomAttributeDefinitions/ListTest.cs b/src/Square.Test/Unit/MockServer/Default/Merchants/ListTest.cs similarity index 91% rename from src/Square.Test/Unit/MockServer/Merchants/CustomAttributeDefinitions/ListTest.cs rename to src/Square.Test/Unit/MockServer/Default/Merchants/ListTest.cs index 67540dc8..05c0927a 100644 --- a/src/Square.Test/Unit/MockServer/Merchants/CustomAttributeDefinitions/ListTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Merchants/ListTest.cs @@ -1,8 +1,8 @@ using NUnit.Framework; -using Square; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Merchants.CustomAttributeDefinitions; +namespace Square.Test.Unit.MockServer.Default.Merchants; [TestFixture] public class ListTest : BaseMockServerTest @@ -67,8 +67,8 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var items = await Client.Merchants.CustomAttributeDefinitions.ListAsync( - new Square.Merchants.CustomAttributeDefinitions.ListCustomAttributeDefinitionsRequest + var items = await Client.Default.Merchants.CustomAttributeDefinitions.ListAsync( + new Square.Default.Merchants.ListCustomAttributeDefinitionsRequest { VisibilityFilter = VisibilityFilter.All, Limit = 1, diff --git a/src/Square.Test/Unit/MockServer/Merchants/CustomAttributes/ListTest.cs b/src/Square.Test/Unit/MockServer/Default/Merchants/ListTest_.cs similarity index 89% rename from src/Square.Test/Unit/MockServer/Merchants/CustomAttributes/ListTest.cs rename to src/Square.Test/Unit/MockServer/Default/Merchants/ListTest_.cs index ca0a512d..df1478e5 100644 --- a/src/Square.Test/Unit/MockServer/Merchants/CustomAttributes/ListTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Merchants/ListTest_.cs @@ -1,11 +1,11 @@ using NUnit.Framework; -using Square; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Merchants.CustomAttributes; +namespace Square.Test.Unit.MockServer.Default.Merchants; [TestFixture] -public class ListTest : BaseMockServerTest +public class ListTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -59,8 +59,8 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var items = await Client.Merchants.CustomAttributes.ListAsync( - new Square.Merchants.CustomAttributes.ListCustomAttributesRequest + var items = await Client.Default.Merchants.CustomAttributes.ListAsync( + new Square.Default.Merchants.ListCustomAttributesRequest { MerchantId = "merchant_id", VisibilityFilter = VisibilityFilter.All, diff --git a/src/Square.Test/Unit/MockServer/Merchants/CustomAttributeDefinitions/UpdateTest.cs b/src/Square.Test/Unit/MockServer/Default/Merchants/UpdateTest.cs similarity index 92% rename from src/Square.Test/Unit/MockServer/Merchants/CustomAttributeDefinitions/UpdateTest.cs rename to src/Square.Test/Unit/MockServer/Default/Merchants/UpdateTest.cs index 2fb5af3d..588e9d80 100644 --- a/src/Square.Test/Unit/MockServer/Merchants/CustomAttributeDefinitions/UpdateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Merchants/UpdateTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Merchants.CustomAttributeDefinitions; +using Square.Default; +using Square.Default.Merchants; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Merchants.CustomAttributeDefinitions; +namespace Square.Test.Unit.MockServer.Default.Merchants; [TestFixture] public class UpdateTest : BaseMockServerTest @@ -62,7 +62,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Merchants.CustomAttributeDefinitions.UpdateAsync( + var response = await Client.Default.Merchants.CustomAttributeDefinitions.UpdateAsync( new UpdateMerchantCustomAttributeDefinitionRequest { Key = "key", diff --git a/src/Square.Test/Unit/MockServer/Merchants/CustomAttributes/UpsertTest.cs b/src/Square.Test/Unit/MockServer/Default/Merchants/UpsertTest.cs similarity index 92% rename from src/Square.Test/Unit/MockServer/Merchants/CustomAttributes/UpsertTest.cs rename to src/Square.Test/Unit/MockServer/Default/Merchants/UpsertTest.cs index 7e14343b..75a926d5 100644 --- a/src/Square.Test/Unit/MockServer/Merchants/CustomAttributes/UpsertTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Merchants/UpsertTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Merchants.CustomAttributes; +using Square.Default; +using Square.Default.Merchants; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Merchants.CustomAttributes; +namespace Square.Test.Unit.MockServer.Default.Merchants; [TestFixture] public class UpsertTest : BaseMockServerTest @@ -69,7 +69,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Merchants.CustomAttributes.UpsertAsync( + var response = await Client.Default.Merchants.CustomAttributes.UpsertAsync( new UpsertMerchantCustomAttributeRequest { MerchantId = "merchant_id", diff --git a/src/Square.Test/Unit/MockServer/OAuth/ObtainTokenTest.cs b/src/Square.Test/Unit/MockServer/Default/ObtainTokenTest.cs similarity index 94% rename from src/Square.Test/Unit/MockServer/OAuth/ObtainTokenTest.cs rename to src/Square.Test/Unit/MockServer/Default/ObtainTokenTest.cs index bb227aa7..3ee3ac3e 100644 --- a/src/Square.Test/Unit/MockServer/OAuth/ObtainTokenTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/ObtainTokenTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.OAuth; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.OAuth; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class ObtainTokenTest : BaseMockServerTest @@ -60,7 +59,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.OAuth.ObtainTokenAsync( + var response = await Client.Default.OAuth.ObtainTokenAsync( new ObtainTokenRequest { ClientId = "sq0idp-uaPHILoPzWZk3tlJqlML0g", diff --git a/src/Square.Test/Unit/MockServer/Orders/CustomAttributes/BatchDeleteTest.cs b/src/Square.Test/Unit/MockServer/Default/Orders/BatchDeleteTest.cs similarity index 94% rename from src/Square.Test/Unit/MockServer/Orders/CustomAttributes/BatchDeleteTest.cs rename to src/Square.Test/Unit/MockServer/Default/Orders/BatchDeleteTest.cs index 7e79e399..62bd3dfa 100644 --- a/src/Square.Test/Unit/MockServer/Orders/CustomAttributes/BatchDeleteTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Orders/BatchDeleteTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Orders.CustomAttributes; +using Square.Default; +using Square.Default.Orders; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Orders.CustomAttributes; +namespace Square.Test.Unit.MockServer.Default.Orders; [TestFixture] public class BatchDeleteTest : BaseMockServerTest @@ -74,7 +74,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Orders.CustomAttributes.BatchDeleteAsync( + var response = await Client.Default.Orders.CustomAttributes.BatchDeleteAsync( new BulkDeleteOrderCustomAttributesRequest { Values = new Dictionary< diff --git a/src/Square.Test/Unit/MockServer/Orders/CustomAttributes/BatchUpsertTest.cs b/src/Square.Test/Unit/MockServer/Default/Orders/BatchUpsertTest.cs similarity index 95% rename from src/Square.Test/Unit/MockServer/Orders/CustomAttributes/BatchUpsertTest.cs rename to src/Square.Test/Unit/MockServer/Default/Orders/BatchUpsertTest.cs index 9ad8017e..63c932e5 100644 --- a/src/Square.Test/Unit/MockServer/Orders/CustomAttributes/BatchUpsertTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Orders/BatchUpsertTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Orders.CustomAttributes; +using Square.Default; +using Square.Default.Orders; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Orders.CustomAttributes; +namespace Square.Test.Unit.MockServer.Default.Orders; [TestFixture] public class BatchUpsertTest : BaseMockServerTest @@ -96,7 +96,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Orders.CustomAttributes.BatchUpsertAsync( + var response = await Client.Default.Orders.CustomAttributes.BatchUpsertAsync( new BulkUpsertOrderCustomAttributesRequest { Values = new Dictionary< diff --git a/src/Square.Test/Unit/MockServer/Orders/CustomAttributeDefinitions/CreateTest.cs b/src/Square.Test/Unit/MockServer/Default/Orders/CreateTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Orders/CustomAttributeDefinitions/CreateTest.cs rename to src/Square.Test/Unit/MockServer/Default/Orders/CreateTest.cs index 447e8d9a..f26ec5b7 100644 --- a/src/Square.Test/Unit/MockServer/Orders/CustomAttributeDefinitions/CreateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Orders/CreateTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Orders.CustomAttributeDefinitions; +using Square.Default; +using Square.Default.Orders; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Orders.CustomAttributeDefinitions; +namespace Square.Test.Unit.MockServer.Default.Orders; [TestFixture] public class CreateTest : BaseMockServerTest @@ -68,7 +68,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Orders.CustomAttributeDefinitions.CreateAsync( + var response = await Client.Default.Orders.CustomAttributeDefinitions.CreateAsync( new CreateOrderCustomAttributeDefinitionRequest { CustomAttributeDefinition = new CustomAttributeDefinition diff --git a/src/Square.Test/Unit/MockServer/Orders/CustomAttributeDefinitions/DeleteTest.cs b/src/Square.Test/Unit/MockServer/Default/Orders/DeleteTest.cs similarity index 79% rename from src/Square.Test/Unit/MockServer/Orders/CustomAttributeDefinitions/DeleteTest.cs rename to src/Square.Test/Unit/MockServer/Default/Orders/DeleteTest.cs index 3f752c7d..ffb40002 100644 --- a/src/Square.Test/Unit/MockServer/Orders/CustomAttributeDefinitions/DeleteTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Orders/DeleteTest.cs @@ -1,9 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Orders.CustomAttributeDefinitions; +namespace Square.Test.Unit.MockServer.Default.Orders; [TestFixture] public class DeleteTest : BaseMockServerTest @@ -38,11 +38,8 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Orders.CustomAttributeDefinitions.DeleteAsync( - new Square.Orders.CustomAttributeDefinitions.DeleteCustomAttributeDefinitionsRequest - { - Key = "key", - } + var response = await Client.Default.Orders.CustomAttributeDefinitions.DeleteAsync( + new Square.Default.Orders.DeleteCustomAttributeDefinitionsRequest { Key = "key" } ); Assert.That( response, diff --git a/src/Square.Test/Unit/MockServer/Orders/CustomAttributes/DeleteTest.cs b/src/Square.Test/Unit/MockServer/Default/Orders/DeleteTest_.cs similarity index 82% rename from src/Square.Test/Unit/MockServer/Orders/CustomAttributes/DeleteTest.cs rename to src/Square.Test/Unit/MockServer/Default/Orders/DeleteTest_.cs index 205a48cf..f81d8e13 100644 --- a/src/Square.Test/Unit/MockServer/Orders/CustomAttributes/DeleteTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Orders/DeleteTest_.cs @@ -1,12 +1,12 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Orders.CustomAttributes; +namespace Square.Test.Unit.MockServer.Default.Orders; [TestFixture] -public class DeleteTest : BaseMockServerTest +public class DeleteTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -38,8 +38,8 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Orders.CustomAttributes.DeleteAsync( - new Square.Orders.CustomAttributes.DeleteCustomAttributesRequest + var response = await Client.Default.Orders.CustomAttributes.DeleteAsync( + new Square.Default.Orders.DeleteCustomAttributesRequest { OrderId = "order_id", CustomAttributeKey = "custom_attribute_key", diff --git a/src/Square.Test/Unit/MockServer/Orders/CustomAttributeDefinitions/GetTest.cs b/src/Square.Test/Unit/MockServer/Default/Orders/GetTest.cs similarity index 88% rename from src/Square.Test/Unit/MockServer/Orders/CustomAttributeDefinitions/GetTest.cs rename to src/Square.Test/Unit/MockServer/Default/Orders/GetTest.cs index 00b1c756..12abc4af 100644 --- a/src/Square.Test/Unit/MockServer/Orders/CustomAttributeDefinitions/GetTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Orders/GetTest.cs @@ -1,9 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Orders.CustomAttributeDefinitions; +namespace Square.Test.Unit.MockServer.Default.Orders; [TestFixture] public class GetTest : BaseMockServerTest @@ -51,8 +51,8 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Orders.CustomAttributeDefinitions.GetAsync( - new Square.Orders.CustomAttributeDefinitions.GetCustomAttributeDefinitionsRequest + var response = await Client.Default.Orders.CustomAttributeDefinitions.GetAsync( + new Square.Default.Orders.GetCustomAttributeDefinitionsRequest { Key = "key", Version = 1, diff --git a/src/Square.Test/Unit/MockServer/Orders/CustomAttributes/GetTest.cs b/src/Square.Test/Unit/MockServer/Default/Orders/GetTest_.cs similarity index 89% rename from src/Square.Test/Unit/MockServer/Orders/CustomAttributes/GetTest.cs rename to src/Square.Test/Unit/MockServer/Default/Orders/GetTest_.cs index c61d79af..feb6d3bf 100644 --- a/src/Square.Test/Unit/MockServer/Orders/CustomAttributes/GetTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Orders/GetTest_.cs @@ -1,12 +1,12 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Orders.CustomAttributes; +namespace Square.Test.Unit.MockServer.Default.Orders; [TestFixture] -public class GetTest : BaseMockServerTest +public class GetTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -59,8 +59,8 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Orders.CustomAttributes.GetAsync( - new Square.Orders.CustomAttributes.GetCustomAttributesRequest + var response = await Client.Default.Orders.CustomAttributes.GetAsync( + new Square.Default.Orders.GetCustomAttributesRequest { OrderId = "order_id", CustomAttributeKey = "custom_attribute_key", diff --git a/src/Square.Test/Unit/MockServer/Orders/CustomAttributeDefinitions/ListTest.cs b/src/Square.Test/Unit/MockServer/Default/Orders/ListTest.cs similarity index 92% rename from src/Square.Test/Unit/MockServer/Orders/CustomAttributeDefinitions/ListTest.cs rename to src/Square.Test/Unit/MockServer/Default/Orders/ListTest.cs index aa2699ea..34f6515f 100644 --- a/src/Square.Test/Unit/MockServer/Orders/CustomAttributeDefinitions/ListTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Orders/ListTest.cs @@ -1,8 +1,8 @@ using NUnit.Framework; -using Square; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Orders.CustomAttributeDefinitions; +namespace Square.Test.Unit.MockServer.Default.Orders; [TestFixture] public class ListTest : BaseMockServerTest @@ -79,8 +79,8 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var items = await Client.Orders.CustomAttributeDefinitions.ListAsync( - new Square.Orders.CustomAttributeDefinitions.ListCustomAttributeDefinitionsRequest + var items = await Client.Default.Orders.CustomAttributeDefinitions.ListAsync( + new Square.Default.Orders.ListCustomAttributeDefinitionsRequest { VisibilityFilter = VisibilityFilter.All, Cursor = "cursor", diff --git a/src/Square.Test/Unit/MockServer/Orders/CustomAttributes/ListTest.cs b/src/Square.Test/Unit/MockServer/Default/Orders/ListTest_.cs similarity index 87% rename from src/Square.Test/Unit/MockServer/Orders/CustomAttributes/ListTest.cs rename to src/Square.Test/Unit/MockServer/Default/Orders/ListTest_.cs index 136fc536..4474b6e3 100644 --- a/src/Square.Test/Unit/MockServer/Orders/CustomAttributes/ListTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Orders/ListTest_.cs @@ -1,11 +1,11 @@ using NUnit.Framework; -using Square; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Orders.CustomAttributes; +namespace Square.Test.Unit.MockServer.Default.Orders; [TestFixture] -public class ListTest : BaseMockServerTest +public class ListTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -51,8 +51,8 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var items = await Client.Orders.CustomAttributes.ListAsync( - new Square.Orders.CustomAttributes.ListCustomAttributesRequest + var items = await Client.Default.Orders.CustomAttributes.ListAsync( + new Square.Default.Orders.ListCustomAttributesRequest { OrderId = "order_id", VisibilityFilter = VisibilityFilter.All, diff --git a/src/Square.Test/Unit/MockServer/Orders/CustomAttributeDefinitions/UpdateTest.cs b/src/Square.Test/Unit/MockServer/Default/Orders/UpdateTest.cs similarity index 92% rename from src/Square.Test/Unit/MockServer/Orders/CustomAttributeDefinitions/UpdateTest.cs rename to src/Square.Test/Unit/MockServer/Default/Orders/UpdateTest.cs index 68610d8b..f0b961de 100644 --- a/src/Square.Test/Unit/MockServer/Orders/CustomAttributeDefinitions/UpdateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Orders/UpdateTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Orders.CustomAttributeDefinitions; +using Square.Default; +using Square.Default.Orders; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Orders.CustomAttributeDefinitions; +namespace Square.Test.Unit.MockServer.Default.Orders; [TestFixture] public class UpdateTest : BaseMockServerTest @@ -64,7 +64,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Orders.CustomAttributeDefinitions.UpdateAsync( + var response = await Client.Default.Orders.CustomAttributeDefinitions.UpdateAsync( new UpdateOrderCustomAttributeDefinitionRequest { Key = "key", diff --git a/src/Square.Test/Unit/MockServer/Orders/CustomAttributes/UpsertTest.cs b/src/Square.Test/Unit/MockServer/Default/Orders/UpsertTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Orders/CustomAttributes/UpsertTest.cs rename to src/Square.Test/Unit/MockServer/Default/Orders/UpsertTest.cs index 6e06103c..3df63f61 100644 --- a/src/Square.Test/Unit/MockServer/Orders/CustomAttributes/UpsertTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Orders/UpsertTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Orders.CustomAttributes; +using Square.Default; +using Square.Default.Orders; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Orders.CustomAttributes; +namespace Square.Test.Unit.MockServer.Default.Orders; [TestFixture] public class UpsertTest : BaseMockServerTest @@ -71,7 +71,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Orders.CustomAttributes.UpsertAsync( + var response = await Client.Default.Orders.CustomAttributes.UpsertAsync( new UpsertOrderCustomAttributeRequest { OrderId = "order_id", diff --git a/src/Square.Test/Unit/MockServer/Subscriptions/PauseTest.cs b/src/Square.Test/Unit/MockServer/Default/PauseTest.cs similarity index 95% rename from src/Square.Test/Unit/MockServer/Subscriptions/PauseTest.cs rename to src/Square.Test/Unit/MockServer/Default/PauseTest.cs index ab357f19..0f1af2d3 100644 --- a/src/Square.Test/Unit/MockServer/Subscriptions/PauseTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/PauseTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Subscriptions; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Subscriptions; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class PauseTest : BaseMockServerTest @@ -95,7 +94,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Subscriptions.PauseAsync( + var response = await Client.Default.Subscriptions.PauseAsync( new PauseSubscriptionRequest { SubscriptionId = "subscription_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Orders/PayTest.cs b/src/Square.Test/Unit/MockServer/Default/PayTest.cs similarity index 98% rename from src/Square.Test/Unit/MockServer/Orders/PayTest.cs rename to src/Square.Test/Unit/MockServer/Default/PayTest.cs index 67babe05..5828e251 100644 --- a/src/Square.Test/Unit/MockServer/Orders/PayTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/PayTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Orders; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Orders; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class PayTest : BaseMockServerTest @@ -261,7 +260,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Orders.PayAsync( + var response = await Client.Default.Orders.PayAsync( new PayOrderRequest { OrderId = "order_id", diff --git a/src/Square.Test/Unit/MockServer/Labor/PublishScheduledShiftTest.cs b/src/Square.Test/Unit/MockServer/Default/PublishScheduledShiftTest.cs similarity index 95% rename from src/Square.Test/Unit/MockServer/Labor/PublishScheduledShiftTest.cs rename to src/Square.Test/Unit/MockServer/Default/PublishScheduledShiftTest.cs index 2c0f0cf3..3ce8944c 100644 --- a/src/Square.Test/Unit/MockServer/Labor/PublishScheduledShiftTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/PublishScheduledShiftTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Labor; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Labor; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class PublishScheduledShiftTest : BaseMockServerTest @@ -75,7 +74,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Labor.PublishScheduledShiftAsync( + var response = await Client.Default.Labor.PublishScheduledShiftAsync( new PublishScheduledShiftRequest { Id = "id", diff --git a/src/Square.Test/Unit/MockServer/Invoices/PublishTest.cs b/src/Square.Test/Unit/MockServer/Default/PublishTest.cs similarity index 97% rename from src/Square.Test/Unit/MockServer/Invoices/PublishTest.cs rename to src/Square.Test/Unit/MockServer/Default/PublishTest.cs index 0b812673..c953a18a 100644 --- a/src/Square.Test/Unit/MockServer/Invoices/PublishTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/PublishTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Invoices; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Invoices; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class PublishTest : BaseMockServerTest @@ -128,7 +127,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Invoices.PublishAsync( + var response = await Client.Default.Invoices.PublishAsync( new PublishInvoiceRequest { InvoiceId = "invoice_id", diff --git a/src/Square.Test/Unit/MockServer/TransferOrders/ReceiveTest.cs b/src/Square.Test/Unit/MockServer/Default/ReceiveTest.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/TransferOrders/ReceiveTest.cs rename to src/Square.Test/Unit/MockServer/Default/ReceiveTest.cs index 4d66fe10..125e8a5a 100644 --- a/src/Square.Test/Unit/MockServer/TransferOrders/ReceiveTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/ReceiveTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -using Square.TransferOrders; -namespace Square.Test.Unit.MockServer.TransferOrders; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class ReceiveTest : BaseMockServerTest @@ -97,7 +96,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.TransferOrders.ReceiveAsync( + var response = await Client.Default.TransferOrders.ReceiveAsync( new ReceiveTransferOrderRequest { TransferOrderId = "transfer_order_id", diff --git a/src/Square.Test/Unit/MockServer/Refunds/RefundPaymentTest.cs b/src/Square.Test/Unit/MockServer/Default/RefundPaymentTest.cs similarity index 95% rename from src/Square.Test/Unit/MockServer/Refunds/RefundPaymentTest.cs rename to src/Square.Test/Unit/MockServer/Default/RefundPaymentTest.cs index 87f3af94..63f58f2c 100644 --- a/src/Square.Test/Unit/MockServer/Refunds/RefundPaymentTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/RefundPaymentTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Refunds; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Refunds; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class RefundPaymentTest : BaseMockServerTest @@ -91,7 +90,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Refunds.RefundPaymentAsync( + var response = await Client.Default.Refunds.RefundPaymentAsync( new RefundPaymentRequest { IdempotencyKey = "9b7f2dcf-49da-4411-b23e-a2d6af21333a", diff --git a/src/Square.Test/Unit/MockServer/ApplePay/RegisterDomainTest.cs b/src/Square.Test/Unit/MockServer/Default/RegisterDomainTest.cs similarity index 90% rename from src/Square.Test/Unit/MockServer/ApplePay/RegisterDomainTest.cs rename to src/Square.Test/Unit/MockServer/Default/RegisterDomainTest.cs index 9cb0fd6e..a60dc4b6 100644 --- a/src/Square.Test/Unit/MockServer/ApplePay/RegisterDomainTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/RegisterDomainTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; -using Square.ApplePay; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.ApplePay; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class RegisterDomainTest : BaseMockServerTest @@ -48,7 +47,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.ApplePay.RegisterDomainAsync( + var response = await Client.Default.ApplePay.RegisterDomainAsync( new RegisterDomainRequest { DomainName = "example.com" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Subscriptions/ResumeTest.cs b/src/Square.Test/Unit/MockServer/Default/ResumeTest.cs similarity index 95% rename from src/Square.Test/Unit/MockServer/Subscriptions/ResumeTest.cs rename to src/Square.Test/Unit/MockServer/Default/ResumeTest.cs index faf5d56c..28f56abf 100644 --- a/src/Square.Test/Unit/MockServer/Subscriptions/ResumeTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/ResumeTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Subscriptions; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Subscriptions; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class ResumeTest : BaseMockServerTest @@ -95,7 +94,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Subscriptions.ResumeAsync( + var response = await Client.Default.Subscriptions.ResumeAsync( new ResumeSubscriptionRequest { SubscriptionId = "subscription_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Team/RetrieveJobTest.cs b/src/Square.Test/Unit/MockServer/Default/RetrieveJobTest.cs similarity index 91% rename from src/Square.Test/Unit/MockServer/Team/RetrieveJobTest.cs rename to src/Square.Test/Unit/MockServer/Default/RetrieveJobTest.cs index a1ab6645..5d0bef49 100644 --- a/src/Square.Test/Unit/MockServer/Team/RetrieveJobTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/RetrieveJobTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Team; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Team; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class RetrieveJobTest : BaseMockServerTest @@ -47,7 +46,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Team.RetrieveJobAsync( + var response = await Client.Default.Team.RetrieveJobAsync( new RetrieveJobRequest { JobId = "job_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Bookings/RetrieveLocationBookingProfileTest.cs b/src/Square.Test/Unit/MockServer/Default/RetrieveLocationBookingProfileTest.cs similarity index 90% rename from src/Square.Test/Unit/MockServer/Bookings/RetrieveLocationBookingProfileTest.cs rename to src/Square.Test/Unit/MockServer/Default/RetrieveLocationBookingProfileTest.cs index 45c9843e..9a317fae 100644 --- a/src/Square.Test/Unit/MockServer/Bookings/RetrieveLocationBookingProfileTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/RetrieveLocationBookingProfileTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; -using Square.Bookings; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Bookings; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class RetrieveLocationBookingProfileTest : BaseMockServerTest @@ -44,7 +43,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Bookings.RetrieveLocationBookingProfileAsync( + var response = await Client.Default.Bookings.RetrieveLocationBookingProfileAsync( new RetrieveLocationBookingProfileRequest { LocationId = "location_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Checkout/RetrieveLocationSettingsTest.cs b/src/Square.Test/Unit/MockServer/Default/RetrieveLocationSettingsTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Checkout/RetrieveLocationSettingsTest.cs rename to src/Square.Test/Unit/MockServer/Default/RetrieveLocationSettingsTest.cs index 1d6dbfff..39d49210 100644 --- a/src/Square.Test/Unit/MockServer/Checkout/RetrieveLocationSettingsTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/RetrieveLocationSettingsTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; -using Square.Checkout; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Checkout; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class RetrieveLocationSettingsTest : BaseMockServerTest @@ -71,7 +70,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Checkout.RetrieveLocationSettingsAsync( + var response = await Client.Default.Checkout.RetrieveLocationSettingsAsync( new RetrieveLocationSettingsRequest { LocationId = "location_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Checkout/RetrieveMerchantSettingsTest.cs b/src/Square.Test/Unit/MockServer/Default/RetrieveMerchantSettingsTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Checkout/RetrieveMerchantSettingsTest.cs rename to src/Square.Test/Unit/MockServer/Default/RetrieveMerchantSettingsTest.cs index 5da67d7c..768c163e 100644 --- a/src/Square.Test/Unit/MockServer/Checkout/RetrieveMerchantSettingsTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/RetrieveMerchantSettingsTest.cs @@ -1,9 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Checkout; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class RetrieveMerchantSettingsTest : BaseMockServerTest @@ -72,7 +72,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Checkout.RetrieveMerchantSettingsAsync(); + var response = await Client.Default.Checkout.RetrieveMerchantSettingsAsync(); Assert.That( response, Is.EqualTo(JsonUtils.Deserialize(mockResponse)) diff --git a/src/Square.Test/Unit/MockServer/Labor/RetrieveScheduledShiftTest.cs b/src/Square.Test/Unit/MockServer/Default/RetrieveScheduledShiftTest.cs similarity index 94% rename from src/Square.Test/Unit/MockServer/Labor/RetrieveScheduledShiftTest.cs rename to src/Square.Test/Unit/MockServer/Default/RetrieveScheduledShiftTest.cs index 8b75fcde..329570cb 100644 --- a/src/Square.Test/Unit/MockServer/Labor/RetrieveScheduledShiftTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/RetrieveScheduledShiftTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Labor; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Labor; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class RetrieveScheduledShiftTest : BaseMockServerTest @@ -65,7 +64,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Labor.RetrieveScheduledShiftAsync( + var response = await Client.Default.Labor.RetrieveScheduledShiftAsync( new RetrieveScheduledShiftRequest { Id = "id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Labor/RetrieveTimecardTest.cs b/src/Square.Test/Unit/MockServer/Default/RetrieveTimecardTest.cs similarity index 94% rename from src/Square.Test/Unit/MockServer/Labor/RetrieveTimecardTest.cs rename to src/Square.Test/Unit/MockServer/Default/RetrieveTimecardTest.cs index a6c61e0a..8384558c 100644 --- a/src/Square.Test/Unit/MockServer/Labor/RetrieveTimecardTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/RetrieveTimecardTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Labor; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Labor; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class RetrieveTimecardTest : BaseMockServerTest @@ -75,7 +74,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Labor.RetrieveTimecardAsync( + var response = await Client.Default.Labor.RetrieveTimecardAsync( new RetrieveTimecardRequest { Id = "id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/OAuth/RetrieveTokenStatusTest.cs b/src/Square.Test/Unit/MockServer/Default/RetrieveTokenStatusTest.cs similarity index 90% rename from src/Square.Test/Unit/MockServer/OAuth/RetrieveTokenStatusTest.cs rename to src/Square.Test/Unit/MockServer/Default/RetrieveTokenStatusTest.cs index 698da265..460d78fd 100644 --- a/src/Square.Test/Unit/MockServer/OAuth/RetrieveTokenStatusTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/RetrieveTokenStatusTest.cs @@ -1,9 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.OAuth; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class RetrieveTokenStatusTest : BaseMockServerTest @@ -45,7 +45,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.OAuth.RetrieveTokenStatusAsync(); + var response = await Client.Default.OAuth.RetrieveTokenStatusAsync(); Assert.That( response, Is.EqualTo(JsonUtils.Deserialize(mockResponse)) diff --git a/src/Square.Test/Unit/MockServer/OAuth/RevokeTokenTest.cs b/src/Square.Test/Unit/MockServer/Default/RevokeTokenTest.cs similarity index 91% rename from src/Square.Test/Unit/MockServer/OAuth/RevokeTokenTest.cs rename to src/Square.Test/Unit/MockServer/Default/RevokeTokenTest.cs index ea590187..927ebf2c 100644 --- a/src/Square.Test/Unit/MockServer/OAuth/RevokeTokenTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/RevokeTokenTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.OAuth; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.OAuth; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class RevokeTokenTest : BaseMockServerTest @@ -49,7 +48,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.OAuth.RevokeTokenAsync( + var response = await Client.Default.OAuth.RevokeTokenAsync( new RevokeTokenRequest { ClientId = "CLIENT_ID", AccessToken = "ACCESS_TOKEN" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Bookings/SearchAvailabilityTest.cs b/src/Square.Test/Unit/MockServer/Default/SearchAvailabilityTest.cs similarity index 98% rename from src/Square.Test/Unit/MockServer/Bookings/SearchAvailabilityTest.cs rename to src/Square.Test/Unit/MockServer/Default/SearchAvailabilityTest.cs index a4034958..8aaa343e 100644 --- a/src/Square.Test/Unit/MockServer/Bookings/SearchAvailabilityTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/SearchAvailabilityTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; -using Square.Bookings; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Bookings; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class SearchAvailabilityTest : BaseMockServerTest @@ -269,7 +268,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Bookings.SearchAvailabilityAsync( + var response = await Client.Default.Bookings.SearchAvailabilityAsync( new SearchAvailabilityRequest { Query = new SearchAvailabilityQuery diff --git a/src/Square.Test/Unit/MockServer/Events/SearchEventsTest.cs b/src/Square.Test/Unit/MockServer/Default/SearchEventsTest.cs similarity index 94% rename from src/Square.Test/Unit/MockServer/Events/SearchEventsTest.cs rename to src/Square.Test/Unit/MockServer/Default/SearchEventsTest.cs index 91abe13e..ee624108 100644 --- a/src/Square.Test/Unit/MockServer/Events/SearchEventsTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/SearchEventsTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Events; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Events; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class SearchEventsTest : BaseMockServerTest @@ -87,7 +86,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Events.SearchEventsAsync(new SearchEventsRequest()); + var response = await Client.Default.Events.SearchEventsAsync(new SearchEventsRequest()); Assert.That( response, Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() diff --git a/src/Square.Test/Unit/MockServer/Loyalty/SearchEventsTest.cs b/src/Square.Test/Unit/MockServer/Default/SearchEventsTest_.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/Loyalty/SearchEventsTest.cs rename to src/Square.Test/Unit/MockServer/Default/SearchEventsTest_.cs index 1ca46184..6294fba3 100644 --- a/src/Square.Test/Unit/MockServer/Loyalty/SearchEventsTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/SearchEventsTest_.cs @@ -1,13 +1,12 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Loyalty; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Loyalty; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] -public class SearchEventsTest : BaseMockServerTest +public class SearchEventsTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -123,7 +122,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Loyalty.SearchEventsAsync( + var response = await Client.Default.Loyalty.SearchEventsAsync( new SearchLoyaltyEventsRequest { Query = new LoyaltyEventQuery diff --git a/src/Square.Test/Unit/MockServer/Catalog/SearchItemsTest.cs b/src/Square.Test/Unit/MockServer/Default/SearchItemsTest.cs similarity index 95% rename from src/Square.Test/Unit/MockServer/Catalog/SearchItemsTest.cs rename to src/Square.Test/Unit/MockServer/Default/SearchItemsTest.cs index 35716559..db7fb50a 100644 --- a/src/Square.Test/Unit/MockServer/Catalog/SearchItemsTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/SearchItemsTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; -using Square.Catalog; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Catalog; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class SearchItemsTest : BaseMockServerTest @@ -109,7 +108,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Catalog.SearchItemsAsync( + var response = await Client.Default.Catalog.SearchItemsAsync( new SearchCatalogItemsRequest { TextFilter = "red", @@ -141,7 +140,7 @@ public async Task MockServerTest() new CustomAttributeFilter { Key = "VINTAGE", - NumberFilter = new Square.Range { Min = "min", Max = "max" }, + NumberFilter = new Square.Default.Range { Min = "min", Max = "max" }, }, new CustomAttributeFilter { diff --git a/src/Square.Test/Unit/MockServer/Labor/SearchScheduledShiftsTest.cs b/src/Square.Test/Unit/MockServer/Default/SearchScheduledShiftsTest.cs similarity index 95% rename from src/Square.Test/Unit/MockServer/Labor/SearchScheduledShiftsTest.cs rename to src/Square.Test/Unit/MockServer/Default/SearchScheduledShiftsTest.cs index 09883820..1ee09018 100644 --- a/src/Square.Test/Unit/MockServer/Labor/SearchScheduledShiftsTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/SearchScheduledShiftsTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Labor; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Labor; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class SearchScheduledShiftsTest : BaseMockServerTest @@ -76,7 +75,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Labor.SearchScheduledShiftsAsync( + var response = await Client.Default.Labor.SearchScheduledShiftsAsync( new SearchScheduledShiftsRequest { Query = new ScheduledShiftQuery diff --git a/src/Square.Test/Unit/MockServer/Catalog/SearchTest.cs b/src/Square.Test/Unit/MockServer/Default/SearchTest.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/Catalog/SearchTest.cs rename to src/Square.Test/Unit/MockServer/Default/SearchTest.cs index a21e1e05..a2a3c828 100644 --- a/src/Square.Test/Unit/MockServer/Catalog/SearchTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/SearchTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; -using Square.Catalog; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Catalog; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class SearchTest : BaseMockServerTest @@ -125,7 +124,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Catalog.SearchAsync( + var response = await Client.Default.Catalog.SearchAsync( new SearchCatalogObjectsRequest { ObjectTypes = new List() { CatalogObjectType.Item }, diff --git a/src/Square.Test/Unit/MockServer/Vendors/SearchTest.cs b/src/Square.Test/Unit/MockServer/Default/SearchTest_.cs similarity index 92% rename from src/Square.Test/Unit/MockServer/Vendors/SearchTest.cs rename to src/Square.Test/Unit/MockServer/Default/SearchTest_.cs index 9086cab5..1f5ae038 100644 --- a/src/Square.Test/Unit/MockServer/Vendors/SearchTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/SearchTest_.cs @@ -1,13 +1,12 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -using Square.Vendors; -namespace Square.Test.Unit.MockServer.Vendors; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] -public class SearchTest : BaseMockServerTest +public class SearchTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -75,7 +74,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Vendors.SearchAsync(new SearchVendorsRequest()); + var response = await Client.Default.Vendors.SearchAsync(new SearchVendorsRequest()); Assert.That( response, Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() diff --git a/src/Square.Test/Unit/MockServer/Labor/SearchTimecardsTest.cs b/src/Square.Test/Unit/MockServer/Default/SearchTimecardsTest.cs similarity index 97% rename from src/Square.Test/Unit/MockServer/Labor/SearchTimecardsTest.cs rename to src/Square.Test/Unit/MockServer/Default/SearchTimecardsTest.cs index 1feadf0f..481e729c 100644 --- a/src/Square.Test/Unit/MockServer/Labor/SearchTimecardsTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/SearchTimecardsTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Labor; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Labor; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class SearchTimecardsTest : BaseMockServerTest @@ -143,7 +142,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Labor.SearchTimecardsAsync( + var response = await Client.Default.Labor.SearchTimecardsAsync( new SearchTimecardsRequest { Query = new TimecardQuery diff --git a/src/Square.Test/Unit/MockServer/TransferOrders/StartTest.cs b/src/Square.Test/Unit/MockServer/Default/StartTest.cs similarity index 95% rename from src/Square.Test/Unit/MockServer/TransferOrders/StartTest.cs rename to src/Square.Test/Unit/MockServer/Default/StartTest.cs index 80a89e2f..5b2af700 100644 --- a/src/Square.Test/Unit/MockServer/TransferOrders/StartTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/StartTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -using Square.TransferOrders; -namespace Square.Test.Unit.MockServer.TransferOrders; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class StartTest : BaseMockServerTest @@ -82,7 +81,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.TransferOrders.StartAsync( + var response = await Client.Default.TransferOrders.StartAsync( new StartTransferOrderRequest { TransferOrderId = "transfer_order_id", diff --git a/src/Square.Test/Unit/MockServer/Disputes/SubmitEvidenceTest.cs b/src/Square.Test/Unit/MockServer/Default/SubmitEvidenceTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Disputes/SubmitEvidenceTest.cs rename to src/Square.Test/Unit/MockServer/Default/SubmitEvidenceTest.cs index 4569deaf..531ac51f 100644 --- a/src/Square.Test/Unit/MockServer/Disputes/SubmitEvidenceTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/SubmitEvidenceTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Disputes; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Disputes; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class SubmitEvidenceTest : BaseMockServerTest @@ -64,7 +63,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Disputes.SubmitEvidenceAsync( + var response = await Client.Default.Disputes.SubmitEvidenceAsync( new SubmitEvidenceDisputesRequest { DisputeId = "dispute_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Subscriptions/SwapPlanTest.cs b/src/Square.Test/Unit/MockServer/Default/SwapPlanTest.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/Subscriptions/SwapPlanTest.cs rename to src/Square.Test/Unit/MockServer/Default/SwapPlanTest.cs index 52f0a861..aff0cb7b 100644 --- a/src/Square.Test/Unit/MockServer/Subscriptions/SwapPlanTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/SwapPlanTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Subscriptions; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Subscriptions; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class SwapPlanTest : BaseMockServerTest @@ -106,7 +105,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Subscriptions.SwapPlanAsync( + var response = await Client.Default.Subscriptions.SwapPlanAsync( new SwapPlanRequest { SubscriptionId = "subscription_id", diff --git a/src/Square.Test/Unit/MockServer/TeamMembers/WageSetting/GetTest.cs b/src/Square.Test/Unit/MockServer/Default/TeamMembers/GetTest.cs similarity index 86% rename from src/Square.Test/Unit/MockServer/TeamMembers/WageSetting/GetTest.cs rename to src/Square.Test/Unit/MockServer/Default/TeamMembers/GetTest.cs index a70e6bfc..8c48ac7f 100644 --- a/src/Square.Test/Unit/MockServer/TeamMembers/WageSetting/GetTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/TeamMembers/GetTest.cs @@ -1,9 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.TeamMembers.WageSetting; +namespace Square.Test.Unit.MockServer.Default.TeamMembers; [TestFixture] public class GetTest : BaseMockServerTest @@ -60,11 +60,8 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.TeamMembers.WageSetting.GetAsync( - new Square.TeamMembers.WageSetting.GetWageSettingRequest - { - TeamMemberId = "team_member_id", - } + var response = await Client.Default.TeamMembers.WageSetting.GetAsync( + new Square.Default.TeamMembers.GetWageSettingRequest { TeamMemberId = "team_member_id" } ); Assert.That( response, diff --git a/src/Square.Test/Unit/MockServer/TeamMembers/WageSetting/UpdateTest.cs b/src/Square.Test/Unit/MockServer/Default/TeamMembers/UpdateTest.cs similarity index 94% rename from src/Square.Test/Unit/MockServer/TeamMembers/WageSetting/UpdateTest.cs rename to src/Square.Test/Unit/MockServer/Default/TeamMembers/UpdateTest.cs index 7d1804da..91a5b72f 100644 --- a/src/Square.Test/Unit/MockServer/TeamMembers/WageSetting/UpdateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/TeamMembers/UpdateTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.TeamMembers.WageSetting; +using Square.Default; +using Square.Default.TeamMembers; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.TeamMembers.WageSetting; +namespace Square.Test.Unit.MockServer.Default.TeamMembers; [TestFixture] public class UpdateTest : BaseMockServerTest @@ -98,11 +98,11 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.TeamMembers.WageSetting.UpdateAsync( + var response = await Client.Default.TeamMembers.WageSetting.UpdateAsync( new UpdateWageSettingRequest { TeamMemberId = "team_member_id", - WageSetting = new Square.WageSetting + WageSetting = new WageSetting { JobAssignments = new List() { diff --git a/src/Square.Test/Unit/MockServer/Terminal/Actions/CancelTest.cs b/src/Square.Test/Unit/MockServer/Default/Terminal/CancelTest.cs similarity index 95% rename from src/Square.Test/Unit/MockServer/Terminal/Actions/CancelTest.cs rename to src/Square.Test/Unit/MockServer/Default/Terminal/CancelTest.cs index e68bef29..44a491b8 100644 --- a/src/Square.Test/Unit/MockServer/Terminal/Actions/CancelTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Terminal/CancelTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Terminal.Actions; +using Square.Default; +using Square.Default.Terminal; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Terminal.Actions; +namespace Square.Test.Unit.MockServer.Default.Terminal; [TestFixture] public class CancelTest : BaseMockServerTest @@ -114,7 +114,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Terminal.Actions.CancelAsync( + var response = await Client.Default.Terminal.Actions.CancelAsync( new CancelActionsRequest { ActionId = "action_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Terminal/Refunds/CancelTest.cs b/src/Square.Test/Unit/MockServer/Default/Terminal/CancelTest_.cs similarity index 90% rename from src/Square.Test/Unit/MockServer/Terminal/Refunds/CancelTest.cs rename to src/Square.Test/Unit/MockServer/Default/Terminal/CancelTest_.cs index 8f2c7cc4..047a3667 100644 --- a/src/Square.Test/Unit/MockServer/Terminal/Refunds/CancelTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Terminal/CancelTest_.cs @@ -1,13 +1,13 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Terminal.Refunds; +using Square.Default; +using Square.Default.Terminal; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Terminal.Refunds; +namespace Square.Test.Unit.MockServer.Default.Terminal; [TestFixture] -public class CancelTest : BaseMockServerTest +public class CancelTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -58,7 +58,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Terminal.Refunds.CancelAsync( + var response = await Client.Default.Terminal.Refunds.CancelAsync( new CancelRefundsRequest { TerminalRefundId = "terminal_refund_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Terminal/Actions/CreateTest.cs b/src/Square.Test/Unit/MockServer/Default/Terminal/CreateTest.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/Terminal/Actions/CreateTest.cs rename to src/Square.Test/Unit/MockServer/Default/Terminal/CreateTest.cs index f5570903..4d89ea0a 100644 --- a/src/Square.Test/Unit/MockServer/Terminal/Actions/CreateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Terminal/CreateTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Terminal.Actions; +using Square.Default; +using Square.Default.Terminal; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Terminal.Actions; +namespace Square.Test.Unit.MockServer.Default.Terminal; [TestFixture] public class CreateTest : BaseMockServerTest @@ -131,7 +131,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Terminal.Actions.CreateAsync( + var response = await Client.Default.Terminal.Actions.CreateAsync( new CreateTerminalActionRequest { IdempotencyKey = "thahn-70e75c10-47f7-4ab6-88cc-aaa4076d065e", diff --git a/src/Square.Test/Unit/MockServer/Terminal/Refunds/CreateTest.cs b/src/Square.Test/Unit/MockServer/Default/Terminal/CreateTest_.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Terminal/Refunds/CreateTest.cs rename to src/Square.Test/Unit/MockServer/Default/Terminal/CreateTest_.cs index ea8b1162..7050beef 100644 --- a/src/Square.Test/Unit/MockServer/Terminal/Refunds/CreateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Terminal/CreateTest_.cs @@ -1,13 +1,13 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Terminal.Refunds; +using Square.Default; +using Square.Default.Terminal; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Terminal.Refunds; +namespace Square.Test.Unit.MockServer.Default.Terminal; [TestFixture] -public class CreateTest : BaseMockServerTest +public class CreateTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -75,7 +75,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Terminal.Refunds.CreateAsync( + var response = await Client.Default.Terminal.Refunds.CreateAsync( new CreateTerminalRefundRequest { IdempotencyKey = "402a640b-b26f-401f-b406-46f839590c04", diff --git a/src/Square.Test/Unit/MockServer/Terminal/Actions/GetTest.cs b/src/Square.Test/Unit/MockServer/Default/Terminal/GetTest.cs similarity index 95% rename from src/Square.Test/Unit/MockServer/Terminal/Actions/GetTest.cs rename to src/Square.Test/Unit/MockServer/Default/Terminal/GetTest.cs index 7f215e9f..d7bdc38a 100644 --- a/src/Square.Test/Unit/MockServer/Terminal/Actions/GetTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Terminal/GetTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Terminal.Actions; +using Square.Default; +using Square.Default.Terminal; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Terminal.Actions; +namespace Square.Test.Unit.MockServer.Default.Terminal; [TestFixture] public class GetTest : BaseMockServerTest @@ -114,7 +114,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Terminal.Actions.GetAsync( + var response = await Client.Default.Terminal.Actions.GetAsync( new GetActionsRequest { ActionId = "action_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Terminal/Refunds/GetTest.cs b/src/Square.Test/Unit/MockServer/Default/Terminal/GetTest_.cs similarity index 89% rename from src/Square.Test/Unit/MockServer/Terminal/Refunds/GetTest.cs rename to src/Square.Test/Unit/MockServer/Default/Terminal/GetTest_.cs index dbc15b33..28e08928 100644 --- a/src/Square.Test/Unit/MockServer/Terminal/Refunds/GetTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Terminal/GetTest_.cs @@ -1,12 +1,12 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Terminal.Refunds; +namespace Square.Test.Unit.MockServer.Default.Terminal; [TestFixture] -public class GetTest : BaseMockServerTest +public class GetTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -57,8 +57,8 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Terminal.Refunds.GetAsync( - new Square.Terminal.Refunds.GetRefundsRequest + var response = await Client.Default.Terminal.Refunds.GetAsync( + new Square.Default.Terminal.GetRefundsRequest { TerminalRefundId = "terminal_refund_id", } diff --git a/src/Square.Test/Unit/MockServer/Terminal/Actions/SearchTest.cs b/src/Square.Test/Unit/MockServer/Default/Terminal/SearchTest.cs similarity index 97% rename from src/Square.Test/Unit/MockServer/Terminal/Actions/SearchTest.cs rename to src/Square.Test/Unit/MockServer/Default/Terminal/SearchTest.cs index dba5bd74..7ffeee7c 100644 --- a/src/Square.Test/Unit/MockServer/Terminal/Actions/SearchTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Terminal/SearchTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Terminal.Actions; +using Square.Default; +using Square.Default.Terminal; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Terminal.Actions; +namespace Square.Test.Unit.MockServer.Default.Terminal; [TestFixture] public class SearchTest : BaseMockServerTest @@ -161,7 +161,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Terminal.Actions.SearchAsync( + var response = await Client.Default.Terminal.Actions.SearchAsync( new SearchTerminalActionsRequest { Query = new TerminalActionQuery diff --git a/src/Square.Test/Unit/MockServer/Terminal/Refunds/SearchTest.cs b/src/Square.Test/Unit/MockServer/Default/Terminal/SearchTest_.cs similarity index 92% rename from src/Square.Test/Unit/MockServer/Terminal/Refunds/SearchTest.cs rename to src/Square.Test/Unit/MockServer/Default/Terminal/SearchTest_.cs index a66e5bb2..d7481814 100644 --- a/src/Square.Test/Unit/MockServer/Terminal/Refunds/SearchTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Terminal/SearchTest_.cs @@ -1,13 +1,13 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Terminal.Refunds; +using Square.Default; +using Square.Default.Terminal; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Terminal.Refunds; +namespace Square.Test.Unit.MockServer.Default.Terminal; [TestFixture] -public class SearchTest : BaseMockServerTest +public class SearchTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -74,7 +74,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Terminal.Refunds.SearchAsync( + var response = await Client.Default.Terminal.Refunds.SearchAsync( new SearchTerminalRefundsRequest { Query = new TerminalRefundQuery diff --git a/src/Square.Test/Unit/MockServer/GiftCards/UnlinkCustomerTest.cs b/src/Square.Test/Unit/MockServer/Default/UnlinkCustomerTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/GiftCards/UnlinkCustomerTest.cs rename to src/Square.Test/Unit/MockServer/Default/UnlinkCustomerTest.cs index f277c084..2c2c2e7a 100644 --- a/src/Square.Test/Unit/MockServer/GiftCards/UnlinkCustomerTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/UnlinkCustomerTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.GiftCards; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.GiftCards; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class UnlinkCustomerTest : BaseMockServerTest @@ -62,7 +61,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.GiftCards.UnlinkCustomerAsync( + var response = await Client.Default.GiftCards.UnlinkCustomerAsync( new UnlinkCustomerFromGiftCardRequest { GiftCardId = "gift_card_id", diff --git a/src/Square.Test/Unit/MockServer/Catalog/UpdateItemModifierListsTest.cs b/src/Square.Test/Unit/MockServer/Default/UpdateItemModifierListsTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Catalog/UpdateItemModifierListsTest.cs rename to src/Square.Test/Unit/MockServer/Default/UpdateItemModifierListsTest.cs index f8b50e52..a21d286a 100644 --- a/src/Square.Test/Unit/MockServer/Catalog/UpdateItemModifierListsTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/UpdateItemModifierListsTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; -using Square.Catalog; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Catalog; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class UpdateItemModifierListsTest : BaseMockServerTest @@ -58,7 +57,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Catalog.UpdateItemModifierListsAsync( + var response = await Client.Default.Catalog.UpdateItemModifierListsAsync( new UpdateItemModifierListsRequest { ItemIds = new List() diff --git a/src/Square.Test/Unit/MockServer/Catalog/UpdateItemTaxesTest.cs b/src/Square.Test/Unit/MockServer/Default/UpdateItemTaxesTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Catalog/UpdateItemTaxesTest.cs rename to src/Square.Test/Unit/MockServer/Default/UpdateItemTaxesTest.cs index fa88f914..cb9d35b9 100644 --- a/src/Square.Test/Unit/MockServer/Catalog/UpdateItemTaxesTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/UpdateItemTaxesTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; -using Square.Catalog; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Catalog; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class UpdateItemTaxesTest : BaseMockServerTest @@ -57,7 +56,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Catalog.UpdateItemTaxesAsync( + var response = await Client.Default.Catalog.UpdateItemTaxesAsync( new UpdateItemTaxesRequest { ItemIds = new List() diff --git a/src/Square.Test/Unit/MockServer/Team/UpdateJobTest.cs b/src/Square.Test/Unit/MockServer/Default/UpdateJobTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Team/UpdateJobTest.cs rename to src/Square.Test/Unit/MockServer/Default/UpdateJobTest.cs index b18878b0..f5f250c3 100644 --- a/src/Square.Test/Unit/MockServer/Team/UpdateJobTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/UpdateJobTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Team; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Team; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class UpdateJobTest : BaseMockServerTest @@ -58,7 +57,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Team.UpdateJobAsync( + var response = await Client.Default.Team.UpdateJobAsync( new UpdateJobRequest { JobId = "job_id", diff --git a/src/Square.Test/Unit/MockServer/Checkout/UpdateLocationSettingsTest.cs b/src/Square.Test/Unit/MockServer/Default/UpdateLocationSettingsTest.cs similarity index 94% rename from src/Square.Test/Unit/MockServer/Checkout/UpdateLocationSettingsTest.cs rename to src/Square.Test/Unit/MockServer/Default/UpdateLocationSettingsTest.cs index 60f4338e..eb35b034 100644 --- a/src/Square.Test/Unit/MockServer/Checkout/UpdateLocationSettingsTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/UpdateLocationSettingsTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; -using Square.Checkout; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Checkout; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class UpdateLocationSettingsTest : BaseMockServerTest @@ -84,7 +83,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Checkout.UpdateLocationSettingsAsync( + var response = await Client.Default.Checkout.UpdateLocationSettingsAsync( new UpdateLocationSettingsRequest { LocationId = "location_id", diff --git a/src/Square.Test/Unit/MockServer/Checkout/UpdateMerchantSettingsTest.cs b/src/Square.Test/Unit/MockServer/Default/UpdateMerchantSettingsTest.cs similarity index 94% rename from src/Square.Test/Unit/MockServer/Checkout/UpdateMerchantSettingsTest.cs rename to src/Square.Test/Unit/MockServer/Default/UpdateMerchantSettingsTest.cs index cba35d98..683d7b82 100644 --- a/src/Square.Test/Unit/MockServer/Checkout/UpdateMerchantSettingsTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/UpdateMerchantSettingsTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; -using Square.Checkout; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Checkout; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class UpdateMerchantSettingsTest : BaseMockServerTest @@ -81,7 +80,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Checkout.UpdateMerchantSettingsAsync( + var response = await Client.Default.Checkout.UpdateMerchantSettingsAsync( new UpdateMerchantSettingsRequest { MerchantSettings = new CheckoutMerchantSettings() } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Labor/UpdateScheduledShiftTest.cs b/src/Square.Test/Unit/MockServer/Default/UpdateScheduledShiftTest.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/Labor/UpdateScheduledShiftTest.cs rename to src/Square.Test/Unit/MockServer/Default/UpdateScheduledShiftTest.cs index ede3c05e..8b21d176 100644 --- a/src/Square.Test/Unit/MockServer/Labor/UpdateScheduledShiftTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/UpdateScheduledShiftTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Labor; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Labor; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class UpdateScheduledShiftTest : BaseMockServerTest @@ -84,7 +83,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Labor.UpdateScheduledShiftAsync( + var response = await Client.Default.Labor.UpdateScheduledShiftAsync( new UpdateScheduledShiftRequest { Id = "id", diff --git a/src/Square.Test/Unit/MockServer/Bookings/UpdateTest.cs b/src/Square.Test/Unit/MockServer/Default/UpdateTest.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/Bookings/UpdateTest.cs rename to src/Square.Test/Unit/MockServer/Default/UpdateTest.cs index 5680f27f..7d330644 100644 --- a/src/Square.Test/Unit/MockServer/Bookings/UpdateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/UpdateTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; -using Square.Bookings; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Bookings; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class UpdateTest : BaseMockServerTest @@ -92,7 +91,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Bookings.UpdateAsync( + var response = await Client.Default.Bookings.UpdateAsync( new UpdateBookingRequest { BookingId = "booking_id", Booking = new Booking() } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Vendors/UpdateTest.cs b/src/Square.Test/Unit/MockServer/Default/UpdateTest_.cs similarity index 95% rename from src/Square.Test/Unit/MockServer/Vendors/UpdateTest.cs rename to src/Square.Test/Unit/MockServer/Default/UpdateTest_.cs index 78c9948e..8dd42b11 100644 --- a/src/Square.Test/Unit/MockServer/Vendors/UpdateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/UpdateTest_.cs @@ -1,13 +1,12 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -using Square.Vendors; -namespace Square.Test.Unit.MockServer.Vendors; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] -public class UpdateTest : BaseMockServerTest +public class UpdateTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -88,7 +87,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Vendors.UpdateAsync( + var response = await Client.Default.Vendors.UpdateAsync( new UpdateVendorsRequest { VendorId = "vendor_id", diff --git a/src/Square.Test/Unit/MockServer/Labor/UpdateTimecardTest.cs b/src/Square.Test/Unit/MockServer/Default/UpdateTimecardTest.cs similarity index 97% rename from src/Square.Test/Unit/MockServer/Labor/UpdateTimecardTest.cs rename to src/Square.Test/Unit/MockServer/Default/UpdateTimecardTest.cs index c7ccc907..04a998b5 100644 --- a/src/Square.Test/Unit/MockServer/Labor/UpdateTimecardTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/UpdateTimecardTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Labor; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Labor; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class UpdateTimecardTest : BaseMockServerTest @@ -113,7 +112,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Labor.UpdateTimecardAsync( + var response = await Client.Default.Labor.UpdateTimecardAsync( new UpdateTimecardRequest { Id = "id", diff --git a/src/Square.Test/Unit/MockServer/Snippets/UpsertTest.cs b/src/Square.Test/Unit/MockServer/Default/UpsertTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Snippets/UpsertTest.cs rename to src/Square.Test/Unit/MockServer/Default/UpsertTest.cs index 3e0a8c00..2c974daa 100644 --- a/src/Square.Test/Unit/MockServer/Snippets/UpsertTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/UpsertTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; -using Square.Snippets; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Snippets; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class UpsertTest : BaseMockServerTest @@ -56,7 +55,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Snippets.UpsertAsync( + var response = await Client.Default.Snippets.UpsertAsync( new UpsertSnippetRequest { SiteId = "site_id", diff --git a/src/Square.Test/Unit/MockServer/V1Transactions/V1ListOrdersTest.cs b/src/Square.Test/Unit/MockServer/Default/V1ListOrdersTest.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/V1Transactions/V1ListOrdersTest.cs rename to src/Square.Test/Unit/MockServer/Default/V1ListOrdersTest.cs index 802a6629..66a20a8f 100644 --- a/src/Square.Test/Unit/MockServer/V1Transactions/V1ListOrdersTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/V1ListOrdersTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -using Square.V1Transactions; -namespace Square.Test.Unit.MockServer.V1Transactions; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class V1ListOrdersTest : BaseMockServerTest @@ -111,7 +110,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.V1Transactions.V1ListOrdersAsync( + var response = await Client.Default.V1Transactions.V1ListOrdersAsync( new V1ListOrdersRequest { LocationId = "location_id", diff --git a/src/Square.Test/Unit/MockServer/V1Transactions/V1RetrieveOrderTest.cs b/src/Square.Test/Unit/MockServer/Default/V1RetrieveOrderTest.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/V1Transactions/V1RetrieveOrderTest.cs rename to src/Square.Test/Unit/MockServer/Default/V1RetrieveOrderTest.cs index 6163e611..83852059 100644 --- a/src/Square.Test/Unit/MockServer/V1Transactions/V1RetrieveOrderTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/V1RetrieveOrderTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -using Square.V1Transactions; -namespace Square.Test.Unit.MockServer.V1Transactions; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class V1RetrieveOrderTest : BaseMockServerTest @@ -127,7 +126,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.V1Transactions.V1RetrieveOrderAsync( + var response = await Client.Default.V1Transactions.V1RetrieveOrderAsync( new V1RetrieveOrderRequest { LocationId = "location_id", OrderId = "order_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/V1Transactions/V1UpdateOrderTest.cs b/src/Square.Test/Unit/MockServer/Default/V1UpdateOrderTest.cs similarity index 96% rename from src/Square.Test/Unit/MockServer/V1Transactions/V1UpdateOrderTest.cs rename to src/Square.Test/Unit/MockServer/Default/V1UpdateOrderTest.cs index 316a7054..a1f24893 100644 --- a/src/Square.Test/Unit/MockServer/V1Transactions/V1UpdateOrderTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/V1UpdateOrderTest.cs @@ -1,10 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -using Square.V1Transactions; -namespace Square.Test.Unit.MockServer.V1Transactions; +namespace Square.Test.Unit.MockServer.Default; [TestFixture] public class V1UpdateOrderTest : BaseMockServerTest @@ -135,7 +134,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.V1Transactions.V1UpdateOrderAsync( + var response = await Client.Default.V1Transactions.V1UpdateOrderAsync( new V1UpdateOrderRequest { LocationId = "location_id", diff --git a/src/Square.Test/Unit/MockServer/Webhooks/Subscriptions/CreateTest.cs b/src/Square.Test/Unit/MockServer/Default/Webhooks/CreateTest.cs similarity index 93% rename from src/Square.Test/Unit/MockServer/Webhooks/Subscriptions/CreateTest.cs rename to src/Square.Test/Unit/MockServer/Default/Webhooks/CreateTest.cs index 4aaf6283..ff16e6d0 100644 --- a/src/Square.Test/Unit/MockServer/Webhooks/Subscriptions/CreateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Webhooks/CreateTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; +using Square.Default.Webhooks; using Square.Test.Unit.MockServer; -using Square.Webhooks.Subscriptions; -namespace Square.Test.Unit.MockServer.Webhooks.Subscriptions; +namespace Square.Test.Unit.MockServer.Default.Webhooks; [TestFixture] public class CreateTest : BaseMockServerTest @@ -70,7 +70,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Webhooks.Subscriptions.CreateAsync( + var response = await Client.Default.Webhooks.Subscriptions.CreateAsync( new CreateWebhookSubscriptionRequest { IdempotencyKey = "63f84c6c-2200-4c99-846c-2670a1311fbf", diff --git a/src/Square.Test/Unit/MockServer/Webhooks/Subscriptions/DeleteTest.cs b/src/Square.Test/Unit/MockServer/Default/Webhooks/DeleteTest.cs similarity index 87% rename from src/Square.Test/Unit/MockServer/Webhooks/Subscriptions/DeleteTest.cs rename to src/Square.Test/Unit/MockServer/Default/Webhooks/DeleteTest.cs index 9d7ed23f..ea7ae54f 100644 --- a/src/Square.Test/Unit/MockServer/Webhooks/Subscriptions/DeleteTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Webhooks/DeleteTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; +using Square.Default.Webhooks; using Square.Test.Unit.MockServer; -using Square.Webhooks.Subscriptions; -namespace Square.Test.Unit.MockServer.Webhooks.Subscriptions; +namespace Square.Test.Unit.MockServer.Default.Webhooks; [TestFixture] public class DeleteTest : BaseMockServerTest @@ -39,7 +39,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Webhooks.Subscriptions.DeleteAsync( + var response = await Client.Default.Webhooks.Subscriptions.DeleteAsync( new DeleteSubscriptionsRequest { SubscriptionId = "subscription_id" } ); Assert.That( diff --git a/src/Square.Test/Unit/MockServer/Webhooks/Subscriptions/GetTest.cs b/src/Square.Test/Unit/MockServer/Default/Webhooks/GetTest.cs similarity index 89% rename from src/Square.Test/Unit/MockServer/Webhooks/Subscriptions/GetTest.cs rename to src/Square.Test/Unit/MockServer/Default/Webhooks/GetTest.cs index 5569680d..2b9177a0 100644 --- a/src/Square.Test/Unit/MockServer/Webhooks/Subscriptions/GetTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Webhooks/GetTest.cs @@ -1,9 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Webhooks.Subscriptions; +namespace Square.Test.Unit.MockServer.Default.Webhooks; [TestFixture] public class GetTest : BaseMockServerTest @@ -52,8 +52,8 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Webhooks.Subscriptions.GetAsync( - new Square.Webhooks.Subscriptions.GetSubscriptionsRequest + var response = await Client.Default.Webhooks.Subscriptions.GetAsync( + new Square.Default.Webhooks.GetSubscriptionsRequest { SubscriptionId = "subscription_id", } diff --git a/src/Square.Test/Unit/MockServer/Webhooks/EventTypes/ListTest.cs b/src/Square.Test/Unit/MockServer/Default/Webhooks/ListTest.cs similarity index 86% rename from src/Square.Test/Unit/MockServer/Webhooks/EventTypes/ListTest.cs rename to src/Square.Test/Unit/MockServer/Default/Webhooks/ListTest.cs index 60715e25..9bcb5ad2 100644 --- a/src/Square.Test/Unit/MockServer/Webhooks/EventTypes/ListTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Webhooks/ListTest.cs @@ -1,9 +1,9 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; using Square.Test.Unit.MockServer; -namespace Square.Test.Unit.MockServer.Webhooks.EventTypes; +namespace Square.Test.Unit.MockServer.Default.Webhooks; [TestFixture] public class ListTest : BaseMockServerTest @@ -49,8 +49,8 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Webhooks.EventTypes.ListAsync( - new Square.Webhooks.EventTypes.ListEventTypesRequest { ApiVersion = "api_version" } + var response = await Client.Default.Webhooks.EventTypes.ListAsync( + new Square.Default.Webhooks.ListEventTypesRequest { ApiVersion = "api_version" } ); Assert.That( response, diff --git a/src/Square.Test/Unit/MockServer/Webhooks/Subscriptions/ListTest.cs b/src/Square.Test/Unit/MockServer/Default/Webhooks/ListTest_.cs similarity index 90% rename from src/Square.Test/Unit/MockServer/Webhooks/Subscriptions/ListTest.cs rename to src/Square.Test/Unit/MockServer/Default/Webhooks/ListTest_.cs index cbdd3f78..f21d33c7 100644 --- a/src/Square.Test/Unit/MockServer/Webhooks/Subscriptions/ListTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Webhooks/ListTest_.cs @@ -1,12 +1,12 @@ using NUnit.Framework; -using Square; +using Square.Default; +using Square.Default.Webhooks; using Square.Test.Unit.MockServer; -using Square.Webhooks.Subscriptions; -namespace Square.Test.Unit.MockServer.Webhooks.Subscriptions; +namespace Square.Test.Unit.MockServer.Default.Webhooks; [TestFixture] -public class ListTest : BaseMockServerTest +public class ListTest_ : BaseMockServerTest { [NUnit.Framework.Test] public async Task MockServerTest() @@ -58,7 +58,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var items = await Client.Webhooks.Subscriptions.ListAsync( + var items = await Client.Default.Webhooks.Subscriptions.ListAsync( new ListSubscriptionsRequest { Cursor = "cursor", diff --git a/src/Square.Test/Unit/MockServer/Webhooks/Subscriptions/TestTest.cs b/src/Square.Test/Unit/MockServer/Default/Webhooks/TestTest.cs similarity index 92% rename from src/Square.Test/Unit/MockServer/Webhooks/Subscriptions/TestTest.cs rename to src/Square.Test/Unit/MockServer/Default/Webhooks/TestTest.cs index 99a0ec85..e80ba70c 100644 --- a/src/Square.Test/Unit/MockServer/Webhooks/Subscriptions/TestTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Webhooks/TestTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; +using Square.Default.Webhooks; using Square.Test.Unit.MockServer; -using Square.Webhooks.Subscriptions; -namespace Square.Test.Unit.MockServer.Webhooks.Subscriptions; +namespace Square.Test.Unit.MockServer.Default.Webhooks; [TestFixture] public class TestTest : BaseMockServerTest @@ -64,7 +64,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Webhooks.Subscriptions.TestAsync( + var response = await Client.Default.Webhooks.Subscriptions.TestAsync( new TestWebhookSubscriptionRequest { SubscriptionId = "subscription_id", diff --git a/src/Square.Test/Unit/MockServer/Webhooks/Subscriptions/UpdateSignatureKeyTest.cs b/src/Square.Test/Unit/MockServer/Default/Webhooks/UpdateSignatureKeyTest.cs similarity index 90% rename from src/Square.Test/Unit/MockServer/Webhooks/Subscriptions/UpdateSignatureKeyTest.cs rename to src/Square.Test/Unit/MockServer/Default/Webhooks/UpdateSignatureKeyTest.cs index 8a2f86f3..f4da138a 100644 --- a/src/Square.Test/Unit/MockServer/Webhooks/Subscriptions/UpdateSignatureKeyTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Webhooks/UpdateSignatureKeyTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; +using Square.Default.Webhooks; using Square.Test.Unit.MockServer; -using Square.Webhooks.Subscriptions; -namespace Square.Test.Unit.MockServer.Webhooks.Subscriptions; +namespace Square.Test.Unit.MockServer.Default.Webhooks; [TestFixture] public class UpdateSignatureKeyTest : BaseMockServerTest @@ -48,7 +48,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Webhooks.Subscriptions.UpdateSignatureKeyAsync( + var response = await Client.Default.Webhooks.Subscriptions.UpdateSignatureKeyAsync( new UpdateWebhookSubscriptionSignatureKeyRequest { SubscriptionId = "subscription_id", diff --git a/src/Square.Test/Unit/MockServer/Webhooks/Subscriptions/UpdateTest.cs b/src/Square.Test/Unit/MockServer/Default/Webhooks/UpdateTest.cs similarity index 92% rename from src/Square.Test/Unit/MockServer/Webhooks/Subscriptions/UpdateTest.cs rename to src/Square.Test/Unit/MockServer/Default/Webhooks/UpdateTest.cs index 4c9723db..316c1c68 100644 --- a/src/Square.Test/Unit/MockServer/Webhooks/Subscriptions/UpdateTest.cs +++ b/src/Square.Test/Unit/MockServer/Default/Webhooks/UpdateTest.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using Square; using Square.Core; +using Square.Default; +using Square.Default.Webhooks; using Square.Test.Unit.MockServer; -using Square.Webhooks.Subscriptions; -namespace Square.Test.Unit.MockServer.Webhooks.Subscriptions; +namespace Square.Test.Unit.MockServer.Default.Webhooks; [TestFixture] public class UpdateTest : BaseMockServerTest @@ -64,7 +64,7 @@ public async Task MockServerTest() .WithBody(mockResponse) ); - var response = await Client.Webhooks.Subscriptions.UpdateAsync( + var response = await Client.Default.Webhooks.Subscriptions.UpdateAsync( new UpdateWebhookSubscriptionRequest { SubscriptionId = "subscription_id", diff --git a/src/Square.Test/Unit/MockServer/Devices/GetTest.cs b/src/Square.Test/Unit/MockServer/Devices/GetTest.cs deleted file mode 100644 index 9ad03825..00000000 --- a/src/Square.Test/Unit/MockServer/Devices/GetTest.cs +++ /dev/null @@ -1,107 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Devices; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Devices; - -[TestFixture] -public class GetTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "device": { - "id": "device:995CS397A6475287", - "attributes": { - "type": "TERMINAL", - "manufacturer": "Square", - "model": "T2", - "name": "Square Terminal 995", - "manufacturers_id": "995CS397A6475287", - "updated_at": "2023-09-29T13:12:22.365Z", - "version": "5.41.0085", - "merchant_token": "MLCHXZCBWFGDW" - }, - "components": [ - { - "type": "APPLICATION", - "application_details": { - "application_type": "TERMINAL_API", - "version": "6.25", - "session_location": "LMN2K7S3RTOU3" - } - }, - { - "type": "CARD_READER", - "card_reader_details": { - "version": "3.53.70" - } - }, - { - "type": "BATTERY", - "battery_details": { - "visible_percent": 5, - "external_power": "AVAILABLE_CHARGING" - } - }, - { - "type": "WIFI", - "wifi_details": { - "active": true, - "ssid": "Staff Network", - "ip_address_v4": "10.0.0.7", - "secure_connection": "WPA/WPA2 PSK", - "signal_strength": { - "value": 2 - } - } - }, - { - "type": "ETHERNET", - "ethernet_details": { - "active": false - } - } - ], - "status": { - "category": "AVAILABLE" - } - } - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/devices/device_id") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Devices.GetAsync( - new GetDevicesRequest { DeviceId = "device_id" } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Devices/ListTest.cs b/src/Square.Test/Unit/MockServer/Devices/ListTest.cs deleted file mode 100644 index a4bd74eb..00000000 --- a/src/Square.Test/Unit/MockServer/Devices/ListTest.cs +++ /dev/null @@ -1,177 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Devices; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Devices; - -[TestFixture] -public class ListTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "devices": [ - { - "id": "device:995CS397A6475287", - "attributes": { - "type": "TERMINAL", - "manufacturer": "Square", - "model": "Square Terminal (1st Gen, v2)", - "name": "Square Terminal 5287", - "manufacturers_id": "995CS397A6475287", - "updated_at": "2025-08-19T13:04:56.335Z", - "version": "5.57.0067", - "merchant_token": "MLCHNZCBWFDZB" - }, - "components": [ - { - "type": "APPLICATION", - "application_details": { - "application_type": "TERMINAL_API", - "version": "6.77", - "session_location": "LMN2K7S3RTOU3" - } - }, - { - "type": "CARD_READER", - "card_reader_details": { - "version": "4.1.51" - } - }, - { - "type": "BATTERY", - "battery_details": { - "visible_percent": 77, - "external_power": "AVAILABLE_CHARGING" - } - }, - { - "type": "WIFI", - "wifi_details": { - "active": true, - "ssid": "Staff Network", - "ip_address_v4": "10.0.0.7", - "secure_connection": "WPA/WPA2 PSK", - "signal_strength": { - "value": 2 - } - } - }, - { - "type": "ETHERNET", - "ethernet_details": { - "active": false - } - } - ], - "status": { - "category": "AVAILABLE" - } - }, - { - "id": "device:998WS21803L03559", - "attributes": { - "type": "HANDHELD", - "manufacturer": "Square", - "model": "Square Handheld (1st Gen, v1)", - "name": "Square Terminal 3559", - "manufacturers_id": "998WS21803L03559", - "updated_at": "2025-08-19T12:39:56.335Z", - "version": "7.21.0017", - "merchant_token": "MLCHXZCBWFGDW" - }, - "components": [ - { - "type": "APPLICATION", - "application_details": { - "application_type": "TERMINAL_API", - "version": "6.77", - "session_location": "LMN2K7S3RTOU3" - } - }, - { - "type": "CARD_READER", - "card_reader_details": { - "version": "4.5.58" - } - }, - { - "type": "BATTERY", - "battery_details": { - "visible_percent": 22, - "external_power": "AVAILABLE_CHARGING" - } - }, - { - "type": "WIFI", - "wifi_details": { - "active": true, - "ssid": "Staff Network", - "ip_address_v4": "10.0.0.7", - "secure_connection": "WPA/WPA2 PSK", - "signal_strength": { - "value": 2 - } - } - }, - { - "type": "ETHERNET", - "ethernet_details": { - "active": false - } - } - ], - "status": { - "category": "NEEDS_ATTENTION" - } - } - ], - "cursor": "GcXjlV2iaizH7R0fMT6wUDbw6l4otigjzx8XOOspUKHo9EPLRByM" - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/devices") - .WithParam("cursor", "cursor") - .WithParam("sort_order", "DESC") - .WithParam("limit", "1") - .WithParam("location_id", "location_id") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var items = await Client.Devices.ListAsync( - new ListDevicesRequest - { - Cursor = "cursor", - SortOrder = SortOrder.Desc, - Limit = 1, - LocationId = "location_id", - } - ); - await foreach (var item in items) - { - Assert.That(item, Is.Not.Null); - break; // Only check the first item - } - } -} diff --git a/src/Square.Test/Unit/MockServer/Disputes/GetTest.cs b/src/Square.Test/Unit/MockServer/Disputes/GetTest.cs deleted file mode 100644 index 27215e7d..00000000 --- a/src/Square.Test/Unit/MockServer/Disputes/GetTest.cs +++ /dev/null @@ -1,75 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Disputes; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Disputes; - -[TestFixture] -public class GetTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "dispute": { - "dispute_id": "dispute_id", - "id": "XDgyFu7yo1E2S5lQGGpYn", - "amount_money": { - "amount": 2500, - "currency": "USD" - }, - "reason": "NO_KNOWLEDGE", - "state": "ACCEPTED", - "due_at": "2022-07-13T00:00:00.000Z", - "disputed_payment": { - "payment_id": "zhyh1ch64kRBrrlfVhwjCEjZWzNZY" - }, - "evidence_ids": [ - "evidence_ids" - ], - "card_brand": "VISA", - "created_at": "2022-06-29T18:45:22.265Z", - "updated_at": "2022-07-07T19:14:42.650Z", - "brand_dispute_id": "100000809947", - "reported_date": "reported_date", - "reported_at": "2022-06-29T00:00:00.000Z", - "version": 2, - "location_id": "L1HN3ZMQK64X9" - } - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/disputes/dispute_id") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Disputes.GetAsync( - new GetDisputesRequest { DisputeId = "dispute_id" } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Disputes/ListTest.cs b/src/Square.Test/Unit/MockServer/Disputes/ListTest.cs deleted file mode 100644 index d1aae50e..00000000 --- a/src/Square.Test/Unit/MockServer/Disputes/ListTest.cs +++ /dev/null @@ -1,111 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Disputes; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Disputes; - -[TestFixture] -public class ListTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "disputes": [ - { - "dispute_id": "dispute_id", - "id": "XDgyFu7yo1E2S5lQGGpYn", - "amount_money": { - "amount": 2500, - "currency": "USD" - }, - "reason": "NO_KNOWLEDGE", - "state": "ACCEPTED", - "due_at": "2022-07-13T00:00:00.000Z", - "disputed_payment": { - "payment_id": "zhyh1ch64kRBrrlfVhwjCEjZWzNZY" - }, - "evidence_ids": [ - "evidence_ids" - ], - "card_brand": "VISA", - "created_at": "2022-06-29T18:45:22.265Z", - "updated_at": "2022-07-07T19:14:42.650Z", - "brand_dispute_id": "100000809947", - "reported_date": "reported_date", - "reported_at": "2022-06-29T00:00:00.000Z", - "version": 2, - "location_id": "L1HN3ZMQK64X9" - }, - { - "dispute_id": "dispute_id", - "id": "jLGg7aXC7lvKPr9PISt0T", - "amount_money": { - "amount": 2209, - "currency": "USD" - }, - "reason": "NOT_AS_DESCRIBED", - "state": "EVIDENCE_REQUIRED", - "due_at": "2022-05-13T00:00:00.000Z", - "disputed_payment": { - "payment_id": "zhyh1ch64kRBrrlfVhwjCEjZWzNZY" - }, - "evidence_ids": [ - "evidence_ids" - ], - "card_brand": "VISA", - "created_at": "2022-04-29T18:45:22.265Z", - "updated_at": "2022-04-29T18:45:22.265Z", - "brand_dispute_id": "r5Of6YaGT7AdeRaVoAGCJw", - "reported_date": "reported_date", - "reported_at": "2022-04-29T00:00:00.000Z", - "version": 1, - "location_id": "18YC4JDH91E1H" - } - ], - "cursor": "G1aSTRm48CLjJsg6Sg3hQN1b1OMaoVuG" - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/disputes") - .WithParam("cursor", "cursor") - .WithParam("states", "INQUIRY_EVIDENCE_REQUIRED") - .WithParam("location_id", "location_id") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var items = await Client.Disputes.ListAsync( - new ListDisputesRequest - { - Cursor = "cursor", - States = DisputeState.InquiryEvidenceRequired, - LocationId = "location_id", - } - ); - await foreach (var item in items) - { - Assert.That(item, Is.Not.Null); - break; // Only check the first item - } - } -} diff --git a/src/Square.Test/Unit/MockServer/Employees/GetTest.cs b/src/Square.Test/Unit/MockServer/Employees/GetTest.cs deleted file mode 100644 index 3434ff36..00000000 --- a/src/Square.Test/Unit/MockServer/Employees/GetTest.cs +++ /dev/null @@ -1,59 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Employees; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Employees; - -[TestFixture] -public class GetTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "employee": { - "id": "id", - "first_name": "first_name", - "last_name": "last_name", - "email": "email", - "phone_number": "phone_number", - "location_ids": [ - "location_ids" - ], - "status": "ACTIVE", - "is_owner": true, - "created_at": "created_at", - "updated_at": "updated_at" - }, - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock.RequestBuilders.Request.Create().WithPath("/v2/employees/id").UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Employees.GetAsync(new GetEmployeesRequest { Id = "id" }); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Employees/ListTest.cs b/src/Square.Test/Unit/MockServer/Employees/ListTest.cs deleted file mode 100644 index 07e6fa1d..00000000 --- a/src/Square.Test/Unit/MockServer/Employees/ListTest.cs +++ /dev/null @@ -1,77 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Employees; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Employees; - -[TestFixture] -public class ListTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "employees": [ - { - "id": "id", - "first_name": "first_name", - "last_name": "last_name", - "email": "email", - "phone_number": "phone_number", - "location_ids": [ - "location_ids" - ], - "status": "ACTIVE", - "is_owner": true, - "created_at": "created_at", - "updated_at": "updated_at" - } - ], - "cursor": "cursor", - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/employees") - .WithParam("location_id", "location_id") - .WithParam("status", "ACTIVE") - .WithParam("limit", "1") - .WithParam("cursor", "cursor") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var items = await Client.Employees.ListAsync( - new ListEmployeesRequest - { - LocationId = "location_id", - Status = EmployeeStatus.Active, - Limit = 1, - Cursor = "cursor", - } - ); - await foreach (var item in items) - { - Assert.That(item, Is.Not.Null); - break; // Only check the first item - } - } -} diff --git a/src/Square.Test/Unit/MockServer/GiftCards/CreateTest.cs b/src/Square.Test/Unit/MockServer/GiftCards/CreateTest.cs deleted file mode 100644 index 95df35a6..00000000 --- a/src/Square.Test/Unit/MockServer/GiftCards/CreateTest.cs +++ /dev/null @@ -1,82 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.GiftCards; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.GiftCards; - -[TestFixture] -public class CreateTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string requestJson = """ - { - "idempotency_key": "NC9Tm69EjbjtConu", - "location_id": "81FN9BNFZTKS4", - "gift_card": { - "type": "DIGITAL" - } - } - """; - - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "gift_card": { - "id": "gftc:6cbacbb64cf54e2ca9f573d619038059", - "type": "DIGITAL", - "gan_source": "SQUARE", - "state": "PENDING", - "balance_money": { - "amount": 0, - "currency": "USD" - }, - "gan": "7783320006753271", - "created_at": "2021-05-20T22:26:54.000Z", - "customer_ids": [ - "customer_ids" - ] - } - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/gift-cards") - .WithHeader("Content-Type", "application/json") - .UsingPost() - .WithBodyAsJson(requestJson) - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.GiftCards.CreateAsync( - new CreateGiftCardRequest - { - IdempotencyKey = "NC9Tm69EjbjtConu", - LocationId = "81FN9BNFZTKS4", - GiftCard = new GiftCard { Type = GiftCardType.Digital }, - } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/GiftCards/GetTest.cs b/src/Square.Test/Unit/MockServer/GiftCards/GetTest.cs deleted file mode 100644 index ebfd1279..00000000 --- a/src/Square.Test/Unit/MockServer/GiftCards/GetTest.cs +++ /dev/null @@ -1,60 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.GiftCards; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.GiftCards; - -[TestFixture] -public class GetTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "gift_card": { - "id": "gftc:00113070ba5745f0b2377c1b9570cb03", - "type": "DIGITAL", - "gan_source": "SQUARE", - "state": "ACTIVE", - "balance_money": { - "amount": 1000, - "currency": "USD" - }, - "gan": "7783320001001635", - "created_at": "2021-05-20T22:26:54.000Z", - "customer_ids": [ - "customer_ids" - ] - } - } - """; - - Server - .Given( - WireMock.RequestBuilders.Request.Create().WithPath("/v2/gift-cards/id").UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.GiftCards.GetAsync(new GetGiftCardsRequest { Id = "id" }); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/GiftCards/ListTest.cs b/src/Square.Test/Unit/MockServer/GiftCards/ListTest.cs deleted file mode 100644 index 80bfbb2d..00000000 --- a/src/Square.Test/Unit/MockServer/GiftCards/ListTest.cs +++ /dev/null @@ -1,94 +0,0 @@ -using NUnit.Framework; -using Square.GiftCards; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.GiftCards; - -[TestFixture] -public class ListTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "gift_cards": [ - { - "id": "gftc:00113070ba5745f0b2377c1b9570cb03", - "type": "DIGITAL", - "gan_source": "SQUARE", - "state": "ACTIVE", - "balance_money": { - "amount": 3900, - "currency": "USD" - }, - "gan": "7783320008524605", - "created_at": "2021-06-09T22:26:54.000Z", - "customer_ids": [ - "customer_ids" - ] - }, - { - "id": "gftc:00128a12725b41e58e0de1d20497a9dd", - "type": "DIGITAL", - "gan_source": "SQUARE", - "state": "ACTIVE", - "balance_money": { - "amount": 2000, - "currency": "USD" - }, - "gan": "7783320002692465", - "created_at": "2021-05-20T22:26:54.000Z", - "customer_ids": [ - "customer_ids" - ] - } - ], - "cursor": "JbFmyvUpaNKsfC1hoLSA4WlqkgkZXTWeKuStajR5BkP7OE0ETAbeWSi6U6u7sH" - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/gift-cards") - .WithParam("type", "type") - .WithParam("state", "state") - .WithParam("limit", "1") - .WithParam("cursor", "cursor") - .WithParam("customer_id", "customer_id") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var items = await Client.GiftCards.ListAsync( - new ListGiftCardsRequest - { - Type = "type", - State = "state", - Limit = 1, - Cursor = "cursor", - CustomerId = "customer_id", - } - ); - await foreach (var item in items) - { - Assert.That(item, Is.Not.Null); - break; // Only check the first item - } - } -} diff --git a/src/Square.Test/Unit/MockServer/Inventory/GetTest.cs b/src/Square.Test/Unit/MockServer/Inventory/GetTest.cs deleted file mode 100644 index c2c7fddc..00000000 --- a/src/Square.Test/Unit/MockServer/Inventory/GetTest.cs +++ /dev/null @@ -1,68 +0,0 @@ -using NUnit.Framework; -using Square.Inventory; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Inventory; - -[TestFixture] -public class GetTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "counts": [ - { - "catalog_object_id": "W62UWFY35CWMYGVWK6TWJDNI", - "catalog_object_type": "ITEM_VARIATION", - "state": "IN_STOCK", - "location_id": "C6W5YS5QM06F5", - "quantity": "22", - "calculated_at": "2016-11-16T22:28:01.223Z", - "is_estimated": true - } - ], - "cursor": "cursor" - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/inventory/catalog_object_id") - .WithParam("location_ids", "location_ids") - .WithParam("cursor", "cursor") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var items = await Client.Inventory.GetAsync( - new GetInventoryRequest - { - CatalogObjectId = "catalog_object_id", - LocationIds = "location_ids", - Cursor = "cursor", - } - ); - await foreach (var item in items) - { - Assert.That(item, Is.Not.Null); - break; // Only check the first item - } - } -} diff --git a/src/Square.Test/Unit/MockServer/Invoices/CancelTest.cs b/src/Square.Test/Unit/MockServer/Invoices/CancelTest.cs deleted file mode 100644 index 491f45ac..00000000 --- a/src/Square.Test/Unit/MockServer/Invoices/CancelTest.cs +++ /dev/null @@ -1,138 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Invoices; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Invoices; - -[TestFixture] -public class CancelTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string requestJson = """ - { - "version": 0 - } - """; - - const string mockResponse = """ - { - "invoice": { - "id": "inv:0-ChCHu2mZEabLeeHahQnXDjZQECY", - "version": 1, - "location_id": "ES0RJRZYEC39A", - "order_id": "CAISENgvlJ6jLWAzERDzjyHVybY", - "primary_recipient": { - "customer_id": "JDKYHBWT1D4F8MFH63DBMEN8Y4", - "given_name": "Amelia", - "family_name": "Earhart", - "email_address": "Amelia.Earhart@example.com", - "phone_number": "1-212-555-4240", - "company_name": "company_name" - }, - "payment_requests": [ - { - "uid": "2da7964f-f3d2-4f43-81e8-5aa220bf3355", - "request_type": "BALANCE", - "due_date": "2030-01-24", - "tipping_enabled": true, - "automatic_payment_source": "NONE", - "reminders": [ - { - "uid": "beebd363-e47f-4075-8785-c235aaa7df11", - "relative_scheduled_days": -1, - "message": "Your invoice is due tomorrow", - "status": "PENDING" - } - ], - "computed_amount_money": { - "amount": 10000, - "currency": "USD" - }, - "total_completed_amount_money": { - "amount": 0, - "currency": "USD" - } - } - ], - "delivery_method": "EMAIL", - "invoice_number": "inv-100", - "title": "Event Planning Services", - "description": "We appreciate your business!", - "scheduled_at": "2030-01-13T10:00:00.000Z", - "public_url": "public_url", - "next_payment_amount_money": { - "amount": 1000000, - "currency": "UNKNOWN_CURRENCY" - }, - "status": "CANCELED", - "timezone": "America/Los_Angeles", - "created_at": "2020-06-18T17:45:13.000Z", - "updated_at": "2020-06-18T18:23:11.000Z", - "accepted_payment_methods": { - "card": true, - "square_gift_card": false, - "bank_account": false, - "buy_now_pay_later": false, - "cash_app_pay": false - }, - "custom_fields": [ - { - "label": "Event Reference Number", - "value": "Ref. #1234", - "placement": "ABOVE_LINE_ITEMS" - }, - { - "label": "Terms of Service", - "value": "The terms of service are...", - "placement": "BELOW_LINE_ITEMS" - } - ], - "subscription_id": "subscription_id", - "sale_or_service_date": "2030-01-24", - "payment_conditions": "payment_conditions", - "store_payment_method_enabled": false, - "attachments": [ - {} - ], - "creator_team_member_id": "creator_team_member_id" - }, - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/invoices/invoice_id/cancel") - .WithHeader("Content-Type", "application/json") - .UsingPost() - .WithBodyAsJson(requestJson) - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Invoices.CancelAsync( - new CancelInvoiceRequest { InvoiceId = "invoice_id", Version = 0 } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Invoices/CreateTest.cs b/src/Square.Test/Unit/MockServer/Invoices/CreateTest.cs deleted file mode 100644 index f20c672a..00000000 --- a/src/Square.Test/Unit/MockServer/Invoices/CreateTest.cs +++ /dev/null @@ -1,245 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Invoices; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Invoices; - -[TestFixture] -public class CreateTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string requestJson = """ - { - "invoice": { - "location_id": "ES0RJRZYEC39A", - "order_id": "CAISENgvlJ6jLWAzERDzjyHVybY", - "primary_recipient": { - "customer_id": "JDKYHBWT1D4F8MFH63DBMEN8Y4" - }, - "payment_requests": [ - { - "request_type": "BALANCE", - "due_date": "2030-01-24", - "tipping_enabled": true, - "automatic_payment_source": "NONE", - "reminders": [ - { - "relative_scheduled_days": -1, - "message": "Your invoice is due tomorrow" - } - ] - } - ], - "delivery_method": "EMAIL", - "invoice_number": "inv-100", - "title": "Event Planning Services", - "description": "We appreciate your business!", - "scheduled_at": "2030-01-13T10:00:00.000Z", - "accepted_payment_methods": { - "card": true, - "square_gift_card": false, - "bank_account": false, - "buy_now_pay_later": false, - "cash_app_pay": false - }, - "custom_fields": [ - { - "label": "Event Reference Number", - "value": "Ref. #1234", - "placement": "ABOVE_LINE_ITEMS" - }, - { - "label": "Terms of Service", - "value": "The terms of service are...", - "placement": "BELOW_LINE_ITEMS" - } - ], - "sale_or_service_date": "2030-01-24", - "store_payment_method_enabled": false - }, - "idempotency_key": "ce3748f9-5fc1-4762-aa12-aae5e843f1f4" - } - """; - - const string mockResponse = """ - { - "invoice": { - "id": "inv:0-ChCHu2mZEabLeeHahQnXDjZQECY", - "version": 0, - "location_id": "ES0RJRZYEC39A", - "order_id": "CAISENgvlJ6jLWAzERDzjyHVybY", - "primary_recipient": { - "customer_id": "JDKYHBWT1D4F8MFH63DBMEN8Y4", - "given_name": "Amelia", - "family_name": "Earhart", - "email_address": "Amelia.Earhart@example.com", - "phone_number": "1-212-555-4240", - "company_name": "company_name" - }, - "payment_requests": [ - { - "uid": "2da7964f-f3d2-4f43-81e8-5aa220bf3355", - "request_type": "BALANCE", - "due_date": "2030-01-24", - "tipping_enabled": true, - "automatic_payment_source": "NONE", - "reminders": [ - { - "uid": "beebd363-e47f-4075-8785-c235aaa7df11", - "relative_scheduled_days": -1, - "message": "Your invoice is due tomorrow", - "status": "PENDING" - } - ], - "computed_amount_money": { - "amount": 10000, - "currency": "USD" - }, - "total_completed_amount_money": { - "amount": 0, - "currency": "USD" - } - } - ], - "delivery_method": "EMAIL", - "invoice_number": "inv-100", - "title": "Event Planning Services", - "description": "We appreciate your business!", - "scheduled_at": "2030-01-13T10:00:00.000Z", - "public_url": "public_url", - "next_payment_amount_money": { - "amount": 1000000, - "currency": "UNKNOWN_CURRENCY" - }, - "status": "DRAFT", - "timezone": "America/Los_Angeles", - "created_at": "2020-06-18T17:45:13.000Z", - "updated_at": "2020-06-18T17:45:13.000Z", - "accepted_payment_methods": { - "card": true, - "square_gift_card": false, - "bank_account": false, - "buy_now_pay_later": false, - "cash_app_pay": false - }, - "custom_fields": [ - { - "label": "Event Reference Number", - "value": "Ref. #1234", - "placement": "ABOVE_LINE_ITEMS" - }, - { - "label": "Terms of Service", - "value": "The terms of service are...", - "placement": "BELOW_LINE_ITEMS" - } - ], - "subscription_id": "subscription_id", - "sale_or_service_date": "2030-01-24", - "payment_conditions": "payment_conditions", - "store_payment_method_enabled": false, - "attachments": [ - {} - ], - "creator_team_member_id": "creator_team_member_id" - }, - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/invoices") - .WithHeader("Content-Type", "application/json") - .UsingPost() - .WithBodyAsJson(requestJson) - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Invoices.CreateAsync( - new CreateInvoiceRequest - { - Invoice = new Invoice - { - LocationId = "ES0RJRZYEC39A", - OrderId = "CAISENgvlJ6jLWAzERDzjyHVybY", - PrimaryRecipient = new InvoiceRecipient - { - CustomerId = "JDKYHBWT1D4F8MFH63DBMEN8Y4", - }, - PaymentRequests = new List() - { - new InvoicePaymentRequest - { - RequestType = InvoiceRequestType.Balance, - DueDate = "2030-01-24", - TippingEnabled = true, - AutomaticPaymentSource = InvoiceAutomaticPaymentSource.None, - Reminders = new List() - { - new InvoicePaymentReminder - { - RelativeScheduledDays = -1, - Message = "Your invoice is due tomorrow", - }, - }, - }, - }, - DeliveryMethod = InvoiceDeliveryMethod.Email, - InvoiceNumber = "inv-100", - Title = "Event Planning Services", - Description = "We appreciate your business!", - ScheduledAt = "2030-01-13T10:00:00Z", - AcceptedPaymentMethods = new InvoiceAcceptedPaymentMethods - { - Card = true, - SquareGiftCard = false, - BankAccount = false, - BuyNowPayLater = false, - CashAppPay = false, - }, - CustomFields = new List() - { - new InvoiceCustomField - { - Label = "Event Reference Number", - Value = "Ref. #1234", - Placement = InvoiceCustomFieldPlacement.AboveLineItems, - }, - new InvoiceCustomField - { - Label = "Terms of Service", - Value = "The terms of service are...", - Placement = InvoiceCustomFieldPlacement.BelowLineItems, - }, - }, - SaleOrServiceDate = "2030-01-24", - StorePaymentMethodEnabled = false, - }, - IdempotencyKey = "ce3748f9-5fc1-4762-aa12-aae5e843f1f4", - } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Invoices/DeleteTest.cs b/src/Square.Test/Unit/MockServer/Invoices/DeleteTest.cs deleted file mode 100644 index 66057264..00000000 --- a/src/Square.Test/Unit/MockServer/Invoices/DeleteTest.cs +++ /dev/null @@ -1,51 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Invoices; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Invoices; - -[TestFixture] -public class DeleteTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/invoices/invoice_id") - .WithParam("version", "1") - .UsingDelete() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Invoices.DeleteAsync( - new DeleteInvoicesRequest { InvoiceId = "invoice_id", Version = 1 } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Invoices/GetTest.cs b/src/Square.Test/Unit/MockServer/Invoices/GetTest.cs deleted file mode 100644 index 343cbeea..00000000 --- a/src/Square.Test/Unit/MockServer/Invoices/GetTest.cs +++ /dev/null @@ -1,130 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Invoices; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Invoices; - -[TestFixture] -public class GetTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "invoice": { - "id": "inv:0-ChCHu2mZEabLeeHahQnXDjZQECY", - "version": 0, - "location_id": "ES0RJRZYEC39A", - "order_id": "CAISENgvlJ6jLWAzERDzjyHVybY", - "primary_recipient": { - "customer_id": "JDKYHBWT1D4F8MFH63DBMEN8Y4", - "given_name": "Amelia", - "family_name": "Earhart", - "email_address": "Amelia.Earhart@example.com", - "phone_number": "1-212-555-4240", - "company_name": "company_name" - }, - "payment_requests": [ - { - "uid": "2da7964f-f3d2-4f43-81e8-5aa220bf3355", - "request_type": "BALANCE", - "due_date": "2030-01-24", - "tipping_enabled": true, - "automatic_payment_source": "NONE", - "reminders": [ - { - "uid": "beebd363-e47f-4075-8785-c235aaa7df11", - "relative_scheduled_days": -1, - "message": "Your invoice is due tomorrow", - "status": "PENDING" - } - ], - "computed_amount_money": { - "amount": 10000, - "currency": "USD" - }, - "total_completed_amount_money": { - "amount": 0, - "currency": "USD" - } - } - ], - "delivery_method": "EMAIL", - "invoice_number": "inv-100", - "title": "Event Planning Services", - "description": "We appreciate your business!", - "scheduled_at": "2030-01-13T10:00:00.000Z", - "public_url": "public_url", - "next_payment_amount_money": { - "amount": 1000000, - "currency": "UNKNOWN_CURRENCY" - }, - "status": "DRAFT", - "timezone": "America/Los_Angeles", - "created_at": "2020-06-18T17:45:13.000Z", - "updated_at": "2020-06-18T17:45:13.000Z", - "accepted_payment_methods": { - "card": true, - "square_gift_card": false, - "bank_account": false, - "buy_now_pay_later": false, - "cash_app_pay": false - }, - "custom_fields": [ - { - "label": "Event Reference Number", - "value": "Ref. #1234", - "placement": "ABOVE_LINE_ITEMS" - }, - { - "label": "Terms of Service", - "value": "The terms of service are...", - "placement": "BELOW_LINE_ITEMS" - } - ], - "subscription_id": "subscription_id", - "sale_or_service_date": "2030-01-24", - "payment_conditions": "payment_conditions", - "store_payment_method_enabled": false, - "attachments": [ - {} - ], - "creator_team_member_id": "creator_team_member_id" - }, - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/invoices/invoice_id") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Invoices.GetAsync( - new GetInvoicesRequest { InvoiceId = "invoice_id" } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Invoices/ListTest.cs b/src/Square.Test/Unit/MockServer/Invoices/ListTest.cs deleted file mode 100644 index e0f07dd4..00000000 --- a/src/Square.Test/Unit/MockServer/Invoices/ListTest.cs +++ /dev/null @@ -1,223 +0,0 @@ -using NUnit.Framework; -using Square.Invoices; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Invoices; - -[TestFixture] -public class ListTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "invoices": [ - { - "id": "inv:0-ChCHu2mZEabLeeHahQnXDjZQECY", - "version": 1, - "location_id": "ES0RJRZYEC39A", - "order_id": "CAISENgvlJ6jLWAzERDzjyHVybY", - "primary_recipient": { - "customer_id": "JDKYHBWT1D4F8MFH63DBMEN8Y4", - "given_name": "Amelia", - "family_name": "Earhart", - "email_address": "Amelia.Earhart@example.com", - "phone_number": "1-212-555-4240" - }, - "payment_requests": [ - { - "uid": "2da7964f-f3d2-4f43-81e8-5aa220bf3355", - "request_type": "BALANCE", - "due_date": "2030-01-24", - "tipping_enabled": true, - "automatic_payment_source": "NONE", - "reminders": [ - { - "uid": "beebd363-e47f-4075-8785-c235aaa7df11", - "relative_scheduled_days": -1, - "message": "Your invoice is due tomorrow", - "status": "PENDING" - } - ], - "computed_amount_money": { - "amount": 10000, - "currency": "USD" - }, - "total_completed_amount_money": { - "amount": 0, - "currency": "USD" - } - } - ], - "delivery_method": "EMAIL", - "invoice_number": "inv-100", - "title": "Event Planning Services", - "description": "We appreciate your business!", - "scheduled_at": "2030-01-13T10:00:00.000Z", - "public_url": "public_url", - "status": "DRAFT", - "timezone": "America/Los_Angeles", - "created_at": "2030-01-13T17:45:13.000Z", - "updated_at": "2030-01-13T21:24:10.000Z", - "accepted_payment_methods": { - "card": true, - "square_gift_card": false, - "bank_account": false, - "buy_now_pay_later": false, - "cash_app_pay": false - }, - "custom_fields": [ - { - "label": "Event Reference Number", - "value": "Ref. #1234", - "placement": "ABOVE_LINE_ITEMS" - }, - { - "label": "Terms of Service", - "value": "The terms of service are...", - "placement": "BELOW_LINE_ITEMS" - } - ], - "subscription_id": "subscription_id", - "sale_or_service_date": "2030-01-24", - "payment_conditions": "payment_conditions", - "store_payment_method_enabled": false, - "attachments": [ - { - "id": "inva:0-3bB9ZuDHiziThQhuC4fwWt", - "filename": "file.jpg", - "description": "Service contract", - "filesize": 102705, - "hash": "273ee02cb6f5f8a3a8ca23604930dd53", - "mime_type": "image/jpeg", - "uploaded_at": "2030-01-13T21:24:10.000Z" - } - ], - "creator_team_member_id": "creator_team_member_id" - }, - { - "id": "inv:0-ChC366qAfskpGrBI_1bozs9mEA3", - "version": 3, - "location_id": "ES0RJRZYEC39A", - "order_id": "a65jnS8NXbfprvGJzY9F4fQTuaB", - "primary_recipient": { - "customer_id": "JDKYHBWT1D4F8MFH63DBMEN8Y4", - "given_name": "Amelia", - "family_name": "Earhart", - "email_address": "Amelia.Earhart@example.com", - "phone_number": "1-212-555-4240" - }, - "payment_requests": [ - { - "uid": "66c3bdfd-5090-4ff9-a8a0-c1e1a2ffa176", - "request_type": "DEPOSIT", - "due_date": "2021-01-23", - "percentage_requested": "25", - "tipping_enabled": false, - "automatic_payment_source": "CARD_ON_FILE", - "card_id": "ccof:IkWfpLj4tNHMyFii3GB", - "computed_amount_money": { - "amount": 1000, - "currency": "USD" - }, - "total_completed_amount_money": { - "amount": 1000, - "currency": "USD" - } - }, - { - "uid": "120c5e18-4f80-4f6b-b159-774cb9bf8f99", - "request_type": "BALANCE", - "due_date": "2021-06-15", - "tipping_enabled": false, - "automatic_payment_source": "CARD_ON_FILE", - "card_id": "ccof:IkWfpLj4tNHMyFii3GB", - "computed_amount_money": { - "amount": 3000, - "currency": "USD" - }, - "total_completed_amount_money": { - "amount": 0, - "currency": "USD" - } - } - ], - "delivery_method": "EMAIL", - "invoice_number": "inv-455", - "title": "title", - "description": "description", - "scheduled_at": "scheduled_at", - "public_url": "https://squareup.com/pay-invoice/invtmp:5e22a2c2-47c1-46d6-b061-808764dfe2b9", - "next_payment_amount_money": { - "amount": 3000, - "currency": "USD" - }, - "status": "PARTIALLY_PAID", - "timezone": "America/Los_Angeles", - "created_at": "2021-01-23T15:29:12.000Z", - "updated_at": "2021-01-23T15:29:56.000Z", - "accepted_payment_methods": { - "card": true, - "square_gift_card": true, - "bank_account": false, - "buy_now_pay_later": false, - "cash_app_pay": false - }, - "custom_fields": [ - {} - ], - "subscription_id": "subscription_id", - "sale_or_service_date": "2030-01-24", - "payment_conditions": "payment_conditions", - "store_payment_method_enabled": false, - "attachments": [ - {} - ], - "creator_team_member_id": "creator_team_member_id" - } - ], - "cursor": "ChoIDhIWVm54ZVRhLXhySFBOejBBM2xJb2daUQoFCI4IGAE", - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/invoices") - .WithParam("location_id", "location_id") - .WithParam("cursor", "cursor") - .WithParam("limit", "1") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var items = await Client.Invoices.ListAsync( - new ListInvoicesRequest - { - LocationId = "location_id", - Cursor = "cursor", - Limit = 1, - } - ); - await foreach (var item in items) - { - Assert.That(item, Is.Not.Null); - break; // Only check the first item - } - } -} diff --git a/src/Square.Test/Unit/MockServer/Invoices/SearchTest.cs b/src/Square.Test/Unit/MockServer/Invoices/SearchTest.cs deleted file mode 100644 index 93f1aab1..00000000 --- a/src/Square.Test/Unit/MockServer/Invoices/SearchTest.cs +++ /dev/null @@ -1,242 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Invoices; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Invoices; - -[TestFixture] -public class SearchTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string requestJson = """ - { - "query": { - "filter": { - "location_ids": [ - "ES0RJRZYEC39A" - ], - "customer_ids": [ - "JDKYHBWT1D4F8MFH63DBMEN8Y4" - ] - }, - "sort": { - "field": "INVOICE_SORT_DATE", - "order": "DESC" - } - }, - "limit": 100 - } - """; - - const string mockResponse = """ - { - "invoices": [ - { - "id": "inv:0-ChCHu2mZEabLeeHahQnXDjZQECY", - "version": 0, - "location_id": "ES0RJRZYEC39A", - "order_id": "CAISENgvlJ6jLWAzERDzjyHVybY", - "primary_recipient": { - "customer_id": "JDKYHBWT1D4F8MFH63DBMEN8Y4", - "given_name": "Amelia", - "family_name": "Earhart", - "email_address": "Amelia.Earhart@example.com", - "phone_number": "1-212-555-4240" - }, - "payment_requests": [ - { - "uid": "2da7964f-f3d2-4f43-81e8-5aa220bf3355", - "request_type": "BALANCE", - "due_date": "2030-01-24", - "tipping_enabled": true, - "automatic_payment_source": "NONE", - "reminders": [ - { - "uid": "beebd363-e47f-4075-8785-c235aaa7df11", - "relative_scheduled_days": -1, - "message": "Your invoice is due tomorrow", - "status": "PENDING" - } - ], - "computed_amount_money": { - "amount": 10000, - "currency": "USD" - }, - "total_completed_amount_money": { - "amount": 0, - "currency": "USD" - } - } - ], - "delivery_method": "EMAIL", - "invoice_number": "inv-100", - "title": "Event Planning Services", - "description": "We appreciate your business!", - "scheduled_at": "2030-01-13T10:00:00.000Z", - "public_url": "public_url", - "status": "DRAFT", - "timezone": "America/Los_Angeles", - "created_at": "2020-06-18T17:45:13.000Z", - "updated_at": "2020-06-18T17:45:13.000Z", - "accepted_payment_methods": { - "card": true, - "square_gift_card": false, - "bank_account": false, - "buy_now_pay_later": false, - "cash_app_pay": false - }, - "custom_fields": [ - { - "label": "Event Reference Number", - "value": "Ref. #1234", - "placement": "ABOVE_LINE_ITEMS" - }, - { - "label": "Terms of Service", - "value": "The terms of service are...", - "placement": "BELOW_LINE_ITEMS" - } - ], - "subscription_id": "subscription_id", - "sale_or_service_date": "2030-01-24", - "payment_conditions": "payment_conditions", - "store_payment_method_enabled": false, - "attachments": [ - {} - ], - "creator_team_member_id": "creator_team_member_id" - }, - { - "id": "inv:0-ChC366qAfskpGrBI_1bozs9mEA3", - "version": 3, - "location_id": "ES0RJRZYEC39A", - "order_id": "a65jnS8NXbfprvGJzY9F4fQTuaB", - "primary_recipient": { - "customer_id": "JDKYHBWT1D4F8MFH63DBMEN8Y4", - "given_name": "Amelia", - "family_name": "Earhart", - "email_address": "Amelia.Earhart@example.com", - "phone_number": "1-212-555-4240" - }, - "payment_requests": [ - { - "uid": "66c3bdfd-5090-4ff9-a8a0-c1e1a2ffa176", - "request_type": "DEPOSIT", - "due_date": "2021-01-23", - "percentage_requested": "25", - "tipping_enabled": false, - "automatic_payment_source": "CARD_ON_FILE", - "card_id": "ccof:IkWfpLj4tNHMyFii3GB", - "computed_amount_money": { - "amount": 1000, - "currency": "USD" - }, - "total_completed_amount_money": { - "amount": 1000, - "currency": "USD" - } - }, - { - "uid": "120c5e18-4f80-4f6b-b159-774cb9bf8f99", - "request_type": "BALANCE", - "due_date": "2021-06-15", - "tipping_enabled": false, - "automatic_payment_source": "CARD_ON_FILE", - "card_id": "ccof:IkWfpLj4tNHMyFii3GB", - "computed_amount_money": { - "amount": 3000, - "currency": "USD" - }, - "total_completed_amount_money": { - "amount": 0, - "currency": "USD" - } - } - ], - "delivery_method": "EMAIL", - "invoice_number": "inv-455", - "title": "title", - "description": "description", - "scheduled_at": "scheduled_at", - "public_url": "https://squareup.com/pay-invoice/invtmp:5e22a2c2-47c1-46d6-b061-808764dfe2b9", - "next_payment_amount_money": { - "amount": 3000, - "currency": "USD" - }, - "status": "PARTIALLY_PAID", - "timezone": "America/Los_Angeles", - "created_at": "2021-01-23T15:29:12.000Z", - "updated_at": "2021-01-23T15:29:56.000Z", - "accepted_payment_methods": { - "card": true, - "square_gift_card": true, - "bank_account": false, - "buy_now_pay_later": false, - "cash_app_pay": false - }, - "custom_fields": [ - {} - ], - "subscription_id": "subscription_id", - "sale_or_service_date": "2030-01-24", - "payment_conditions": "payment_conditions", - "store_payment_method_enabled": false, - "attachments": [ - {} - ], - "creator_team_member_id": "creator_team_member_id" - } - ], - "cursor": "ChoIDhIWVm54ZVRhLXhySFBOejBBM2xJb2daUQoFCI4IGAE", - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/invoices/search") - .WithHeader("Content-Type", "application/json") - .UsingPost() - .WithBodyAsJson(requestJson) - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Invoices.SearchAsync( - new SearchInvoicesRequest - { - Query = new InvoiceQuery - { - Filter = new InvoiceFilter - { - LocationIds = new List() { "ES0RJRZYEC39A" }, - CustomerIds = new List() { "JDKYHBWT1D4F8MFH63DBMEN8Y4" }, - }, - Sort = new InvoiceSort { Field = "INVOICE_SORT_DATE", Order = SortOrder.Desc }, - }, - Limit = 100, - } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Invoices/UpdateTest.cs b/src/Square.Test/Unit/MockServer/Invoices/UpdateTest.cs deleted file mode 100644 index 7e5a4c42..00000000 --- a/src/Square.Test/Unit/MockServer/Invoices/UpdateTest.cs +++ /dev/null @@ -1,155 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Invoices; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Invoices; - -[TestFixture] -public class UpdateTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string requestJson = """ - { - "invoice": { - "version": 1, - "payment_requests": [ - { - "uid": "2da7964f-f3d2-4f43-81e8-5aa220bf3355", - "tipping_enabled": false - } - ] - }, - "idempotency_key": "4ee82288-0910-499e-ab4c-5d0071dad1be" - } - """; - - const string mockResponse = """ - { - "invoice": { - "id": "inv:0-ChCHu2mZEabLeeHahQnXDjZQECY", - "version": 2, - "location_id": "ES0RJRZYEC39A", - "order_id": "CAISENgvlJ6jLWAzERDzjyHVybY", - "primary_recipient": { - "customer_id": "JDKYHBWT1D4F8MFH63DBMEN8Y4", - "given_name": "Amelia", - "family_name": "Earhart", - "email_address": "Amelia.Earhart@example.com", - "phone_number": "1-212-555-4240", - "company_name": "company_name" - }, - "payment_requests": [ - { - "uid": "2da7964f-f3d2-4f43-81e8-5aa220bf3355", - "request_type": "BALANCE", - "due_date": "2030-01-24", - "tipping_enabled": false, - "automatic_payment_source": "NONE", - "computed_amount_money": { - "amount": 10000, - "currency": "USD" - }, - "total_completed_amount_money": { - "amount": 0, - "currency": "USD" - } - } - ], - "delivery_method": "EMAIL", - "invoice_number": "inv-100", - "title": "Event Planning Services", - "description": "We appreciate your business!", - "scheduled_at": "2030-01-13T10:00:00.000Z", - "public_url": "public_url", - "next_payment_amount_money": { - "amount": 10000, - "currency": "USD" - }, - "status": "UNPAID", - "timezone": "America/Los_Angeles", - "created_at": "2020-06-18T17:45:13.000Z", - "updated_at": "2020-06-18T18:23:11.000Z", - "accepted_payment_methods": { - "card": true, - "square_gift_card": false, - "bank_account": false, - "buy_now_pay_later": false, - "cash_app_pay": false - }, - "custom_fields": [ - { - "label": "Event Reference Number", - "value": "Ref. #1234", - "placement": "ABOVE_LINE_ITEMS" - }, - { - "label": "Terms of Service", - "value": "The terms of service are...", - "placement": "BELOW_LINE_ITEMS" - } - ], - "subscription_id": "subscription_id", - "sale_or_service_date": "2030-01-24", - "payment_conditions": "payment_conditions", - "store_payment_method_enabled": false, - "attachments": [ - {} - ], - "creator_team_member_id": "creator_team_member_id" - }, - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/invoices/invoice_id") - .WithHeader("Content-Type", "application/json") - .UsingPut() - .WithBodyAsJson(requestJson) - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Invoices.UpdateAsync( - new UpdateInvoiceRequest - { - InvoiceId = "invoice_id", - Invoice = new Invoice - { - Version = 1, - PaymentRequests = new List() - { - new InvoicePaymentRequest - { - Uid = "2da7964f-f3d2-4f43-81e8-5aa220bf3355", - TippingEnabled = false, - }, - }, - }, - IdempotencyKey = "4ee82288-0910-499e-ab4c-5d0071dad1be", - } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Labor/EmployeeWages/GetTest.cs b/src/Square.Test/Unit/MockServer/Labor/EmployeeWages/GetTest.cs deleted file mode 100644 index d11f48c2..00000000 --- a/src/Square.Test/Unit/MockServer/Labor/EmployeeWages/GetTest.cs +++ /dev/null @@ -1,59 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Labor.EmployeeWages; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Labor.EmployeeWages; - -[TestFixture] -public class GetTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "employee_wage": { - "id": "pXS3qCv7BERPnEGedM4S8mhm", - "employee_id": "33fJchumvVdJwxV0H6L9", - "title": "Manager", - "hourly_rate": { - "amount": 2000, - "currency": "USD" - } - }, - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/labor/employee-wages/id") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Labor.EmployeeWages.GetAsync( - new GetEmployeeWagesRequest { Id = "id" } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Labor/EmployeeWages/ListTest.cs b/src/Square.Test/Unit/MockServer/Labor/EmployeeWages/ListTest.cs deleted file mode 100644 index edfabcec..00000000 --- a/src/Square.Test/Unit/MockServer/Labor/EmployeeWages/ListTest.cs +++ /dev/null @@ -1,96 +0,0 @@ -using NUnit.Framework; -using Square.Labor.EmployeeWages; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Labor.EmployeeWages; - -[TestFixture] -public class ListTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "employee_wages": [ - { - "id": "pXS3qCv7BERPnEGedM4S8mhm", - "employee_id": "33fJchumvVdJwxV0H6L9", - "title": "Manager", - "hourly_rate": { - "amount": 3250, - "currency": "USD" - } - }, - { - "id": "rZduCkzYDUVL3ovh1sQgbue6", - "employee_id": "33fJchumvVdJwxV0H6L9", - "title": "Cook", - "hourly_rate": { - "amount": 2600, - "currency": "USD" - } - }, - { - "id": "FxLbs5KpPUHa8wyt5ctjubDX", - "employee_id": "33fJchumvVdJwxV0H6L9", - "title": "Barista", - "hourly_rate": { - "amount": 1600, - "currency": "USD" - } - }, - { - "id": "vD1wCgijMDR3cX5TPnu7VXto", - "employee_id": "33fJchumvVdJwxV0H6L9", - "title": "Cashier", - "hourly_rate": { - "amount": 1700, - "currency": "USD" - } - } - ], - "cursor": "2fofTniCgT0yIPAq26kmk0YyFQJZfbWkh73OOnlTHmTAx13NgED", - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/labor/employee-wages") - .WithParam("employee_id", "employee_id") - .WithParam("limit", "1") - .WithParam("cursor", "cursor") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var items = await Client.Labor.EmployeeWages.ListAsync( - new ListEmployeeWagesRequest - { - EmployeeId = "employee_id", - Limit = 1, - Cursor = "cursor", - } - ); - await foreach (var item in items) - { - Assert.That(item, Is.Not.Null); - break; // Only check the first item - } - } -} diff --git a/src/Square.Test/Unit/MockServer/Labor/Shifts/GetTest.cs b/src/Square.Test/Unit/MockServer/Labor/Shifts/GetTest.cs deleted file mode 100644 index 0ab650cb..00000000 --- a/src/Square.Test/Unit/MockServer/Labor/Shifts/GetTest.cs +++ /dev/null @@ -1,83 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Labor.Shifts; - -[TestFixture] -public class GetTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "shift": { - "id": "T35HMQSN89SV4", - "employee_id": "D71KRMQof6cXGUW0aAv7", - "location_id": "PAA1RJZZKXBFG", - "timezone": "America/New_York", - "start_at": "2019-02-23T23:00:00.000Z", - "end_at": "2019-02-24T02:00:00.000Z", - "wage": { - "title": "Cashier", - "hourly_rate": { - "amount": 1457, - "currency": "USD" - }, - "job_id": "N4YKVLzFj3oGtNocqoYHYpW3", - "tip_eligible": true - }, - "breaks": [ - { - "id": "M9BBKEPQAQD2T", - "start_at": "2019-02-24T00:00:00.000Z", - "end_at": "2019-02-24T01:00:00.000Z", - "break_type_id": "92EPDRQKJ5088", - "name": "Lunch Break", - "expected_duration": "PT1H", - "is_paid": true - } - ], - "status": "CLOSED", - "version": 1, - "created_at": "2019-02-27T00:12:12.000Z", - "updated_at": "2019-02-27T00:12:12.000Z", - "team_member_id": "D71KRMQof6cXGUW0aAv7", - "declared_cash_tip_money": { - "amount": 500, - "currency": "USD" - } - }, - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock.RequestBuilders.Request.Create().WithPath("/v2/labor/shifts/id").UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Labor.Shifts.GetAsync( - new Square.Labor.Shifts.GetShiftsRequest { Id = "id" } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Labor/TeamMemberWages/GetTest.cs b/src/Square.Test/Unit/MockServer/Labor/TeamMemberWages/GetTest.cs deleted file mode 100644 index 49108a5e..00000000 --- a/src/Square.Test/Unit/MockServer/Labor/TeamMemberWages/GetTest.cs +++ /dev/null @@ -1,62 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Labor.TeamMemberWages; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Labor.TeamMemberWages; - -[TestFixture] -public class GetTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "team_member_wage": { - "id": "pXS3qCv7BERPnEGedM4S8mhm", - "team_member_id": "33fJchumvVdJwxV0H6L9", - "title": "Manager", - "hourly_rate": { - "amount": 2000, - "currency": "USD" - }, - "job_id": "jxJNN6eCJsLrhg5UFJrDWDGE", - "tip_eligible": false - }, - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/labor/team-member-wages/id") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Labor.TeamMemberWages.GetAsync( - new GetTeamMemberWagesRequest { Id = "id" } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)) - .UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Labor/TeamMemberWages/ListTest.cs b/src/Square.Test/Unit/MockServer/Labor/TeamMemberWages/ListTest.cs deleted file mode 100644 index 1d13fca4..00000000 --- a/src/Square.Test/Unit/MockServer/Labor/TeamMemberWages/ListTest.cs +++ /dev/null @@ -1,104 +0,0 @@ -using NUnit.Framework; -using Square.Labor.TeamMemberWages; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Labor.TeamMemberWages; - -[TestFixture] -public class ListTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "team_member_wages": [ - { - "id": "pXS3qCv7BERPnEGedM4S8mhm", - "team_member_id": "33fJchumvVdJwxV0H6L9", - "title": "Manager", - "hourly_rate": { - "amount": 3250, - "currency": "USD" - }, - "job_id": "jxJNN6eCJsLrhg5UFJrDWDGE", - "tip_eligible": false - }, - { - "id": "rZduCkzYDUVL3ovh1sQgbue6", - "team_member_id": "33fJchumvVdJwxV0H6L9", - "title": "Cook", - "hourly_rate": { - "amount": 2600, - "currency": "USD" - }, - "job_id": "gcbz15vKGnMKmaWJJ152kjim", - "tip_eligible": true - }, - { - "id": "FxLbs5KpPUHa8wyt5ctjubDX", - "team_member_id": "33fJchumvVdJwxV0H6L9", - "title": "Barista", - "hourly_rate": { - "amount": 1600, - "currency": "USD" - }, - "job_id": "FzbJAtt9qEWncK1BWgVCxQ6M", - "tip_eligible": true - }, - { - "id": "vD1wCgijMDR3cX5TPnu7VXto", - "team_member_id": "33fJchumvVdJwxV0H6L9", - "title": "Cashier", - "hourly_rate": { - "amount": 1700, - "currency": "USD" - }, - "job_id": "N4YKVLzFj3oGtNocqoYHYpW3", - "tip_eligible": true - } - ], - "cursor": "2fofTniCgT0yIPAq26kmk0YyFQJZfbWkh73OOnlTHmTAx13NgED", - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/labor/team-member-wages") - .WithParam("team_member_id", "team_member_id") - .WithParam("limit", "1") - .WithParam("cursor", "cursor") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var items = await Client.Labor.TeamMemberWages.ListAsync( - new ListTeamMemberWagesRequest - { - TeamMemberId = "team_member_id", - Limit = 1, - Cursor = "cursor", - } - ); - await foreach (var item in items) - { - Assert.That(item, Is.Not.Null); - break; // Only check the first item - } - } -} diff --git a/src/Square.Test/Unit/MockServer/Locations/CreateTest.cs b/src/Square.Test/Unit/MockServer/Locations/CreateTest.cs deleted file mode 100644 index f58ee9cd..00000000 --- a/src/Square.Test/Unit/MockServer/Locations/CreateTest.cs +++ /dev/null @@ -1,140 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Locations; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Locations; - -[TestFixture] -public class CreateTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string requestJson = """ - { - "location": { - "name": "Midtown", - "address": { - "address_line_1": "1234 Peachtree St. NE", - "locality": "Atlanta", - "administrative_district_level_1": "GA", - "postal_code": "30309" - }, - "description": "Midtown Atlanta store" - } - } - """; - - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "location": { - "id": "3Z4V4WHQK64X9", - "name": "Midtown", - "address": { - "address_line_1": "1234 Peachtree St. NE", - "address_line_2": "address_line_2", - "address_line_3": "address_line_3", - "locality": "Atlanta", - "sublocality": "sublocality", - "sublocality_2": "sublocality_2", - "sublocality_3": "sublocality_3", - "administrative_district_level_1": "GA", - "administrative_district_level_2": "administrative_district_level_2", - "administrative_district_level_3": "administrative_district_level_3", - "postal_code": "30309", - "country": "ZZ", - "first_name": "first_name", - "last_name": "last_name" - }, - "timezone": "America/New_York", - "capabilities": [ - "CREDIT_CARD_PROCESSING" - ], - "status": "ACTIVE", - "created_at": "2022-02-19T17:58:25.000Z", - "merchant_id": "3MYCJG5GVYQ8Q", - "country": "US", - "language_code": "en-US", - "currency": "USD", - "phone_number": "phone_number", - "business_name": "Jet Fuel Coffee", - "type": "PHYSICAL", - "website_url": "website_url", - "business_hours": { - "periods": [ - {} - ] - }, - "business_email": "business_email", - "description": "Midtown Atlanta store", - "twitter_username": "twitter_username", - "instagram_username": "instagram_username", - "facebook_url": "facebook_url", - "coordinates": { - "latitude": 33.7889, - "longitude": -84.3841 - }, - "logo_url": "logo_url", - "pos_background_url": "pos_background_url", - "mcc": "7299", - "full_format_logo_url": "full_format_logo_url", - "tax_ids": { - "eu_vat": "eu_vat", - "fr_siret": "fr_siret", - "fr_naf": "fr_naf", - "es_nif": "es_nif", - "jp_qii": "jp_qii" - } - } - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/locations") - .WithHeader("Content-Type", "application/json") - .UsingPost() - .WithBodyAsJson(requestJson) - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Locations.CreateAsync( - new CreateLocationRequest - { - Location = new Location - { - Name = "Midtown", - Address = new Address - { - AddressLine1 = "1234 Peachtree St. NE", - Locality = "Atlanta", - AdministrativeDistrictLevel1 = "GA", - PostalCode = "30309", - }, - Description = "Midtown Atlanta store", - }, - } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Locations/CustomAttributes/GetTest.cs b/src/Square.Test/Unit/MockServer/Locations/CustomAttributes/GetTest.cs deleted file mode 100644 index b4f22138..00000000 --- a/src/Square.Test/Unit/MockServer/Locations/CustomAttributes/GetTest.cs +++ /dev/null @@ -1,77 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Locations.CustomAttributes; - -[TestFixture] -public class GetTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "custom_attribute": { - "key": "bestseller", - "value": "hot cocoa", - "version": 2, - "visibility": "VISIBILITY_READ_WRITE_VALUES", - "definition": { - "key": "key", - "schema": { - "key": "value" - }, - "name": "name", - "description": "description", - "visibility": "VISIBILITY_HIDDEN", - "version": 1, - "updated_at": "updated_at", - "created_at": "created_at" - }, - "updated_at": "2023-01-09T19:21:04.551Z", - "created_at": "2023-01-09T19:02:58.647Z" - }, - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/locations/location_id/custom-attributes/key") - .WithParam("version", "1") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Locations.CustomAttributes.GetAsync( - new Square.Locations.CustomAttributes.GetCustomAttributesRequest - { - LocationId = "location_id", - Key = "key", - WithDefinition = true, - Version = 1, - } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)) - .UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Locations/CustomAttributes/ListTest.cs b/src/Square.Test/Unit/MockServer/Locations/CustomAttributes/ListTest.cs deleted file mode 100644 index 155b5eba..00000000 --- a/src/Square.Test/Unit/MockServer/Locations/CustomAttributes/ListTest.cs +++ /dev/null @@ -1,78 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Locations.CustomAttributes; - -[TestFixture] -public class ListTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "custom_attributes": [ - { - "key": "phone-number", - "value": "+12223334444", - "version": 1, - "visibility": "VISIBILITY_READ_WRITE_VALUES", - "updated_at": "2022-12-12T18:13:03.745Z", - "created_at": "2022-12-12T18:13:03.745Z" - }, - { - "key": "bestseller", - "value": "hot cocoa", - "version": 1, - "visibility": "VISIBILITY_READ_WRITE_VALUES", - "updated_at": "2022-12-12T19:27:57.975Z", - "created_at": "2022-12-12T19:27:57.975Z" - } - ], - "cursor": "cursor", - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/locations/location_id/custom-attributes") - .WithParam("visibility_filter", "ALL") - .WithParam("limit", "1") - .WithParam("cursor", "cursor") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var items = await Client.Locations.CustomAttributes.ListAsync( - new Square.Locations.CustomAttributes.ListCustomAttributesRequest - { - LocationId = "location_id", - VisibilityFilter = VisibilityFilter.All, - Limit = 1, - Cursor = "cursor", - WithDefinitions = true, - } - ); - await foreach (var item in items) - { - Assert.That(item, Is.Not.Null); - break; // Only check the first item - } - } -} diff --git a/src/Square.Test/Unit/MockServer/Locations/GetTest.cs b/src/Square.Test/Unit/MockServer/Locations/GetTest.cs deleted file mode 100644 index 0e174ded..00000000 --- a/src/Square.Test/Unit/MockServer/Locations/GetTest.cs +++ /dev/null @@ -1,109 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Locations; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Locations; - -[TestFixture] -public class GetTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "location": { - "id": "18YC4JDH91E1H", - "name": "Grant Park", - "address": { - "address_line_1": "123 Main St", - "address_line_2": "address_line_2", - "address_line_3": "address_line_3", - "locality": "San Francisco", - "sublocality": "sublocality", - "sublocality_2": "sublocality_2", - "sublocality_3": "sublocality_3", - "administrative_district_level_1": "CA", - "administrative_district_level_2": "administrative_district_level_2", - "administrative_district_level_3": "administrative_district_level_3", - "postal_code": "94114", - "country": "US", - "first_name": "first_name", - "last_name": "last_name" - }, - "timezone": "America/Los_Angeles", - "capabilities": [ - "CREDIT_CARD_PROCESSING" - ], - "status": "ACTIVE", - "created_at": "2016-09-19T17:33:12.000Z", - "merchant_id": "3MYCJG5GVYQ8Q", - "country": "US", - "language_code": "en-US", - "currency": "USD", - "phone_number": "+1 650-354-7217", - "business_name": "Jet Fuel Coffee", - "type": "PHYSICAL", - "website_url": "website_url", - "business_hours": { - "periods": [ - {} - ] - }, - "business_email": "business_email", - "description": "description", - "twitter_username": "twitter_username", - "instagram_username": "instagram_username", - "facebook_url": "facebook_url", - "coordinates": { - "latitude": 1.1, - "longitude": 1.1 - }, - "logo_url": "logo_url", - "pos_background_url": "pos_background_url", - "mcc": "mcc", - "full_format_logo_url": "full_format_logo_url", - "tax_ids": { - "eu_vat": "eu_vat", - "fr_siret": "fr_siret", - "fr_naf": "fr_naf", - "es_nif": "es_nif", - "jp_qii": "jp_qii" - } - } - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/locations/location_id") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Locations.GetAsync( - new GetLocationsRequest { LocationId = "location_id" } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Locations/ListTest.cs b/src/Square.Test/Unit/MockServer/Locations/ListTest.cs deleted file mode 100644 index 391dee34..00000000 --- a/src/Square.Test/Unit/MockServer/Locations/ListTest.cs +++ /dev/null @@ -1,115 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Locations; - -[TestFixture] -public class ListTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "locations": [ - { - "id": "18YC4JDH91E1H", - "name": "Grant Park", - "address": { - "address_line_1": "123 Main St", - "locality": "San Francisco", - "administrative_district_level_1": "CA", - "postal_code": "94114", - "country": "US" - }, - "timezone": "America/Los_Angeles", - "capabilities": [ - "CREDIT_CARD_PROCESSING" - ], - "status": "ACTIVE", - "created_at": "2016-09-19T17:33:12.000Z", - "merchant_id": "3MYCJG5GVYQ8Q", - "country": "US", - "language_code": "en-US", - "currency": "USD", - "phone_number": "+1 650-354-7217", - "business_name": "Jet Fuel Coffee", - "type": "PHYSICAL", - "website_url": "website_url", - "business_email": "business_email", - "description": "description", - "twitter_username": "twitter_username", - "instagram_username": "instagram_username", - "facebook_url": "facebook_url", - "logo_url": "logo_url", - "pos_background_url": "pos_background_url", - "mcc": "mcc", - "full_format_logo_url": "full_format_logo_url" - }, - { - "id": "3Z4V4WHQK64X9", - "name": "Midtown", - "address": { - "address_line_1": "1234 Peachtree St. NE", - "locality": "Atlanta", - "administrative_district_level_1": "GA", - "postal_code": "30309" - }, - "timezone": "America/New_York", - "capabilities": [ - "CREDIT_CARD_PROCESSING" - ], - "status": "ACTIVE", - "created_at": "2022-02-19T17:58:25.000Z", - "merchant_id": "3MYCJG5GVYQ8Q", - "country": "US", - "language_code": "en-US", - "currency": "USD", - "phone_number": "phone_number", - "business_name": "Jet Fuel Coffee", - "type": "PHYSICAL", - "website_url": "website_url", - "business_email": "business_email", - "description": "Midtown Atlanta store", - "twitter_username": "twitter_username", - "instagram_username": "instagram_username", - "facebook_url": "facebook_url", - "coordinates": { - "latitude": 33.7889, - "longitude": -84.3841 - }, - "logo_url": "logo_url", - "pos_background_url": "pos_background_url", - "mcc": "7299", - "full_format_logo_url": "full_format_logo_url" - } - ] - } - """; - - Server - .Given(WireMock.RequestBuilders.Request.Create().WithPath("/v2/locations").UsingGet()) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Locations.ListAsync(); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Locations/UpdateTest.cs b/src/Square.Test/Unit/MockServer/Locations/UpdateTest.cs deleted file mode 100644 index 5a3b1b85..00000000 --- a/src/Square.Test/Unit/MockServer/Locations/UpdateTest.cs +++ /dev/null @@ -1,183 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Locations; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Locations; - -[TestFixture] -public class UpdateTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string requestJson = """ - { - "location": { - "business_hours": { - "periods": [ - { - "day_of_week": "FRI", - "start_local_time": "07:00", - "end_local_time": "18:00" - }, - { - "day_of_week": "SAT", - "start_local_time": "07:00", - "end_local_time": "18:00" - }, - { - "day_of_week": "SUN", - "start_local_time": "09:00", - "end_local_time": "15:00" - } - ] - }, - "description": "Midtown Atlanta store - Open weekends" - } - } - """; - - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "location": { - "id": "3Z4V4WHQK64X9", - "name": "Midtown", - "address": { - "address_line_1": "1234 Peachtree St. NE", - "address_line_2": "address_line_2", - "address_line_3": "address_line_3", - "locality": "Atlanta", - "sublocality": "sublocality", - "sublocality_2": "sublocality_2", - "sublocality_3": "sublocality_3", - "administrative_district_level_1": "GA", - "administrative_district_level_2": "administrative_district_level_2", - "administrative_district_level_3": "administrative_district_level_3", - "postal_code": "30309", - "country": "ZZ", - "first_name": "first_name", - "last_name": "last_name" - }, - "timezone": "America/New_York", - "capabilities": [ - "CREDIT_CARD_PROCESSING" - ], - "status": "ACTIVE", - "created_at": "2022-02-19T17:58:25.000Z", - "merchant_id": "3MYCJG5GVYQ8Q", - "country": "US", - "language_code": "en-US", - "currency": "USD", - "phone_number": "phone_number", - "business_name": "Jet Fuel Coffee", - "type": "PHYSICAL", - "website_url": "website_url", - "business_hours": { - "periods": [ - { - "day_of_week": "FRI", - "start_local_time": "07:00", - "end_local_time": "18:00" - }, - { - "day_of_week": "SAT", - "start_local_time": "07:00", - "end_local_time": "18:00" - }, - { - "day_of_week": "SUN", - "start_local_time": "09:00", - "end_local_time": "15:00" - } - ] - }, - "business_email": "business_email", - "description": "Midtown Atlanta store - Open weekends", - "twitter_username": "twitter_username", - "instagram_username": "instagram_username", - "facebook_url": "facebook_url", - "coordinates": { - "latitude": 33.7889, - "longitude": -84.3841 - }, - "logo_url": "logo_url", - "pos_background_url": "pos_background_url", - "mcc": "7299", - "full_format_logo_url": "full_format_logo_url", - "tax_ids": { - "eu_vat": "eu_vat", - "fr_siret": "fr_siret", - "fr_naf": "fr_naf", - "es_nif": "es_nif", - "jp_qii": "jp_qii" - } - } - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/locations/location_id") - .WithHeader("Content-Type", "application/json") - .UsingPut() - .WithBodyAsJson(requestJson) - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Locations.UpdateAsync( - new UpdateLocationRequest - { - LocationId = "location_id", - Location = new Location - { - BusinessHours = new BusinessHours - { - Periods = new List() - { - new BusinessHoursPeriod - { - DayOfWeek = Square.DayOfWeek.Fri, - StartLocalTime = "07:00", - EndLocalTime = "18:00", - }, - new BusinessHoursPeriod - { - DayOfWeek = Square.DayOfWeek.Sat, - StartLocalTime = "07:00", - EndLocalTime = "18:00", - }, - new BusinessHoursPeriod - { - DayOfWeek = Square.DayOfWeek.Sun, - StartLocalTime = "09:00", - EndLocalTime = "15:00", - }, - }, - }, - Description = "Midtown Atlanta store - Open weekends", - }, - } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Loyalty/Programs/GetTest.cs b/src/Square.Test/Unit/MockServer/Loyalty/Programs/GetTest.cs deleted file mode 100644 index c9670958..00000000 --- a/src/Square.Test/Unit/MockServer/Loyalty/Programs/GetTest.cs +++ /dev/null @@ -1,100 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Loyalty.Programs; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Loyalty.Programs; - -[TestFixture] -public class GetTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "program": { - "id": "d619f755-2d17-41f3-990d-c04ecedd64dd", - "status": "ACTIVE", - "reward_tiers": [ - { - "id": "e1b39225-9da5-43d1-a5db-782cdd8ad94f", - "points": 10, - "name": "10% off entire sale", - "created_at": "2020-04-20T16:55:11.000Z", - "pricing_rule_reference": { - "object_id": "74C4JSHESNLTB2A7ITO5HO6F", - "catalog_version": 1000000 - } - } - ], - "expiration_policy": { - "expiration_duration": "expiration_duration" - }, - "terminology": { - "one": "Point", - "other": "Points" - }, - "location_ids": [ - "P034NEENMD09F" - ], - "created_at": "2020-04-20T16:55:11.000Z", - "updated_at": "2020-05-01T02:00:02.000Z", - "accrual_rules": [ - { - "accrual_type": "SPEND", - "points": 1, - "spend_data": { - "amount_money": { - "amount": 100, - "currency": "USD" - }, - "excluded_category_ids": [ - "7ZERJKO5PVYXCVUHV2JCZ2UG", - "FQKAOJE5C4FIMF5A2URMLW6V" - ], - "excluded_item_variation_ids": [ - "CBZXBUVVTYUBZGQO44RHMR6B", - "EDILT24Z2NISEXDKGY6HP7XV" - ], - "tax_mode": "BEFORE_TAX" - } - } - ] - } - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/loyalty/programs/program_id") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Loyalty.Programs.GetAsync( - new GetProgramsRequest { ProgramId = "program_id" } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)) - .UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Merchants/GetTest.cs b/src/Square.Test/Unit/MockServer/Merchants/GetTest.cs deleted file mode 100644 index 088c611c..00000000 --- a/src/Square.Test/Unit/MockServer/Merchants/GetTest.cs +++ /dev/null @@ -1,60 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Merchants; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Merchants; - -[TestFixture] -public class GetTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "merchant": { - "id": "DM7VKY8Q63GNP", - "business_name": "Apple A Day", - "country": "US", - "language_code": "en-US", - "currency": "USD", - "status": "ACTIVE", - "main_location_id": "9A65CGC72ZQG1", - "created_at": "2021-12-10T19:25:52.484Z" - } - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/merchants/merchant_id") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Merchants.GetAsync( - new GetMerchantsRequest { MerchantId = "merchant_id" } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Merchants/ListTest.cs b/src/Square.Test/Unit/MockServer/Merchants/ListTest.cs deleted file mode 100644 index 67a51061..00000000 --- a/src/Square.Test/Unit/MockServer/Merchants/ListTest.cs +++ /dev/null @@ -1,61 +0,0 @@ -using NUnit.Framework; -using Square.Merchants; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Merchants; - -[TestFixture] -public class ListTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "merchant": [ - { - "id": "DM7VKY8Q63GNP", - "business_name": "Apple A Day", - "country": "US", - "language_code": "en-US", - "currency": "USD", - "status": "ACTIVE", - "main_location_id": "9A65CGC72ZQG1", - "created_at": "2021-12-10T19:25:52.484Z" - } - ], - "cursor": 1 - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/merchants") - .WithParam("cursor", "1") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var items = await Client.Merchants.ListAsync(new ListMerchantsRequest { Cursor = 1 }); - await foreach (var item in items) - { - Assert.That(item, Is.Not.Null); - break; // Only check the first item - } - } -} diff --git a/src/Square.Test/Unit/MockServer/Mobile/AuthorizationCodeTest.cs b/src/Square.Test/Unit/MockServer/Mobile/AuthorizationCodeTest.cs deleted file mode 100644 index e62a7bbf..00000000 --- a/src/Square.Test/Unit/MockServer/Mobile/AuthorizationCodeTest.cs +++ /dev/null @@ -1,23 +0,0 @@ -using NUnit.Framework; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Mobile; - -[TestFixture] -public class AuthorizationCodeTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public void MockServerTest() - { - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/mobile/authorization-code") - .UsingPost() - ) - .RespondWith(WireMock.ResponseBuilders.Response.Create().WithStatusCode(200)); - - Assert.DoesNotThrowAsync(async () => await Client.Mobile.AuthorizationCodeAsync()); - } -} diff --git a/src/Square.Test/Unit/MockServer/Orders/BatchGetTest.cs b/src/Square.Test/Unit/MockServer/Orders/BatchGetTest.cs deleted file mode 100644 index 8dcd3957..00000000 --- a/src/Square.Test/Unit/MockServer/Orders/BatchGetTest.cs +++ /dev/null @@ -1,151 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Orders; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Orders; - -[TestFixture] -public class BatchGetTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string requestJson = """ - { - "location_id": "057P5VYJ4A5X1", - "order_ids": [ - "CAISEM82RcpmcFBM0TfOyiHV3es", - "CAISENgvlJ6jLWAzERDzjyHVybY" - ] - } - """; - - const string mockResponse = """ - { - "orders": [ - { - "id": "CAISEM82RcpmcFBM0TfOyiHV3es", - "location_id": "057P5VYJ4A5X1", - "reference_id": "my-order-001", - "customer_id": "customer_id", - "line_items": [ - { - "uid": "945986d1-9586-11e6-ad5a-28cfe92138cf", - "name": "Awesome product", - "quantity": "1", - "base_price_money": { - "amount": 1599, - "currency": "USD" - }, - "total_money": { - "amount": 1599, - "currency": "USD" - } - }, - { - "uid": "a8f4168c-9586-11e6-bdf0-28cfe92138cf", - "name": "Another awesome product", - "quantity": "3", - "base_price_money": { - "amount": 2000, - "currency": "USD" - }, - "total_money": { - "amount": 6000, - "currency": "USD" - } - } - ], - "taxes": [ - {} - ], - "discounts": [ - {} - ], - "service_charges": [ - {} - ], - "fulfillments": [ - {} - ], - "returns": [ - {} - ], - "tenders": [ - { - "type": "CARD" - } - ], - "refunds": [ - { - "id": "id", - "location_id": "location_id", - "reason": "reason", - "amount_money": {}, - "status": "PENDING" - } - ], - "created_at": "created_at", - "updated_at": "updated_at", - "closed_at": "closed_at", - "state": "OPEN", - "version": 1, - "total_money": { - "amount": 7599, - "currency": "USD" - }, - "ticket_name": "ticket_name", - "rewards": [ - { - "id": "id", - "reward_tier_id": "reward_tier_id" - } - ] - } - ], - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/orders/batch-retrieve") - .WithHeader("Content-Type", "application/json") - .UsingPost() - .WithBodyAsJson(requestJson) - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Orders.BatchGetAsync( - new BatchGetOrdersRequest - { - LocationId = "057P5VYJ4A5X1", - OrderIds = new List() - { - "CAISEM82RcpmcFBM0TfOyiHV3es", - "CAISENgvlJ6jLWAzERDzjyHVybY", - }, - } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Orders/CreateTest.cs b/src/Square.Test/Unit/MockServer/Orders/CreateTest.cs deleted file mode 100644 index 7e285417..00000000 --- a/src/Square.Test/Unit/MockServer/Orders/CreateTest.cs +++ /dev/null @@ -1,483 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Orders; - -[TestFixture] -public class CreateTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string requestJson = """ - { - "order": { - "location_id": "057P5VYJ4A5X1", - "reference_id": "my-order-001", - "line_items": [ - { - "name": "New York Strip Steak", - "quantity": "1", - "base_price_money": { - "amount": 1599, - "currency": "USD" - } - }, - { - "quantity": "2", - "catalog_object_id": "BEMYCSMIJL46OCDV4KYIKXIB", - "modifiers": [ - { - "catalog_object_id": "CHQX7Y4KY6N5KINJKZCFURPZ" - } - ], - "applied_discounts": [ - { - "discount_uid": "one-dollar-off" - } - ] - } - ], - "taxes": [ - { - "uid": "state-sales-tax", - "name": "State Sales Tax", - "percentage": "9", - "scope": "ORDER" - } - ], - "discounts": [ - { - "uid": "labor-day-sale", - "name": "Labor Day Sale", - "percentage": "5", - "scope": "ORDER" - }, - { - "uid": "membership-discount", - "catalog_object_id": "DB7L55ZH2BGWI4H23ULIWOQ7", - "scope": "ORDER" - }, - { - "uid": "one-dollar-off", - "name": "Sale - $1.00 off", - "amount_money": { - "amount": 100, - "currency": "USD" - }, - "scope": "LINE_ITEM" - } - ] - }, - "idempotency_key": "8193148c-9586-11e6-99f9-28cfe92138cf" - } - """; - - const string mockResponse = """ - { - "order": { - "id": "CAISENgvlJ6jLWAzERDzjyHVybY", - "location_id": "057P5VYJ4A5X1", - "reference_id": "my-order-001", - "source": { - "name": "My App" - }, - "customer_id": "customer_id", - "line_items": [ - { - "uid": "8uSwfzvUImn3IRrvciqlXC", - "name": "New York Strip Steak", - "quantity": "1", - "applied_taxes": [ - { - "uid": "aKG87ArnDpvMLSZJHxWUl", - "tax_uid": "state-sales-tax", - "applied_money": { - "amount": 136, - "currency": "USD" - } - } - ], - "applied_discounts": [ - { - "uid": "jWdgP1TpHPFBuVrz81mXVC", - "discount_uid": "membership-discount", - "applied_money": { - "amount": 8, - "currency": "USD" - } - }, - { - "uid": "jnZOjjVY57eRcQAVgEwFuC", - "discount_uid": "labor-day-sale", - "applied_money": { - "amount": 79, - "currency": "USD" - } - } - ], - "base_price_money": { - "amount": 1599, - "currency": "USD" - }, - "variation_total_price_money": { - "amount": 1599, - "currency": "USD" - }, - "gross_sales_money": { - "amount": 1599, - "currency": "USD" - }, - "total_tax_money": { - "amount": 136, - "currency": "USD" - }, - "total_discount_money": { - "amount": 87, - "currency": "USD" - }, - "total_money": { - "amount": 1648, - "currency": "USD" - }, - "total_service_charge_money": { - "amount": 0, - "currency": "USD" - } - }, - { - "uid": "v8ZuEXpOJpb0bazLuvrLDB", - "name": "New York Steak", - "quantity": "2", - "catalog_object_id": "BEMYCSMIJL46OCDV4KYIKXIB", - "variation_name": "Larger", - "modifiers": [ - { - "uid": "Lo3qMMckDluu9Qsb58d4CC", - "catalog_object_id": "CHQX7Y4KY6N5KINJKZCFURPZ", - "name": "Well", - "base_price_money": { - "amount": 50, - "currency": "USD" - }, - "total_price_money": { - "amount": 100, - "currency": "USD" - } - } - ], - "applied_taxes": [ - { - "uid": "v1dAgrfUVUPTnVTf9sRPz", - "tax_uid": "state-sales-tax", - "applied_money": { - "amount": 374, - "currency": "USD" - } - } - ], - "applied_discounts": [ - { - "uid": "nUXvdsIItfKko0dbYtY58C", - "discount_uid": "membership-discount", - "applied_money": { - "amount": 22, - "currency": "USD" - } - }, - { - "uid": "qSdkOOOernlVQqsJ94SPjB", - "discount_uid": "labor-day-sale", - "applied_money": { - "amount": 224, - "currency": "USD" - } - }, - { - "uid": "y7bVl4njrWAnfDwmz19izB", - "discount_uid": "one-dollar-off", - "applied_money": { - "amount": 100, - "currency": "USD" - } - } - ], - "base_price_money": { - "amount": 2200, - "currency": "USD" - }, - "variation_total_price_money": { - "amount": 4400, - "currency": "USD" - }, - "gross_sales_money": { - "amount": 4500, - "currency": "USD" - }, - "total_tax_money": { - "amount": 374, - "currency": "USD" - }, - "total_discount_money": { - "amount": 346, - "currency": "USD" - }, - "total_money": { - "amount": 4528, - "currency": "USD" - }, - "total_service_charge_money": { - "amount": 0, - "currency": "USD" - } - } - ], - "taxes": [ - { - "uid": "state-sales-tax", - "name": "State Sales Tax", - "type": "ADDITIVE", - "percentage": "9", - "applied_money": { - "amount": 510, - "currency": "USD" - }, - "scope": "ORDER" - } - ], - "discounts": [ - { - "uid": "membership-discount", - "catalog_object_id": "DB7L55ZH2BGWI4H23ULIWOQ7", - "name": "Membership Discount", - "type": "FIXED_PERCENTAGE", - "percentage": "0.5", - "applied_money": { - "amount": 30, - "currency": "USD" - }, - "scope": "ORDER" - }, - { - "uid": "labor-day-sale", - "name": "Labor Day Sale", - "type": "FIXED_PERCENTAGE", - "percentage": "5", - "applied_money": { - "amount": 303, - "currency": "USD" - }, - "scope": "ORDER" - }, - { - "uid": "one-dollar-off", - "name": "Sale - $1.00 off", - "type": "FIXED_AMOUNT", - "amount_money": { - "amount": 100, - "currency": "USD" - }, - "applied_money": { - "amount": 100, - "currency": "USD" - }, - "scope": "LINE_ITEM" - } - ], - "service_charges": [ - {} - ], - "fulfillments": [ - {} - ], - "returns": [ - {} - ], - "net_amounts": { - "total_money": { - "amount": 6176, - "currency": "USD" - }, - "tax_money": { - "amount": 510, - "currency": "USD" - }, - "discount_money": { - "amount": 433, - "currency": "USD" - }, - "tip_money": { - "amount": 0, - "currency": "USD" - }, - "service_charge_money": { - "amount": 0, - "currency": "USD" - } - }, - "rounding_adjustment": { - "uid": "uid", - "name": "name" - }, - "tenders": [ - { - "type": "CARD" - } - ], - "refunds": [ - { - "id": "id", - "location_id": "location_id", - "reason": "reason", - "amount_money": {}, - "status": "PENDING" - } - ], - "metadata": { - "key": "value" - }, - "created_at": "2020-01-17T20:47:53.293Z", - "updated_at": "2020-01-17T20:47:53.293Z", - "closed_at": "closed_at", - "state": "OPEN", - "version": 1, - "total_money": { - "amount": 6176, - "currency": "USD" - }, - "total_tax_money": { - "amount": 510, - "currency": "USD" - }, - "total_discount_money": { - "amount": 433, - "currency": "USD" - }, - "total_tip_money": { - "amount": 0, - "currency": "USD" - }, - "total_service_charge_money": { - "amount": 0, - "currency": "USD" - }, - "ticket_name": "ticket_name", - "pricing_options": { - "auto_apply_discounts": true, - "auto_apply_taxes": true - }, - "rewards": [ - { - "id": "id", - "reward_tier_id": "reward_tier_id" - } - ], - "net_amount_due_money": { - "amount": 1000000, - "currency": "UNKNOWN_CURRENCY" - } - }, - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/orders") - .WithHeader("Content-Type", "application/json") - .UsingPost() - .WithBodyAsJson(requestJson) - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Orders.CreateAsync( - new CreateOrderRequest - { - Order = new Order - { - LocationId = "057P5VYJ4A5X1", - ReferenceId = "my-order-001", - LineItems = new List() - { - new OrderLineItem - { - Name = "New York Strip Steak", - Quantity = "1", - BasePriceMoney = new Money { Amount = 1599, Currency = Currency.Usd }, - }, - new OrderLineItem - { - Quantity = "2", - CatalogObjectId = "BEMYCSMIJL46OCDV4KYIKXIB", - Modifiers = new List() - { - new OrderLineItemModifier - { - CatalogObjectId = "CHQX7Y4KY6N5KINJKZCFURPZ", - }, - }, - AppliedDiscounts = new List() - { - new OrderLineItemAppliedDiscount { DiscountUid = "one-dollar-off" }, - }, - }, - }, - Taxes = new List() - { - new OrderLineItemTax - { - Uid = "state-sales-tax", - Name = "State Sales Tax", - Percentage = "9", - Scope = OrderLineItemTaxScope.Order, - }, - }, - Discounts = new List() - { - new OrderLineItemDiscount - { - Uid = "labor-day-sale", - Name = "Labor Day Sale", - Percentage = "5", - Scope = OrderLineItemDiscountScope.Order, - }, - new OrderLineItemDiscount - { - Uid = "membership-discount", - CatalogObjectId = "DB7L55ZH2BGWI4H23ULIWOQ7", - Scope = OrderLineItemDiscountScope.Order, - }, - new OrderLineItemDiscount - { - Uid = "one-dollar-off", - Name = "Sale - $1.00 off", - AmountMoney = new Money { Amount = 100, Currency = Currency.Usd }, - Scope = OrderLineItemDiscountScope.LineItem, - }, - }, - }, - IdempotencyKey = "8193148c-9586-11e6-99f9-28cfe92138cf", - } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Orders/GetTest.cs b/src/Square.Test/Unit/MockServer/Orders/GetTest.cs deleted file mode 100644 index 894f57a6..00000000 --- a/src/Square.Test/Unit/MockServer/Orders/GetTest.cs +++ /dev/null @@ -1,250 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Orders; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Orders; - -[TestFixture] -public class GetTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "order": { - "id": "CAISENgvlJ6jLWAzERDzjyHVybY", - "location_id": "D7AVYMEAPJ3A3", - "reference_id": "reference_id", - "source": { - "name": "name" - }, - "customer_id": "customer_id", - "line_items": [ - { - "uid": "ULkg0tQTRK2bkU9fNv3IJD", - "name": "Item 1", - "quantity": "1", - "applied_discounts": [ - { - "uid": "9zr9S4dxvPAixvn0lpa1VC", - "discount_uid": "zGsRZP69aqSSR9lq9euSPB", - "applied_money": { - "amount": 250, - "currency": "USD" - } - } - ], - "base_price_money": { - "amount": 500, - "currency": "USD" - }, - "variation_total_price_money": { - "amount": 500, - "currency": "USD" - }, - "gross_sales_money": { - "amount": 500, - "currency": "USD" - }, - "total_tax_money": { - "amount": 0, - "currency": "USD" - }, - "total_discount_money": { - "amount": 250, - "currency": "USD" - }, - "total_money": { - "amount": 250, - "currency": "USD" - }, - "total_service_charge_money": { - "amount": 0, - "currency": "USD" - } - }, - { - "uid": "mumY8Nun4BC5aKe2yyx5a", - "name": "Item 2", - "quantity": "2", - "applied_discounts": [ - { - "uid": "qa8LwwZK82FgSEkQc2HYVC", - "discount_uid": "zGsRZP69aqSSR9lq9euSPB", - "applied_money": { - "amount": 300, - "currency": "USD" - } - } - ], - "base_price_money": { - "amount": 300, - "currency": "USD" - }, - "variation_total_price_money": { - "amount": 600, - "currency": "USD" - }, - "gross_sales_money": { - "amount": 600, - "currency": "USD" - }, - "total_tax_money": { - "amount": 0, - "currency": "USD" - }, - "total_discount_money": { - "amount": 300, - "currency": "USD" - }, - "total_money": { - "amount": 300, - "currency": "USD" - }, - "total_service_charge_money": { - "amount": 0, - "currency": "USD" - } - } - ], - "taxes": [ - {} - ], - "discounts": [ - { - "uid": "zGsRZP69aqSSR9lq9euSPB", - "name": "50% Off", - "type": "FIXED_PERCENTAGE", - "percentage": "50", - "applied_money": { - "amount": 550, - "currency": "USD" - }, - "scope": "ORDER" - } - ], - "service_charges": [ - {} - ], - "fulfillments": [ - {} - ], - "returns": [ - {} - ], - "net_amounts": { - "total_money": { - "amount": 550, - "currency": "USD" - }, - "tax_money": { - "amount": 0, - "currency": "USD" - }, - "discount_money": { - "amount": 550, - "currency": "USD" - }, - "tip_money": { - "amount": 0, - "currency": "USD" - }, - "service_charge_money": { - "amount": 0, - "currency": "USD" - } - }, - "rounding_adjustment": { - "uid": "uid", - "name": "name" - }, - "tenders": [ - { - "type": "CARD" - } - ], - "refunds": [ - { - "id": "id", - "location_id": "location_id", - "reason": "reason", - "amount_money": {}, - "status": "PENDING" - } - ], - "metadata": { - "key": "value" - }, - "created_at": "2020-05-18T16:30:49.614Z", - "updated_at": "2020-05-18T16:30:49.614Z", - "closed_at": "closed_at", - "state": "OPEN", - "version": 1, - "total_money": { - "amount": 550, - "currency": "USD" - }, - "total_tax_money": { - "amount": 0, - "currency": "USD" - }, - "total_discount_money": { - "amount": 550, - "currency": "USD" - }, - "total_tip_money": { - "amount": 0, - "currency": "USD" - }, - "total_service_charge_money": { - "amount": 0, - "currency": "USD" - }, - "ticket_name": "ticket_name", - "pricing_options": { - "auto_apply_discounts": true, - "auto_apply_taxes": true - }, - "rewards": [ - { - "id": "id", - "reward_tier_id": "reward_tier_id" - } - ], - "net_amount_due_money": { - "amount": 1000000, - "currency": "UNKNOWN_CURRENCY" - } - }, - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock.RequestBuilders.Request.Create().WithPath("/v2/orders/order_id").UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Orders.GetAsync(new GetOrdersRequest { OrderId = "order_id" }); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Orders/SearchTest.cs b/src/Square.Test/Unit/MockServer/Orders/SearchTest.cs deleted file mode 100644 index b446b815..00000000 --- a/src/Square.Test/Unit/MockServer/Orders/SearchTest.cs +++ /dev/null @@ -1,182 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Orders; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Orders; - -[TestFixture] -public class SearchTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string requestJson = """ - { - "location_ids": [ - "057P5VYJ4A5X1", - "18YC4JDH91E1H" - ], - "query": { - "filter": { - "state_filter": { - "states": [ - "COMPLETED" - ] - }, - "date_time_filter": { - "closed_at": { - "start_at": "2018-03-03T20:00:00.000Z", - "end_at": "2019-03-04T21:54:45.000Z" - } - } - }, - "sort": { - "sort_field": "CLOSED_AT", - "sort_order": "DESC" - } - }, - "limit": 3, - "return_entries": true - } - """; - - const string mockResponse = """ - { - "order_entries": [ - { - "order_id": "CAISEM82RcpmcFBM0TfOyiHV3es", - "version": 1, - "location_id": "057P5VYJ4A5X1" - }, - { - "order_id": "CAISENgvlJ6jLWAzERDzjyHVybY", - "version": 1, - "location_id": "18YC4JDH91E1H" - }, - { - "order_id": "CAISEM52YcpmcWAzERDOyiWS3ty", - "version": 1, - "location_id": "057P5VYJ4A5X1" - } - ], - "orders": [ - { - "id": "id", - "location_id": "location_id", - "reference_id": "reference_id", - "customer_id": "customer_id", - "line_items": [ - { - "quantity": "quantity" - } - ], - "taxes": [ - {} - ], - "discounts": [ - {} - ], - "service_charges": [ - {} - ], - "fulfillments": [ - {} - ], - "returns": [ - {} - ], - "tenders": [ - { - "type": "CARD" - } - ], - "refunds": [ - { - "id": "id", - "location_id": "location_id", - "reason": "reason", - "amount_money": {}, - "status": "PENDING" - } - ], - "created_at": "created_at", - "updated_at": "updated_at", - "closed_at": "closed_at", - "state": "OPEN", - "version": 1, - "ticket_name": "ticket_name", - "rewards": [ - { - "id": "id", - "reward_tier_id": "reward_tier_id" - } - ] - } - ], - "cursor": "123", - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/orders/search") - .WithHeader("Content-Type", "application/json") - .UsingPost() - .WithBodyAsJson(requestJson) - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Orders.SearchAsync( - new SearchOrdersRequest - { - LocationIds = new List() { "057P5VYJ4A5X1", "18YC4JDH91E1H" }, - Query = new SearchOrdersQuery - { - Filter = new SearchOrdersFilter - { - StateFilter = new SearchOrdersStateFilter - { - States = new List() { OrderState.Completed }, - }, - DateTimeFilter = new SearchOrdersDateTimeFilter - { - ClosedAt = new TimeRange - { - StartAt = "2018-03-03T20:00:00+00:00", - EndAt = "2019-03-04T21:54:45+00:00", - }, - }, - }, - Sort = new SearchOrdersSort - { - SortField = SearchOrdersSortField.ClosedAt, - SortOrder = SortOrder.Desc, - }, - }, - Limit = 3, - ReturnEntries = true, - } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Orders/UpdateTest.cs b/src/Square.Test/Unit/MockServer/Orders/UpdateTest.cs deleted file mode 100644 index f72f5c23..00000000 --- a/src/Square.Test/Unit/MockServer/Orders/UpdateTest.cs +++ /dev/null @@ -1,267 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Orders; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Orders; - -[TestFixture] -public class UpdateTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string requestJson = """ - { - "order": { - "location_id": "location_id", - "line_items": [ - { - "uid": "cookie_uid", - "name": "COOKIE", - "quantity": "2", - "base_price_money": { - "amount": 200, - "currency": "USD" - } - } - ], - "version": 1 - }, - "fields_to_clear": [ - "discounts" - ], - "idempotency_key": "UNIQUE_STRING" - } - """; - - const string mockResponse = """ - { - "order": { - "id": "DREk7wJcyXNHqULq8JJ2iPAsluJZY", - "location_id": "MXVQSVNDGN3C8", - "reference_id": "reference_id", - "source": { - "name": "Cookies" - }, - "customer_id": "customer_id", - "line_items": [ - { - "uid": "EuYkakhmu3ksHIds5Hiot", - "name": "Small Coffee", - "quantity": "1", - "base_price_money": { - "amount": 500, - "currency": "USD" - }, - "variation_total_price_money": { - "amount": 500, - "currency": "USD" - }, - "gross_sales_money": { - "amount": 500, - "currency": "USD" - }, - "total_tax_money": { - "amount": 0, - "currency": "USD" - }, - "total_discount_money": { - "amount": 0, - "currency": "USD" - }, - "total_money": { - "amount": 500, - "currency": "USD" - }, - "total_service_charge_money": { - "amount": 0, - "currency": "USD" - } - }, - { - "uid": "cookie_uid", - "name": "COOKIE", - "quantity": "2", - "base_price_money": { - "amount": 200, - "currency": "USD" - }, - "variation_total_price_money": { - "amount": 400, - "currency": "USD" - }, - "gross_sales_money": { - "amount": 400, - "currency": "USD" - }, - "total_tax_money": { - "amount": 0, - "currency": "USD" - }, - "total_discount_money": { - "amount": 0, - "currency": "USD" - }, - "total_money": { - "amount": 400, - "currency": "USD" - }, - "total_service_charge_money": { - "amount": 0, - "currency": "USD" - } - } - ], - "taxes": [ - {} - ], - "discounts": [ - {} - ], - "service_charges": [ - {} - ], - "fulfillments": [ - {} - ], - "returns": [ - {} - ], - "net_amounts": { - "total_money": { - "amount": 900, - "currency": "USD" - }, - "tax_money": { - "amount": 0, - "currency": "USD" - }, - "discount_money": { - "amount": 0, - "currency": "USD" - }, - "service_charge_money": { - "amount": 0, - "currency": "USD" - } - }, - "rounding_adjustment": { - "uid": "uid", - "name": "name" - }, - "tenders": [ - { - "type": "CARD" - } - ], - "refunds": [ - { - "id": "id", - "location_id": "location_id", - "reason": "reason", - "amount_money": {}, - "status": "PENDING" - } - ], - "metadata": { - "key": "value" - }, - "created_at": "2019-08-23T18:26:18.243Z", - "updated_at": "2019-08-23T18:33:47.523Z", - "closed_at": "closed_at", - "state": "OPEN", - "version": 2, - "total_money": { - "amount": 900, - "currency": "USD" - }, - "total_tax_money": { - "amount": 0, - "currency": "USD" - }, - "total_discount_money": { - "amount": 0, - "currency": "USD" - }, - "total_tip_money": { - "amount": 1000000, - "currency": "UNKNOWN_CURRENCY" - }, - "total_service_charge_money": { - "amount": 0, - "currency": "USD" - }, - "ticket_name": "ticket_name", - "pricing_options": { - "auto_apply_discounts": true, - "auto_apply_taxes": true - }, - "rewards": [ - { - "id": "id", - "reward_tier_id": "reward_tier_id" - } - ], - "net_amount_due_money": { - "amount": 1000000, - "currency": "UNKNOWN_CURRENCY" - } - }, - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/orders/order_id") - .WithHeader("Content-Type", "application/json") - .UsingPut() - .WithBodyAsJson(requestJson) - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Orders.UpdateAsync( - new UpdateOrderRequest - { - OrderId = "order_id", - Order = new Order - { - LocationId = "location_id", - LineItems = new List() - { - new OrderLineItem - { - Uid = "cookie_uid", - Name = "COOKIE", - Quantity = "2", - BasePriceMoney = new Money { Amount = 200, Currency = Currency.Usd }, - }, - }, - Version = 1, - }, - FieldsToClear = new List() { "discounts" }, - IdempotencyKey = "UNIQUE_STRING", - } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Payments/CancelTest.cs b/src/Square.Test/Unit/MockServer/Payments/CancelTest.cs deleted file mode 100644 index a92f6721..00000000 --- a/src/Square.Test/Unit/MockServer/Payments/CancelTest.cs +++ /dev/null @@ -1,239 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Payments; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Payments; - -[TestFixture] -public class CancelTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "payment": { - "id": "1QjqpBVyrI9S4H9sTGDWU9JeiWdZY", - "created_at": "2021-10-13T20:26:44.191Z", - "updated_at": "2021-10-13T20:31:21.597Z", - "amount_money": { - "amount": 1000, - "currency": "USD" - }, - "tip_money": { - "amount": 100, - "currency": "USD" - }, - "total_money": { - "amount": 1100, - "currency": "USD" - }, - "app_fee_money": { - "amount": 1000000, - "currency": "UNKNOWN_CURRENCY" - }, - "approved_money": { - "amount": 1000, - "currency": "USD" - }, - "processing_fee": [ - {} - ], - "refunded_money": { - "amount": 1000000, - "currency": "UNKNOWN_CURRENCY" - }, - "status": "CANCELED", - "delay_duration": "PT168H", - "delay_action": "CANCEL", - "delayed_until": "2021-10-20T20:26:44.191Z", - "source_type": "CARD", - "card_details": { - "status": "VOIDED", - "card": { - "card_brand": "VISA", - "last_4": "1111", - "exp_month": 11, - "exp_year": 2022, - "fingerprint": "sq-1-Hxim77tbdcbGejOejnoAklBVJed2YFLTmirfl8Q5XZzObTc8qY_U8RkwzoNL8dCEcQ", - "card_type": "DEBIT", - "prepaid_type": "NOT_PREPAID", - "bin": "411111" - }, - "entry_method": "ON_FILE", - "cvv_status": "CVV_ACCEPTED", - "avs_status": "AVS_ACCEPTED", - "auth_result_code": "68aLBM", - "application_identifier": "application_identifier", - "application_name": "application_name", - "application_cryptogram": "application_cryptogram", - "verification_method": "verification_method", - "verification_results": "verification_results", - "statement_description": "SQ *EXAMPLE TEST GOSQ.C", - "card_payment_timeline": { - "authorized_at": "2021-10-13T20:26:44.364Z", - "voided_at": "2021-10-13T20:31:21.597Z" - }, - "refund_requires_card_presence": true, - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR" - } - ] - }, - "cash_details": { - "buyer_supplied_money": {} - }, - "bank_account_details": { - "bank_name": "bank_name", - "transfer_type": "transfer_type", - "account_ownership_type": "account_ownership_type", - "fingerprint": "fingerprint", - "country": "country", - "statement_description": "statement_description", - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR" - } - ] - }, - "external_details": { - "type": "type", - "source": "source", - "source_id": "source_id" - }, - "wallet_details": { - "status": "status", - "brand": "brand", - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR" - } - ] - }, - "buy_now_pay_later_details": { - "brand": "brand", - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR" - } - ] - }, - "square_account_details": { - "payment_source_token": "payment_source_token", - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR" - } - ] - }, - "location_id": "L88917AVBK2S5", - "order_id": "nUSN9TdxpiK3SrQg3wzmf6r8LP9YY", - "reference_id": "reference_id", - "customer_id": "W92WH6P11H4Z77CTET0RNTGFW8", - "employee_id": "employee_id", - "team_member_id": "team_member_id", - "refund_ids": [ - "refund_ids" - ], - "risk_evaluation": { - "created_at": "2021-10-13T20:26:45.271Z", - "risk_level": "NORMAL" - }, - "terminal_checkout_id": "terminal_checkout_id", - "buyer_email_address": "buyer_email_address", - "billing_address": { - "address_line_1": "address_line_1", - "address_line_2": "address_line_2", - "address_line_3": "address_line_3", - "locality": "locality", - "sublocality": "sublocality", - "sublocality_2": "sublocality_2", - "sublocality_3": "sublocality_3", - "administrative_district_level_1": "administrative_district_level_1", - "administrative_district_level_2": "administrative_district_level_2", - "administrative_district_level_3": "administrative_district_level_3", - "postal_code": "postal_code", - "country": "ZZ", - "first_name": "first_name", - "last_name": "last_name" - }, - "shipping_address": { - "address_line_1": "address_line_1", - "address_line_2": "address_line_2", - "address_line_3": "address_line_3", - "locality": "locality", - "sublocality": "sublocality", - "sublocality_2": "sublocality_2", - "sublocality_3": "sublocality_3", - "administrative_district_level_1": "administrative_district_level_1", - "administrative_district_level_2": "administrative_district_level_2", - "administrative_district_level_3": "administrative_district_level_3", - "postal_code": "postal_code", - "country": "ZZ", - "first_name": "first_name", - "last_name": "last_name" - }, - "note": "Example Note", - "statement_description_identifier": "statement_description_identifier", - "capabilities": [ - "capabilities" - ], - "receipt_number": "receipt_number", - "receipt_url": "receipt_url", - "device_details": { - "device_id": "device_id", - "device_installation_id": "device_installation_id", - "device_name": "device_name" - }, - "application_details": { - "square_product": "ECOMMERCE_API", - "application_id": "sq0ids-TcgftTEtKxJTRF1lCFJ9TA" - }, - "is_offline_payment": true, - "offline_payment_details": { - "client_created_at": "client_created_at" - }, - "version_token": "N8AGYgEjCiY9Q57Jw7aVHEpBq8bzGCDCQMRX8Vs56N06o" - } - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/payments/payment_id/cancel") - .UsingPost() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Payments.CancelAsync( - new CancelPaymentsRequest { PaymentId = "payment_id" } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Payments/CreateTest.cs b/src/Square.Test/Unit/MockServer/Payments/CreateTest.cs deleted file mode 100644 index 8dfc7277..00000000 --- a/src/Square.Test/Unit/MockServer/Payments/CreateTest.cs +++ /dev/null @@ -1,272 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Payments; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Payments; - -[TestFixture] -public class CreateTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string requestJson = """ - { - "source_id": "ccof:GaJGNaZa8x4OgDJn4GB", - "idempotency_key": "7b0f3ec5-086a-4871-8f13-3c81b3875218", - "amount_money": { - "amount": 1000, - "currency": "USD" - }, - "app_fee_money": { - "amount": 10, - "currency": "USD" - }, - "autocomplete": true, - "customer_id": "W92WH6P11H4Z77CTET0RNTGFW8", - "location_id": "L88917AVBK2S5", - "reference_id": "123456", - "note": "Brief description" - } - """; - - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "payment": { - "id": "R2B3Z8WMVt3EAmzYWLZvz7Y69EbZY", - "created_at": "2021-10-13T21:14:29.577Z", - "updated_at": "2021-10-13T21:14:30.504Z", - "amount_money": { - "amount": 1000, - "currency": "USD" - }, - "tip_money": { - "amount": 1000000, - "currency": "UNKNOWN_CURRENCY" - }, - "total_money": { - "amount": 1000, - "currency": "USD" - }, - "app_fee_money": { - "amount": 10, - "currency": "USD" - }, - "approved_money": { - "amount": 1000, - "currency": "USD" - }, - "processing_fee": [ - {} - ], - "refunded_money": { - "amount": 1000000, - "currency": "UNKNOWN_CURRENCY" - }, - "status": "COMPLETED", - "delay_duration": "PT168H", - "delay_action": "CANCEL", - "delayed_until": "2021-10-20T21:14:29.577Z", - "source_type": "CARD", - "card_details": { - "status": "CAPTURED", - "card": { - "card_brand": "VISA", - "last_4": "1111", - "exp_month": 11, - "exp_year": 2022, - "fingerprint": "sq-1-Hxim77tbdcbGejOejnoAklBVJed2YFLTmirfl8Q5XZzObTc8qY_U8RkwzoNL8dCEcQ", - "card_type": "DEBIT", - "prepaid_type": "NOT_PREPAID", - "bin": "411111" - }, - "entry_method": "ON_FILE", - "cvv_status": "CVV_ACCEPTED", - "avs_status": "AVS_ACCEPTED", - "auth_result_code": "vNEn2f", - "application_identifier": "application_identifier", - "application_name": "application_name", - "application_cryptogram": "application_cryptogram", - "verification_method": "verification_method", - "verification_results": "verification_results", - "statement_description": "SQ *EXAMPLE TEST GOSQ.C", - "card_payment_timeline": { - "authorized_at": "2021-10-13T21:14:29.732Z", - "captured_at": "2021-10-13T21:14:30.504Z" - }, - "refund_requires_card_presence": true, - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR" - } - ] - }, - "cash_details": { - "buyer_supplied_money": {} - }, - "bank_account_details": { - "bank_name": "bank_name", - "transfer_type": "transfer_type", - "account_ownership_type": "account_ownership_type", - "fingerprint": "fingerprint", - "country": "country", - "statement_description": "statement_description", - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR" - } - ] - }, - "external_details": { - "type": "type", - "source": "source", - "source_id": "source_id" - }, - "wallet_details": { - "status": "status", - "brand": "brand", - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR" - } - ] - }, - "buy_now_pay_later_details": { - "brand": "brand", - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR" - } - ] - }, - "square_account_details": { - "payment_source_token": "payment_source_token", - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR" - } - ] - }, - "location_id": "L88917AVBK2S5", - "order_id": "pRsjRTgFWATl7so6DxdKBJa7ssbZY", - "reference_id": "123456", - "customer_id": "W92WH6P11H4Z77CTET0RNTGFW8", - "employee_id": "employee_id", - "team_member_id": "team_member_id", - "refund_ids": [ - "refund_ids" - ], - "risk_evaluation": { - "created_at": "2021-10-13T21:14:30.423Z", - "risk_level": "NORMAL" - }, - "terminal_checkout_id": "terminal_checkout_id", - "buyer_email_address": "buyer_email_address", - "billing_address": { - "address_line_1": "address_line_1", - "address_line_2": "address_line_2", - "address_line_3": "address_line_3", - "locality": "locality", - "sublocality": "sublocality", - "sublocality_2": "sublocality_2", - "sublocality_3": "sublocality_3", - "administrative_district_level_1": "administrative_district_level_1", - "administrative_district_level_2": "administrative_district_level_2", - "administrative_district_level_3": "administrative_district_level_3", - "postal_code": "postal_code", - "country": "ZZ", - "first_name": "first_name", - "last_name": "last_name" - }, - "shipping_address": { - "address_line_1": "address_line_1", - "address_line_2": "address_line_2", - "address_line_3": "address_line_3", - "locality": "locality", - "sublocality": "sublocality", - "sublocality_2": "sublocality_2", - "sublocality_3": "sublocality_3", - "administrative_district_level_1": "administrative_district_level_1", - "administrative_district_level_2": "administrative_district_level_2", - "administrative_district_level_3": "administrative_district_level_3", - "postal_code": "postal_code", - "country": "ZZ", - "first_name": "first_name", - "last_name": "last_name" - }, - "note": "Brief Description", - "statement_description_identifier": "statement_description_identifier", - "capabilities": [ - "capabilities" - ], - "receipt_number": "R2B3", - "receipt_url": "https://squareup.com/receipt/preview/EXAMPLE_RECEIPT_ID", - "device_details": { - "device_id": "device_id", - "device_installation_id": "device_installation_id", - "device_name": "device_name" - }, - "application_details": { - "square_product": "ECOMMERCE_API", - "application_id": "sq0ids-TcgftTEtKxJTRF1lCFJ9TA" - }, - "is_offline_payment": true, - "offline_payment_details": { - "client_created_at": "client_created_at" - }, - "version_token": "TPtNEOBOa6Qq6E3C3IjckSVOM6b3hMbfhjvTxHBQUsB6o" - } - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/payments") - .WithHeader("Content-Type", "application/json") - .UsingPost() - .WithBodyAsJson(requestJson) - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Payments.CreateAsync( - new CreatePaymentRequest - { - SourceId = "ccof:GaJGNaZa8x4OgDJn4GB", - IdempotencyKey = "7b0f3ec5-086a-4871-8f13-3c81b3875218", - AmountMoney = new Money { Amount = 1000, Currency = Currency.Usd }, - AppFeeMoney = new Money { Amount = 10, Currency = Currency.Usd }, - Autocomplete = true, - CustomerId = "W92WH6P11H4Z77CTET0RNTGFW8", - LocationId = "L88917AVBK2S5", - ReferenceId = "123456", - Note = "Brief description", - } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Payments/GetTest.cs b/src/Square.Test/Unit/MockServer/Payments/GetTest.cs deleted file mode 100644 index 3e8ff331..00000000 --- a/src/Square.Test/Unit/MockServer/Payments/GetTest.cs +++ /dev/null @@ -1,246 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Payments; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Payments; - -[TestFixture] -public class GetTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "payment": { - "id": "bP9mAsEMYPUGjjGNaNO5ZDVyLhSZY", - "created_at": "2021-10-13T19:34:33.524Z", - "updated_at": "2021-10-13T19:34:34.339Z", - "amount_money": { - "amount": 555, - "currency": "USD" - }, - "tip_money": { - "amount": 1000000, - "currency": "UNKNOWN_CURRENCY" - }, - "total_money": { - "amount": 555, - "currency": "USD" - }, - "app_fee_money": { - "amount": 1000000, - "currency": "UNKNOWN_CURRENCY" - }, - "approved_money": { - "amount": 555, - "currency": "USD" - }, - "processing_fee": [ - { - "effective_at": "2021-10-13T21:34:35.000Z", - "type": "INITIAL", - "amount_money": { - "amount": 34, - "currency": "USD" - } - } - ], - "refunded_money": { - "amount": 1000000, - "currency": "UNKNOWN_CURRENCY" - }, - "status": "COMPLETED", - "delay_duration": "PT168H", - "delay_action": "CANCEL", - "delayed_until": "2021-10-20T19:34:33.524Z", - "source_type": "CARD", - "card_details": { - "status": "CAPTURED", - "card": { - "card_brand": "VISA", - "last_4": "1111", - "exp_month": 11, - "exp_year": 2022, - "fingerprint": "sq-1-Hxim77tbdcbGejOejnoAklBVJed2YFLTmirfl8Q5XZzObTc8qY_U8RkwzoNL8dCEcQ", - "card_type": "DEBIT", - "prepaid_type": "NOT_PREPAID", - "bin": "411111" - }, - "entry_method": "KEYED", - "cvv_status": "CVV_ACCEPTED", - "avs_status": "AVS_ACCEPTED", - "auth_result_code": "2Nkw7q", - "application_identifier": "application_identifier", - "application_name": "application_name", - "application_cryptogram": "application_cryptogram", - "verification_method": "verification_method", - "verification_results": "verification_results", - "statement_description": "SQ *EXAMPLE TEST GOSQ.C", - "card_payment_timeline": { - "authorized_at": "2021-10-13T19:34:33.680Z", - "captured_at": "2021-10-13T19:34:34.340Z" - }, - "refund_requires_card_presence": true, - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR" - } - ] - }, - "cash_details": { - "buyer_supplied_money": {} - }, - "bank_account_details": { - "bank_name": "bank_name", - "transfer_type": "transfer_type", - "account_ownership_type": "account_ownership_type", - "fingerprint": "fingerprint", - "country": "country", - "statement_description": "statement_description", - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR" - } - ] - }, - "external_details": { - "type": "type", - "source": "source", - "source_id": "source_id" - }, - "wallet_details": { - "status": "status", - "brand": "brand", - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR" - } - ] - }, - "buy_now_pay_later_details": { - "brand": "brand", - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR" - } - ] - }, - "square_account_details": { - "payment_source_token": "payment_source_token", - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR" - } - ] - }, - "location_id": "L88917AVBK2S5", - "order_id": "d7eKah653Z579f3gVtjlxpSlmUcZY", - "reference_id": "reference_id", - "customer_id": "customer_id", - "employee_id": "TMoK_ogh6rH1o4dV", - "team_member_id": "TMoK_ogh6rH1o4dV", - "refund_ids": [ - "refund_ids" - ], - "risk_evaluation": { - "created_at": "created_at", - "risk_level": "PENDING" - }, - "terminal_checkout_id": "terminal_checkout_id", - "buyer_email_address": "buyer_email_address", - "billing_address": { - "address_line_1": "address_line_1", - "address_line_2": "address_line_2", - "address_line_3": "address_line_3", - "locality": "locality", - "sublocality": "sublocality", - "sublocality_2": "sublocality_2", - "sublocality_3": "sublocality_3", - "administrative_district_level_1": "administrative_district_level_1", - "administrative_district_level_2": "administrative_district_level_2", - "administrative_district_level_3": "administrative_district_level_3", - "postal_code": "postal_code", - "country": "ZZ", - "first_name": "first_name", - "last_name": "last_name" - }, - "shipping_address": { - "address_line_1": "address_line_1", - "address_line_2": "address_line_2", - "address_line_3": "address_line_3", - "locality": "locality", - "sublocality": "sublocality", - "sublocality_2": "sublocality_2", - "sublocality_3": "sublocality_3", - "administrative_district_level_1": "administrative_district_level_1", - "administrative_district_level_2": "administrative_district_level_2", - "administrative_district_level_3": "administrative_district_level_3", - "postal_code": "postal_code", - "country": "ZZ", - "first_name": "first_name", - "last_name": "last_name" - }, - "note": "Test Note", - "statement_description_identifier": "statement_description_identifier", - "capabilities": [ - "capabilities" - ], - "receipt_number": "bP9m", - "receipt_url": "https://squareup.com/receipt/preview/bP9mAsEMYPUGjjGNaNO5ZDVyLhSZY", - "device_details": { - "device_id": "device_id", - "device_installation_id": "device_installation_id", - "device_name": "device_name" - }, - "application_details": { - "square_product": "VIRTUAL_TERMINAL", - "application_id": "sq0ids-Pw67AZAlLVB7hsRmwlJPuA" - }, - "is_offline_payment": true, - "offline_payment_details": { - "client_created_at": "client_created_at" - }, - "version_token": "56pRkL3slrzet2iQrTp9n0bdJVYTB9YEWdTNjQfZOPV6o" - } - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/payments/payment_id") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Payments.GetAsync( - new GetPaymentsRequest { PaymentId = "payment_id" } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Payments/ListTest.cs b/src/Square.Test/Unit/MockServer/Payments/ListTest.cs deleted file mode 100644 index 45f3d615..00000000 --- a/src/Square.Test/Unit/MockServer/Payments/ListTest.cs +++ /dev/null @@ -1,169 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Payments; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Payments; - -[TestFixture] -public class ListTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "payments": [ - { - "id": "bP9mAsEMYPUGjjGNaNO5ZDVyLhSZY", - "created_at": "2021-10-13T19:34:33.524Z", - "updated_at": "2021-10-13T19:34:37.261Z", - "amount_money": { - "amount": 555, - "currency": "USD" - }, - "total_money": { - "amount": 555, - "currency": "USD" - }, - "approved_money": { - "amount": 555, - "currency": "USD" - }, - "processing_fee": [ - { - "effective_at": "2021-10-13T21:34:35.000Z", - "type": "INITIAL", - "amount_money": { - "amount": 34, - "currency": "USD" - } - } - ], - "status": "COMPLETED", - "delay_duration": "PT168H", - "delay_action": "CANCEL", - "delayed_until": "2021-10-20T19:34:33.524Z", - "source_type": "CARD", - "card_details": { - "status": "CAPTURED", - "card": { - "card_brand": "VISA", - "last_4": "1111", - "exp_month": 11, - "exp_year": 2022, - "fingerprint": "sq-1-Hxim77tbdcbGejOejnoAklBVJed2YFLTmirfl8Q5XZzObTc8qY_U8RkwzoNL8dCEcQ", - "card_type": "DEBIT", - "prepaid_type": "NOT_PREPAID", - "bin": "411111" - }, - "entry_method": "KEYED", - "cvv_status": "CVV_ACCEPTED", - "avs_status": "AVS_ACCEPTED", - "auth_result_code": "2Nkw7q", - "statement_description": "SQ *EXAMPLE TEST GOSQ.C", - "card_payment_timeline": { - "authorized_at": "2021-10-13T19:34:33.680Z", - "captured_at": "2021-10-13T19:34:34.340Z" - } - }, - "cash_details": { - "buyer_supplied_money": {} - }, - "external_details": { - "type": "type", - "source": "source" - }, - "location_id": "L88917AVBK2S5", - "order_id": "d7eKah653Z579f3gVtjlxpSlmUcZY", - "reference_id": "reference_id", - "customer_id": "customer_id", - "employee_id": "TMoK_ogh6rH1o4dV", - "team_member_id": "TMoK_ogh6rH1o4dV", - "refund_ids": [ - "refund_ids" - ], - "terminal_checkout_id": "terminal_checkout_id", - "buyer_email_address": "buyer_email_address", - "note": "Test Note", - "statement_description_identifier": "statement_description_identifier", - "capabilities": [ - "capabilities" - ], - "receipt_number": "bP9m", - "receipt_url": "https://squareup.com/receipt/preview/bP9mAsEMYPUGjjGNaNO5ZDVyLhSZY", - "application_details": { - "square_product": "VIRTUAL_TERMINAL", - "application_id": "sq0ids-Pw67AZAlLVB7hsRmwlJPuA" - }, - "is_offline_payment": true, - "version_token": "vguW2km0KpVCdAXZcNTZ438qg5LlVPTP4HO5OpiHNfa6o" - } - ], - "cursor": "cursor" - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/payments") - .WithParam("begin_time", "begin_time") - .WithParam("end_time", "end_time") - .WithParam("sort_order", "sort_order") - .WithParam("cursor", "cursor") - .WithParam("location_id", "location_id") - .WithParam("total", "1000000") - .WithParam("last_4", "last_4") - .WithParam("card_brand", "card_brand") - .WithParam("limit", "1") - .WithParam("offline_begin_time", "offline_begin_time") - .WithParam("offline_end_time", "offline_end_time") - .WithParam("updated_at_begin_time", "updated_at_begin_time") - .WithParam("updated_at_end_time", "updated_at_end_time") - .WithParam("sort_field", "CREATED_AT") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var items = await Client.Payments.ListAsync( - new ListPaymentsRequest - { - BeginTime = "begin_time", - EndTime = "end_time", - SortOrder = "sort_order", - Cursor = "cursor", - LocationId = "location_id", - Total = 1000000, - Last4 = "last_4", - CardBrand = "card_brand", - Limit = 1, - IsOfflinePayment = true, - OfflineBeginTime = "offline_begin_time", - OfflineEndTime = "offline_end_time", - UpdatedAtBeginTime = "updated_at_begin_time", - UpdatedAtEndTime = "updated_at_end_time", - SortField = ListPaymentsRequestSortField.CreatedAt, - } - ); - await foreach (var item in items) - { - Assert.That(item, Is.Not.Null); - break; // Only check the first item - } - } -} diff --git a/src/Square.Test/Unit/MockServer/Payments/UpdateTest.cs b/src/Square.Test/Unit/MockServer/Payments/UpdateTest.cs deleted file mode 100644 index fa1314aa..00000000 --- a/src/Square.Test/Unit/MockServer/Payments/UpdateTest.cs +++ /dev/null @@ -1,270 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Payments; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Payments; - -[TestFixture] -public class UpdateTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string requestJson = """ - { - "payment": { - "amount_money": { - "amount": 1000, - "currency": "USD" - }, - "tip_money": { - "amount": 100, - "currency": "USD" - }, - "version_token": "ODhwVQ35xwlzRuoZEwKXucfu7583sPTzK48c5zoGd0g6o" - }, - "idempotency_key": "956f8b13-e4ec-45d6-85e8-d1d95ef0c5de" - } - """; - - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "payment": { - "id": "1QjqpBVyrI9S4H9sTGDWU9JeiWdZY", - "created_at": "2021-10-13T20:26:44.191Z", - "updated_at": "2021-10-13T20:26:44.364Z", - "amount_money": { - "amount": 1000, - "currency": "USD" - }, - "tip_money": { - "amount": 100, - "currency": "USD" - }, - "total_money": { - "amount": 1100, - "currency": "USD" - }, - "app_fee_money": { - "amount": 1000000, - "currency": "UNKNOWN_CURRENCY" - }, - "approved_money": { - "amount": 1000, - "currency": "USD" - }, - "processing_fee": [ - {} - ], - "refunded_money": { - "amount": 1000000, - "currency": "UNKNOWN_CURRENCY" - }, - "status": "APPROVED", - "delay_duration": "PT168H", - "delay_action": "CANCEL", - "delayed_until": "2021-10-20T20:26:44.191Z", - "source_type": "CARD", - "card_details": { - "status": "AUTHORIZED", - "card": { - "card_brand": "VISA", - "last_4": "1111", - "exp_month": 11, - "exp_year": 2022, - "fingerprint": "sq-1-Hxim77tbdcbGejOejnoAklBVJed2YFLTmirfl8Q5XZzObTc8qY_U8RkwzoNL8dCEcQ", - "card_type": "DEBIT", - "prepaid_type": "NOT_PREPAID", - "bin": "411111" - }, - "entry_method": "ON_FILE", - "cvv_status": "CVV_ACCEPTED", - "avs_status": "AVS_ACCEPTED", - "auth_result_code": "68aLBM", - "application_identifier": "application_identifier", - "application_name": "application_name", - "application_cryptogram": "application_cryptogram", - "verification_method": "verification_method", - "verification_results": "verification_results", - "statement_description": "SQ *EXAMPLE TEST GOSQ.C", - "card_payment_timeline": { - "authorized_at": "2021-10-13T20:26:44.364Z" - }, - "refund_requires_card_presence": true, - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR" - } - ] - }, - "cash_details": { - "buyer_supplied_money": {} - }, - "bank_account_details": { - "bank_name": "bank_name", - "transfer_type": "transfer_type", - "account_ownership_type": "account_ownership_type", - "fingerprint": "fingerprint", - "country": "country", - "statement_description": "statement_description", - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR" - } - ] - }, - "external_details": { - "type": "type", - "source": "source", - "source_id": "source_id" - }, - "wallet_details": { - "status": "status", - "brand": "brand", - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR" - } - ] - }, - "buy_now_pay_later_details": { - "brand": "brand", - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR" - } - ] - }, - "square_account_details": { - "payment_source_token": "payment_source_token", - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR" - } - ] - }, - "location_id": "L88917AVBK2S5", - "order_id": "nUSN9TdxpiK3SrQg3wzmf6r8LP9YY", - "reference_id": "reference_id", - "customer_id": "W92WH6P11H4Z77CTET0RNTGFW8", - "employee_id": "employee_id", - "team_member_id": "team_member_id", - "refund_ids": [ - "refund_ids" - ], - "risk_evaluation": { - "created_at": "2021-10-13T20:26:45.271Z", - "risk_level": "NORMAL" - }, - "terminal_checkout_id": "terminal_checkout_id", - "buyer_email_address": "buyer_email_address", - "billing_address": { - "address_line_1": "address_line_1", - "address_line_2": "address_line_2", - "address_line_3": "address_line_3", - "locality": "locality", - "sublocality": "sublocality", - "sublocality_2": "sublocality_2", - "sublocality_3": "sublocality_3", - "administrative_district_level_1": "administrative_district_level_1", - "administrative_district_level_2": "administrative_district_level_2", - "administrative_district_level_3": "administrative_district_level_3", - "postal_code": "postal_code", - "country": "ZZ", - "first_name": "first_name", - "last_name": "last_name" - }, - "shipping_address": { - "address_line_1": "address_line_1", - "address_line_2": "address_line_2", - "address_line_3": "address_line_3", - "locality": "locality", - "sublocality": "sublocality", - "sublocality_2": "sublocality_2", - "sublocality_3": "sublocality_3", - "administrative_district_level_1": "administrative_district_level_1", - "administrative_district_level_2": "administrative_district_level_2", - "administrative_district_level_3": "administrative_district_level_3", - "postal_code": "postal_code", - "country": "ZZ", - "first_name": "first_name", - "last_name": "last_name" - }, - "note": "Example Note", - "statement_description_identifier": "statement_description_identifier", - "capabilities": [ - "EDIT_AMOUNT_UP", - "EDIT_AMOUNT_DOWN", - "EDIT_TIP_AMOUNT_UP", - "EDIT_TIP_AMOUNT_DOWN" - ], - "receipt_number": "1Qjq", - "receipt_url": "receipt_url", - "device_details": { - "device_id": "device_id", - "device_installation_id": "device_installation_id", - "device_name": "device_name" - }, - "application_details": { - "square_product": "ECOMMERCE_API", - "application_id": "sq0ids-TcgftTEtKxJTRF1lCFJ9TA" - }, - "is_offline_payment": true, - "offline_payment_details": { - "client_created_at": "client_created_at" - }, - "version_token": "rDrXnqiS7fJgexccgdpzmwqTiXui1aIKCp9EchZ7trE6o" - } - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/payments/payment_id") - .WithHeader("Content-Type", "application/json") - .UsingPut() - .WithBodyAsJson(requestJson) - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Payments.UpdateAsync( - new UpdatePaymentRequest - { - PaymentId = "payment_id", - Payment = new Payment - { - AmountMoney = new Money { Amount = 1000, Currency = Currency.Usd }, - TipMoney = new Money { Amount = 100, Currency = Currency.Usd }, - VersionToken = "ODhwVQ35xwlzRuoZEwKXucfu7583sPTzK48c5zoGd0g6o", - }, - IdempotencyKey = "956f8b13-e4ec-45d6-85e8-d1d95ef0c5de", - } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Payouts/GetTest.cs b/src/Square.Test/Unit/MockServer/Payouts/GetTest.cs deleted file mode 100644 index 84c34b83..00000000 --- a/src/Square.Test/Unit/MockServer/Payouts/GetTest.cs +++ /dev/null @@ -1,72 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Payouts; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Payouts; - -[TestFixture] -public class GetTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "payout": { - "id": "po_f3c0fb38-a5ce-427d-b858-52b925b72e45", - "status": "PAID", - "location_id": "L88917AVBK2S5", - "created_at": "2022-03-24T03:07:09.000Z", - "updated_at": "2022-03-24T03:07:09.000Z", - "amount_money": { - "amount": -103, - "currency": "UNKNOWN_CURRENCY" - }, - "destination": { - "type": "BANK_ACCOUNT", - "id": "bact:ZPp3oedR3AeEUNd3z7" - }, - "version": 1, - "type": "BATCH", - "payout_fee": [ - {} - ], - "arrival_date": "2022-03-24", - "end_to_end_id": "end_to_end_id" - }, - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/payouts/payout_id") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Payouts.GetAsync( - new GetPayoutsRequest { PayoutId = "payout_id" } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Payouts/ListTest.cs b/src/Square.Test/Unit/MockServer/Payouts/ListTest.cs deleted file mode 100644 index b570aabc..00000000 --- a/src/Square.Test/Unit/MockServer/Payouts/ListTest.cs +++ /dev/null @@ -1,117 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Payouts; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Payouts; - -[TestFixture] -public class ListTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "payouts": [ - { - "id": "po_b345d2c7-90b3-4f0b-a2aa-df1def7f8afc", - "status": "PAID", - "location_id": "L88917AVBK2S5", - "created_at": "2022-03-29T16:12:31.000Z", - "updated_at": "2022-03-30T01:07:22.875Z", - "amount_money": { - "amount": 6259 - }, - "destination": { - "type": "CARD", - "id": "ccof:ZPp3oedR3AeEUNd3z7" - }, - "version": 2, - "type": "BATCH", - "payout_fee": [ - { - "amount_money": { - "amount": 95 - }, - "effective_at": "2022-03-29T16:12:31.000Z", - "type": "TRANSFER_FEE" - } - ], - "arrival_date": "2022-03-29", - "end_to_end_id": "L2100000005" - }, - { - "id": "po_f3c0fb38-a5ce-427d-b858-52b925b72e45", - "status": "PAID", - "location_id": "L88917AVBK2S5", - "created_at": "2022-03-24T03:07:09.000Z", - "updated_at": "2022-03-24T03:07:09.000Z", - "amount_money": { - "amount": -103 - }, - "destination": { - "type": "BANK_ACCOUNT", - "id": "bact:ZPp3oedR3AeEUNd3z7" - }, - "version": 1, - "type": "BATCH", - "payout_fee": [ - {} - ], - "arrival_date": "2022-03-24", - "end_to_end_id": "L2100000006" - } - ], - "cursor": "EMPCyStibo64hS8wLayZPp3oedR3AeEUNd3z7u6zphi72LQZFIEMbkKVvot9eefpU", - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/payouts") - .WithParam("location_id", "location_id") - .WithParam("status", "SENT") - .WithParam("begin_time", "begin_time") - .WithParam("end_time", "end_time") - .WithParam("sort_order", "DESC") - .WithParam("cursor", "cursor") - .WithParam("limit", "1") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var items = await Client.Payouts.ListAsync( - new ListPayoutsRequest - { - LocationId = "location_id", - Status = PayoutStatus.Sent, - BeginTime = "begin_time", - EndTime = "end_time", - SortOrder = SortOrder.Desc, - Cursor = "cursor", - Limit = 1, - } - ); - await foreach (var item in items) - { - Assert.That(item, Is.Not.Null); - break; // Only check the first item - } - } -} diff --git a/src/Square.Test/Unit/MockServer/Refunds/GetTest.cs b/src/Square.Test/Unit/MockServer/Refunds/GetTest.cs deleted file mode 100644 index 30c1704d..00000000 --- a/src/Square.Test/Unit/MockServer/Refunds/GetTest.cs +++ /dev/null @@ -1,91 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Refunds; - -[TestFixture] -public class GetTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "refund": { - "id": "bP9mAsEMYPUGjjGNaNO5ZDVyLhSZY_69MmgHubkLqx9wGhnmenRUHOaKitE6llfZuxcWYjGxd", - "status": "COMPLETED", - "location_id": "L88917AVBK2S5", - "unlinked": true, - "destination_type": "destination_type", - "destination_details": { - "cash_details": { - "seller_supplied_money": {} - }, - "external_details": { - "type": "type", - "source": "source" - } - }, - "amount_money": { - "amount": 555, - "currency": "USD" - }, - "app_fee_money": { - "amount": 1000000, - "currency": "UNKNOWN_CURRENCY" - }, - "processing_fee": [ - { - "effective_at": "2021-10-13T21:34:35.000Z", - "type": "INITIAL", - "amount_money": { - "amount": -34, - "currency": "USD" - } - } - ], - "payment_id": "bP9mAsEMYPUGjjGNaNO5ZDVyLhSZY", - "order_id": "9ltv0bx5PuvGXUYHYHxYSKEqC3IZY", - "reason": "Example Refund", - "created_at": "2021-10-13T19:59:05.073Z", - "updated_at": "2021-10-13T20:00:02.442Z", - "team_member_id": "team_member_id", - "terminal_refund_id": "terminal_refund_id" - } - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/refunds/refund_id") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Refunds.GetAsync( - new Square.Refunds.GetRefundsRequest { RefundId = "refund_id" } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)) - .UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Refunds/ListTest.cs b/src/Square.Test/Unit/MockServer/Refunds/ListTest.cs deleted file mode 100644 index c37f0814..00000000 --- a/src/Square.Test/Unit/MockServer/Refunds/ListTest.cs +++ /dev/null @@ -1,105 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Refunds; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Refunds; - -[TestFixture] -public class ListTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "refunds": [ - { - "id": "bP9mAsEMYPUGjjGNaNO5ZDVyLhSZY_69MmgHubkLqx9wGhnmenRUHOaKitE6llfZuxcWYjGxd", - "status": "COMPLETED", - "location_id": "L88917AVBK2S5", - "unlinked": true, - "destination_type": "destination_type", - "amount_money": { - "amount": 555, - "currency": "USD" - }, - "processing_fee": [ - { - "effective_at": "2021-10-13T21:34:35.000Z", - "type": "INITIAL", - "amount_money": { - "amount": -34, - "currency": "USD" - } - } - ], - "payment_id": "bP9mAsEMYPUGjjGNaNO5ZDVyLhSZY", - "order_id": "9ltv0bx5PuvGXUYHYHxYSKEqC3IZY", - "reason": "Example Refund", - "created_at": "2021-10-13T19:59:05.342Z", - "updated_at": "2021-10-13T20:00:03.497Z", - "team_member_id": "team_member_id", - "terminal_refund_id": "terminal_refund_id" - } - ], - "cursor": "5evquW1YswHoT4EoyUhzMmTsCnsSXBU9U0WJ4FU4623nrMQcocH0RGU6Up1YkwfiMcF59ood58EBTEGgzMTGHQJpocic7ExOL0NtrTXCeWcv0UJIJNk8eXb" - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/refunds") - .WithParam("begin_time", "begin_time") - .WithParam("end_time", "end_time") - .WithParam("sort_order", "sort_order") - .WithParam("cursor", "cursor") - .WithParam("location_id", "location_id") - .WithParam("status", "status") - .WithParam("source_type", "source_type") - .WithParam("limit", "1") - .WithParam("updated_at_begin_time", "updated_at_begin_time") - .WithParam("updated_at_end_time", "updated_at_end_time") - .WithParam("sort_field", "CREATED_AT") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var items = await Client.Refunds.ListAsync( - new ListRefundsRequest - { - BeginTime = "begin_time", - EndTime = "end_time", - SortOrder = "sort_order", - Cursor = "cursor", - LocationId = "location_id", - Status = "status", - SourceType = "source_type", - Limit = 1, - UpdatedAtBeginTime = "updated_at_begin_time", - UpdatedAtEndTime = "updated_at_end_time", - SortField = ListPaymentRefundsRequestSortField.CreatedAt, - } - ); - await foreach (var item in items) - { - Assert.That(item, Is.Not.Null); - break; // Only check the first item - } - } -} diff --git a/src/Square.Test/Unit/MockServer/Snippets/DeleteTest.cs b/src/Square.Test/Unit/MockServer/Snippets/DeleteTest.cs deleted file mode 100644 index f0f091e3..00000000 --- a/src/Square.Test/Unit/MockServer/Snippets/DeleteTest.cs +++ /dev/null @@ -1,50 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Snippets; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Snippets; - -[TestFixture] -public class DeleteTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/sites/site_id/snippet") - .UsingDelete() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Snippets.DeleteAsync( - new DeleteSnippetsRequest { SiteId = "site_id" } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Snippets/GetTest.cs b/src/Square.Test/Unit/MockServer/Snippets/GetTest.cs deleted file mode 100644 index e238aa40..00000000 --- a/src/Square.Test/Unit/MockServer/Snippets/GetTest.cs +++ /dev/null @@ -1,57 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Snippets; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Snippets; - -[TestFixture] -public class GetTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "snippet": { - "id": "snippet_5d178150-a6c0-11eb-a9f1-437e6a2881e7", - "site_id": "site_278075276488921835", - "content": "", - "created_at": "2021-03-11T25:40:09.000000Z", - "updated_at": "2021-03-11T25:40:09.000000Z" - } - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/sites/site_id/snippet") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Snippets.GetAsync( - new GetSnippetsRequest { SiteId = "site_id" } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Subscriptions/CancelTest.cs b/src/Square.Test/Unit/MockServer/Subscriptions/CancelTest.cs deleted file mode 100644 index 7e3eac64..00000000 --- a/src/Square.Test/Unit/MockServer/Subscriptions/CancelTest.cs +++ /dev/null @@ -1,97 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Subscriptions; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Subscriptions; - -[TestFixture] -public class CancelTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "subscription": { - "id": "910afd30-464a-4e00-a8d8-2296e", - "location_id": "S8GWD5R9QB376", - "plan_variation_id": "6JHXF3B2CW3YKHDV4XEM674H", - "customer_id": "CHFGVKYY8RSV93M5KCYTG4PN0G", - "start_date": "2022-01-19", - "canceled_date": "2023-06-05", - "charged_through_date": "charged_through_date", - "status": "ACTIVE", - "tax_percentage": "tax_percentage", - "invoice_ids": [ - "inv:0-ChCHu2mZEabLeeHahQnXDjZQECY", - "inv:0-ChrcX_i3sNmfsHTGKhI4Wg2mceA" - ], - "price_override_money": { - "amount": 1000000, - "currency": "UNKNOWN_CURRENCY" - }, - "version": 3, - "created_at": "2022-01-19T21:53:10.000Z", - "card_id": "ccof:qy5x8hHGYsgLrp4Q4GB", - "timezone": "America/Los_Angeles", - "source": { - "name": "My Application" - }, - "actions": [ - {} - ], - "monthly_billing_anchor_date": 1, - "phases": [ - {} - ], - "completed_date": "completed_date" - }, - "actions": [ - { - "id": "id", - "type": "CANCEL", - "effective_date": "effective_date", - "monthly_billing_anchor_date": 1, - "phases": [ - {} - ], - "new_plan_variation_id": "new_plan_variation_id" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/subscriptions/subscription_id/cancel") - .UsingPost() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Subscriptions.CancelAsync( - new CancelSubscriptionsRequest { SubscriptionId = "subscription_id" } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)) - .UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Subscriptions/CreateTest.cs b/src/Square.Test/Unit/MockServer/Subscriptions/CreateTest.cs deleted file mode 100644 index 850da1a4..00000000 --- a/src/Square.Test/Unit/MockServer/Subscriptions/CreateTest.cs +++ /dev/null @@ -1,126 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Subscriptions; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Subscriptions; - -[TestFixture] -public class CreateTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string requestJson = """ - { - "idempotency_key": "8193148c-9586-11e6-99f9-28cfe92138cf", - "location_id": "S8GWD5R9QB376", - "plan_variation_id": "6JHXF3B2CW3YKHDV4XEM674H", - "customer_id": "CHFGVKYY8RSV93M5KCYTG4PN0G", - "start_date": "2023-06-20", - "card_id": "ccof:qy5x8hHGYsgLrp4Q4GB", - "timezone": "America/Los_Angeles", - "source": { - "name": "My Application" - }, - "phases": [ - { - "ordinal": 0, - "order_template_id": "U2NaowWxzXwpsZU697x7ZHOAnCNZY" - } - ] - } - """; - - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "subscription": { - "id": "56214fb2-cc85-47a1-93bc-44f3766bb56f", - "location_id": "S8GWD5R9QB376", - "plan_variation_id": "6JHXF3B2CW3YKHDV4XEM674H", - "customer_id": "CHFGVKYY8RSV93M5KCYTG4PN0G", - "start_date": "2023-06-20", - "canceled_date": "canceled_date", - "charged_through_date": "charged_through_date", - "status": "ACTIVE", - "tax_percentage": "tax_percentage", - "invoice_ids": [ - "invoice_ids" - ], - "price_override_money": { - "amount": 1000000, - "currency": "UNKNOWN_CURRENCY" - }, - "version": 1, - "created_at": "2023-06-20T21:53:10.000Z", - "card_id": "ccof:qy5x8hHGYsgLrp4Q4GB", - "timezone": "America/Los_Angeles", - "source": { - "name": "My Application" - }, - "actions": [ - {} - ], - "monthly_billing_anchor_date": 1, - "phases": [ - { - "uid": "873451e0-745b-4e87-ab0b-c574933fe616", - "ordinal": 0, - "order_template_id": "U2NaowWxzXwpsZU697x7ZHOAnCNZY", - "plan_phase_uid": "X2Q2AONPB3RB64Y27S25QCZP" - } - ], - "completed_date": "completed_date" - } - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/subscriptions") - .WithHeader("Content-Type", "application/json") - .UsingPost() - .WithBodyAsJson(requestJson) - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Subscriptions.CreateAsync( - new CreateSubscriptionRequest - { - IdempotencyKey = "8193148c-9586-11e6-99f9-28cfe92138cf", - LocationId = "S8GWD5R9QB376", - PlanVariationId = "6JHXF3B2CW3YKHDV4XEM674H", - CustomerId = "CHFGVKYY8RSV93M5KCYTG4PN0G", - StartDate = "2023-06-20", - CardId = "ccof:qy5x8hHGYsgLrp4Q4GB", - Timezone = "America/Los_Angeles", - Source = new SubscriptionSource { Name = "My Application" }, - Phases = new List() - { - new Phase { Ordinal = 0, OrderTemplateId = "U2NaowWxzXwpsZU697x7ZHOAnCNZY" }, - }, - } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)) - .UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Subscriptions/GetTest.cs b/src/Square.Test/Unit/MockServer/Subscriptions/GetTest.cs deleted file mode 100644 index d2c65fb1..00000000 --- a/src/Square.Test/Unit/MockServer/Subscriptions/GetTest.cs +++ /dev/null @@ -1,88 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Subscriptions; - -[TestFixture] -public class GetTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "subscription": { - "id": "8151fc89-da15-4eb9-a685-1a70883cebfc", - "location_id": "S8GWD5R9QB376", - "plan_variation_id": "6JHXF3B2CW3YKHDV4XEM674H", - "customer_id": "JDKYHBWT1D4F8MFH63DBMEN8Y4", - "start_date": "2022-07-27", - "canceled_date": "canceled_date", - "charged_through_date": "2023-11-20", - "status": "ACTIVE", - "tax_percentage": "tax_percentage", - "invoice_ids": [ - "inv:0-ChCHu2mZEabLeeHahQnXDjZQECY", - "inv:0-ChrcX_i3sNmfsHTGKhI4Wg2mceA" - ], - "price_override_money": { - "amount": 25000, - "currency": "USD" - }, - "version": 1000000, - "created_at": "2022-07-27T21:53:10.000Z", - "card_id": "ccof:IkWfpLj4tNHMyFii3GB", - "timezone": "America/Los_Angeles", - "source": { - "name": "My Application" - }, - "actions": [ - {} - ], - "monthly_billing_anchor_date": 1, - "phases": [ - {} - ], - "completed_date": "completed_date" - } - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/subscriptions/subscription_id") - .WithParam("include", "include") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Subscriptions.GetAsync( - new Square.Subscriptions.GetSubscriptionsRequest - { - SubscriptionId = "subscription_id", - Include = "include", - } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Subscriptions/SearchTest.cs b/src/Square.Test/Unit/MockServer/Subscriptions/SearchTest.cs deleted file mode 100644 index b9fabf35..00000000 --- a/src/Square.Test/Unit/MockServer/Subscriptions/SearchTest.cs +++ /dev/null @@ -1,182 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Subscriptions; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Subscriptions; - -[TestFixture] -public class SearchTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string requestJson = """ - { - "query": { - "filter": { - "customer_ids": [ - "CHFGVKYY8RSV93M5KCYTG4PN0G" - ], - "location_ids": [ - "S8GWD5R9QB376" - ], - "source_names": [ - "My App" - ] - } - } - } - """; - - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "subscriptions": [ - { - "id": "de86fc96-8664-474b-af1a-abbe59cacf0e", - "location_id": "S8GWD5R9QB376", - "plan_variation_id": "L3TJVDHVBEQEGQDEZL2JJM7R", - "customer_id": "CHFGVKYY8RSV93M5KCYTG4PN0G", - "start_date": "2021-10-20", - "canceled_date": "2021-10-30", - "charged_through_date": "2021-11-20", - "status": "CANCELED", - "tax_percentage": "tax_percentage", - "invoice_ids": [ - "invoice_ids" - ], - "version": 1000000, - "created_at": "2021-10-20T21:53:10.000Z", - "card_id": "ccof:mueUsvgajChmjEbp4GB", - "timezone": "UTC", - "source": { - "name": "My Application" - }, - "actions": [ - {} - ], - "monthly_billing_anchor_date": 1, - "phases": [ - {} - ], - "completed_date": "completed_date" - }, - { - "id": "56214fb2-cc85-47a1-93bc-44f3766bb56f", - "location_id": "S8GWD5R9QB376", - "plan_variation_id": "6JHXF3B2CW3YKHDV4XEM674H", - "customer_id": "CHFGVKYY8RSV93M5KCYTG4PN0G", - "start_date": "2022-01-19", - "canceled_date": "canceled_date", - "charged_through_date": "2022-08-19", - "status": "PAUSED", - "tax_percentage": "5", - "invoice_ids": [ - "grebK0Q_l8H4fqoMMVvt-Q", - "rcX_i3sNmHTGKhI4W2mceA" - ], - "price_override_money": { - "amount": 1000, - "currency": "USD" - }, - "version": 2, - "created_at": "2022-01-19T21:53:10.000Z", - "card_id": "card_id", - "timezone": "America/Los_Angeles", - "source": { - "name": "My Application" - }, - "actions": [ - {} - ], - "monthly_billing_anchor_date": 1, - "phases": [ - {} - ], - "completed_date": "completed_date" - }, - { - "id": "56214fb2-cc85-47a1-93bc-44f3766bb56f", - "location_id": "S8GWD5R9QB376", - "plan_variation_id": "6JHXF3B2CW3YKHDV4XEM674H", - "customer_id": "CHFGVKYY8RSV93M5KCYTG4PN0G", - "start_date": "2023-06-20", - "canceled_date": "canceled_date", - "charged_through_date": "charged_through_date", - "status": "ACTIVE", - "tax_percentage": "tax_percentage", - "invoice_ids": [ - "invoice_ids" - ], - "version": 1, - "created_at": "2023-06-20T21:53:10.000Z", - "card_id": "ccof:qy5x8hHGYsgLrp4Q4GB", - "timezone": "America/Los_Angeles", - "source": { - "name": "My Application" - }, - "actions": [ - {} - ], - "monthly_billing_anchor_date": 1, - "phases": [ - { - "uid": "873451e0-745b-4e87-ab0b-c574933fe616", - "ordinal": 0, - "order_template_id": "U2NaowWxzXwpsZU697x7ZHOAnCNZY", - "plan_phase_uid": "X2Q2AONPB3RB64Y27S25QCZP" - } - ], - "completed_date": "completed_date" - } - ], - "cursor": "cursor" - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/subscriptions/search") - .WithHeader("Content-Type", "application/json") - .UsingPost() - .WithBodyAsJson(requestJson) - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Subscriptions.SearchAsync( - new SearchSubscriptionsRequest - { - Query = new SearchSubscriptionsQuery - { - Filter = new SearchSubscriptionsFilter - { - CustomerIds = new List() { "CHFGVKYY8RSV93M5KCYTG4PN0G" }, - LocationIds = new List() { "S8GWD5R9QB376" }, - SourceNames = new List() { "My App" }, - }, - }, - } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)) - .UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Subscriptions/UpdateTest.cs b/src/Square.Test/Unit/MockServer/Subscriptions/UpdateTest.cs deleted file mode 100644 index 7b308120..00000000 --- a/src/Square.Test/Unit/MockServer/Subscriptions/UpdateTest.cs +++ /dev/null @@ -1,99 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Subscriptions; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Subscriptions; - -[TestFixture] -public class UpdateTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string requestJson = """ - { - "subscription": { - "card_id": "{NEW CARD ID}" - } - } - """; - - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "subscription": { - "id": "7217d8ca-1fee-4446-a9e5-8540b5d8c9bb", - "location_id": "LPJKHYR7WFDKN", - "plan_variation_id": "XOUNEKCE6NSXQW5NTSQ73MMX", - "customer_id": "AM69AB81FT4479YH9HGWS1HZY8", - "start_date": "2023-01-30", - "canceled_date": "canceled_date", - "charged_through_date": "2023-03-13", - "status": "ACTIVE", - "tax_percentage": "tax_percentage", - "invoice_ids": [ - "inv:0-ChAPSfVYvNewckgf3x4iigN_ENMM", - "inv:0-ChBQaCCLfjcm9WEUBGxvuydJENMM" - ], - "price_override_money": { - "amount": 1000000, - "currency": "UNKNOWN_CURRENCY" - }, - "version": 3, - "created_at": "2023-01-30T19:27:32.000Z", - "card_id": "{NEW CARD ID}", - "timezone": "UTC", - "source": { - "name": "My Application" - }, - "actions": [ - {} - ], - "monthly_billing_anchor_date": 1, - "phases": [ - {} - ], - "completed_date": "completed_date" - } - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/subscriptions/subscription_id") - .WithHeader("Content-Type", "application/json") - .UsingPut() - .WithBodyAsJson(requestJson) - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Subscriptions.UpdateAsync( - new UpdateSubscriptionRequest - { - SubscriptionId = "subscription_id", - Subscription = new Subscription { CardId = "{NEW CARD ID}" }, - } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)) - .UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/TeamMembers/BatchCreateTest.cs b/src/Square.Test/Unit/MockServer/TeamMembers/BatchCreateTest.cs deleted file mode 100644 index 36dc27c1..00000000 --- a/src/Square.Test/Unit/MockServer/TeamMembers/BatchCreateTest.cs +++ /dev/null @@ -1,184 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.TeamMembers; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.TeamMembers; - -[TestFixture] -public class BatchCreateTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string requestJson = """ - { - "team_members": { - "idempotency-key-1": { - "team_member": { - "reference_id": "reference_id_1", - "given_name": "Joe", - "family_name": "Doe", - "email_address": "joe_doe@gmail.com", - "phone_number": "+14159283333", - "assigned_locations": { - "assignment_type": "EXPLICIT_LOCATIONS", - "location_ids": [ - "YSGH2WBKG94QZ", - "GA2Y9HSJ8KRYT" - ] - } - } - }, - "idempotency-key-2": { - "team_member": { - "reference_id": "reference_id_2", - "given_name": "Jane", - "family_name": "Smith", - "email_address": "jane_smith@gmail.com", - "phone_number": "+14159223334", - "assigned_locations": { - "assignment_type": "ALL_CURRENT_AND_FUTURE_LOCATIONS" - } - } - } - } - } - """; - - const string mockResponse = """ - { - "team_members": { - "idempotency-key-1": { - "team_member": { - "id": "ywhG1qfIOoqsHfVRubFV", - "reference_id": "reference_id_1", - "is_owner": false, - "status": "ACTIVE", - "given_name": "Joe", - "family_name": "Doe", - "email_address": "joe_doe@gmail.com", - "phone_number": "+14159283333", - "assigned_locations": { - "assignment_type": "EXPLICIT_LOCATIONS", - "location_ids": [ - "GA2Y9HSJ8KRYT", - "YSGH2WBKG94QZ" - ] - } - }, - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR" - } - ] - }, - "idempotency-key-2": { - "team_member": { - "id": "IF_Ncrg7fHhCqxVI9T6R", - "reference_id": "reference_id_2", - "is_owner": false, - "status": "ACTIVE", - "given_name": "Jane", - "family_name": "Smith", - "email_address": "jane_smith@gmail.com", - "phone_number": "+14159223334", - "assigned_locations": { - "assignment_type": "ALL_CURRENT_AND_FUTURE_LOCATIONS" - } - }, - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR" - } - ] - } - }, - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/team-members/bulk-create") - .WithHeader("Content-Type", "application/json") - .UsingPost() - .WithBodyAsJson(requestJson) - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.TeamMembers.BatchCreateAsync( - new BatchCreateTeamMembersRequest - { - TeamMembers = new Dictionary() - { - { - "idempotency-key-1", - new CreateTeamMemberRequest - { - TeamMember = new TeamMember - { - ReferenceId = "reference_id_1", - GivenName = "Joe", - FamilyName = "Doe", - EmailAddress = "joe_doe@gmail.com", - PhoneNumber = "+14159283333", - AssignedLocations = new TeamMemberAssignedLocations - { - AssignmentType = - TeamMemberAssignedLocationsAssignmentType.ExplicitLocations, - LocationIds = new List() - { - "YSGH2WBKG94QZ", - "GA2Y9HSJ8KRYT", - }, - }, - }, - } - }, - { - "idempotency-key-2", - new CreateTeamMemberRequest - { - TeamMember = new TeamMember - { - ReferenceId = "reference_id_2", - GivenName = "Jane", - FamilyName = "Smith", - EmailAddress = "jane_smith@gmail.com", - PhoneNumber = "+14159223334", - AssignedLocations = new TeamMemberAssignedLocations - { - AssignmentType = - TeamMemberAssignedLocationsAssignmentType.AllCurrentAndFutureLocations, - }, - }, - } - }, - }, - } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)) - .UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/TeamMembers/CreateTest.cs b/src/Square.Test/Unit/MockServer/TeamMembers/CreateTest.cs deleted file mode 100644 index 98254908..00000000 --- a/src/Square.Test/Unit/MockServer/TeamMembers/CreateTest.cs +++ /dev/null @@ -1,188 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.TeamMembers; - -[TestFixture] -public class CreateTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string requestJson = """ - { - "idempotency_key": "idempotency-key-0", - "team_member": { - "reference_id": "reference_id_1", - "status": "ACTIVE", - "given_name": "Joe", - "family_name": "Doe", - "email_address": "joe_doe@gmail.com", - "phone_number": "+14159283333", - "assigned_locations": { - "assignment_type": "EXPLICIT_LOCATIONS", - "location_ids": [ - "YSGH2WBKG94QZ", - "GA2Y9HSJ8KRYT" - ] - }, - "wage_setting": { - "job_assignments": [ - { - "pay_type": "SALARY", - "annual_rate": { - "amount": 3000000, - "currency": "USD" - }, - "weekly_hours": 40, - "job_id": "FjS8x95cqHiMenw4f1NAUH4P" - }, - { - "pay_type": "HOURLY", - "hourly_rate": { - "amount": 2000, - "currency": "USD" - }, - "job_id": "VDNpRv8da51NU8qZFC5zDWpF" - } - ], - "is_overtime_exempt": true - } - } - } - """; - - const string mockResponse = """ - { - "team_member": { - "id": "1yJlHapkseYnNPETIU1B", - "reference_id": "reference_id_1", - "is_owner": false, - "status": "ACTIVE", - "given_name": "Joe", - "family_name": "Doe", - "email_address": "joe_doe@example.com", - "phone_number": "+14159283333", - "created_at": "2021-06-11T22:55:45.000Z", - "updated_at": "2021-06-11T22:55:45.000Z", - "assigned_locations": { - "assignment_type": "EXPLICIT_LOCATIONS", - "location_ids": [ - "GA2Y9HSJ8KRYT", - "YSGH2WBKG94QZ" - ] - }, - "wage_setting": { - "team_member_id": "1yJlHapkseYnNPETIU1B", - "job_assignments": [ - { - "job_title": "Manager", - "pay_type": "SALARY", - "hourly_rate": { - "amount": 1443, - "currency": "USD" - }, - "annual_rate": { - "amount": 3000000, - "currency": "USD" - }, - "weekly_hours": 40, - "job_id": "FjS8x95cqHiMenw4f1NAUH4P" - }, - { - "job_title": "Cashier", - "pay_type": "HOURLY", - "hourly_rate": { - "amount": 2000, - "currency": "USD" - }, - "job_id": "VDNpRv8da51NU8qZFC5zDWpF" - } - ], - "is_overtime_exempt": true, - "version": 1, - "created_at": "2021-06-11T22:55:45.000Z", - "updated_at": "2021-06-11T22:55:45.000Z" - } - }, - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/team-members") - .WithHeader("Content-Type", "application/json") - .UsingPost() - .WithBodyAsJson(requestJson) - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.TeamMembers.CreateAsync( - new CreateTeamMemberRequest - { - IdempotencyKey = "idempotency-key-0", - TeamMember = new TeamMember - { - ReferenceId = "reference_id_1", - Status = TeamMemberStatus.Active, - GivenName = "Joe", - FamilyName = "Doe", - EmailAddress = "joe_doe@gmail.com", - PhoneNumber = "+14159283333", - AssignedLocations = new TeamMemberAssignedLocations - { - AssignmentType = - TeamMemberAssignedLocationsAssignmentType.ExplicitLocations, - LocationIds = new List() { "YSGH2WBKG94QZ", "GA2Y9HSJ8KRYT" }, - }, - WageSetting = new Square.WageSetting - { - JobAssignments = new List() - { - new JobAssignment - { - PayType = JobAssignmentPayType.Salary, - AnnualRate = new Money - { - Amount = 3000000, - Currency = Currency.Usd, - }, - WeeklyHours = 40, - JobId = "FjS8x95cqHiMenw4f1NAUH4P", - }, - new JobAssignment - { - PayType = JobAssignmentPayType.Hourly, - HourlyRate = new Money { Amount = 2000, Currency = Currency.Usd }, - JobId = "VDNpRv8da51NU8qZFC5zDWpF", - }, - }, - IsOvertimeExempt = true, - }, - }, - } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)) - .UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/TeamMembers/GetTest.cs b/src/Square.Test/Unit/MockServer/TeamMembers/GetTest.cs deleted file mode 100644 index 47301107..00000000 --- a/src/Square.Test/Unit/MockServer/TeamMembers/GetTest.cs +++ /dev/null @@ -1,101 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.TeamMembers; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.TeamMembers; - -[TestFixture] -public class GetTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "team_member": { - "id": "1yJlHapkseYnNPETIU1B", - "reference_id": "reference_id_1", - "is_owner": false, - "status": "ACTIVE", - "given_name": "Joe", - "family_name": "Doe", - "email_address": "joe_doe@example.com", - "phone_number": "+14159283333", - "created_at": "2021-06-11T22:55:45.000Z", - "updated_at": "2021-06-15T17:38:05.000Z", - "assigned_locations": { - "assignment_type": "EXPLICIT_LOCATIONS", - "location_ids": [ - "GA2Y9HSJ8KRYT", - "YSGH2WBKG94QZ" - ] - }, - "wage_setting": { - "team_member_id": "1yJlHapkseYnNPETIU1B", - "job_assignments": [ - { - "job_title": "Manager", - "pay_type": "SALARY", - "hourly_rate": { - "amount": 1443, - "currency": "USD" - }, - "annual_rate": { - "amount": 3000000, - "currency": "USD" - }, - "weekly_hours": 40, - "job_id": "FjS8x95cqHiMenw4f1NAUH4P" - }, - { - "job_title": "Cashier", - "pay_type": "HOURLY", - "hourly_rate": { - "amount": 2000, - "currency": "USD" - }, - "job_id": "VDNpRv8da51NU8qZFC5zDWpF" - } - ], - "is_overtime_exempt": true, - "version": 1, - "created_at": "2021-06-11T22:55:45.000Z", - "updated_at": "2021-06-11T22:55:45.000Z" - } - }, - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/team-members/team_member_id") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.TeamMembers.GetAsync( - new GetTeamMembersRequest { TeamMemberId = "team_member_id" } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)).UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/TeamMembers/SearchTest.cs b/src/Square.Test/Unit/MockServer/TeamMembers/SearchTest.cs deleted file mode 100644 index bc965400..00000000 --- a/src/Square.Test/Unit/MockServer/TeamMembers/SearchTest.cs +++ /dev/null @@ -1,335 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.TeamMembers; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.TeamMembers; - -[TestFixture] -public class SearchTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string requestJson = """ - { - "query": { - "filter": { - "location_ids": [ - "0G5P3VGACMMQZ" - ], - "status": "ACTIVE" - } - }, - "limit": 10 - } - """; - - const string mockResponse = """ - { - "team_members": [ - { - "id": "-3oZQKPKVk6gUXU_V5Qa", - "reference_id": "12345678", - "is_owner": false, - "status": "ACTIVE", - "given_name": "Johnny", - "family_name": "Cash", - "email_address": "johnny_cash@squareup.com", - "phone_number": "phone_number", - "created_at": "2019-07-10T17:26:48.000Z", - "updated_at": "2020-04-28T21:49:28.000Z", - "assigned_locations": { - "assignment_type": "ALL_CURRENT_AND_FUTURE_LOCATIONS" - }, - "wage_setting": { - "team_member_id": "-3oZQKPKVk6gUXU_V5Qa", - "job_assignments": [ - { - "job_title": "Manager", - "pay_type": "SALARY", - "hourly_rate": { - "amount": 1443, - "currency": "USD" - }, - "annual_rate": { - "amount": 3000000, - "currency": "USD" - }, - "weekly_hours": 40, - "job_id": "FjS8x95cqHiMenw4f1NAUH4P" - }, - { - "job_title": "Cashier", - "pay_type": "HOURLY", - "hourly_rate": { - "amount": 2000, - "currency": "USD" - }, - "job_id": "VDNpRv8da51NU8qZFC5zDWpF" - } - ], - "is_overtime_exempt": true, - "version": 1, - "created_at": "2021-06-11T22:55:45.000Z", - "updated_at": "2021-06-11T22:55:45.000Z" - } - }, - { - "id": "1AVJj0DjkzbmbJw5r4KK", - "reference_id": "abcded", - "is_owner": false, - "status": "ACTIVE", - "given_name": "Lombard", - "family_name": "Smith", - "email_address": "email_address", - "phone_number": "+14155552671", - "created_at": "2020-03-24T18:14:01.000Z", - "updated_at": "2020-06-09T17:38:05.000Z", - "assigned_locations": { - "assignment_type": "ALL_CURRENT_AND_FUTURE_LOCATIONS" - }, - "wage_setting": { - "team_member_id": "1AVJj0DjkzbmbJw5r4KK", - "job_assignments": [ - { - "job_title": "Cashier", - "pay_type": "HOURLY", - "hourly_rate": { - "amount": 2400, - "currency": "USD" - }, - "job_id": "VDNpRv8da51NU8qZFC5zDWpF" - } - ], - "is_overtime_exempt": true, - "version": 2, - "created_at": "2020-03-24T18:14:01.000Z", - "updated_at": "2020-06-09T17:38:05.000Z" - } - }, - { - "id": "2JCmiJol_KKFs9z2Evim", - "reference_id": "reference_id", - "is_owner": false, - "status": "ACTIVE", - "given_name": "Monica", - "family_name": "Sway", - "email_address": "email_address", - "phone_number": "phone_number", - "created_at": "2020-03-24T01:09:25.000Z", - "updated_at": "2020-03-24T01:11:25.000Z", - "assigned_locations": { - "assignment_type": "ALL_CURRENT_AND_FUTURE_LOCATIONS" - }, - "wage_setting": { - "team_member_id": "2JCmiJol_KKFs9z2Evim", - "job_assignments": [ - { - "job_title": "Cashier", - "pay_type": "HOURLY", - "hourly_rate": { - "amount": 2400, - "currency": "USD" - }, - "job_id": "VDNpRv8da51NU8qZFC5zDWpF" - } - ], - "is_overtime_exempt": true, - "version": 1, - "created_at": "2020-03-24T01:09:25.000Z", - "updated_at": "2020-03-24T01:09:25.000Z" - } - }, - { - "id": "4uXcJQSLtbk3F0UQHFNQ", - "reference_id": "reference_id", - "is_owner": false, - "status": "ACTIVE", - "given_name": "Elton", - "family_name": "Ipsum", - "email_address": "email_address", - "phone_number": "phone_number", - "created_at": "2020-03-24T01:09:23.000Z", - "updated_at": "2020-03-24T01:15:23.000Z", - "assigned_locations": { - "assignment_type": "ALL_CURRENT_AND_FUTURE_LOCATIONS" - } - }, - { - "id": "5CoUpyrw1YwGWcRd-eDL", - "reference_id": "reference_id", - "is_owner": false, - "status": "ACTIVE", - "given_name": "Steven", - "family_name": "Lo", - "email_address": "email_address", - "phone_number": "phone_number", - "created_at": "2020-03-24T01:09:23.000Z", - "updated_at": "2020-03-24T01:19:23.000Z", - "assigned_locations": { - "assignment_type": "ALL_CURRENT_AND_FUTURE_LOCATIONS" - } - }, - { - "id": "5MRPTTp8MMBLVSmzrGha", - "reference_id": "reference_id", - "is_owner": false, - "status": "ACTIVE", - "given_name": "Patrick", - "family_name": "Steward", - "email_address": "email_address", - "phone_number": "+14155552671", - "created_at": "2020-03-24T18:14:03.000Z", - "updated_at": "2020-03-24T18:18:03.000Z", - "assigned_locations": { - "assignment_type": "ALL_CURRENT_AND_FUTURE_LOCATIONS" - }, - "wage_setting": { - "team_member_id": "5MRPTTp8MMBLVSmzrGha", - "job_assignments": [ - { - "job_title": "Cashier", - "pay_type": "HOURLY", - "hourly_rate": { - "amount": 2000, - "currency": "USD" - }, - "job_id": "VDNpRv8da51NU8qZFC5zDWpF" - } - ], - "is_overtime_exempt": true, - "version": 1, - "created_at": "2020-03-24T18:14:03.000Z", - "updated_at": "2020-03-24T18:14:03.000Z" - } - }, - { - "id": "7F5ZxsfRnkexhu1PTbfh", - "reference_id": "reference_id", - "is_owner": false, - "status": "ACTIVE", - "given_name": "Ivy", - "family_name": "Manny", - "email_address": "email_address", - "phone_number": "phone_number", - "created_at": "2020-03-24T01:09:25.000Z", - "updated_at": "2020-03-24T01:09:25.000Z", - "assigned_locations": { - "assignment_type": "ALL_CURRENT_AND_FUTURE_LOCATIONS" - } - }, - { - "id": "808X9HR72yKvVaigQXf4", - "reference_id": "reference_id", - "is_owner": false, - "status": "ACTIVE", - "given_name": "John", - "family_name": "Smith", - "email_address": "john_smith@example.com", - "phone_number": "+14155552671", - "created_at": "2020-03-24T18:14:02.000Z", - "updated_at": "2020-03-24T18:14:02.000Z", - "assigned_locations": { - "assignment_type": "ALL_CURRENT_AND_FUTURE_LOCATIONS" - } - }, - { - "id": "9MVDVoY4hazkWKGo_OuZ", - "reference_id": "reference_id", - "is_owner": false, - "status": "ACTIVE", - "given_name": "Robert", - "family_name": "Wen", - "email_address": "r_wen@example.com", - "phone_number": "+14155552671", - "created_at": "2020-03-24T18:14:00.000Z", - "updated_at": "2020-03-24T18:14:00.000Z", - "assigned_locations": { - "assignment_type": "ALL_CURRENT_AND_FUTURE_LOCATIONS" - } - }, - { - "id": "9UglUjOXQ13-hMFypCft", - "reference_id": "reference_id", - "is_owner": false, - "status": "ACTIVE", - "given_name": "Ashley", - "family_name": "Simpson", - "email_address": "asimpson@example.com", - "phone_number": "+14155552671", - "created_at": "2020-03-24T18:14:00.000Z", - "updated_at": "2020-03-24T18:18:00.000Z", - "assigned_locations": { - "assignment_type": "ALL_CURRENT_AND_FUTURE_LOCATIONS" - }, - "wage_setting": { - "team_member_id": "9UglUjOXQ13-hMFypCft", - "job_assignments": [ - { - "job_title": "Cashier", - "pay_type": "HOURLY", - "hourly_rate": { - "amount": 2000, - "currency": "USD" - }, - "job_id": "VDNpRv8da51NU8qZFC5zDWpF" - } - ], - "is_overtime_exempt": true, - "version": 1, - "created_at": "2020-03-24T18:14:00.000Z", - "updated_at": "2020-03-24T18:14:03.000Z" - } - } - ], - "cursor": "N:9UglUjOXQ13-hMFypCft", - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/team-members/search") - .WithHeader("Content-Type", "application/json") - .UsingPost() - .WithBodyAsJson(requestJson) - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.TeamMembers.SearchAsync( - new SearchTeamMembersRequest - { - Query = new SearchTeamMembersQuery - { - Filter = new SearchTeamMembersFilter - { - LocationIds = new List() { "0G5P3VGACMMQZ" }, - Status = TeamMemberStatus.Active, - }, - }, - Limit = 10, - } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)) - .UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/TeamMembers/UpdateTest.cs b/src/Square.Test/Unit/MockServer/TeamMembers/UpdateTest.cs deleted file mode 100644 index 1fa67c87..00000000 --- a/src/Square.Test/Unit/MockServer/TeamMembers/UpdateTest.cs +++ /dev/null @@ -1,195 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.TeamMembers; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.TeamMembers; - -[TestFixture] -public class UpdateTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string requestJson = """ - { - "team_member": { - "reference_id": "reference_id_1", - "status": "ACTIVE", - "given_name": "Joe", - "family_name": "Doe", - "email_address": "joe_doe@gmail.com", - "phone_number": "+14159283333", - "assigned_locations": { - "assignment_type": "EXPLICIT_LOCATIONS", - "location_ids": [ - "YSGH2WBKG94QZ", - "GA2Y9HSJ8KRYT" - ] - }, - "wage_setting": { - "job_assignments": [ - { - "pay_type": "SALARY", - "annual_rate": { - "amount": 3000000, - "currency": "USD" - }, - "weekly_hours": 40, - "job_id": "FjS8x95cqHiMenw4f1NAUH4P" - }, - { - "pay_type": "HOURLY", - "hourly_rate": { - "amount": 1200, - "currency": "USD" - }, - "job_id": "VDNpRv8da51NU8qZFC5zDWpF" - } - ], - "is_overtime_exempt": true - } - } - } - """; - - const string mockResponse = """ - { - "team_member": { - "id": "1yJlHapkseYnNPETIU1B", - "reference_id": "reference_id_1", - "is_owner": false, - "status": "ACTIVE", - "given_name": "Joe", - "family_name": "Doe", - "email_address": "joe_doe@example.com", - "phone_number": "+14159283333", - "created_at": "2021-06-11T22:55:45.000Z", - "updated_at": "2021-06-15T17:38:05.000Z", - "assigned_locations": { - "assignment_type": "EXPLICIT_LOCATIONS", - "location_ids": [ - "GA2Y9HSJ8KRYT", - "YSGH2WBKG94QZ" - ] - }, - "wage_setting": { - "team_member_id": "1yJlHapkseYnNPETIU1B", - "job_assignments": [ - { - "job_title": "Manager", - "pay_type": "SALARY", - "hourly_rate": { - "amount": 1443, - "currency": "USD" - }, - "annual_rate": { - "amount": 3000000, - "currency": "USD" - }, - "weekly_hours": 40, - "job_id": "FjS8x95cqHiMenw4f1NAUH4P" - }, - { - "job_title": "Cashier", - "pay_type": "HOURLY", - "hourly_rate": { - "amount": 1200, - "currency": "USD" - }, - "job_id": "VDNpRv8da51NU8qZFC5zDWpF" - } - ], - "is_overtime_exempt": true, - "version": 1, - "created_at": "2021-06-11T22:55:45.000Z", - "updated_at": "2021-06-11T22:55:45.000Z" - } - }, - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/team-members/team_member_id") - .WithHeader("Content-Type", "application/json") - .UsingPut() - .WithBodyAsJson(requestJson) - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.TeamMembers.UpdateAsync( - new UpdateTeamMembersRequest - { - TeamMemberId = "team_member_id", - Body = new UpdateTeamMemberRequest - { - TeamMember = new TeamMember - { - ReferenceId = "reference_id_1", - Status = TeamMemberStatus.Active, - GivenName = "Joe", - FamilyName = "Doe", - EmailAddress = "joe_doe@gmail.com", - PhoneNumber = "+14159283333", - AssignedLocations = new TeamMemberAssignedLocations - { - AssignmentType = - TeamMemberAssignedLocationsAssignmentType.ExplicitLocations, - LocationIds = new List() { "YSGH2WBKG94QZ", "GA2Y9HSJ8KRYT" }, - }, - WageSetting = new Square.WageSetting - { - JobAssignments = new List() - { - new JobAssignment - { - PayType = JobAssignmentPayType.Salary, - AnnualRate = new Money - { - Amount = 3000000, - Currency = Currency.Usd, - }, - WeeklyHours = 40, - JobId = "FjS8x95cqHiMenw4f1NAUH4P", - }, - new JobAssignment - { - PayType = JobAssignmentPayType.Hourly, - HourlyRate = new Money - { - Amount = 1200, - Currency = Currency.Usd, - }, - JobId = "VDNpRv8da51NU8qZFC5zDWpF", - }, - }, - IsOvertimeExempt = true, - }, - }, - }, - } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)) - .UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Terminal/Checkouts/CancelTest.cs b/src/Square.Test/Unit/MockServer/Terminal/Checkouts/CancelTest.cs deleted file mode 100644 index f1e3831e..00000000 --- a/src/Square.Test/Unit/MockServer/Terminal/Checkouts/CancelTest.cs +++ /dev/null @@ -1,99 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Terminal.Checkouts; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Terminal.Checkouts; - -[TestFixture] -public class CancelTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "checkout": { - "id": "S1yDlPQx7slqO", - "amount_money": { - "amount": 123, - "currency": "USD" - }, - "reference_id": "id36815", - "note": "note", - "order_id": "order_id", - "payment_options": { - "autocomplete": true, - "delay_duration": "delay_duration", - "accept_partial_authorization": true, - "delay_action": "CANCEL" - }, - "device_options": { - "device_id": "dbb5d83a-7838-11ea-bc55-0242ac130003", - "skip_receipt_screen": true, - "collect_signature": true, - "tip_settings": { - "allow_tipping": true - }, - "show_itemized_cart": true, - "allow_auto_card_surcharge": true - }, - "deadline_duration": "PT5M", - "status": "CANCELED", - "cancel_reason": "SELLER_CANCELED", - "payment_ids": [ - "payment_ids" - ], - "created_at": "2020-03-16T15:31:19.934Z", - "updated_at": "2020-03-16T15:31:45.787Z", - "app_id": "APP_ID", - "location_id": "LOCATION_ID", - "payment_type": "CARD_PRESENT", - "team_member_id": "team_member_id", - "customer_id": "customer_id", - "app_fee_money": { - "amount": 1000000, - "currency": "UNKNOWN_CURRENCY" - }, - "statement_description_identifier": "statement_description_identifier", - "tip_money": { - "amount": 1000000, - "currency": "UNKNOWN_CURRENCY" - } - } - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/terminals/checkouts/checkout_id/cancel") - .UsingPost() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Terminal.Checkouts.CancelAsync( - new CancelCheckoutsRequest { CheckoutId = "checkout_id" } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)) - .UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Terminal/Checkouts/CreateTest.cs b/src/Square.Test/Unit/MockServer/Terminal/Checkouts/CreateTest.cs deleted file mode 100644 index ff3be408..00000000 --- a/src/Square.Test/Unit/MockServer/Terminal/Checkouts/CreateTest.cs +++ /dev/null @@ -1,131 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Terminal.Checkouts; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Terminal.Checkouts; - -[TestFixture] -public class CreateTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string requestJson = """ - { - "idempotency_key": "28a0c3bc-7839-11ea-bc55-0242ac130003", - "checkout": { - "amount_money": { - "amount": 2610, - "currency": "USD" - }, - "reference_id": "id11572", - "note": "A brief note", - "device_options": { - "device_id": "dbb5d83a-7838-11ea-bc55-0242ac130003" - } - } - } - """; - - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "checkout": { - "id": "08YceKh7B3ZqO", - "amount_money": { - "amount": 2610, - "currency": "USD" - }, - "reference_id": "id11572", - "note": "A brief note", - "order_id": "order_id", - "payment_options": { - "autocomplete": true, - "delay_duration": "delay_duration", - "accept_partial_authorization": true, - "delay_action": "CANCEL" - }, - "device_options": { - "device_id": "dbb5d83a-7838-11ea-bc55-0242ac130003", - "skip_receipt_screen": false, - "collect_signature": true, - "tip_settings": { - "allow_tipping": false - }, - "show_itemized_cart": true, - "allow_auto_card_surcharge": true - }, - "deadline_duration": "PT5M", - "status": "PENDING", - "cancel_reason": "BUYER_CANCELED", - "payment_ids": [ - "payment_ids" - ], - "created_at": "2020-04-06T16:39:32.545Z", - "updated_at": "2020-04-06T16:39:32.545Z", - "app_id": "APP_ID", - "location_id": "LOCATION_ID", - "payment_type": "CARD_PRESENT", - "team_member_id": "team_member_id", - "customer_id": "customer_id", - "app_fee_money": { - "amount": 1000000, - "currency": "UNKNOWN_CURRENCY" - }, - "statement_description_identifier": "statement_description_identifier", - "tip_money": { - "amount": 1000000, - "currency": "UNKNOWN_CURRENCY" - } - } - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/terminals/checkouts") - .WithHeader("Content-Type", "application/json") - .UsingPost() - .WithBodyAsJson(requestJson) - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Terminal.Checkouts.CreateAsync( - new CreateTerminalCheckoutRequest - { - IdempotencyKey = "28a0c3bc-7839-11ea-bc55-0242ac130003", - Checkout = new TerminalCheckout - { - AmountMoney = new Money { Amount = 2610, Currency = Currency.Usd }, - ReferenceId = "id11572", - Note = "A brief note", - DeviceOptions = new DeviceCheckoutOptions - { - DeviceId = "dbb5d83a-7838-11ea-bc55-0242ac130003", - }, - }, - } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)) - .UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Terminal/Checkouts/GetTest.cs b/src/Square.Test/Unit/MockServer/Terminal/Checkouts/GetTest.cs deleted file mode 100644 index d02ae66a..00000000 --- a/src/Square.Test/Unit/MockServer/Terminal/Checkouts/GetTest.cs +++ /dev/null @@ -1,99 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Terminal.Checkouts; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Terminal.Checkouts; - -[TestFixture] -public class GetTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "checkout": { - "id": "08YceKh7B3ZqO", - "amount_money": { - "amount": 2610, - "currency": "USD" - }, - "reference_id": "id11572", - "note": "A brief note", - "order_id": "order_id", - "payment_options": { - "autocomplete": true, - "delay_duration": "delay_duration", - "accept_partial_authorization": true, - "delay_action": "CANCEL" - }, - "device_options": { - "device_id": "dbb5d83a-7838-11ea-bc55-0242ac130003", - "skip_receipt_screen": false, - "collect_signature": true, - "tip_settings": { - "allow_tipping": false - }, - "show_itemized_cart": true, - "allow_auto_card_surcharge": true - }, - "deadline_duration": "PT5M", - "status": "IN_PROGRESS", - "cancel_reason": "BUYER_CANCELED", - "payment_ids": [ - "payment_ids" - ], - "created_at": "2020-04-06T16:39:32.545Z", - "updated_at": "2020-04-06T16:39:323.001Z", - "app_id": "APP_ID", - "location_id": "LOCATION_ID", - "payment_type": "CARD_PRESENT", - "team_member_id": "team_member_id", - "customer_id": "customer_id", - "app_fee_money": { - "amount": 1000000, - "currency": "UNKNOWN_CURRENCY" - }, - "statement_description_identifier": "statement_description_identifier", - "tip_money": { - "amount": 1000000, - "currency": "UNKNOWN_CURRENCY" - } - } - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/terminals/checkouts/checkout_id") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Terminal.Checkouts.GetAsync( - new GetCheckoutsRequest { CheckoutId = "checkout_id" } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)) - .UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/Terminal/Checkouts/SearchTest.cs b/src/Square.Test/Unit/MockServer/Terminal/Checkouts/SearchTest.cs deleted file mode 100644 index 4c3b376a..00000000 --- a/src/Square.Test/Unit/MockServer/Terminal/Checkouts/SearchTest.cs +++ /dev/null @@ -1,136 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Terminal.Checkouts; -using Square.Test.Unit.MockServer; - -namespace Square.Test.Unit.MockServer.Terminal.Checkouts; - -[TestFixture] -public class SearchTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string requestJson = """ - { - "query": { - "filter": { - "status": "COMPLETED" - } - }, - "limit": 2 - } - """; - - const string mockResponse = """ - { - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ], - "checkouts": [ - { - "id": "tsQPvzwBpMqqO", - "amount_money": { - "amount": 2610, - "currency": "USD" - }, - "reference_id": "id14467", - "note": "A brief note", - "order_id": "order_id", - "device_options": { - "device_id": "dbb5d83a-7838-11ea-bc55-0242ac130003", - "skip_receipt_screen": false, - "tip_settings": { - "allow_tipping": false - } - }, - "deadline_duration": "PT5M", - "status": "COMPLETED", - "cancel_reason": "BUYER_CANCELED", - "payment_ids": [ - "rXnhZzywrEk4vR6pw76fPZfgvaB" - ], - "created_at": "2020-03-31T18:13:15.921Z", - "updated_at": "2020-03-31T18:13:52.725Z", - "app_id": "APP_ID", - "location_id": "location_id", - "payment_type": "CARD_PRESENT", - "team_member_id": "team_member_id", - "customer_id": "customer_id", - "statement_description_identifier": "statement_description_identifier" - }, - { - "id": "XlOPTgcEhrbqO", - "amount_money": { - "amount": 2610, - "currency": "USD" - }, - "reference_id": "id41623", - "note": "A brief note", - "order_id": "order_id", - "device_options": { - "device_id": "dbb5d83a-7838-11ea-bc55-0242ac130003", - "skip_receipt_screen": true, - "tip_settings": { - "allow_tipping": false - } - }, - "deadline_duration": "PT5M", - "status": "COMPLETED", - "cancel_reason": "BUYER_CANCELED", - "payment_ids": [ - "VYBF861PaoKPP7Pih0TlbZiNvaB" - ], - "created_at": "2020-03-31T18:08:31.882Z", - "updated_at": "2020-03-31T18:08:41.635Z", - "app_id": "APP_ID", - "location_id": "location_id", - "payment_type": "CARD_PRESENT", - "team_member_id": "team_member_id", - "customer_id": "customer_id", - "statement_description_identifier": "statement_description_identifier" - } - ], - "cursor": "RiTJqBoTuXlbLmmrPvEkX9iG7XnQ4W4RjGnH" - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/terminals/checkouts/search") - .WithHeader("Content-Type", "application/json") - .UsingPost() - .WithBodyAsJson(requestJson) - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.Terminal.Checkouts.SearchAsync( - new SearchTerminalCheckoutsRequest - { - Query = new TerminalCheckoutQuery - { - Filter = new TerminalCheckoutQueryFilter { Status = "COMPLETED" }, - }, - Limit = 2, - } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)) - .UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/TransferOrders/CreateTest.cs b/src/Square.Test/Unit/MockServer/TransferOrders/CreateTest.cs deleted file mode 100644 index 8e8c2367..00000000 --- a/src/Square.Test/Unit/MockServer/TransferOrders/CreateTest.cs +++ /dev/null @@ -1,136 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Test.Unit.MockServer; -using Square.TransferOrders; - -namespace Square.Test.Unit.MockServer.TransferOrders; - -[TestFixture] -public class CreateTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string requestJson = """ - { - "idempotency_key": "65cc0586-3e82-384s-b524-3885cffd52", - "transfer_order": { - "source_location_id": "EXAMPLE_SOURCE_LOCATION_ID_123", - "destination_location_id": "EXAMPLE_DEST_LOCATION_ID_456", - "expected_at": "2025-11-09T05:00:00.000Z", - "notes": "Example transfer order for inventory redistribution between locations", - "tracking_number": "TRACK123456789", - "created_by_team_member_id": "EXAMPLE_TEAM_MEMBER_ID_789", - "line_items": [ - { - "item_variation_id": "EXAMPLE_ITEM_VARIATION_ID_001", - "quantity_ordered": "5" - }, - { - "item_variation_id": "EXAMPLE_ITEM_VARIATION_ID_002", - "quantity_ordered": "3" - } - ] - } - } - """; - - const string mockResponse = """ - { - "transfer_order": { - "id": "EXAMPLE_TRANSFER_ORDER_ID_123", - "source_location_id": "EXAMPLE_SOURCE_LOCATION_ID_123", - "destination_location_id": "EXAMPLE_DEST_LOCATION_ID_456", - "status": "DRAFT", - "created_at": "2025-01-15T10:30:00.000Z", - "updated_at": "2025-01-15T10:30:00.000Z", - "expected_at": "2025-11-09T05:00:00.000Z", - "completed_at": "completed_at", - "notes": "Example transfer order for inventory redistribution between locations", - "tracking_number": "TRACK123456789", - "created_by_team_member_id": "EXAMPLE_TEAM_MEMBER_ID_789", - "line_items": [ - { - "uid": "1", - "item_variation_id": "EXAMPLE_ITEM_VARIATION_ID_001", - "quantity_ordered": "5", - "quantity_pending": "5", - "quantity_received": "0", - "quantity_damaged": "0", - "quantity_canceled": "0" - }, - { - "uid": "2", - "item_variation_id": "EXAMPLE_ITEM_VARIATION_ID_002", - "quantity_ordered": "3", - "quantity_pending": "3", - "quantity_received": "0", - "quantity_damaged": "0", - "quantity_canceled": "0" - } - ], - "version": 1753109537351 - }, - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/transfer-orders") - .WithHeader("Content-Type", "application/json") - .UsingPost() - .WithBodyAsJson(requestJson) - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.TransferOrders.CreateAsync( - new CreateTransferOrderRequest - { - IdempotencyKey = "65cc0586-3e82-384s-b524-3885cffd52", - TransferOrder = new CreateTransferOrderData - { - SourceLocationId = "EXAMPLE_SOURCE_LOCATION_ID_123", - DestinationLocationId = "EXAMPLE_DEST_LOCATION_ID_456", - ExpectedAt = "2025-11-09T05:00:00Z", - Notes = "Example transfer order for inventory redistribution between locations", - TrackingNumber = "TRACK123456789", - CreatedByTeamMemberId = "EXAMPLE_TEAM_MEMBER_ID_789", - LineItems = new List() - { - new CreateTransferOrderLineData - { - ItemVariationId = "EXAMPLE_ITEM_VARIATION_ID_001", - QuantityOrdered = "5", - }, - new CreateTransferOrderLineData - { - ItemVariationId = "EXAMPLE_ITEM_VARIATION_ID_002", - QuantityOrdered = "3", - }, - }, - }, - } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)) - .UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/TransferOrders/GetTest.cs b/src/Square.Test/Unit/MockServer/TransferOrders/GetTest.cs deleted file mode 100644 index 4e712e00..00000000 --- a/src/Square.Test/Unit/MockServer/TransferOrders/GetTest.cs +++ /dev/null @@ -1,85 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Test.Unit.MockServer; -using Square.TransferOrders; - -namespace Square.Test.Unit.MockServer.TransferOrders; - -[TestFixture] -public class GetTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string mockResponse = """ - { - "transfer_order": { - "id": "EXAMPLE_TRANSFER_ORDER_ID_123", - "source_location_id": "EXAMPLE_SOURCE_LOCATION_ID_123", - "destination_location_id": "EXAMPLE_DEST_LOCATION_ID_456", - "status": "STARTED", - "created_at": "2025-01-15T10:30:00.000Z", - "updated_at": "2025-01-15T10:35:00.000Z", - "expected_at": "2025-11-09T05:00:00.000Z", - "completed_at": "completed_at", - "notes": "Example transfer order for inventory redistribution between locations", - "tracking_number": "TRACK123456789", - "created_by_team_member_id": "EXAMPLE_TEAM_MEMBER_ID_789", - "line_items": [ - { - "uid": "1", - "item_variation_id": "EXAMPLE_ITEM_VARIATION_ID_001", - "quantity_ordered": "5", - "quantity_pending": "5", - "quantity_received": "0", - "quantity_damaged": "0", - "quantity_canceled": "0" - }, - { - "uid": "2", - "item_variation_id": "EXAMPLE_ITEM_VARIATION_ID_002", - "quantity_ordered": "3", - "quantity_pending": "3", - "quantity_received": "0", - "quantity_damaged": "0", - "quantity_canceled": "0" - } - ], - "version": 1753117449752 - }, - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/transfer-orders/transfer_order_id") - .UsingGet() - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.TransferOrders.GetAsync( - new GetTransferOrdersRequest { TransferOrderId = "transfer_order_id" } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)) - .UsingDefaults() - ); - } -} diff --git a/src/Square.Test/Unit/MockServer/TransferOrders/SearchTest.cs b/src/Square.Test/Unit/MockServer/TransferOrders/SearchTest.cs deleted file mode 100644 index 55184dd5..00000000 --- a/src/Square.Test/Unit/MockServer/TransferOrders/SearchTest.cs +++ /dev/null @@ -1,155 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Test.Unit.MockServer; -using Square.TransferOrders; - -namespace Square.Test.Unit.MockServer.TransferOrders; - -[TestFixture] -public class SearchTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string requestJson = """ - { - "query": { - "filter": { - "source_location_ids": [ - "EXAMPLE_SOURCE_LOCATION_ID_123" - ], - "destination_location_ids": [ - "EXAMPLE_DEST_LOCATION_ID_456" - ], - "statuses": [ - "STARTED", - "PARTIALLY_RECEIVED" - ] - }, - "sort": { - "field": "UPDATED_AT", - "order": "DESC" - } - }, - "cursor": "eyJsYXN0X3VwZGF0ZWRfYXQiOjE3NTMxMTg2NjQ4NzN9", - "limit": 10 - } - """; - - const string mockResponse = """ - { - "transfer_orders": [ - { - "id": "EXAMPLE_TRANSFER_ORDER_ID_123", - "source_location_id": "EXAMPLE_SOURCE_LOCATION_ID_123", - "destination_location_id": "EXAMPLE_DEST_LOCATION_ID_456", - "status": "STARTED", - "created_at": "2025-01-15T10:30:00.000Z", - "updated_at": "2025-01-15T10:32:00.000Z", - "expected_at": "2025-11-09T05:00:00.000Z", - "completed_at": "completed_at", - "notes": "Inventory rebalance between stores", - "tracking_number": "TRACK123456789", - "created_by_team_member_id": "EXAMPLE_TEAM_MEMBER_ID_789", - "line_items": [ - { - "uid": "1", - "item_variation_id": "EXAMPLE_ITEM_VARIATION_ID_001", - "quantity_ordered": "5", - "quantity_pending": "5", - "quantity_received": "0", - "quantity_damaged": "0", - "quantity_canceled": "0" - } - ], - "version": 1753118664873 - }, - { - "id": "EXAMPLE_TRANSFER_ORDER_ID_456", - "source_location_id": "EXAMPLE_SOURCE_LOCATION_ID_123", - "destination_location_id": "EXAMPLE_DEST_LOCATION_ID_456", - "status": "PARTIALLY_RECEIVED", - "created_at": "2025-01-14T14:20:00.000Z", - "updated_at": "2025-01-15T09:45:00.000Z", - "expected_at": "2025-11-08T12:00:00.000Z", - "completed_at": "completed_at", - "notes": "Seasonal stock transfer", - "tracking_number": "tracking_number", - "created_by_team_member_id": "created_by_team_member_id", - "line_items": [ - { - "uid": "1", - "item_variation_id": "EXAMPLE_ITEM_VARIATION_ID_002", - "quantity_ordered": "10", - "quantity_pending": "3", - "quantity_received": "7", - "quantity_damaged": "0", - "quantity_canceled": "0" - } - ], - "version": 1753115540123 - } - ], - "cursor": "eyJsYXN0X3VwZGF0ZWRfYXQiOjE3NTMxMTU1NDBfMTIzfQ==", - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/transfer-orders/search") - .WithHeader("Content-Type", "application/json") - .UsingPost() - .WithBodyAsJson(requestJson) - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var items = await Client.TransferOrders.SearchAsync( - new SearchTransferOrdersRequest - { - Query = new TransferOrderQuery - { - Filter = new TransferOrderFilter - { - SourceLocationIds = new List() { "EXAMPLE_SOURCE_LOCATION_ID_123" }, - DestinationLocationIds = new List() - { - "EXAMPLE_DEST_LOCATION_ID_456", - }, - Statuses = new List() - { - TransferOrderStatus.Started, - TransferOrderStatus.PartiallyReceived, - }, - }, - Sort = new TransferOrderSort - { - Field = TransferOrderSortField.UpdatedAt, - Order = SortOrder.Desc, - }, - }, - Cursor = "eyJsYXN0X3VwZGF0ZWRfYXQiOjE3NTMxMTg2NjQ4NzN9", - Limit = 10, - } - ); - await foreach (var item in items) - { - Assert.That(item, Is.Not.Null); - break; // Only check the first item - } - } -} diff --git a/src/Square.Test/Unit/MockServer/TransferOrders/UpdateTest.cs b/src/Square.Test/Unit/MockServer/TransferOrders/UpdateTest.cs deleted file mode 100644 index 03454c21..00000000 --- a/src/Square.Test/Unit/MockServer/TransferOrders/UpdateTest.cs +++ /dev/null @@ -1,138 +0,0 @@ -using NUnit.Framework; -using Square; -using Square.Core; -using Square.Test.Unit.MockServer; -using Square.TransferOrders; - -namespace Square.Test.Unit.MockServer.TransferOrders; - -[TestFixture] -public class UpdateTest : BaseMockServerTest -{ - [NUnit.Framework.Test] - public async Task MockServerTest() - { - const string requestJson = """ - { - "idempotency_key": "f47ac10b-58cc-4372-a567-0e02b2c3d479", - "transfer_order": { - "source_location_id": "EXAMPLE_SOURCE_LOCATION_ID_789", - "destination_location_id": "EXAMPLE_DEST_LOCATION_ID_101", - "expected_at": "2025-11-10T08:00:00.000Z", - "notes": "Updated: Priority transfer due to low stock at destination", - "tracking_number": "TRACK987654321", - "line_items": [ - { - "uid": "1", - "quantity_ordered": "7" - }, - { - "item_variation_id": "EXAMPLE_NEW_ITEM_VARIATION_ID_003", - "quantity_ordered": "2" - }, - { - "uid": "2", - "remove": true - } - ] - }, - "version": 1753109537351 - } - """; - - const string mockResponse = """ - { - "transfer_order": { - "id": "EXAMPLE_TRANSFER_ORDER_ID_123", - "source_location_id": "EXAMPLE_SOURCE_LOCATION_ID_789", - "destination_location_id": "EXAMPLE_DEST_LOCATION_ID_101", - "status": "DRAFT", - "created_at": "2025-01-15T10:30:00.000Z", - "updated_at": "2025-01-15T11:15:00.000Z", - "expected_at": "2025-11-10T08:00:00.000Z", - "completed_at": "completed_at", - "notes": "Updated: Priority transfer due to low stock at destination", - "tracking_number": "TRACK987654321", - "created_by_team_member_id": "EXAMPLE_TEAM_MEMBER_ID_789", - "line_items": [ - { - "uid": "1", - "item_variation_id": "EXAMPLE_ITEM_VARIATION_ID_001", - "quantity_ordered": "7", - "quantity_pending": "7", - "quantity_received": "0", - "quantity_damaged": "0", - "quantity_canceled": "0" - }, - { - "uid": "3", - "item_variation_id": "EXAMPLE_NEW_ITEM_VARIATION_ID_003", - "quantity_ordered": "2", - "quantity_pending": "2", - "quantity_received": "0", - "quantity_damaged": "0", - "quantity_canceled": "0" - } - ], - "version": 1753122900456 - }, - "errors": [ - { - "category": "API_ERROR", - "code": "INTERNAL_SERVER_ERROR", - "detail": "detail", - "field": "field" - } - ] - } - """; - - Server - .Given( - WireMock - .RequestBuilders.Request.Create() - .WithPath("/v2/transfer-orders/transfer_order_id") - .WithHeader("Content-Type", "application/json") - .UsingPut() - .WithBodyAsJson(requestJson) - ) - .RespondWith( - WireMock - .ResponseBuilders.Response.Create() - .WithStatusCode(200) - .WithBody(mockResponse) - ); - - var response = await Client.TransferOrders.UpdateAsync( - new UpdateTransferOrderRequest - { - TransferOrderId = "transfer_order_id", - IdempotencyKey = "f47ac10b-58cc-4372-a567-0e02b2c3d479", - TransferOrder = new UpdateTransferOrderData - { - SourceLocationId = "EXAMPLE_SOURCE_LOCATION_ID_789", - DestinationLocationId = "EXAMPLE_DEST_LOCATION_ID_101", - ExpectedAt = "2025-11-10T08:00:00Z", - Notes = "Updated: Priority transfer due to low stock at destination", - TrackingNumber = "TRACK987654321", - LineItems = new List() - { - new UpdateTransferOrderLineData { Uid = "1", QuantityOrdered = "7" }, - new UpdateTransferOrderLineData - { - ItemVariationId = "EXAMPLE_NEW_ITEM_VARIATION_ID_003", - QuantityOrdered = "2", - }, - new UpdateTransferOrderLineData { Uid = "2", Remove = true }, - }, - }, - Version = 1753109537351, - } - ); - Assert.That( - response, - Is.EqualTo(JsonUtils.Deserialize(mockResponse)) - .UsingDefaults() - ); - } -} diff --git a/src/Square/CashDrawers/ICashDrawersClient.cs b/src/Square/CashDrawers/ICashDrawersClient.cs deleted file mode 100644 index b7e52bd2..00000000 --- a/src/Square/CashDrawers/ICashDrawersClient.cs +++ /dev/null @@ -1,6 +0,0 @@ -namespace Square.CashDrawers; - -public partial interface ICashDrawersClient -{ - public Square.CashDrawers.Shifts.ShiftsClient Shifts { get; } -} diff --git a/src/Square/Core/Public/Version.cs b/src/Square/Core/Public/Version.cs index 56923fa6..1b36d4f1 100644 --- a/src/Square/Core/Public/Version.cs +++ b/src/Square/Core/Public/Version.cs @@ -3,5 +3,5 @@ namespace Square; [Serializable] internal class Version { - public const string Current = "43.0.0"; + public const string Current = "43.0.1"; } diff --git a/src/Square/ApplePay/ApplePayClient.cs b/src/Square/Default/ApplePay/ApplePayClient.cs similarity index 94% rename from src/Square/ApplePay/ApplePayClient.cs rename to src/Square/Default/ApplePay/ApplePayClient.cs index 9013f391..ffd13f19 100644 --- a/src/Square/ApplePay/ApplePayClient.cs +++ b/src/Square/Default/ApplePay/ApplePayClient.cs @@ -2,7 +2,7 @@ using Square; using Square.Core; -namespace Square.ApplePay; +namespace Square.Default; public partial class ApplePayClient : IApplePayClient { @@ -30,7 +30,9 @@ internal ApplePayClient(RawClient client) /// To learn more about the Web Payments SDK and how to add Apple Pay, see [Take an Apple Pay Payment](https://developer.squareup.com/docs/web-payments/apple-pay). /// /// - /// await client.ApplePay.RegisterDomainAsync(new RegisterDomainRequest { DomainName = "example.com" }); + /// await client.Default.ApplePay.RegisterDomainAsync( + /// new RegisterDomainRequest { DomainName = "example.com" } + /// ); /// public async Task RegisterDomainAsync( RegisterDomainRequest request, diff --git a/src/Square/ApplePay/IApplePayClient.cs b/src/Square/Default/ApplePay/IApplePayClient.cs similarity index 98% rename from src/Square/ApplePay/IApplePayClient.cs rename to src/Square/Default/ApplePay/IApplePayClient.cs index 4afbc06e..fd129a3f 100644 --- a/src/Square/ApplePay/IApplePayClient.cs +++ b/src/Square/Default/ApplePay/IApplePayClient.cs @@ -1,6 +1,6 @@ using Square; -namespace Square.ApplePay; +namespace Square.Default; public partial interface IApplePayClient { diff --git a/src/Square/ApplePay/Requests/RegisterDomainRequest.cs b/src/Square/Default/ApplePay/Requests/RegisterDomainRequest.cs similarity index 94% rename from src/Square/ApplePay/Requests/RegisterDomainRequest.cs rename to src/Square/Default/ApplePay/Requests/RegisterDomainRequest.cs index d37c1ec5..50ccd46e 100644 --- a/src/Square/ApplePay/Requests/RegisterDomainRequest.cs +++ b/src/Square/Default/ApplePay/Requests/RegisterDomainRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.ApplePay; +namespace Square.Default; [Serializable] public record RegisterDomainRequest diff --git a/src/Square/BankAccounts/BankAccountsClient.cs b/src/Square/Default/BankAccounts/BankAccountsClient.cs similarity index 97% rename from src/Square/BankAccounts/BankAccountsClient.cs rename to src/Square/Default/BankAccounts/BankAccountsClient.cs index c6be7283..7acaadeb 100644 --- a/src/Square/BankAccounts/BankAccountsClient.cs +++ b/src/Square/Default/BankAccounts/BankAccountsClient.cs @@ -2,7 +2,7 @@ using Square; using Square.Core; -namespace Square.BankAccounts; +namespace Square.Default; public partial class BankAccountsClient : IBankAccountsClient { @@ -79,7 +79,7 @@ private async Task ListInternalAsync( /// Returns a list of [BankAccount](entity:BankAccount) objects linked to a Square account. /// /// - /// await client.BankAccounts.ListAsync( + /// await client.Default.BankAccounts.ListAsync( /// new ListBankAccountsRequest /// { /// Cursor = "cursor", @@ -126,7 +126,7 @@ public async Task> ListAsync( /// Store a bank account on file for a square account /// /// - /// await client.BankAccounts.CreateBankAccountAsync( + /// await client.Default.BankAccounts.CreateBankAccountAsync( /// new CreateBankAccountRequest /// { /// IdempotencyKey = "4e43559a-f0fd-47d3-9da2-7ea1f97d94be", @@ -182,7 +182,7 @@ public async Task CreateBankAccountAsync( /// Returns details of a [BankAccount](entity:BankAccount) identified by V1 bank account ID. /// /// - /// await client.BankAccounts.GetByV1IdAsync( + /// await client.Default.BankAccounts.GetByV1IdAsync( /// new GetByV1IdBankAccountsRequest { V1BankAccountId = "v1_bank_account_id" } /// ); /// @@ -234,7 +234,7 @@ public async Task GetByV1IdAsync( /// Retrieve details of a [BankAccount](entity:BankAccount) bank account linked to a Square account. /// /// - /// await client.BankAccounts.GetAsync( + /// await client.Default.BankAccounts.GetAsync( /// new GetBankAccountsRequest { BankAccountId = "bank_account_id" } /// ); /// @@ -286,7 +286,7 @@ public async Task GetAsync( /// Disable a bank account. /// /// - /// await client.BankAccounts.DisableBankAccountAsync( + /// await client.Default.BankAccounts.DisableBankAccountAsync( /// new DisableBankAccountRequest { BankAccountId = "bank_account_id" } /// ); /// diff --git a/src/Square/BankAccounts/IBankAccountsClient.cs b/src/Square/Default/BankAccounts/IBankAccountsClient.cs similarity index 98% rename from src/Square/BankAccounts/IBankAccountsClient.cs rename to src/Square/Default/BankAccounts/IBankAccountsClient.cs index 7b45c9f5..9e4ac5bc 100644 --- a/src/Square/BankAccounts/IBankAccountsClient.cs +++ b/src/Square/Default/BankAccounts/IBankAccountsClient.cs @@ -1,7 +1,7 @@ using Square; using Square.Core; -namespace Square.BankAccounts; +namespace Square.Default; public partial interface IBankAccountsClient { diff --git a/src/Square/BankAccounts/Requests/CreateBankAccountRequest.cs b/src/Square/Default/BankAccounts/Requests/CreateBankAccountRequest.cs similarity index 96% rename from src/Square/BankAccounts/Requests/CreateBankAccountRequest.cs rename to src/Square/Default/BankAccounts/Requests/CreateBankAccountRequest.cs index 33996f57..fa2019c0 100644 --- a/src/Square/BankAccounts/Requests/CreateBankAccountRequest.cs +++ b/src/Square/Default/BankAccounts/Requests/CreateBankAccountRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.BankAccounts; +namespace Square.Default; [Serializable] public record CreateBankAccountRequest diff --git a/src/Square/BankAccounts/Requests/DisableBankAccountRequest.cs b/src/Square/Default/BankAccounts/Requests/DisableBankAccountRequest.cs similarity index 92% rename from src/Square/BankAccounts/Requests/DisableBankAccountRequest.cs rename to src/Square/Default/BankAccounts/Requests/DisableBankAccountRequest.cs index 8c9ad94a..cc424875 100644 --- a/src/Square/BankAccounts/Requests/DisableBankAccountRequest.cs +++ b/src/Square/Default/BankAccounts/Requests/DisableBankAccountRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.BankAccounts; +namespace Square.Default; [Serializable] public record DisableBankAccountRequest diff --git a/src/Square/BankAccounts/Requests/GetBankAccountsRequest.cs b/src/Square/Default/BankAccounts/Requests/GetBankAccountsRequest.cs similarity index 92% rename from src/Square/BankAccounts/Requests/GetBankAccountsRequest.cs rename to src/Square/Default/BankAccounts/Requests/GetBankAccountsRequest.cs index ac66072a..d99bc093 100644 --- a/src/Square/BankAccounts/Requests/GetBankAccountsRequest.cs +++ b/src/Square/Default/BankAccounts/Requests/GetBankAccountsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.BankAccounts; +namespace Square.Default; [Serializable] public record GetBankAccountsRequest diff --git a/src/Square/BankAccounts/Requests/GetByV1IdBankAccountsRequest.cs b/src/Square/Default/BankAccounts/Requests/GetByV1IdBankAccountsRequest.cs similarity index 95% rename from src/Square/BankAccounts/Requests/GetByV1IdBankAccountsRequest.cs rename to src/Square/Default/BankAccounts/Requests/GetByV1IdBankAccountsRequest.cs index 5d7bb604..2bb564d4 100644 --- a/src/Square/BankAccounts/Requests/GetByV1IdBankAccountsRequest.cs +++ b/src/Square/Default/BankAccounts/Requests/GetByV1IdBankAccountsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.BankAccounts; +namespace Square.Default; [Serializable] public record GetByV1IdBankAccountsRequest diff --git a/src/Square/BankAccounts/Requests/ListBankAccountsRequest.cs b/src/Square/Default/BankAccounts/Requests/ListBankAccountsRequest.cs similarity index 97% rename from src/Square/BankAccounts/Requests/ListBankAccountsRequest.cs rename to src/Square/Default/BankAccounts/Requests/ListBankAccountsRequest.cs index 6508e78c..3749811f 100644 --- a/src/Square/BankAccounts/Requests/ListBankAccountsRequest.cs +++ b/src/Square/Default/BankAccounts/Requests/ListBankAccountsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.BankAccounts; +namespace Square.Default; [Serializable] public record ListBankAccountsRequest diff --git a/src/Square/Bookings/BookingsClient.cs b/src/Square/Default/Bookings/BookingsClient.cs similarity index 94% rename from src/Square/Bookings/BookingsClient.cs rename to src/Square/Default/Bookings/BookingsClient.cs index c27be046..bb28502d 100644 --- a/src/Square/Bookings/BookingsClient.cs +++ b/src/Square/Default/Bookings/BookingsClient.cs @@ -1,10 +1,9 @@ using System.Text.Json; using Square; -using Square.Bookings.LocationProfiles; -using Square.Bookings.TeamMemberProfiles; using Square.Core; +using Square.Default.Bookings; -namespace Square.Bookings; +namespace Square.Default; public partial class BookingsClient : IBookingsClient { @@ -13,18 +12,17 @@ public partial class BookingsClient : IBookingsClient internal BookingsClient(RawClient client) { _client = client; - CustomAttributeDefinitions = - new Square.Bookings.CustomAttributeDefinitions.CustomAttributeDefinitionsClient( - _client - ); - CustomAttributes = new Square.Bookings.CustomAttributes.CustomAttributesClient(_client); + CustomAttributeDefinitions = new Square.Default.Bookings.CustomAttributeDefinitionsClient( + _client + ); + CustomAttributes = new Square.Default.Bookings.CustomAttributesClient(_client); LocationProfiles = new LocationProfilesClient(_client); TeamMemberProfiles = new TeamMemberProfilesClient(_client); } - public Square.Bookings.CustomAttributeDefinitions.CustomAttributeDefinitionsClient CustomAttributeDefinitions { get; } + public Square.Default.Bookings.CustomAttributeDefinitionsClient CustomAttributeDefinitions { get; } - public Square.Bookings.CustomAttributes.CustomAttributesClient CustomAttributes { get; } + public Square.Default.Bookings.CustomAttributesClient CustomAttributes { get; } public LocationProfilesClient LocationProfiles { get; } @@ -114,7 +112,7 @@ private async Task ListInternalAsync( /// To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope. /// /// - /// await client.Bookings.ListAsync( + /// await client.Default.Bookings.ListAsync( /// new ListBookingsRequest /// { /// Limit = 1, @@ -177,7 +175,7 @@ public async Task> ListAsync( /// or *Appointments Premium*. /// /// - /// await client.Bookings.CreateAsync(new CreateBookingRequest { Booking = new Booking() }); + /// await client.Default.Bookings.CreateAsync(new CreateBookingRequest { Booking = new Booking() }); /// public async Task CreateAsync( CreateBookingRequest request, @@ -229,7 +227,7 @@ public async Task CreateAsync( /// To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope. /// /// - /// await client.Bookings.SearchAvailabilityAsync( + /// await client.Default.Bookings.SearchAvailabilityAsync( /// new SearchAvailabilityRequest /// { /// Query = new SearchAvailabilityQuery @@ -289,7 +287,7 @@ public async Task SearchAvailabilityAsync( /// To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope. /// /// - /// await client.Bookings.BulkRetrieveBookingsAsync( + /// await client.Default.Bookings.BulkRetrieveBookingsAsync( /// new BulkRetrieveBookingsRequest { BookingIds = new List<string>() { "booking_ids" } } /// ); /// @@ -340,7 +338,7 @@ public async Task BulkRetrieveBookingsAsync( /// Retrieves a seller's booking profile. /// /// - /// await client.Bookings.GetBusinessProfileAsync(); + /// await client.Default.Bookings.GetBusinessProfileAsync(); /// public async Task GetBusinessProfileAsync( RequestOptions? options = null, @@ -386,7 +384,7 @@ public async Task GetBusinessProfileAsync( /// Retrieves a seller's location booking profile. /// /// - /// await client.Bookings.RetrieveLocationBookingProfileAsync( + /// await client.Default.Bookings.RetrieveLocationBookingProfileAsync( /// new RetrieveLocationBookingProfileRequest { LocationId = "location_id" } /// ); /// @@ -438,7 +436,7 @@ public async Task RetrieveLocationBookin /// Retrieves one or more team members' booking profiles. /// /// - /// await client.Bookings.BulkRetrieveTeamMemberBookingProfilesAsync( + /// await client.Default.Bookings.BulkRetrieveTeamMemberBookingProfilesAsync( /// new BulkRetrieveTeamMemberBookingProfilesRequest /// { /// TeamMemberIds = new List<string>() { "team_member_ids" }, @@ -497,7 +495,7 @@ public async Task BulkRetrieveTea /// To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope. /// /// - /// await client.Bookings.GetAsync(new GetBookingsRequest { BookingId = "booking_id" }); + /// await client.Default.Bookings.GetAsync(new GetBookingsRequest { BookingId = "booking_id" }); /// public async Task GetAsync( GetBookingsRequest request, @@ -553,7 +551,7 @@ public async Task GetAsync( /// or *Appointments Premium*. /// /// - /// await client.Bookings.UpdateAsync( + /// await client.Default.Bookings.UpdateAsync( /// new UpdateBookingRequest { BookingId = "booking_id", Booking = new Booking() } /// ); /// @@ -613,7 +611,7 @@ public async Task UpdateAsync( /// or *Appointments Premium*. /// /// - /// await client.Bookings.CancelAsync(new CancelBookingRequest { BookingId = "booking_id" }); + /// await client.Default.Bookings.CancelAsync(new CancelBookingRequest { BookingId = "booking_id" }); /// public async Task CancelAsync( CancelBookingRequest request, diff --git a/src/Square/Bookings/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs b/src/Square/Default/Bookings/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs similarity index 94% rename from src/Square/Bookings/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs rename to src/Square/Default/Bookings/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs index 1ca5f8aa..e4af10ea 100644 --- a/src/Square/Bookings/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs +++ b/src/Square/Default/Bookings/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Bookings.CustomAttributeDefinitions; +namespace Square.Default.Bookings; public partial class CustomAttributeDefinitionsClient : ICustomAttributeDefinitionsClient { @@ -79,8 +80,8 @@ private async Task ListInternalAs /// To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope. /// /// - /// await client.Bookings.CustomAttributeDefinitions.ListAsync( - /// new Square.Bookings.CustomAttributeDefinitions.ListCustomAttributeDefinitionsRequest + /// await client.Default.Bookings.CustomAttributeDefinitions.ListAsync( + /// new Square.Default.Bookings.ListCustomAttributeDefinitionsRequest /// { /// Limit = 1, /// Cursor = "cursor", @@ -130,7 +131,7 @@ public async Task> ListAsync( /// or *Appointments Premium*. /// /// - /// await client.Bookings.CustomAttributeDefinitions.CreateAsync( + /// await client.Default.Bookings.CustomAttributeDefinitions.CreateAsync( /// new CreateBookingCustomAttributeDefinitionRequest /// { /// CustomAttributeDefinition = new CustomAttributeDefinition(), @@ -189,12 +190,8 @@ public async Task CreateAsync( /// To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope. /// /// - /// await client.Bookings.CustomAttributeDefinitions.GetAsync( - /// new Square.Bookings.CustomAttributeDefinitions.GetCustomAttributeDefinitionsRequest - /// { - /// Key = "key", - /// Version = 1, - /// } + /// await client.Default.Bookings.CustomAttributeDefinitions.GetAsync( + /// new Square.Default.Bookings.GetCustomAttributeDefinitionsRequest { Key = "key", Version = 1 } /// ); /// public async Task GetAsync( @@ -259,7 +256,7 @@ public async Task GetAsync( /// or *Appointments Premium*. /// /// - /// await client.Bookings.CustomAttributeDefinitions.UpdateAsync( + /// await client.Default.Bookings.CustomAttributeDefinitions.UpdateAsync( /// new UpdateBookingCustomAttributeDefinitionRequest /// { /// Key = "key", @@ -325,11 +322,8 @@ public async Task UpdateAsync( /// or *Appointments Premium*. /// /// - /// await client.Bookings.CustomAttributeDefinitions.DeleteAsync( - /// new Square.Bookings.CustomAttributeDefinitions.DeleteCustomAttributeDefinitionsRequest - /// { - /// Key = "key", - /// } + /// await client.Default.Bookings.CustomAttributeDefinitions.DeleteAsync( + /// new Square.Default.Bookings.DeleteCustomAttributeDefinitionsRequest { Key = "key" } /// ); /// public async Task DeleteAsync( diff --git a/src/Square/Bookings/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs b/src/Square/Default/Bookings/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs similarity index 98% rename from src/Square/Bookings/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs rename to src/Square/Default/Bookings/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs index c3715728..3614e6c4 100644 --- a/src/Square/Bookings/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs +++ b/src/Square/Default/Bookings/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs @@ -1,7 +1,8 @@ using Square; using Square.Core; +using Square.Default; -namespace Square.Bookings.CustomAttributeDefinitions; +namespace Square.Default.Bookings; public partial interface ICustomAttributeDefinitionsClient { diff --git a/src/Square/Bookings/CustomAttributeDefinitions/Requests/CreateBookingCustomAttributeDefinitionRequest.cs b/src/Square/Default/Bookings/CustomAttributeDefinitions/Requests/CreateBookingCustomAttributeDefinitionRequest.cs similarity index 95% rename from src/Square/Bookings/CustomAttributeDefinitions/Requests/CreateBookingCustomAttributeDefinitionRequest.cs rename to src/Square/Default/Bookings/CustomAttributeDefinitions/Requests/CreateBookingCustomAttributeDefinitionRequest.cs index 15e5b01f..41982e41 100644 --- a/src/Square/Bookings/CustomAttributeDefinitions/Requests/CreateBookingCustomAttributeDefinitionRequest.cs +++ b/src/Square/Default/Bookings/CustomAttributeDefinitions/Requests/CreateBookingCustomAttributeDefinitionRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Bookings.CustomAttributeDefinitions; +namespace Square.Default.Bookings; [Serializable] public record CreateBookingCustomAttributeDefinitionRequest diff --git a/src/Square/Orders/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs b/src/Square/Default/Bookings/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs similarity index 88% rename from src/Square/Orders/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs rename to src/Square/Default/Bookings/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs index bb38bae8..81b17e2c 100644 --- a/src/Square/Orders/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs +++ b/src/Square/Default/Bookings/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Orders.CustomAttributeDefinitions; +namespace Square.Default.Bookings; [Serializable] public record DeleteCustomAttributeDefinitionsRequest diff --git a/src/Square/Bookings/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs b/src/Square/Default/Bookings/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs similarity index 94% rename from src/Square/Bookings/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs rename to src/Square/Default/Bookings/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs index 3b1fa887..138c75d3 100644 --- a/src/Square/Bookings/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs +++ b/src/Square/Default/Bookings/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Bookings.CustomAttributeDefinitions; +namespace Square.Default.Bookings; [Serializable] public record GetCustomAttributeDefinitionsRequest diff --git a/src/Square/Bookings/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs b/src/Square/Default/Bookings/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs similarity index 95% rename from src/Square/Bookings/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs rename to src/Square/Default/Bookings/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs index d08ef2e4..c566211d 100644 --- a/src/Square/Bookings/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs +++ b/src/Square/Default/Bookings/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Bookings.CustomAttributeDefinitions; +namespace Square.Default.Bookings; [Serializable] public record ListCustomAttributeDefinitionsRequest diff --git a/src/Square/Bookings/CustomAttributeDefinitions/Requests/UpdateBookingCustomAttributeDefinitionRequest.cs b/src/Square/Default/Bookings/CustomAttributeDefinitions/Requests/UpdateBookingCustomAttributeDefinitionRequest.cs similarity index 96% rename from src/Square/Bookings/CustomAttributeDefinitions/Requests/UpdateBookingCustomAttributeDefinitionRequest.cs rename to src/Square/Default/Bookings/CustomAttributeDefinitions/Requests/UpdateBookingCustomAttributeDefinitionRequest.cs index 84a1d4b6..160d3768 100644 --- a/src/Square/Bookings/CustomAttributeDefinitions/Requests/UpdateBookingCustomAttributeDefinitionRequest.cs +++ b/src/Square/Default/Bookings/CustomAttributeDefinitions/Requests/UpdateBookingCustomAttributeDefinitionRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Bookings.CustomAttributeDefinitions; +namespace Square.Default.Bookings; [Serializable] public record UpdateBookingCustomAttributeDefinitionRequest diff --git a/src/Square/Bookings/CustomAttributes/CustomAttributesClient.cs b/src/Square/Default/Bookings/CustomAttributes/CustomAttributesClient.cs similarity index 96% rename from src/Square/Bookings/CustomAttributes/CustomAttributesClient.cs rename to src/Square/Default/Bookings/CustomAttributes/CustomAttributesClient.cs index 3bf3ce77..06651cfd 100644 --- a/src/Square/Bookings/CustomAttributes/CustomAttributesClient.cs +++ b/src/Square/Default/Bookings/CustomAttributes/CustomAttributesClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Bookings.CustomAttributes; +namespace Square.Default.Bookings; public partial class CustomAttributesClient : ICustomAttributesClient { @@ -87,7 +88,7 @@ private async Task ListInternalAsync( /// or *Appointments Premium*. /// /// - /// await client.Bookings.CustomAttributes.BatchDeleteAsync( + /// await client.Default.Bookings.CustomAttributes.BatchDeleteAsync( /// new BulkDeleteBookingCustomAttributesRequest /// { /// Values = new Dictionary<string, BookingCustomAttributeDeleteRequest>() @@ -155,7 +156,7 @@ public async Task BatchDeleteAsync( /// or *Appointments Premium*. /// /// - /// await client.Bookings.CustomAttributes.BatchUpsertAsync( + /// await client.Default.Bookings.CustomAttributes.BatchUpsertAsync( /// new BulkUpsertBookingCustomAttributesRequest /// { /// Values = new Dictionary<string, BookingCustomAttributeUpsertRequest>() @@ -224,8 +225,8 @@ public async Task BatchUpsertAsync( /// To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope. /// /// - /// await client.Bookings.CustomAttributes.ListAsync( - /// new Square.Bookings.CustomAttributes.ListCustomAttributesRequest + /// await client.Default.Bookings.CustomAttributes.ListAsync( + /// new Square.Default.Bookings.ListCustomAttributesRequest /// { /// BookingId = "booking_id", /// Limit = 1, @@ -274,8 +275,8 @@ public async Task> ListAsync( /// To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope. /// /// - /// await client.Bookings.CustomAttributes.GetAsync( - /// new Square.Bookings.CustomAttributes.GetCustomAttributesRequest + /// await client.Default.Bookings.CustomAttributes.GetAsync( + /// new Square.Default.Bookings.GetCustomAttributesRequest /// { /// BookingId = "booking_id", /// Key = "key", @@ -349,7 +350,7 @@ public async Task GetAsync( /// or *Appointments Premium*. /// /// - /// await client.Bookings.CustomAttributes.UpsertAsync( + /// await client.Default.Bookings.CustomAttributes.UpsertAsync( /// new UpsertBookingCustomAttributeRequest /// { /// BookingId = "booking_id", @@ -415,8 +416,8 @@ public async Task UpsertAsync( /// or *Appointments Premium*. /// /// - /// await client.Bookings.CustomAttributes.DeleteAsync( - /// new Square.Bookings.CustomAttributes.DeleteCustomAttributesRequest + /// await client.Default.Bookings.CustomAttributes.DeleteAsync( + /// new Square.Default.Bookings.DeleteCustomAttributesRequest /// { /// BookingId = "booking_id", /// Key = "key", diff --git a/src/Square/Bookings/CustomAttributes/ICustomAttributesClient.cs b/src/Square/Default/Bookings/CustomAttributes/ICustomAttributesClient.cs similarity index 98% rename from src/Square/Bookings/CustomAttributes/ICustomAttributesClient.cs rename to src/Square/Default/Bookings/CustomAttributes/ICustomAttributesClient.cs index 359ebe6e..1a1562d8 100644 --- a/src/Square/Bookings/CustomAttributes/ICustomAttributesClient.cs +++ b/src/Square/Default/Bookings/CustomAttributes/ICustomAttributesClient.cs @@ -1,7 +1,8 @@ using Square; using Square.Core; +using Square.Default; -namespace Square.Bookings.CustomAttributes; +namespace Square.Default.Bookings; public partial interface ICustomAttributesClient { diff --git a/src/Square/Bookings/CustomAttributes/Requests/BulkDeleteBookingCustomAttributesRequest.cs b/src/Square/Default/Bookings/CustomAttributes/Requests/BulkDeleteBookingCustomAttributesRequest.cs similarity index 92% rename from src/Square/Bookings/CustomAttributes/Requests/BulkDeleteBookingCustomAttributesRequest.cs rename to src/Square/Default/Bookings/CustomAttributes/Requests/BulkDeleteBookingCustomAttributesRequest.cs index c570fbdd..b712589e 100644 --- a/src/Square/Bookings/CustomAttributes/Requests/BulkDeleteBookingCustomAttributesRequest.cs +++ b/src/Square/Default/Bookings/CustomAttributes/Requests/BulkDeleteBookingCustomAttributesRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Bookings.CustomAttributes; +namespace Square.Default.Bookings; [Serializable] public record BulkDeleteBookingCustomAttributesRequest diff --git a/src/Square/Bookings/CustomAttributes/Requests/BulkUpsertBookingCustomAttributesRequest.cs b/src/Square/Default/Bookings/CustomAttributes/Requests/BulkUpsertBookingCustomAttributesRequest.cs similarity index 92% rename from src/Square/Bookings/CustomAttributes/Requests/BulkUpsertBookingCustomAttributesRequest.cs rename to src/Square/Default/Bookings/CustomAttributes/Requests/BulkUpsertBookingCustomAttributesRequest.cs index 91516bf4..1fc0918f 100644 --- a/src/Square/Bookings/CustomAttributes/Requests/BulkUpsertBookingCustomAttributesRequest.cs +++ b/src/Square/Default/Bookings/CustomAttributes/Requests/BulkUpsertBookingCustomAttributesRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Bookings.CustomAttributes; +namespace Square.Default.Bookings; [Serializable] public record BulkUpsertBookingCustomAttributesRequest diff --git a/src/Square/Bookings/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs b/src/Square/Default/Bookings/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs similarity index 94% rename from src/Square/Bookings/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs rename to src/Square/Default/Bookings/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs index 3d1d5a3c..3c0cfcc0 100644 --- a/src/Square/Bookings/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs +++ b/src/Square/Default/Bookings/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Bookings.CustomAttributes; +namespace Square.Default.Bookings; [Serializable] public record DeleteCustomAttributesRequest diff --git a/src/Square/Bookings/CustomAttributes/Requests/GetCustomAttributesRequest.cs b/src/Square/Default/Bookings/CustomAttributes/Requests/GetCustomAttributesRequest.cs similarity index 97% rename from src/Square/Bookings/CustomAttributes/Requests/GetCustomAttributesRequest.cs rename to src/Square/Default/Bookings/CustomAttributes/Requests/GetCustomAttributesRequest.cs index 3b17d9e4..d003e595 100644 --- a/src/Square/Bookings/CustomAttributes/Requests/GetCustomAttributesRequest.cs +++ b/src/Square/Default/Bookings/CustomAttributes/Requests/GetCustomAttributesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Bookings.CustomAttributes; +namespace Square.Default.Bookings; [Serializable] public record GetCustomAttributesRequest diff --git a/src/Square/Bookings/CustomAttributes/Requests/ListCustomAttributesRequest.cs b/src/Square/Default/Bookings/CustomAttributes/Requests/ListCustomAttributesRequest.cs similarity index 97% rename from src/Square/Bookings/CustomAttributes/Requests/ListCustomAttributesRequest.cs rename to src/Square/Default/Bookings/CustomAttributes/Requests/ListCustomAttributesRequest.cs index b2458250..fac4aec5 100644 --- a/src/Square/Bookings/CustomAttributes/Requests/ListCustomAttributesRequest.cs +++ b/src/Square/Default/Bookings/CustomAttributes/Requests/ListCustomAttributesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Bookings.CustomAttributes; +namespace Square.Default.Bookings; [Serializable] public record ListCustomAttributesRequest diff --git a/src/Square/Bookings/CustomAttributes/Requests/UpsertBookingCustomAttributeRequest.cs b/src/Square/Default/Bookings/CustomAttributes/Requests/UpsertBookingCustomAttributeRequest.cs similarity index 96% rename from src/Square/Bookings/CustomAttributes/Requests/UpsertBookingCustomAttributeRequest.cs rename to src/Square/Default/Bookings/CustomAttributes/Requests/UpsertBookingCustomAttributeRequest.cs index 730ea709..083cf9e9 100644 --- a/src/Square/Bookings/CustomAttributes/Requests/UpsertBookingCustomAttributeRequest.cs +++ b/src/Square/Default/Bookings/CustomAttributes/Requests/UpsertBookingCustomAttributeRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Bookings.CustomAttributes; +namespace Square.Default.Bookings; [Serializable] public record UpsertBookingCustomAttributeRequest diff --git a/src/Square/Bookings/IBookingsClient.cs b/src/Square/Default/Bookings/IBookingsClient.cs similarity index 94% rename from src/Square/Bookings/IBookingsClient.cs rename to src/Square/Default/Bookings/IBookingsClient.cs index 6a0eee5e..84218f8a 100644 --- a/src/Square/Bookings/IBookingsClient.cs +++ b/src/Square/Default/Bookings/IBookingsClient.cs @@ -1,14 +1,13 @@ using Square; -using Square.Bookings.LocationProfiles; -using Square.Bookings.TeamMemberProfiles; using Square.Core; +using Square.Default.Bookings; -namespace Square.Bookings; +namespace Square.Default; public partial interface IBookingsClient { - public Square.Bookings.CustomAttributeDefinitions.CustomAttributeDefinitionsClient CustomAttributeDefinitions { get; } - public Square.Bookings.CustomAttributes.CustomAttributesClient CustomAttributes { get; } + public Square.Default.Bookings.CustomAttributeDefinitionsClient CustomAttributeDefinitions { get; } + public Square.Default.Bookings.CustomAttributesClient CustomAttributes { get; } public LocationProfilesClient LocationProfiles { get; } public TeamMemberProfilesClient TeamMemberProfiles { get; } diff --git a/src/Square/Bookings/LocationProfiles/ILocationProfilesClient.cs b/src/Square/Default/Bookings/LocationProfiles/ILocationProfilesClient.cs similarity index 86% rename from src/Square/Bookings/LocationProfiles/ILocationProfilesClient.cs rename to src/Square/Default/Bookings/LocationProfiles/ILocationProfilesClient.cs index 193bd37f..a04db3f5 100644 --- a/src/Square/Bookings/LocationProfiles/ILocationProfilesClient.cs +++ b/src/Square/Default/Bookings/LocationProfiles/ILocationProfilesClient.cs @@ -1,7 +1,8 @@ using Square; using Square.Core; +using Square.Default; -namespace Square.Bookings.LocationProfiles; +namespace Square.Default.Bookings; public partial interface ILocationProfilesClient { diff --git a/src/Square/Bookings/LocationProfiles/LocationProfilesClient.cs b/src/Square/Default/Bookings/LocationProfiles/LocationProfilesClient.cs similarity index 96% rename from src/Square/Bookings/LocationProfiles/LocationProfilesClient.cs rename to src/Square/Default/Bookings/LocationProfiles/LocationProfilesClient.cs index 894a180c..e8e45fc7 100644 --- a/src/Square/Bookings/LocationProfiles/LocationProfilesClient.cs +++ b/src/Square/Default/Bookings/LocationProfiles/LocationProfilesClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Bookings.LocationProfiles; +namespace Square.Default.Bookings; public partial class LocationProfilesClient : ILocationProfilesClient { @@ -71,7 +72,7 @@ private async Task ListInternalAsync( /// Lists location booking profiles of a seller. /// /// - /// await client.Bookings.LocationProfiles.ListAsync( + /// await client.Default.Bookings.LocationProfiles.ListAsync( /// new ListLocationProfilesRequest { Limit = 1, Cursor = "cursor" } /// ); /// diff --git a/src/Square/Bookings/LocationProfiles/Requests/ListLocationProfilesRequest.cs b/src/Square/Default/Bookings/LocationProfiles/Requests/ListLocationProfilesRequest.cs similarity index 93% rename from src/Square/Bookings/LocationProfiles/Requests/ListLocationProfilesRequest.cs rename to src/Square/Default/Bookings/LocationProfiles/Requests/ListLocationProfilesRequest.cs index 556270a4..1c20a67e 100644 --- a/src/Square/Bookings/LocationProfiles/Requests/ListLocationProfilesRequest.cs +++ b/src/Square/Default/Bookings/LocationProfiles/Requests/ListLocationProfilesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Bookings.LocationProfiles; +namespace Square.Default.Bookings; [Serializable] public record ListLocationProfilesRequest diff --git a/src/Square/Bookings/Requests/BulkRetrieveBookingsRequest.cs b/src/Square/Default/Bookings/Requests/BulkRetrieveBookingsRequest.cs similarity index 94% rename from src/Square/Bookings/Requests/BulkRetrieveBookingsRequest.cs rename to src/Square/Default/Bookings/Requests/BulkRetrieveBookingsRequest.cs index 7987a366..60a7f681 100644 --- a/src/Square/Bookings/Requests/BulkRetrieveBookingsRequest.cs +++ b/src/Square/Default/Bookings/Requests/BulkRetrieveBookingsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Bookings; +namespace Square.Default; [Serializable] public record BulkRetrieveBookingsRequest diff --git a/src/Square/Bookings/Requests/BulkRetrieveTeamMemberBookingProfilesRequest.cs b/src/Square/Default/Bookings/Requests/BulkRetrieveTeamMemberBookingProfilesRequest.cs similarity index 94% rename from src/Square/Bookings/Requests/BulkRetrieveTeamMemberBookingProfilesRequest.cs rename to src/Square/Default/Bookings/Requests/BulkRetrieveTeamMemberBookingProfilesRequest.cs index 6c1fc73e..093c9c3f 100644 --- a/src/Square/Bookings/Requests/BulkRetrieveTeamMemberBookingProfilesRequest.cs +++ b/src/Square/Default/Bookings/Requests/BulkRetrieveTeamMemberBookingProfilesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Bookings; +namespace Square.Default; [Serializable] public record BulkRetrieveTeamMemberBookingProfilesRequest diff --git a/src/Square/Bookings/Requests/CancelBookingRequest.cs b/src/Square/Default/Bookings/Requests/CancelBookingRequest.cs similarity index 96% rename from src/Square/Bookings/Requests/CancelBookingRequest.cs rename to src/Square/Default/Bookings/Requests/CancelBookingRequest.cs index 4044c0b2..df2c8654 100644 --- a/src/Square/Bookings/Requests/CancelBookingRequest.cs +++ b/src/Square/Default/Bookings/Requests/CancelBookingRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Bookings; +namespace Square.Default; [Serializable] public record CancelBookingRequest diff --git a/src/Square/Bookings/Requests/CreateBookingRequest.cs b/src/Square/Default/Bookings/Requests/CreateBookingRequest.cs similarity index 93% rename from src/Square/Bookings/Requests/CreateBookingRequest.cs rename to src/Square/Default/Bookings/Requests/CreateBookingRequest.cs index 0680b8ac..169fe3ba 100644 --- a/src/Square/Bookings/Requests/CreateBookingRequest.cs +++ b/src/Square/Default/Bookings/Requests/CreateBookingRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Bookings; +namespace Square.Default; [Serializable] public record CreateBookingRequest diff --git a/src/Square/Bookings/Requests/GetBookingsRequest.cs b/src/Square/Default/Bookings/Requests/GetBookingsRequest.cs similarity index 94% rename from src/Square/Bookings/Requests/GetBookingsRequest.cs rename to src/Square/Default/Bookings/Requests/GetBookingsRequest.cs index 043966f5..7586a7aa 100644 --- a/src/Square/Bookings/Requests/GetBookingsRequest.cs +++ b/src/Square/Default/Bookings/Requests/GetBookingsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Bookings; +namespace Square.Default; [Serializable] public record GetBookingsRequest diff --git a/src/Square/Bookings/Requests/ListBookingsRequest.cs b/src/Square/Default/Bookings/Requests/ListBookingsRequest.cs similarity index 98% rename from src/Square/Bookings/Requests/ListBookingsRequest.cs rename to src/Square/Default/Bookings/Requests/ListBookingsRequest.cs index e2c93c45..ebbda130 100644 --- a/src/Square/Bookings/Requests/ListBookingsRequest.cs +++ b/src/Square/Default/Bookings/Requests/ListBookingsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Bookings; +namespace Square.Default; [Serializable] public record ListBookingsRequest diff --git a/src/Square/Bookings/Requests/RetrieveLocationBookingProfileRequest.cs b/src/Square/Default/Bookings/Requests/RetrieveLocationBookingProfileRequest.cs similarity index 93% rename from src/Square/Bookings/Requests/RetrieveLocationBookingProfileRequest.cs rename to src/Square/Default/Bookings/Requests/RetrieveLocationBookingProfileRequest.cs index d25bbe70..ee51fdd6 100644 --- a/src/Square/Bookings/Requests/RetrieveLocationBookingProfileRequest.cs +++ b/src/Square/Default/Bookings/Requests/RetrieveLocationBookingProfileRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Bookings; +namespace Square.Default; [Serializable] public record RetrieveLocationBookingProfileRequest diff --git a/src/Square/Bookings/Requests/SearchAvailabilityRequest.cs b/src/Square/Default/Bookings/Requests/SearchAvailabilityRequest.cs similarity index 91% rename from src/Square/Bookings/Requests/SearchAvailabilityRequest.cs rename to src/Square/Default/Bookings/Requests/SearchAvailabilityRequest.cs index 67d72489..dc15715e 100644 --- a/src/Square/Bookings/Requests/SearchAvailabilityRequest.cs +++ b/src/Square/Default/Bookings/Requests/SearchAvailabilityRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Bookings; +namespace Square.Default; [Serializable] public record SearchAvailabilityRequest diff --git a/src/Square/Bookings/Requests/UpdateBookingRequest.cs b/src/Square/Default/Bookings/Requests/UpdateBookingRequest.cs similarity index 95% rename from src/Square/Bookings/Requests/UpdateBookingRequest.cs rename to src/Square/Default/Bookings/Requests/UpdateBookingRequest.cs index fa22db6d..85c39e69 100644 --- a/src/Square/Bookings/Requests/UpdateBookingRequest.cs +++ b/src/Square/Default/Bookings/Requests/UpdateBookingRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Bookings; +namespace Square.Default; [Serializable] public record UpdateBookingRequest diff --git a/src/Square/Bookings/TeamMemberProfiles/ITeamMemberProfilesClient.cs b/src/Square/Default/Bookings/TeamMemberProfiles/ITeamMemberProfilesClient.cs similarity index 92% rename from src/Square/Bookings/TeamMemberProfiles/ITeamMemberProfilesClient.cs rename to src/Square/Default/Bookings/TeamMemberProfiles/ITeamMemberProfilesClient.cs index d3d86c3e..df219d41 100644 --- a/src/Square/Bookings/TeamMemberProfiles/ITeamMemberProfilesClient.cs +++ b/src/Square/Default/Bookings/TeamMemberProfiles/ITeamMemberProfilesClient.cs @@ -1,7 +1,8 @@ using Square; using Square.Core; +using Square.Default; -namespace Square.Bookings.TeamMemberProfiles; +namespace Square.Default.Bookings; public partial interface ITeamMemberProfilesClient { diff --git a/src/Square/Bookings/TeamMemberProfiles/Requests/GetTeamMemberProfilesRequest.cs b/src/Square/Default/Bookings/TeamMemberProfiles/Requests/GetTeamMemberProfilesRequest.cs similarity index 89% rename from src/Square/Bookings/TeamMemberProfiles/Requests/GetTeamMemberProfilesRequest.cs rename to src/Square/Default/Bookings/TeamMemberProfiles/Requests/GetTeamMemberProfilesRequest.cs index eedbea03..59b27112 100644 --- a/src/Square/Bookings/TeamMemberProfiles/Requests/GetTeamMemberProfilesRequest.cs +++ b/src/Square/Default/Bookings/TeamMemberProfiles/Requests/GetTeamMemberProfilesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Bookings.TeamMemberProfiles; +namespace Square.Default.Bookings; [Serializable] public record GetTeamMemberProfilesRequest diff --git a/src/Square/Bookings/TeamMemberProfiles/Requests/ListTeamMemberProfilesRequest.cs b/src/Square/Default/Bookings/TeamMemberProfiles/Requests/ListTeamMemberProfilesRequest.cs similarity index 95% rename from src/Square/Bookings/TeamMemberProfiles/Requests/ListTeamMemberProfilesRequest.cs rename to src/Square/Default/Bookings/TeamMemberProfiles/Requests/ListTeamMemberProfilesRequest.cs index 134bed18..bf654d91 100644 --- a/src/Square/Bookings/TeamMemberProfiles/Requests/ListTeamMemberProfilesRequest.cs +++ b/src/Square/Default/Bookings/TeamMemberProfiles/Requests/ListTeamMemberProfilesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Bookings.TeamMemberProfiles; +namespace Square.Default.Bookings; [Serializable] public record ListTeamMemberProfilesRequest diff --git a/src/Square/Bookings/TeamMemberProfiles/TeamMemberProfilesClient.cs b/src/Square/Default/Bookings/TeamMemberProfiles/TeamMemberProfilesClient.cs similarity index 96% rename from src/Square/Bookings/TeamMemberProfiles/TeamMemberProfilesClient.cs rename to src/Square/Default/Bookings/TeamMemberProfiles/TeamMemberProfilesClient.cs index 3ab59a0d..9bcbe379 100644 --- a/src/Square/Bookings/TeamMemberProfiles/TeamMemberProfilesClient.cs +++ b/src/Square/Default/Bookings/TeamMemberProfiles/TeamMemberProfilesClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Bookings.TeamMemberProfiles; +namespace Square.Default.Bookings; public partial class TeamMemberProfilesClient : ITeamMemberProfilesClient { @@ -79,7 +80,7 @@ private async Task ListInternalAsync( /// Lists booking profiles for team members. /// /// - /// await client.Bookings.TeamMemberProfiles.ListAsync( + /// await client.Default.Bookings.TeamMemberProfiles.ListAsync( /// new ListTeamMemberProfilesRequest /// { /// BookableOnly = true, @@ -126,7 +127,7 @@ public async Task> ListAsync( /// Retrieves a team member's booking profile. /// /// - /// await client.Bookings.TeamMemberProfiles.GetAsync( + /// await client.Default.Bookings.TeamMemberProfiles.GetAsync( /// new GetTeamMemberProfilesRequest { TeamMemberId = "team_member_id" } /// ); /// diff --git a/src/Square/Cards/CardsClient.cs b/src/Square/Default/Cards/CardsClient.cs similarity index 97% rename from src/Square/Cards/CardsClient.cs rename to src/Square/Default/Cards/CardsClient.cs index 7c2876ad..0d626e98 100644 --- a/src/Square/Cards/CardsClient.cs +++ b/src/Square/Default/Cards/CardsClient.cs @@ -2,7 +2,7 @@ using Square; using Square.Core; -namespace Square.Cards; +namespace Square.Default; public partial class CardsClient : ICardsClient { @@ -85,7 +85,7 @@ private async Task ListInternalAsync( /// A max of 25 cards will be returned. /// /// - /// await client.Cards.ListAsync( + /// await client.Default.Cards.ListAsync( /// new ListCardsRequest /// { /// Cursor = "cursor", @@ -133,7 +133,7 @@ public async Task> ListAsync( /// Adds a card on file to an existing merchant. /// /// - /// await client.Cards.CreateAsync( + /// await client.Default.Cards.CreateAsync( /// new CreateCardRequest /// { /// IdempotencyKey = "4935a656-a929-4792-b97c-8848be85c27c", @@ -203,7 +203,7 @@ public async Task CreateAsync( /// Retrieves details for a specific Card. /// /// - /// await client.Cards.GetAsync(new GetCardsRequest { CardId = "card_id" }); + /// await client.Default.Cards.GetAsync(new GetCardsRequest { CardId = "card_id" }); /// public async Task GetAsync( GetCardsRequest request, @@ -254,7 +254,7 @@ public async Task GetAsync( /// Disabling an already disabled card is allowed but has no effect. /// /// - /// await client.Cards.DisableAsync(new DisableCardsRequest { CardId = "card_id" }); + /// await client.Default.Cards.DisableAsync(new DisableCardsRequest { CardId = "card_id" }); /// public async Task DisableAsync( DisableCardsRequest request, diff --git a/src/Square/Cards/ICardsClient.cs b/src/Square/Default/Cards/ICardsClient.cs similarity index 98% rename from src/Square/Cards/ICardsClient.cs rename to src/Square/Default/Cards/ICardsClient.cs index a8f1971e..a3f83eda 100644 --- a/src/Square/Cards/ICardsClient.cs +++ b/src/Square/Default/Cards/ICardsClient.cs @@ -1,7 +1,7 @@ using Square; using Square.Core; -namespace Square.Cards; +namespace Square.Default; public partial interface ICardsClient { diff --git a/src/Square/Cards/Requests/CreateCardRequest.cs b/src/Square/Default/Cards/Requests/CreateCardRequest.cs similarity index 97% rename from src/Square/Cards/Requests/CreateCardRequest.cs rename to src/Square/Default/Cards/Requests/CreateCardRequest.cs index 3d0cd81a..7639dd95 100644 --- a/src/Square/Cards/Requests/CreateCardRequest.cs +++ b/src/Square/Default/Cards/Requests/CreateCardRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Cards; +namespace Square.Default; [Serializable] public record CreateCardRequest diff --git a/src/Square/Cards/Requests/DisableCardsRequest.cs b/src/Square/Default/Cards/Requests/DisableCardsRequest.cs similarity index 93% rename from src/Square/Cards/Requests/DisableCardsRequest.cs rename to src/Square/Default/Cards/Requests/DisableCardsRequest.cs index f7149f87..07174d71 100644 --- a/src/Square/Cards/Requests/DisableCardsRequest.cs +++ b/src/Square/Default/Cards/Requests/DisableCardsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Cards; +namespace Square.Default; [Serializable] public record DisableCardsRequest diff --git a/src/Square/Cards/Requests/GetCardsRequest.cs b/src/Square/Default/Cards/Requests/GetCardsRequest.cs similarity index 93% rename from src/Square/Cards/Requests/GetCardsRequest.cs rename to src/Square/Default/Cards/Requests/GetCardsRequest.cs index 3a032846..9368c4d5 100644 --- a/src/Square/Cards/Requests/GetCardsRequest.cs +++ b/src/Square/Default/Cards/Requests/GetCardsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Cards; +namespace Square.Default; [Serializable] public record GetCardsRequest diff --git a/src/Square/Cards/Requests/ListCardsRequest.cs b/src/Square/Default/Cards/Requests/ListCardsRequest.cs similarity index 97% rename from src/Square/Cards/Requests/ListCardsRequest.cs rename to src/Square/Default/Cards/Requests/ListCardsRequest.cs index e1ad0be5..75fdb46e 100644 --- a/src/Square/Cards/Requests/ListCardsRequest.cs +++ b/src/Square/Default/Cards/Requests/ListCardsRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Cards; +namespace Square.Default; [Serializable] public record ListCardsRequest diff --git a/src/Square/CashDrawers/CashDrawersClient.cs b/src/Square/Default/CashDrawers/CashDrawersClient.cs similarity index 55% rename from src/Square/CashDrawers/CashDrawersClient.cs rename to src/Square/Default/CashDrawers/CashDrawersClient.cs index 9bf29c1f..7dd255a9 100644 --- a/src/Square/CashDrawers/CashDrawersClient.cs +++ b/src/Square/Default/CashDrawers/CashDrawersClient.cs @@ -1,6 +1,6 @@ using Square.Core; -namespace Square.CashDrawers; +namespace Square.Default.CashDrawers; public partial class CashDrawersClient : ICashDrawersClient { @@ -9,8 +9,8 @@ public partial class CashDrawersClient : ICashDrawersClient internal CashDrawersClient(RawClient client) { _client = client; - Shifts = new Square.CashDrawers.Shifts.ShiftsClient(_client); + Shifts = new ShiftsClient(_client); } - public Square.CashDrawers.Shifts.ShiftsClient Shifts { get; } + public ShiftsClient Shifts { get; } } diff --git a/src/Square/Default/CashDrawers/ICashDrawersClient.cs b/src/Square/Default/CashDrawers/ICashDrawersClient.cs new file mode 100644 index 00000000..dc3a1646 --- /dev/null +++ b/src/Square/Default/CashDrawers/ICashDrawersClient.cs @@ -0,0 +1,6 @@ +namespace Square.Default.CashDrawers; + +public partial interface ICashDrawersClient +{ + public ShiftsClient Shifts { get; } +} diff --git a/src/Square/CashDrawers/Shifts/IShiftsClient.cs b/src/Square/Default/CashDrawers/Shifts/IShiftsClient.cs similarity index 94% rename from src/Square/CashDrawers/Shifts/IShiftsClient.cs rename to src/Square/Default/CashDrawers/Shifts/IShiftsClient.cs index 2003249f..63c8b62d 100644 --- a/src/Square/CashDrawers/Shifts/IShiftsClient.cs +++ b/src/Square/Default/CashDrawers/Shifts/IShiftsClient.cs @@ -1,7 +1,8 @@ using Square; using Square.Core; +using Square.Default; -namespace Square.CashDrawers.Shifts; +namespace Square.Default.CashDrawers; public partial interface IShiftsClient { diff --git a/src/Square/CashDrawers/Shifts/Requests/GetShiftsRequest.cs b/src/Square/Default/CashDrawers/Shifts/Requests/GetShiftsRequest.cs similarity index 93% rename from src/Square/CashDrawers/Shifts/Requests/GetShiftsRequest.cs rename to src/Square/Default/CashDrawers/Shifts/Requests/GetShiftsRequest.cs index 0cca4e82..b2a5c28b 100644 --- a/src/Square/CashDrawers/Shifts/Requests/GetShiftsRequest.cs +++ b/src/Square/Default/CashDrawers/Shifts/Requests/GetShiftsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.CashDrawers.Shifts; +namespace Square.Default.CashDrawers; [Serializable] public record GetShiftsRequest diff --git a/src/Square/CashDrawers/Shifts/Requests/ListEventsShiftsRequest.cs b/src/Square/Default/CashDrawers/Shifts/Requests/ListEventsShiftsRequest.cs similarity index 95% rename from src/Square/CashDrawers/Shifts/Requests/ListEventsShiftsRequest.cs rename to src/Square/Default/CashDrawers/Shifts/Requests/ListEventsShiftsRequest.cs index 5b9ac1b2..28100e6c 100644 --- a/src/Square/CashDrawers/Shifts/Requests/ListEventsShiftsRequest.cs +++ b/src/Square/Default/CashDrawers/Shifts/Requests/ListEventsShiftsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.CashDrawers.Shifts; +namespace Square.Default.CashDrawers; [Serializable] public record ListEventsShiftsRequest diff --git a/src/Square/CashDrawers/Shifts/Requests/ListShiftsRequest.cs b/src/Square/Default/CashDrawers/Shifts/Requests/ListShiftsRequest.cs similarity index 95% rename from src/Square/CashDrawers/Shifts/Requests/ListShiftsRequest.cs rename to src/Square/Default/CashDrawers/Shifts/Requests/ListShiftsRequest.cs index 1949355b..6919d1bc 100644 --- a/src/Square/CashDrawers/Shifts/Requests/ListShiftsRequest.cs +++ b/src/Square/Default/CashDrawers/Shifts/Requests/ListShiftsRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.CashDrawers.Shifts; +namespace Square.Default.CashDrawers; [Serializable] public record ListShiftsRequest diff --git a/src/Square/CashDrawers/Shifts/ShiftsClient.cs b/src/Square/Default/CashDrawers/Shifts/ShiftsClient.cs similarity index 97% rename from src/Square/CashDrawers/Shifts/ShiftsClient.cs rename to src/Square/Default/CashDrawers/Shifts/ShiftsClient.cs index a81e0b0a..f84ad0d7 100644 --- a/src/Square/CashDrawers/Shifts/ShiftsClient.cs +++ b/src/Square/Default/CashDrawers/Shifts/ShiftsClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.CashDrawers.Shifts; +namespace Square.Default.CashDrawers; public partial class ShiftsClient : IShiftsClient { @@ -144,7 +145,7 @@ private async Task ListEventsInternalAsync( /// in a date range. /// /// - /// await client.CashDrawers.Shifts.ListAsync( + /// await client.Default.CashDrawers.Shifts.ListAsync( /// new ListShiftsRequest /// { /// LocationId = "location_id", @@ -194,8 +195,8 @@ public async Task> ListAsync( /// [ListCashDrawerShiftEvents](api-endpoint:CashDrawers-ListCashDrawerShiftEvents) for a list of cash drawer shift events. /// /// - /// await client.CashDrawers.Shifts.GetAsync( - /// new Square.CashDrawers.Shifts.GetShiftsRequest + /// await client.Default.CashDrawers.Shifts.GetAsync( + /// new Square.Default.CashDrawers.GetShiftsRequest /// { /// ShiftId = "shift_id", /// LocationId = "location_id", @@ -253,7 +254,7 @@ public async Task GetAsync( /// Provides a paginated list of events for a single cash drawer shift. /// /// - /// await client.CashDrawers.Shifts.ListEventsAsync( + /// await client.Default.CashDrawers.Shifts.ListEventsAsync( /// new ListEventsShiftsRequest /// { /// ShiftId = "shift_id", diff --git a/src/Square/Catalog/CatalogClient.cs b/src/Square/Default/Catalog/CatalogClient.cs similarity index 97% rename from src/Square/Catalog/CatalogClient.cs rename to src/Square/Default/Catalog/CatalogClient.cs index 7ba19514..76c6efcb 100644 --- a/src/Square/Catalog/CatalogClient.cs +++ b/src/Square/Default/Catalog/CatalogClient.cs @@ -1,10 +1,9 @@ using System.Text.Json; using Square; -using Square.Catalog.Images; -using Square.Catalog.Object; using Square.Core; +using Square.Default.Catalog; -namespace Square.Catalog; +namespace Square.Default; public partial class CatalogClient : ICatalogClient { @@ -103,7 +102,7 @@ private async Task ListInternalAsync( /// delete requests are rejected with the `429` error code. /// /// - /// await client.Catalog.BatchDeleteAsync( + /// await client.Default.Catalog.BatchDeleteAsync( /// new BatchDeleteCatalogObjectsRequest /// { /// ObjectIds = new List<string>() { "W62UWFY35CWMYGVWK6TWJDNI", "AA27W3M2GGTF3H6AVPNB77CK" }, @@ -162,7 +161,7 @@ public async Task BatchDeleteAsync( /// any [CatalogTax](entity:CatalogTax) objects that apply to it. /// /// - /// await client.Catalog.BatchGetAsync( + /// await client.Default.Catalog.BatchGetAsync( /// new BatchGetCatalogObjectsRequest /// { /// ObjectIds = new List<string>() { "W62UWFY35CWMYGVWK6TWJDNI", "AA27W3M2GGTF3H6AVPNB77CK" }, @@ -229,7 +228,7 @@ public async Task BatchGetAsync( /// update requests are rejected with the `429` error code. /// /// - /// await client.Catalog.BatchUpsertAsync( + /// await client.Default.Catalog.BatchUpsertAsync( /// new BatchUpsertCatalogObjectsRequest /// { /// IdempotencyKey = "789ff020-f723-43a9-b4b5-43b5dc1fa3dc", @@ -297,7 +296,7 @@ public async Task BatchUpsertAsync( /// limits that can be used by the `BatchUpsertCatalogObjects` endpoint. /// /// - /// await client.Catalog.InfoAsync(); + /// await client.Default.Catalog.InfoAsync(); /// public async Task InfoAsync( RequestOptions? options = null, @@ -350,7 +349,7 @@ public async Task InfoAsync( /// and set the `include_deleted_objects` attribute value to `true`. /// /// - /// await client.Catalog.ListAsync( + /// await client.Default.Catalog.ListAsync( /// new ListCatalogRequest /// { /// Cursor = "cursor", @@ -405,7 +404,7 @@ public async Task> ListAsync( /// - The both endpoints have different call conventions, including the query filter formats. /// /// - /// await client.Catalog.SearchAsync( + /// await client.Default.Catalog.SearchAsync( /// new SearchCatalogObjectsRequest /// { /// ObjectTypes = new List<CatalogObjectType>() { CatalogObjectType.Item }, @@ -477,7 +476,7 @@ public async Task SearchAsync( /// - The both endpoints use different call conventions, including the query filter formats. /// /// - /// await client.Catalog.SearchItemsAsync( + /// await client.Default.Catalog.SearchItemsAsync( /// new SearchCatalogItemsRequest /// { /// TextFilter = "red", @@ -506,7 +505,7 @@ public async Task SearchAsync( /// new CustomAttributeFilter /// { /// Key = "VINTAGE", - /// NumberFilter = new Square.Range { Min = "min", Max = "max" }, + /// NumberFilter = new Square.Default.Range { Min = "min", Max = "max" }, /// }, /// new CustomAttributeFilter { CustomAttributeDefinitionId = "VARIETAL_DEFINITION_ID" }, /// }, @@ -562,7 +561,7 @@ public async Task SearchItemsAsync( /// to perform an upsert on the entire item. /// /// - /// await client.Catalog.UpdateItemModifierListsAsync( + /// await client.Default.Catalog.UpdateItemModifierListsAsync( /// new UpdateItemModifierListsRequest /// { /// ItemIds = new List<string>() { "H42BRLUJ5KTZTTMPVSLFAACQ", "2JXOBJIHCWBQ4NZ3RIXQGJA6" }, @@ -624,7 +623,7 @@ public async Task UpdateItemModifierListsAsync( /// upsert on the entire item. /// /// - /// await client.Catalog.UpdateItemTaxesAsync( + /// await client.Default.Catalog.UpdateItemTaxesAsync( /// new UpdateItemTaxesRequest /// { /// ItemIds = new List<string>() { "H42BRLUJ5KTZTTMPVSLFAACQ", "2JXOBJIHCWBQ4NZ3RIXQGJA6" }, diff --git a/src/Square/Catalog/ICatalogClient.cs b/src/Square/Default/Catalog/ICatalogClient.cs similarity index 98% rename from src/Square/Catalog/ICatalogClient.cs rename to src/Square/Default/Catalog/ICatalogClient.cs index 6754afb2..1e0cd5d9 100644 --- a/src/Square/Catalog/ICatalogClient.cs +++ b/src/Square/Default/Catalog/ICatalogClient.cs @@ -1,9 +1,8 @@ using Square; -using Square.Catalog.Images; -using Square.Catalog.Object; using Square.Core; +using Square.Default.Catalog; -namespace Square.Catalog; +namespace Square.Default; public partial interface ICatalogClient { diff --git a/src/Square/Catalog/Images/IImagesClient.cs b/src/Square/Default/Catalog/Images/IImagesClient.cs similarity index 96% rename from src/Square/Catalog/Images/IImagesClient.cs rename to src/Square/Default/Catalog/Images/IImagesClient.cs index 85e95431..3de9849b 100644 --- a/src/Square/Catalog/Images/IImagesClient.cs +++ b/src/Square/Default/Catalog/Images/IImagesClient.cs @@ -1,6 +1,7 @@ using Square; +using Square.Default; -namespace Square.Catalog.Images; +namespace Square.Default.Catalog; public partial interface IImagesClient { diff --git a/src/Square/Catalog/Images/ImagesClient.cs b/src/Square/Default/Catalog/Images/ImagesClient.cs similarity index 94% rename from src/Square/Catalog/Images/ImagesClient.cs rename to src/Square/Default/Catalog/Images/ImagesClient.cs index 61b64f1f..3bc11f3f 100644 --- a/src/Square/Catalog/Images/ImagesClient.cs +++ b/src/Square/Default/Catalog/Images/ImagesClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Catalog.Images; +namespace Square.Default.Catalog; public partial class ImagesClient : IImagesClient { @@ -22,7 +23,7 @@ internal ImagesClient(RawClient client) /// JPEG, PJPEG, PNG, or GIF format. The maximum file size is 15MB. /// /// - /// await client.Catalog.Images.CreateAsync(new CreateImagesRequest()); + /// await client.Default.Catalog.Images.CreateAsync(new CreateImagesRequest()); /// public async Task CreateAsync( CreateImagesRequest request, @@ -76,7 +77,7 @@ public async Task CreateAsync( /// JPEG, PJPEG, PNG, or GIF format. The maximum file size is 15MB. /// /// - /// await client.Catalog.Images.UpdateAsync(new UpdateImagesRequest { ImageId = "image_id" }); + /// await client.Default.Catalog.Images.UpdateAsync(new UpdateImagesRequest { ImageId = "image_id" }); /// public async Task UpdateAsync( UpdateImagesRequest request, diff --git a/src/Square/Catalog/Images/Requests/CreateImagesRequest.cs b/src/Square/Default/Catalog/Images/Requests/CreateImagesRequest.cs similarity index 84% rename from src/Square/Catalog/Images/Requests/CreateImagesRequest.cs rename to src/Square/Default/Catalog/Images/Requests/CreateImagesRequest.cs index 3f6b457e..2b1ce6e3 100644 --- a/src/Square/Catalog/Images/Requests/CreateImagesRequest.cs +++ b/src/Square/Default/Catalog/Images/Requests/CreateImagesRequest.cs @@ -1,7 +1,8 @@ using Square; using Square.Core; +using Square.Default; -namespace Square.Catalog.Images; +namespace Square.Default.Catalog; [Serializable] public record CreateImagesRequest diff --git a/src/Square/Catalog/Images/Requests/UpdateImagesRequest.cs b/src/Square/Default/Catalog/Images/Requests/UpdateImagesRequest.cs similarity index 90% rename from src/Square/Catalog/Images/Requests/UpdateImagesRequest.cs rename to src/Square/Default/Catalog/Images/Requests/UpdateImagesRequest.cs index 71642d99..ee6e57e8 100644 --- a/src/Square/Catalog/Images/Requests/UpdateImagesRequest.cs +++ b/src/Square/Default/Catalog/Images/Requests/UpdateImagesRequest.cs @@ -1,8 +1,9 @@ using System.Text.Json.Serialization; using Square; using Square.Core; +using Square.Default; -namespace Square.Catalog.Images; +namespace Square.Default.Catalog; [Serializable] public record UpdateImagesRequest diff --git a/src/Square/Catalog/Object/IObjectClient.cs b/src/Square/Default/Catalog/Object/IObjectClient.cs similarity index 97% rename from src/Square/Catalog/Object/IObjectClient.cs rename to src/Square/Default/Catalog/Object/IObjectClient.cs index 710257aa..31556baa 100644 --- a/src/Square/Catalog/Object/IObjectClient.cs +++ b/src/Square/Default/Catalog/Object/IObjectClient.cs @@ -1,6 +1,7 @@ using Square; +using Square.Default; -namespace Square.Catalog.Object; +namespace Square.Default.Catalog; public partial interface IObjectClient { diff --git a/src/Square/Catalog/Object/ObjectClient.cs b/src/Square/Default/Catalog/Object/ObjectClient.cs similarity index 96% rename from src/Square/Catalog/Object/ObjectClient.cs rename to src/Square/Default/Catalog/Object/ObjectClient.cs index 9cd10a7d..98f8d0e9 100644 --- a/src/Square/Catalog/Object/ObjectClient.cs +++ b/src/Square/Default/Catalog/Object/ObjectClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Catalog.Object; +namespace Square.Default.Catalog; public partial class ObjectClient : IObjectClient { @@ -21,7 +22,7 @@ internal ObjectClient(RawClient client) /// update requests are rejected with the `429` error code. /// /// - /// await client.Catalog.Object.UpsertAsync( + /// await client.Default.Catalog.Object.UpsertAsync( /// new UpsertCatalogObjectRequest /// { /// IdempotencyKey = "af3d1afc-7212-4300-b463-0bfc5314a5ae", @@ -82,7 +83,7 @@ public async Task UpsertAsync( /// any [CatalogTax](entity:CatalogTax) objects that apply to it. /// /// - /// await client.Catalog.Object.GetAsync( + /// await client.Default.Catalog.Object.GetAsync( /// new GetObjectRequest /// { /// ObjectId = "object_id", @@ -167,7 +168,7 @@ public async Task GetAsync( /// delete requests are rejected with the `429` error code. /// /// - /// await client.Catalog.Object.DeleteAsync(new DeleteObjectRequest { ObjectId = "object_id" }); + /// await client.Default.Catalog.Object.DeleteAsync(new DeleteObjectRequest { ObjectId = "object_id" }); /// public async Task DeleteAsync( DeleteObjectRequest request, diff --git a/src/Square/Catalog/Object/Requests/DeleteObjectRequest.cs b/src/Square/Default/Catalog/Object/Requests/DeleteObjectRequest.cs similarity index 94% rename from src/Square/Catalog/Object/Requests/DeleteObjectRequest.cs rename to src/Square/Default/Catalog/Object/Requests/DeleteObjectRequest.cs index a0e61802..f4332343 100644 --- a/src/Square/Catalog/Object/Requests/DeleteObjectRequest.cs +++ b/src/Square/Default/Catalog/Object/Requests/DeleteObjectRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Catalog.Object; +namespace Square.Default.Catalog; [Serializable] public record DeleteObjectRequest diff --git a/src/Square/Catalog/Object/Requests/GetObjectRequest.cs b/src/Square/Default/Catalog/Object/Requests/GetObjectRequest.cs similarity index 98% rename from src/Square/Catalog/Object/Requests/GetObjectRequest.cs rename to src/Square/Default/Catalog/Object/Requests/GetObjectRequest.cs index 10d76191..ad4e44c0 100644 --- a/src/Square/Catalog/Object/Requests/GetObjectRequest.cs +++ b/src/Square/Default/Catalog/Object/Requests/GetObjectRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Catalog.Object; +namespace Square.Default.Catalog; [Serializable] public record GetObjectRequest diff --git a/src/Square/Catalog/Object/Requests/UpsertCatalogObjectRequest.cs b/src/Square/Default/Catalog/Object/Requests/UpsertCatalogObjectRequest.cs similarity index 95% rename from src/Square/Catalog/Object/Requests/UpsertCatalogObjectRequest.cs rename to src/Square/Default/Catalog/Object/Requests/UpsertCatalogObjectRequest.cs index f702877a..70232005 100644 --- a/src/Square/Catalog/Object/Requests/UpsertCatalogObjectRequest.cs +++ b/src/Square/Default/Catalog/Object/Requests/UpsertCatalogObjectRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Catalog.Object; +namespace Square.Default.Catalog; [Serializable] public record UpsertCatalogObjectRequest diff --git a/src/Square/Catalog/Requests/BatchDeleteCatalogObjectsRequest.cs b/src/Square/Default/Catalog/Requests/BatchDeleteCatalogObjectsRequest.cs similarity index 96% rename from src/Square/Catalog/Requests/BatchDeleteCatalogObjectsRequest.cs rename to src/Square/Default/Catalog/Requests/BatchDeleteCatalogObjectsRequest.cs index 8f1cb016..54f9b754 100644 --- a/src/Square/Catalog/Requests/BatchDeleteCatalogObjectsRequest.cs +++ b/src/Square/Default/Catalog/Requests/BatchDeleteCatalogObjectsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Catalog; +namespace Square.Default; [Serializable] public record BatchDeleteCatalogObjectsRequest diff --git a/src/Square/Catalog/Requests/BatchGetCatalogObjectsRequest.cs b/src/Square/Default/Catalog/Requests/BatchGetCatalogObjectsRequest.cs similarity index 99% rename from src/Square/Catalog/Requests/BatchGetCatalogObjectsRequest.cs rename to src/Square/Default/Catalog/Requests/BatchGetCatalogObjectsRequest.cs index 507a8bdf..31971f90 100644 --- a/src/Square/Catalog/Requests/BatchGetCatalogObjectsRequest.cs +++ b/src/Square/Default/Catalog/Requests/BatchGetCatalogObjectsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Catalog; +namespace Square.Default; [Serializable] public record BatchGetCatalogObjectsRequest diff --git a/src/Square/Catalog/Requests/BatchUpsertCatalogObjectsRequest.cs b/src/Square/Default/Catalog/Requests/BatchUpsertCatalogObjectsRequest.cs similarity index 98% rename from src/Square/Catalog/Requests/BatchUpsertCatalogObjectsRequest.cs rename to src/Square/Default/Catalog/Requests/BatchUpsertCatalogObjectsRequest.cs index e5c8cf78..4d69fee4 100644 --- a/src/Square/Catalog/Requests/BatchUpsertCatalogObjectsRequest.cs +++ b/src/Square/Default/Catalog/Requests/BatchUpsertCatalogObjectsRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Catalog; +namespace Square.Default; [Serializable] public record BatchUpsertCatalogObjectsRequest diff --git a/src/Square/Catalog/Requests/ListCatalogRequest.cs b/src/Square/Default/Catalog/Requests/ListCatalogRequest.cs similarity index 98% rename from src/Square/Catalog/Requests/ListCatalogRequest.cs rename to src/Square/Default/Catalog/Requests/ListCatalogRequest.cs index d5763a68..92363860 100644 --- a/src/Square/Catalog/Requests/ListCatalogRequest.cs +++ b/src/Square/Default/Catalog/Requests/ListCatalogRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Catalog; +namespace Square.Default; [Serializable] public record ListCatalogRequest diff --git a/src/Square/Catalog/Requests/SearchCatalogItemsRequest.cs b/src/Square/Default/Catalog/Requests/SearchCatalogItemsRequest.cs similarity index 98% rename from src/Square/Catalog/Requests/SearchCatalogItemsRequest.cs rename to src/Square/Default/Catalog/Requests/SearchCatalogItemsRequest.cs index 2e3e0fd8..fdd644cf 100644 --- a/src/Square/Catalog/Requests/SearchCatalogItemsRequest.cs +++ b/src/Square/Default/Catalog/Requests/SearchCatalogItemsRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Catalog; +namespace Square.Default; [Serializable] public record SearchCatalogItemsRequest diff --git a/src/Square/Catalog/Requests/SearchCatalogObjectsRequest.cs b/src/Square/Default/Catalog/Requests/SearchCatalogObjectsRequest.cs similarity index 99% rename from src/Square/Catalog/Requests/SearchCatalogObjectsRequest.cs rename to src/Square/Default/Catalog/Requests/SearchCatalogObjectsRequest.cs index d53707c5..e8037908 100644 --- a/src/Square/Catalog/Requests/SearchCatalogObjectsRequest.cs +++ b/src/Square/Default/Catalog/Requests/SearchCatalogObjectsRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Catalog; +namespace Square.Default; [Serializable] public record SearchCatalogObjectsRequest diff --git a/src/Square/Catalog/Requests/UpdateItemModifierListsRequest.cs b/src/Square/Default/Catalog/Requests/UpdateItemModifierListsRequest.cs similarity index 97% rename from src/Square/Catalog/Requests/UpdateItemModifierListsRequest.cs rename to src/Square/Default/Catalog/Requests/UpdateItemModifierListsRequest.cs index 64f77825..9c67ae70 100644 --- a/src/Square/Catalog/Requests/UpdateItemModifierListsRequest.cs +++ b/src/Square/Default/Catalog/Requests/UpdateItemModifierListsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Catalog; +namespace Square.Default; [Serializable] public record UpdateItemModifierListsRequest diff --git a/src/Square/Catalog/Requests/UpdateItemTaxesRequest.cs b/src/Square/Default/Catalog/Requests/UpdateItemTaxesRequest.cs similarity index 97% rename from src/Square/Catalog/Requests/UpdateItemTaxesRequest.cs rename to src/Square/Default/Catalog/Requests/UpdateItemTaxesRequest.cs index 9ade9107..cdeaf852 100644 --- a/src/Square/Catalog/Requests/UpdateItemTaxesRequest.cs +++ b/src/Square/Default/Catalog/Requests/UpdateItemTaxesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Catalog; +namespace Square.Default; [Serializable] public record UpdateItemTaxesRequest diff --git a/src/Square/Channels/ChannelsClient.cs b/src/Square/Default/Channels/ChannelsClient.cs similarity index 96% rename from src/Square/Channels/ChannelsClient.cs rename to src/Square/Default/Channels/ChannelsClient.cs index 9d82c723..647b65fb 100644 --- a/src/Square/Channels/ChannelsClient.cs +++ b/src/Square/Default/Channels/ChannelsClient.cs @@ -2,7 +2,7 @@ using Square; using Square.Core; -namespace Square.Channels; +namespace Square.Default; public partial class ChannelsClient : IChannelsClient { @@ -77,7 +77,7 @@ private async Task ListInternalAsync( } /// - /// await client.Channels.ListAsync( + /// await client.Default.Channels.ListAsync( /// new ListChannelsRequest /// { /// ReferenceType = ReferenceType.UnknownType, @@ -122,7 +122,7 @@ public async Task> ListAsync( } /// - /// await client.Channels.BulkRetrieveAsync( + /// await client.Default.Channels.BulkRetrieveAsync( /// new BulkRetrieveChannelsRequest /// { /// ChannelIds = new List<string>() { "CH_9C03D0B59", "CH_6X139B5MN", "NOT_EXISTING" }, @@ -173,7 +173,7 @@ public async Task BulkRetrieveAsync( } /// - /// await client.Channels.GetAsync(new GetChannelsRequest { ChannelId = "channel_id" }); + /// await client.Default.Channels.GetAsync(new GetChannelsRequest { ChannelId = "channel_id" }); /// public async Task GetAsync( GetChannelsRequest request, diff --git a/src/Square/Channels/IChannelsClient.cs b/src/Square/Default/Channels/IChannelsClient.cs similarity index 95% rename from src/Square/Channels/IChannelsClient.cs rename to src/Square/Default/Channels/IChannelsClient.cs index 3c1fcb09..1dde15f2 100644 --- a/src/Square/Channels/IChannelsClient.cs +++ b/src/Square/Default/Channels/IChannelsClient.cs @@ -1,7 +1,7 @@ using Square; using Square.Core; -namespace Square.Channels; +namespace Square.Default; public partial interface IChannelsClient { diff --git a/src/Square/Channels/Requests/BulkRetrieveChannelsRequest.cs b/src/Square/Default/Channels/Requests/BulkRetrieveChannelsRequest.cs similarity index 92% rename from src/Square/Channels/Requests/BulkRetrieveChannelsRequest.cs rename to src/Square/Default/Channels/Requests/BulkRetrieveChannelsRequest.cs index 33ad9e84..65cafc08 100644 --- a/src/Square/Channels/Requests/BulkRetrieveChannelsRequest.cs +++ b/src/Square/Default/Channels/Requests/BulkRetrieveChannelsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Channels; +namespace Square.Default; [Serializable] public record BulkRetrieveChannelsRequest diff --git a/src/Square/Channels/Requests/GetChannelsRequest.cs b/src/Square/Default/Channels/Requests/GetChannelsRequest.cs similarity index 92% rename from src/Square/Channels/Requests/GetChannelsRequest.cs rename to src/Square/Default/Channels/Requests/GetChannelsRequest.cs index 4ec26d7c..4e61c5aa 100644 --- a/src/Square/Channels/Requests/GetChannelsRequest.cs +++ b/src/Square/Default/Channels/Requests/GetChannelsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Channels; +namespace Square.Default; [Serializable] public record GetChannelsRequest diff --git a/src/Square/Channels/Requests/ListChannelsRequest.cs b/src/Square/Default/Channels/Requests/ListChannelsRequest.cs similarity index 96% rename from src/Square/Channels/Requests/ListChannelsRequest.cs rename to src/Square/Default/Channels/Requests/ListChannelsRequest.cs index 367b7e47..53515563 100644 --- a/src/Square/Channels/Requests/ListChannelsRequest.cs +++ b/src/Square/Default/Channels/Requests/ListChannelsRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Channels; +namespace Square.Default; [Serializable] public record ListChannelsRequest diff --git a/src/Square/Checkout/CheckoutClient.cs b/src/Square/Default/Checkout/CheckoutClient.cs similarity index 95% rename from src/Square/Checkout/CheckoutClient.cs rename to src/Square/Default/Checkout/CheckoutClient.cs index a6b46ca9..3ef39119 100644 --- a/src/Square/Checkout/CheckoutClient.cs +++ b/src/Square/Default/Checkout/CheckoutClient.cs @@ -1,9 +1,9 @@ using System.Text.Json; using Square; -using Square.Checkout.PaymentLinks; using Square.Core; +using Square.Default.Checkout_; -namespace Square.Checkout; +namespace Square.Default; public partial class CheckoutClient : ICheckoutClient { @@ -21,7 +21,7 @@ internal CheckoutClient(RawClient client) /// Retrieves the location-level settings for a Square-hosted checkout page. /// /// - /// await client.Checkout.RetrieveLocationSettingsAsync( + /// await client.Default.Checkout.RetrieveLocationSettingsAsync( /// new RetrieveLocationSettingsRequest { LocationId = "location_id" } /// ); /// @@ -73,7 +73,7 @@ public async Task RetrieveLocationSettingsAsyn /// Updates the location-level settings for a Square-hosted checkout page. /// /// - /// await client.Checkout.UpdateLocationSettingsAsync( + /// await client.Default.Checkout.UpdateLocationSettingsAsync( /// new UpdateLocationSettingsRequest /// { /// LocationId = "location_id", @@ -131,7 +131,7 @@ public async Task UpdateLocationSettingsAsync( /// Retrieves the merchant-level settings for a Square-hosted checkout page. /// /// - /// await client.Checkout.RetrieveMerchantSettingsAsync(); + /// await client.Default.Checkout.RetrieveMerchantSettingsAsync(); /// public async Task RetrieveMerchantSettingsAsync( RequestOptions? options = null, @@ -177,7 +177,7 @@ public async Task RetrieveMerchantSettingsAsyn /// Updates the merchant-level settings for a Square-hosted checkout page. /// /// - /// await client.Checkout.UpdateMerchantSettingsAsync( + /// await client.Default.Checkout.UpdateMerchantSettingsAsync( /// new UpdateMerchantSettingsRequest { MerchantSettings = new CheckoutMerchantSettings() } /// ); /// diff --git a/src/Square/Checkout/ICheckoutClient.cs b/src/Square/Default/Checkout/ICheckoutClient.cs similarity index 95% rename from src/Square/Checkout/ICheckoutClient.cs rename to src/Square/Default/Checkout/ICheckoutClient.cs index 905e4d92..1747dadd 100644 --- a/src/Square/Checkout/ICheckoutClient.cs +++ b/src/Square/Default/Checkout/ICheckoutClient.cs @@ -1,7 +1,7 @@ using Square; -using Square.Checkout.PaymentLinks; +using Square.Default.Checkout_; -namespace Square.Checkout; +namespace Square.Default; public partial interface ICheckoutClient { diff --git a/src/Square/Checkout/PaymentLinks/IPaymentLinksClient.cs b/src/Square/Default/Checkout/PaymentLinks/IPaymentLinksClient.cs similarity index 96% rename from src/Square/Checkout/PaymentLinks/IPaymentLinksClient.cs rename to src/Square/Default/Checkout/PaymentLinks/IPaymentLinksClient.cs index 5da266fd..af020176 100644 --- a/src/Square/Checkout/PaymentLinks/IPaymentLinksClient.cs +++ b/src/Square/Default/Checkout/PaymentLinks/IPaymentLinksClient.cs @@ -1,7 +1,8 @@ using Square; using Square.Core; +using Square.Default; -namespace Square.Checkout.PaymentLinks; +namespace Square.Default.Checkout_; public partial interface IPaymentLinksClient { diff --git a/src/Square/Checkout/PaymentLinks/PaymentLinksClient.cs b/src/Square/Default/Checkout/PaymentLinks/PaymentLinksClient.cs similarity index 95% rename from src/Square/Checkout/PaymentLinks/PaymentLinksClient.cs rename to src/Square/Default/Checkout/PaymentLinks/PaymentLinksClient.cs index da058a97..3bf5b9ec 100644 --- a/src/Square/Checkout/PaymentLinks/PaymentLinksClient.cs +++ b/src/Square/Default/Checkout/PaymentLinks/PaymentLinksClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Checkout.PaymentLinks; +namespace Square.Default.Checkout_; public partial class PaymentLinksClient : IPaymentLinksClient { @@ -71,7 +72,7 @@ private async Task ListInternalAsync( /// Lists all payment links. /// /// - /// await client.Checkout.PaymentLinks.ListAsync( + /// await client.Default.Checkout.PaymentLinks.ListAsync( /// new ListPaymentLinksRequest { Cursor = "cursor", Limit = 1 } /// ); /// @@ -112,7 +113,7 @@ public async Task> ListAsync( /// Creates a Square-hosted checkout page. Applications can share the resulting payment link with their buyer to pay for goods and services. /// /// - /// await client.Checkout.PaymentLinks.CreateAsync( + /// await client.Default.Checkout.PaymentLinks.CreateAsync( /// new CreatePaymentLinkRequest /// { /// IdempotencyKey = "cd9e25dc-d9f2-4430-aedb-61605070e95f", @@ -172,7 +173,7 @@ public async Task CreateAsync( /// Retrieves a payment link. /// /// - /// await client.Checkout.PaymentLinks.GetAsync(new GetPaymentLinksRequest { Id = "id" }); + /// await client.Default.Checkout.PaymentLinks.GetAsync(new GetPaymentLinksRequest { Id = "id" }); /// public async Task GetAsync( GetPaymentLinksRequest request, @@ -224,7 +225,7 @@ public async Task GetAsync( /// You cannot update other fields such as the `order_id`, `version`, `URL`, or `timestamp` field. /// /// - /// await client.Checkout.PaymentLinks.UpdateAsync( + /// await client.Default.Checkout.PaymentLinks.UpdateAsync( /// new UpdatePaymentLinkRequest /// { /// Id = "id", @@ -286,7 +287,7 @@ public async Task UpdateAsync( /// Deletes a payment link. /// /// - /// await client.Checkout.PaymentLinks.DeleteAsync(new DeletePaymentLinksRequest { Id = "id" }); + /// await client.Default.Checkout.PaymentLinks.DeleteAsync(new DeletePaymentLinksRequest { Id = "id" }); /// public async Task DeleteAsync( DeletePaymentLinksRequest request, diff --git a/src/Square/Checkout/PaymentLinks/Requests/CreatePaymentLinkRequest.cs b/src/Square/Default/Checkout/PaymentLinks/Requests/CreatePaymentLinkRequest.cs similarity index 97% rename from src/Square/Checkout/PaymentLinks/Requests/CreatePaymentLinkRequest.cs rename to src/Square/Default/Checkout/PaymentLinks/Requests/CreatePaymentLinkRequest.cs index 43c490d5..65f40640 100644 --- a/src/Square/Checkout/PaymentLinks/Requests/CreatePaymentLinkRequest.cs +++ b/src/Square/Default/Checkout/PaymentLinks/Requests/CreatePaymentLinkRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Checkout.PaymentLinks; +namespace Square.Default.Checkout_; [Serializable] public record CreatePaymentLinkRequest diff --git a/src/Square/Checkout/PaymentLinks/Requests/DeletePaymentLinksRequest.cs b/src/Square/Default/Checkout/PaymentLinks/Requests/DeletePaymentLinksRequest.cs similarity index 90% rename from src/Square/Checkout/PaymentLinks/Requests/DeletePaymentLinksRequest.cs rename to src/Square/Default/Checkout/PaymentLinks/Requests/DeletePaymentLinksRequest.cs index 5a0fbce6..64d23f8a 100644 --- a/src/Square/Checkout/PaymentLinks/Requests/DeletePaymentLinksRequest.cs +++ b/src/Square/Default/Checkout/PaymentLinks/Requests/DeletePaymentLinksRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Checkout.PaymentLinks; +namespace Square.Default.Checkout_; [Serializable] public record DeletePaymentLinksRequest diff --git a/src/Square/Checkout/PaymentLinks/Requests/GetPaymentLinksRequest.cs b/src/Square/Default/Checkout/PaymentLinks/Requests/GetPaymentLinksRequest.cs similarity index 90% rename from src/Square/Checkout/PaymentLinks/Requests/GetPaymentLinksRequest.cs rename to src/Square/Default/Checkout/PaymentLinks/Requests/GetPaymentLinksRequest.cs index f7e08f07..b4ce14cb 100644 --- a/src/Square/Checkout/PaymentLinks/Requests/GetPaymentLinksRequest.cs +++ b/src/Square/Default/Checkout/PaymentLinks/Requests/GetPaymentLinksRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Checkout.PaymentLinks; +namespace Square.Default.Checkout_; [Serializable] public record GetPaymentLinksRequest diff --git a/src/Square/Checkout/PaymentLinks/Requests/ListPaymentLinksRequest.cs b/src/Square/Default/Checkout/PaymentLinks/Requests/ListPaymentLinksRequest.cs similarity index 96% rename from src/Square/Checkout/PaymentLinks/Requests/ListPaymentLinksRequest.cs rename to src/Square/Default/Checkout/PaymentLinks/Requests/ListPaymentLinksRequest.cs index c23379f3..fd3830c4 100644 --- a/src/Square/Checkout/PaymentLinks/Requests/ListPaymentLinksRequest.cs +++ b/src/Square/Default/Checkout/PaymentLinks/Requests/ListPaymentLinksRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Checkout.PaymentLinks; +namespace Square.Default.Checkout_; [Serializable] public record ListPaymentLinksRequest diff --git a/src/Square/Checkout/PaymentLinks/Requests/UpdatePaymentLinkRequest.cs b/src/Square/Default/Checkout/PaymentLinks/Requests/UpdatePaymentLinkRequest.cs similarity index 92% rename from src/Square/Checkout/PaymentLinks/Requests/UpdatePaymentLinkRequest.cs rename to src/Square/Default/Checkout/PaymentLinks/Requests/UpdatePaymentLinkRequest.cs index f15c4d28..31697fa8 100644 --- a/src/Square/Checkout/PaymentLinks/Requests/UpdatePaymentLinkRequest.cs +++ b/src/Square/Default/Checkout/PaymentLinks/Requests/UpdatePaymentLinkRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Checkout.PaymentLinks; +namespace Square.Default.Checkout_; [Serializable] public record UpdatePaymentLinkRequest diff --git a/src/Square/Checkout/Requests/RetrieveLocationSettingsRequest.cs b/src/Square/Default/Checkout/Requests/RetrieveLocationSettingsRequest.cs similarity index 93% rename from src/Square/Checkout/Requests/RetrieveLocationSettingsRequest.cs rename to src/Square/Default/Checkout/Requests/RetrieveLocationSettingsRequest.cs index d5bfe047..95793f27 100644 --- a/src/Square/Checkout/Requests/RetrieveLocationSettingsRequest.cs +++ b/src/Square/Default/Checkout/Requests/RetrieveLocationSettingsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Checkout; +namespace Square.Default; [Serializable] public record RetrieveLocationSettingsRequest diff --git a/src/Square/Checkout/Requests/UpdateLocationSettingsRequest.cs b/src/Square/Default/Checkout/Requests/UpdateLocationSettingsRequest.cs similarity index 94% rename from src/Square/Checkout/Requests/UpdateLocationSettingsRequest.cs rename to src/Square/Default/Checkout/Requests/UpdateLocationSettingsRequest.cs index b59e2957..10855805 100644 --- a/src/Square/Checkout/Requests/UpdateLocationSettingsRequest.cs +++ b/src/Square/Default/Checkout/Requests/UpdateLocationSettingsRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Checkout; +namespace Square.Default; [Serializable] public record UpdateLocationSettingsRequest diff --git a/src/Square/Checkout/Requests/UpdateMerchantSettingsRequest.cs b/src/Square/Default/Checkout/Requests/UpdateMerchantSettingsRequest.cs similarity index 92% rename from src/Square/Checkout/Requests/UpdateMerchantSettingsRequest.cs rename to src/Square/Default/Checkout/Requests/UpdateMerchantSettingsRequest.cs index 219b981e..330090a4 100644 --- a/src/Square/Checkout/Requests/UpdateMerchantSettingsRequest.cs +++ b/src/Square/Default/Checkout/Requests/UpdateMerchantSettingsRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Checkout; +namespace Square.Default; [Serializable] public record UpdateMerchantSettingsRequest diff --git a/src/Square/Checkout/Types/Checkout.cs b/src/Square/Default/Checkout/Types/Checkout.cs similarity index 99% rename from src/Square/Checkout/Types/Checkout.cs rename to src/Square/Default/Checkout/Types/Checkout.cs index 2ca0e234..d9e647de 100644 --- a/src/Square/Checkout/Types/Checkout.cs +++ b/src/Square/Default/Checkout/Types/Checkout.cs @@ -3,7 +3,7 @@ using Square; using Square.Core; -namespace Square.Checkout; +namespace Square.Default; /// /// Square Checkout lets merchants accept online payments for supported diff --git a/src/Square/Customers/Cards/CardsClient.cs b/src/Square/Default/Customers/Cards/CardsClient.cs similarity index 96% rename from src/Square/Customers/Cards/CardsClient.cs rename to src/Square/Default/Customers/Cards/CardsClient.cs index 5b13c56e..6e42819f 100644 --- a/src/Square/Customers/Cards/CardsClient.cs +++ b/src/Square/Default/Customers/Cards/CardsClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Customers.Cards; +namespace Square.Default.Customers; public partial class CardsClient : ICardsClient { @@ -21,7 +22,7 @@ internal CardsClient(RawClient client) /// with the provided nonce during the _first_ call. /// /// - /// await client.Customers.Cards.CreateAsync( + /// await client.Default.Customers.Cards.CreateAsync( /// new CreateCustomerCardRequest /// { /// CustomerId = "customer_id", @@ -89,7 +90,7 @@ public async Task CreateAsync( /// Removes a card on file from a customer. /// /// - /// await client.Customers.Cards.DeleteAsync( + /// await client.Default.Customers.Cards.DeleteAsync( /// new DeleteCardsRequest { CustomerId = "customer_id", CardId = "card_id" } /// ); /// diff --git a/src/Square/Customers/Cards/ICardsClient.cs b/src/Square/Default/Customers/Cards/ICardsClient.cs similarity index 93% rename from src/Square/Customers/Cards/ICardsClient.cs rename to src/Square/Default/Customers/Cards/ICardsClient.cs index d7c106df..2b638c63 100644 --- a/src/Square/Customers/Cards/ICardsClient.cs +++ b/src/Square/Default/Customers/Cards/ICardsClient.cs @@ -1,6 +1,7 @@ using Square; +using Square.Default; -namespace Square.Customers.Cards; +namespace Square.Default.Customers; public partial interface ICardsClient { diff --git a/src/Square/Customers/Cards/Requests/CreateCustomerCardRequest.cs b/src/Square/Default/Customers/Cards/Requests/CreateCustomerCardRequest.cs similarity index 97% rename from src/Square/Customers/Cards/Requests/CreateCustomerCardRequest.cs rename to src/Square/Default/Customers/Cards/Requests/CreateCustomerCardRequest.cs index 31b73467..baa4f037 100644 --- a/src/Square/Customers/Cards/Requests/CreateCustomerCardRequest.cs +++ b/src/Square/Default/Customers/Cards/Requests/CreateCustomerCardRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Customers.Cards; +namespace Square.Default.Customers; [Serializable] public record CreateCustomerCardRequest diff --git a/src/Square/Customers/Cards/Requests/DeleteCardsRequest.cs b/src/Square/Default/Customers/Cards/Requests/DeleteCardsRequest.cs similarity index 93% rename from src/Square/Customers/Cards/Requests/DeleteCardsRequest.cs rename to src/Square/Default/Customers/Cards/Requests/DeleteCardsRequest.cs index b3522749..88aa8999 100644 --- a/src/Square/Customers/Cards/Requests/DeleteCardsRequest.cs +++ b/src/Square/Default/Customers/Cards/Requests/DeleteCardsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Customers.Cards; +namespace Square.Default.Customers; [Serializable] public record DeleteCardsRequest diff --git a/src/Square/Customers/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs b/src/Square/Default/Customers/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs similarity index 95% rename from src/Square/Customers/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs rename to src/Square/Default/Customers/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs index a1416ac6..4b5af4a7 100644 --- a/src/Square/Customers/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs +++ b/src/Square/Default/Customers/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Customers.CustomAttributeDefinitions; +namespace Square.Default.Customers; public partial class CustomAttributeDefinitionsClient : ICustomAttributeDefinitionsClient { @@ -83,8 +84,8 @@ private async Task ListInternalA /// seller-defined custom attributes (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`. /// /// - /// await client.Customers.CustomAttributeDefinitions.ListAsync( - /// new Square.Customers.CustomAttributeDefinitions.ListCustomAttributeDefinitionsRequest + /// await client.Default.Customers.CustomAttributeDefinitions.ListAsync( + /// new Square.Default.Customers.ListCustomAttributeDefinitionsRequest /// { /// Limit = 1, /// Cursor = "cursor", @@ -138,7 +139,7 @@ public async Task> ListAsync( /// `VISIBILITY_HIDDEN`. /// /// - /// await client.Customers.CustomAttributeDefinitions.CreateAsync( + /// await client.Default.Customers.CustomAttributeDefinitions.CreateAsync( /// new CreateCustomerCustomAttributeDefinitionRequest /// { /// CustomAttributeDefinition = new CustomAttributeDefinition @@ -211,12 +212,8 @@ public async Task CreateAsync( /// (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`. /// /// - /// await client.Customers.CustomAttributeDefinitions.GetAsync( - /// new Square.Customers.CustomAttributeDefinitions.GetCustomAttributeDefinitionsRequest - /// { - /// Key = "key", - /// Version = 1, - /// } + /// await client.Default.Customers.CustomAttributeDefinitions.GetAsync( + /// new Square.Default.Customers.GetCustomAttributeDefinitionsRequest { Key = "key", Version = 1 } /// ); /// public async Task GetAsync( @@ -281,7 +278,7 @@ public async Task GetAsync( /// all custom attributes in exported customer data, including those set to `VISIBILITY_HIDDEN`. /// /// - /// await client.Customers.CustomAttributeDefinitions.UpdateAsync( + /// await client.Default.Customers.CustomAttributeDefinitions.UpdateAsync( /// new UpdateCustomerCustomAttributeDefinitionRequest /// { /// Key = "key", @@ -350,11 +347,8 @@ public async Task UpdateAsync( /// Only the definition owner can delete a custom attribute definition. /// /// - /// await client.Customers.CustomAttributeDefinitions.DeleteAsync( - /// new Square.Customers.CustomAttributeDefinitions.DeleteCustomAttributeDefinitionsRequest - /// { - /// Key = "key", - /// } + /// await client.Default.Customers.CustomAttributeDefinitions.DeleteAsync( + /// new Square.Default.Customers.DeleteCustomAttributeDefinitionsRequest { Key = "key" } /// ); /// public async Task DeleteAsync( @@ -420,7 +414,7 @@ public async Task DeleteAsync( /// (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`. /// /// - /// await client.Customers.CustomAttributeDefinitions.BatchUpsertAsync( + /// await client.Default.Customers.CustomAttributeDefinitions.BatchUpsertAsync( /// new BatchUpsertCustomerCustomAttributesRequest /// { /// Values = new Dictionary< diff --git a/src/Square/Customers/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs b/src/Square/Default/Customers/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs similarity index 98% rename from src/Square/Customers/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs rename to src/Square/Default/Customers/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs index 8c7020d1..6aafe0e4 100644 --- a/src/Square/Customers/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs +++ b/src/Square/Default/Customers/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs @@ -1,7 +1,8 @@ using Square; using Square.Core; +using Square.Default; -namespace Square.Customers.CustomAttributeDefinitions; +namespace Square.Default.Customers; public partial interface ICustomAttributeDefinitionsClient { diff --git a/src/Square/Customers/CustomAttributeDefinitions/Requests/BatchUpsertCustomerCustomAttributesRequest.cs b/src/Square/Default/Customers/CustomAttributeDefinitions/Requests/BatchUpsertCustomerCustomAttributesRequest.cs similarity index 92% rename from src/Square/Customers/CustomAttributeDefinitions/Requests/BatchUpsertCustomerCustomAttributesRequest.cs rename to src/Square/Default/Customers/CustomAttributeDefinitions/Requests/BatchUpsertCustomerCustomAttributesRequest.cs index 3a483ecb..42da8f4b 100644 --- a/src/Square/Customers/CustomAttributeDefinitions/Requests/BatchUpsertCustomerCustomAttributesRequest.cs +++ b/src/Square/Default/Customers/CustomAttributeDefinitions/Requests/BatchUpsertCustomerCustomAttributesRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Customers.CustomAttributeDefinitions; +namespace Square.Default.Customers; [Serializable] public record BatchUpsertCustomerCustomAttributesRequest diff --git a/src/Square/Customers/CustomAttributeDefinitions/Requests/CreateCustomerCustomAttributeDefinitionRequest.cs b/src/Square/Default/Customers/CustomAttributeDefinitions/Requests/CreateCustomerCustomAttributeDefinitionRequest.cs similarity index 95% rename from src/Square/Customers/CustomAttributeDefinitions/Requests/CreateCustomerCustomAttributeDefinitionRequest.cs rename to src/Square/Default/Customers/CustomAttributeDefinitions/Requests/CreateCustomerCustomAttributeDefinitionRequest.cs index ef533b4d..9ad3ed56 100644 --- a/src/Square/Customers/CustomAttributeDefinitions/Requests/CreateCustomerCustomAttributeDefinitionRequest.cs +++ b/src/Square/Default/Customers/CustomAttributeDefinitions/Requests/CreateCustomerCustomAttributeDefinitionRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Customers.CustomAttributeDefinitions; +namespace Square.Default.Customers; [Serializable] public record CreateCustomerCustomAttributeDefinitionRequest diff --git a/src/Square/Bookings/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs b/src/Square/Default/Customers/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs similarity index 88% rename from src/Square/Bookings/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs rename to src/Square/Default/Customers/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs index a359dff6..1a844efb 100644 --- a/src/Square/Bookings/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs +++ b/src/Square/Default/Customers/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Bookings.CustomAttributeDefinitions; +namespace Square.Default.Customers; [Serializable] public record DeleteCustomAttributeDefinitionsRequest diff --git a/src/Square/Locations/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs b/src/Square/Default/Customers/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs similarity index 94% rename from src/Square/Locations/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs rename to src/Square/Default/Customers/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs index 5b3d961f..b7c88d99 100644 --- a/src/Square/Locations/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs +++ b/src/Square/Default/Customers/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Locations.CustomAttributeDefinitions; +namespace Square.Default.Customers; [Serializable] public record GetCustomAttributeDefinitionsRequest diff --git a/src/Square/Customers/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs b/src/Square/Default/Customers/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs similarity index 95% rename from src/Square/Customers/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs rename to src/Square/Default/Customers/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs index 9aefc5df..bc2da985 100644 --- a/src/Square/Customers/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs +++ b/src/Square/Default/Customers/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Customers.CustomAttributeDefinitions; +namespace Square.Default.Customers; [Serializable] public record ListCustomAttributeDefinitionsRequest diff --git a/src/Square/Customers/CustomAttributeDefinitions/Requests/UpdateCustomerCustomAttributeDefinitionRequest.cs b/src/Square/Default/Customers/CustomAttributeDefinitions/Requests/UpdateCustomerCustomAttributeDefinitionRequest.cs similarity index 96% rename from src/Square/Customers/CustomAttributeDefinitions/Requests/UpdateCustomerCustomAttributeDefinitionRequest.cs rename to src/Square/Default/Customers/CustomAttributeDefinitions/Requests/UpdateCustomerCustomAttributeDefinitionRequest.cs index 9ea5a9c5..eb8477c5 100644 --- a/src/Square/Customers/CustomAttributeDefinitions/Requests/UpdateCustomerCustomAttributeDefinitionRequest.cs +++ b/src/Square/Default/Customers/CustomAttributeDefinitions/Requests/UpdateCustomerCustomAttributeDefinitionRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Customers.CustomAttributeDefinitions; +namespace Square.Default.Customers; [Serializable] public record UpdateCustomerCustomAttributeDefinitionRequest diff --git a/src/Square/Customers/CustomAttributes/CustomAttributesClient.cs b/src/Square/Default/Customers/CustomAttributes/CustomAttributesClient.cs similarity index 95% rename from src/Square/Customers/CustomAttributes/CustomAttributesClient.cs rename to src/Square/Default/Customers/CustomAttributes/CustomAttributesClient.cs index 0dc93587..1c00a4fc 100644 --- a/src/Square/Customers/CustomAttributes/CustomAttributesClient.cs +++ b/src/Square/Default/Customers/CustomAttributes/CustomAttributesClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Customers.CustomAttributes; +namespace Square.Default.Customers; public partial class CustomAttributesClient : ICustomAttributesClient { @@ -92,8 +93,8 @@ private async Task ListInternalAsync( /// and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. /// /// - /// await client.Customers.CustomAttributes.ListAsync( - /// new Square.Customers.CustomAttributes.ListCustomAttributesRequest + /// await client.Default.Customers.CustomAttributes.ListAsync( + /// new Square.Default.Customers.ListCustomAttributesRequest /// { /// CustomerId = "customer_id", /// Limit = 1, @@ -146,8 +147,8 @@ public async Task> ListAsync( /// (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`. /// /// - /// await client.Customers.CustomAttributes.GetAsync( - /// new Square.Customers.CustomAttributes.GetCustomAttributesRequest + /// await client.Default.Customers.CustomAttributes.GetAsync( + /// new Square.Default.Customers.GetCustomAttributesRequest /// { /// CustomerId = "customer_id", /// Key = "key", @@ -223,7 +224,7 @@ public async Task GetAsync( /// (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`. /// /// - /// await client.Customers.CustomAttributes.UpsertAsync( + /// await client.Default.Customers.CustomAttributes.UpsertAsync( /// new UpsertCustomerCustomAttributeRequest /// { /// CustomerId = "customer_id", @@ -287,8 +288,8 @@ public async Task UpsertAsync( /// (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`. /// /// - /// await client.Customers.CustomAttributes.DeleteAsync( - /// new Square.Customers.CustomAttributes.DeleteCustomAttributesRequest + /// await client.Default.Customers.CustomAttributes.DeleteAsync( + /// new Square.Default.Customers.DeleteCustomAttributesRequest /// { /// CustomerId = "customer_id", /// Key = "key", diff --git a/src/Square/Customers/CustomAttributes/ICustomAttributesClient.cs b/src/Square/Default/Customers/CustomAttributes/ICustomAttributesClient.cs similarity index 98% rename from src/Square/Customers/CustomAttributes/ICustomAttributesClient.cs rename to src/Square/Default/Customers/CustomAttributes/ICustomAttributesClient.cs index 2aaa6a00..2b16fec6 100644 --- a/src/Square/Customers/CustomAttributes/ICustomAttributesClient.cs +++ b/src/Square/Default/Customers/CustomAttributes/ICustomAttributesClient.cs @@ -1,7 +1,8 @@ using Square; using Square.Core; +using Square.Default; -namespace Square.Customers.CustomAttributes; +namespace Square.Default.Customers; public partial interface ICustomAttributesClient { diff --git a/src/Square/Customers/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs b/src/Square/Default/Customers/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs similarity index 94% rename from src/Square/Customers/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs rename to src/Square/Default/Customers/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs index cdf55574..ba0cbff7 100644 --- a/src/Square/Customers/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs +++ b/src/Square/Default/Customers/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Customers.CustomAttributes; +namespace Square.Default.Customers; [Serializable] public record DeleteCustomAttributesRequest diff --git a/src/Square/Customers/CustomAttributes/Requests/GetCustomAttributesRequest.cs b/src/Square/Default/Customers/CustomAttributes/Requests/GetCustomAttributesRequest.cs similarity index 97% rename from src/Square/Customers/CustomAttributes/Requests/GetCustomAttributesRequest.cs rename to src/Square/Default/Customers/CustomAttributes/Requests/GetCustomAttributesRequest.cs index 0f81f051..bb98a7dd 100644 --- a/src/Square/Customers/CustomAttributes/Requests/GetCustomAttributesRequest.cs +++ b/src/Square/Default/Customers/CustomAttributes/Requests/GetCustomAttributesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Customers.CustomAttributes; +namespace Square.Default.Customers; [Serializable] public record GetCustomAttributesRequest diff --git a/src/Square/Customers/CustomAttributes/Requests/ListCustomAttributesRequest.cs b/src/Square/Default/Customers/CustomAttributes/Requests/ListCustomAttributesRequest.cs similarity index 97% rename from src/Square/Customers/CustomAttributes/Requests/ListCustomAttributesRequest.cs rename to src/Square/Default/Customers/CustomAttributes/Requests/ListCustomAttributesRequest.cs index e4a5d886..9b65abff 100644 --- a/src/Square/Customers/CustomAttributes/Requests/ListCustomAttributesRequest.cs +++ b/src/Square/Default/Customers/CustomAttributes/Requests/ListCustomAttributesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Customers.CustomAttributes; +namespace Square.Default.Customers; [Serializable] public record ListCustomAttributesRequest diff --git a/src/Square/Customers/CustomAttributes/Requests/UpsertCustomerCustomAttributeRequest.cs b/src/Square/Default/Customers/CustomAttributes/Requests/UpsertCustomerCustomAttributeRequest.cs similarity index 96% rename from src/Square/Customers/CustomAttributes/Requests/UpsertCustomerCustomAttributeRequest.cs rename to src/Square/Default/Customers/CustomAttributes/Requests/UpsertCustomerCustomAttributeRequest.cs index 86293cfb..7edcdc3a 100644 --- a/src/Square/Customers/CustomAttributes/Requests/UpsertCustomerCustomAttributeRequest.cs +++ b/src/Square/Default/Customers/CustomAttributes/Requests/UpsertCustomerCustomAttributeRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Customers.CustomAttributes; +namespace Square.Default.Customers; [Serializable] public record UpsertCustomerCustomAttributeRequest diff --git a/src/Square/Customers/CustomersClient.cs b/src/Square/Default/Customers/CustomersClient.cs similarity index 95% rename from src/Square/Customers/CustomersClient.cs rename to src/Square/Default/Customers/CustomersClient.cs index 3993cfb2..afcf08f7 100644 --- a/src/Square/Customers/CustomersClient.cs +++ b/src/Square/Default/Customers/CustomersClient.cs @@ -1,10 +1,9 @@ using System.Text.Json; using Square; using Square.Core; -using Square.Customers.Groups; -using Square.Customers.Segments; +using Square.Default.Customers; -namespace Square.Customers; +namespace Square.Default; public partial class CustomersClient : ICustomersClient { @@ -13,25 +12,24 @@ public partial class CustomersClient : ICustomersClient internal CustomersClient(RawClient client) { _client = client; - CustomAttributeDefinitions = - new Square.Customers.CustomAttributeDefinitions.CustomAttributeDefinitionsClient( - _client - ); + CustomAttributeDefinitions = new Square.Default.Customers.CustomAttributeDefinitionsClient( + _client + ); Groups = new GroupsClient(_client); Segments = new SegmentsClient(_client); - Cards = new Square.Customers.Cards.CardsClient(_client); - CustomAttributes = new Square.Customers.CustomAttributes.CustomAttributesClient(_client); + Cards = new Square.Default.Customers.CardsClient(_client); + CustomAttributes = new Square.Default.Customers.CustomAttributesClient(_client); } - public Square.Customers.CustomAttributeDefinitions.CustomAttributeDefinitionsClient CustomAttributeDefinitions { get; } + public Square.Default.Customers.CustomAttributeDefinitionsClient CustomAttributeDefinitions { get; } public GroupsClient Groups { get; } public SegmentsClient Segments { get; } - public Square.Customers.Cards.CardsClient Cards { get; } + public Square.Default.Customers.CardsClient Cards { get; } - public Square.Customers.CustomAttributes.CustomAttributesClient CustomAttributes { get; } + public Square.Default.Customers.CustomAttributesClient CustomAttributes { get; } /// /// Lists customer profiles associated with a Square account. @@ -111,7 +109,7 @@ private async Task ListInternalAsync( /// profiles can take closer to one minute or longer, especially during network incidents and outages. /// /// - /// await client.Customers.ListAsync( + /// await client.Default.Customers.ListAsync( /// new ListCustomersRequest /// { /// Cursor = "cursor", @@ -168,7 +166,7 @@ public async Task> ListAsync( /// - `phone_number` /// /// - /// await client.Customers.CreateAsync( + /// await client.Default.Customers.CreateAsync( /// new CreateCustomerRequest /// { /// GivenName = "Amelia", @@ -246,7 +244,7 @@ public async Task CreateAsync( /// - `phone_number` /// /// - /// await client.Customers.BatchCreateAsync( + /// await client.Default.Customers.BatchCreateAsync( /// new BulkCreateCustomersRequest /// { /// Customers = new Dictionary<string, BulkCreateCustomerData>() @@ -346,7 +344,7 @@ public async Task BatchCreateAsync( /// The endpoint takes a list of customer IDs and returns a map of responses. /// /// - /// await client.Customers.BulkDeleteCustomersAsync( + /// await client.Default.Customers.BulkDeleteCustomersAsync( /// new BulkDeleteCustomersRequest /// { /// CustomerIds = new List<string>() @@ -407,7 +405,7 @@ public async Task BulkDeleteCustomersAsync( /// This endpoint takes a list of customer IDs and returns a map of responses. /// /// - /// await client.Customers.BulkRetrieveCustomersAsync( + /// await client.Default.Customers.BulkRetrieveCustomersAsync( /// new BulkRetrieveCustomersRequest /// { /// CustomerIds = new List<string>() @@ -468,7 +466,7 @@ public async Task BulkRetrieveCustomersAsync( /// This endpoint takes a map of individual update requests and returns a map of responses. /// /// - /// await client.Customers.BulkUpdateCustomersAsync( + /// await client.Default.Customers.BulkUpdateCustomersAsync( /// new BulkUpdateCustomersRequest /// { /// Customers = new Dictionary<string, BulkUpdateCustomerData>() @@ -550,7 +548,7 @@ public async Task BulkUpdateCustomersAsync( /// profiles can take closer to one minute or longer, especially during network incidents and outages. /// /// - /// await client.Customers.SearchAsync( + /// await client.Default.Customers.SearchAsync( /// new SearchCustomersRequest /// { /// Limit = 2, @@ -629,7 +627,7 @@ public async Task SearchAsync( /// Returns details for a single customer. /// /// - /// await client.Customers.GetAsync(new GetCustomersRequest { CustomerId = "customer_id" }); + /// await client.Default.Customers.GetAsync(new GetCustomersRequest { CustomerId = "customer_id" }); /// public async Task GetAsync( GetCustomersRequest request, @@ -682,7 +680,7 @@ public async Task GetAsync( /// To update a customer profile that was created by merging existing profiles, you must use the ID of the newly created profile. /// /// - /// await client.Customers.UpdateAsync( + /// await client.Default.Customers.UpdateAsync( /// new UpdateCustomerRequest /// { /// CustomerId = "customer_id", @@ -744,7 +742,7 @@ public async Task UpdateAsync( /// To delete a customer profile that was created by merging existing profiles, you must use the ID of the newly created profile. /// /// - /// await client.Customers.DeleteAsync( + /// await client.Default.Customers.DeleteAsync( /// new DeleteCustomersRequest { CustomerId = "customer_id", Version = 1000000 } /// ); /// diff --git a/src/Square/Customers/Groups/GroupsClient.cs b/src/Square/Default/Customers/Groups/GroupsClient.cs similarity index 95% rename from src/Square/Customers/Groups/GroupsClient.cs rename to src/Square/Default/Customers/Groups/GroupsClient.cs index 7e271592..6f6a05e6 100644 --- a/src/Square/Customers/Groups/GroupsClient.cs +++ b/src/Square/Default/Customers/Groups/GroupsClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Customers.Groups; +namespace Square.Default.Customers; public partial class GroupsClient : IGroupsClient { @@ -71,7 +72,9 @@ private async Task ListInternalAsync( /// Retrieves the list of customer groups of a business. /// /// - /// await client.Customers.Groups.ListAsync(new ListGroupsRequest { Cursor = "cursor", Limit = 1 }); + /// await client.Default.Customers.Groups.ListAsync( + /// new ListGroupsRequest { Cursor = "cursor", Limit = 1 } + /// ); /// public async Task> ListAsync( ListGroupsRequest request, @@ -112,7 +115,7 @@ public async Task> ListAsync( /// The request must include the `name` value of the group. /// /// - /// await client.Customers.Groups.CreateAsync( + /// await client.Default.Customers.Groups.CreateAsync( /// new CreateCustomerGroupRequest { Group = new CustomerGroup { Name = "Loyal Customers" } } /// ); /// @@ -163,7 +166,7 @@ public async Task CreateAsync( /// Retrieves a specific customer group as identified by the `group_id` value. /// /// - /// await client.Customers.Groups.GetAsync(new GetGroupsRequest { GroupId = "group_id" }); + /// await client.Default.Customers.Groups.GetAsync(new GetGroupsRequest { GroupId = "group_id" }); /// public async Task GetAsync( GetGroupsRequest request, @@ -213,7 +216,7 @@ public async Task GetAsync( /// Updates a customer group as identified by the `group_id` value. /// /// - /// await client.Customers.Groups.UpdateAsync( + /// await client.Default.Customers.Groups.UpdateAsync( /// new UpdateCustomerGroupRequest /// { /// GroupId = "group_id", @@ -271,7 +274,7 @@ public async Task UpdateAsync( /// Deletes a customer group as identified by the `group_id` value. /// /// - /// await client.Customers.Groups.DeleteAsync(new DeleteGroupsRequest { GroupId = "group_id" }); + /// await client.Default.Customers.Groups.DeleteAsync(new DeleteGroupsRequest { GroupId = "group_id" }); /// public async Task DeleteAsync( DeleteGroupsRequest request, @@ -324,7 +327,7 @@ public async Task DeleteAsync( /// and the customer group is identified by the `group_id` value. /// /// - /// await client.Customers.Groups.AddAsync( + /// await client.Default.Customers.Groups.AddAsync( /// new AddGroupsRequest { CustomerId = "customer_id", GroupId = "group_id" } /// ); /// @@ -380,7 +383,7 @@ public async Task AddAsync( /// and the customer group is identified by the `group_id` value. /// /// - /// await client.Customers.Groups.RemoveAsync( + /// await client.Default.Customers.Groups.RemoveAsync( /// new RemoveGroupsRequest { CustomerId = "customer_id", GroupId = "group_id" } /// ); /// diff --git a/src/Square/Customers/Groups/IGroupsClient.cs b/src/Square/Default/Customers/Groups/IGroupsClient.cs similarity index 97% rename from src/Square/Customers/Groups/IGroupsClient.cs rename to src/Square/Default/Customers/Groups/IGroupsClient.cs index 31c1695b..3613e8f1 100644 --- a/src/Square/Customers/Groups/IGroupsClient.cs +++ b/src/Square/Default/Customers/Groups/IGroupsClient.cs @@ -1,7 +1,8 @@ using Square; using Square.Core; +using Square.Default; -namespace Square.Customers.Groups; +namespace Square.Default.Customers; public partial interface IGroupsClient { diff --git a/src/Square/Customers/Groups/Requests/AddGroupsRequest.cs b/src/Square/Default/Customers/Groups/Requests/AddGroupsRequest.cs similarity index 93% rename from src/Square/Customers/Groups/Requests/AddGroupsRequest.cs rename to src/Square/Default/Customers/Groups/Requests/AddGroupsRequest.cs index 17ee64de..c0b197bf 100644 --- a/src/Square/Customers/Groups/Requests/AddGroupsRequest.cs +++ b/src/Square/Default/Customers/Groups/Requests/AddGroupsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Customers.Groups; +namespace Square.Default.Customers; [Serializable] public record AddGroupsRequest diff --git a/src/Square/Customers/Groups/Requests/CreateCustomerGroupRequest.cs b/src/Square/Default/Customers/Groups/Requests/CreateCustomerGroupRequest.cs similarity index 92% rename from src/Square/Customers/Groups/Requests/CreateCustomerGroupRequest.cs rename to src/Square/Default/Customers/Groups/Requests/CreateCustomerGroupRequest.cs index b522fb9c..c5a54618 100644 --- a/src/Square/Customers/Groups/Requests/CreateCustomerGroupRequest.cs +++ b/src/Square/Default/Customers/Groups/Requests/CreateCustomerGroupRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Customers.Groups; +namespace Square.Default.Customers; [Serializable] public record CreateCustomerGroupRequest diff --git a/src/Square/Customers/Groups/Requests/DeleteGroupsRequest.cs b/src/Square/Default/Customers/Groups/Requests/DeleteGroupsRequest.cs similarity index 91% rename from src/Square/Customers/Groups/Requests/DeleteGroupsRequest.cs rename to src/Square/Default/Customers/Groups/Requests/DeleteGroupsRequest.cs index 741165c1..df9ea4a8 100644 --- a/src/Square/Customers/Groups/Requests/DeleteGroupsRequest.cs +++ b/src/Square/Default/Customers/Groups/Requests/DeleteGroupsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Customers.Groups; +namespace Square.Default.Customers; [Serializable] public record DeleteGroupsRequest diff --git a/src/Square/Customers/Groups/Requests/GetGroupsRequest.cs b/src/Square/Default/Customers/Groups/Requests/GetGroupsRequest.cs similarity index 91% rename from src/Square/Customers/Groups/Requests/GetGroupsRequest.cs rename to src/Square/Default/Customers/Groups/Requests/GetGroupsRequest.cs index d8a50675..3a5db918 100644 --- a/src/Square/Customers/Groups/Requests/GetGroupsRequest.cs +++ b/src/Square/Default/Customers/Groups/Requests/GetGroupsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Customers.Groups; +namespace Square.Default.Customers; [Serializable] public record GetGroupsRequest diff --git a/src/Square/Customers/Groups/Requests/ListGroupsRequest.cs b/src/Square/Default/Customers/Groups/Requests/ListGroupsRequest.cs similarity index 96% rename from src/Square/Customers/Groups/Requests/ListGroupsRequest.cs rename to src/Square/Default/Customers/Groups/Requests/ListGroupsRequest.cs index 0adb4fb9..a69c80c4 100644 --- a/src/Square/Customers/Groups/Requests/ListGroupsRequest.cs +++ b/src/Square/Default/Customers/Groups/Requests/ListGroupsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Customers.Groups; +namespace Square.Default.Customers; [Serializable] public record ListGroupsRequest diff --git a/src/Square/Customers/Groups/Requests/RemoveGroupsRequest.cs b/src/Square/Default/Customers/Groups/Requests/RemoveGroupsRequest.cs similarity index 93% rename from src/Square/Customers/Groups/Requests/RemoveGroupsRequest.cs rename to src/Square/Default/Customers/Groups/Requests/RemoveGroupsRequest.cs index 1360309f..c1c76234 100644 --- a/src/Square/Customers/Groups/Requests/RemoveGroupsRequest.cs +++ b/src/Square/Default/Customers/Groups/Requests/RemoveGroupsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Customers.Groups; +namespace Square.Default.Customers; [Serializable] public record RemoveGroupsRequest diff --git a/src/Square/Customers/Groups/Requests/UpdateCustomerGroupRequest.cs b/src/Square/Default/Customers/Groups/Requests/UpdateCustomerGroupRequest.cs similarity index 91% rename from src/Square/Customers/Groups/Requests/UpdateCustomerGroupRequest.cs rename to src/Square/Default/Customers/Groups/Requests/UpdateCustomerGroupRequest.cs index 3fbd172f..9647b400 100644 --- a/src/Square/Customers/Groups/Requests/UpdateCustomerGroupRequest.cs +++ b/src/Square/Default/Customers/Groups/Requests/UpdateCustomerGroupRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Customers.Groups; +namespace Square.Default.Customers; [Serializable] public record UpdateCustomerGroupRequest diff --git a/src/Square/Customers/ICustomersClient.cs b/src/Square/Default/Customers/ICustomersClient.cs similarity index 93% rename from src/Square/Customers/ICustomersClient.cs rename to src/Square/Default/Customers/ICustomersClient.cs index 2e0831cb..1bd2e045 100644 --- a/src/Square/Customers/ICustomersClient.cs +++ b/src/Square/Default/Customers/ICustomersClient.cs @@ -1,17 +1,16 @@ using Square; using Square.Core; -using Square.Customers.Groups; -using Square.Customers.Segments; +using Square.Default.Customers; -namespace Square.Customers; +namespace Square.Default; public partial interface ICustomersClient { - public Square.Customers.CustomAttributeDefinitions.CustomAttributeDefinitionsClient CustomAttributeDefinitions { get; } + public Square.Default.Customers.CustomAttributeDefinitionsClient CustomAttributeDefinitions { get; } public GroupsClient Groups { get; } public SegmentsClient Segments { get; } - public Square.Customers.Cards.CardsClient Cards { get; } - public Square.Customers.CustomAttributes.CustomAttributesClient CustomAttributes { get; } + public Square.Default.Customers.CardsClient Cards { get; } + public Square.Default.Customers.CustomAttributesClient CustomAttributes { get; } /// /// Lists customer profiles associated with a Square account. diff --git a/src/Square/Customers/Requests/BulkCreateCustomersRequest.cs b/src/Square/Default/Customers/Requests/BulkCreateCustomersRequest.cs similarity index 95% rename from src/Square/Customers/Requests/BulkCreateCustomersRequest.cs rename to src/Square/Default/Customers/Requests/BulkCreateCustomersRequest.cs index 3ae26492..dd3a1c8f 100644 --- a/src/Square/Customers/Requests/BulkCreateCustomersRequest.cs +++ b/src/Square/Default/Customers/Requests/BulkCreateCustomersRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Customers; +namespace Square.Default; [Serializable] public record BulkCreateCustomersRequest diff --git a/src/Square/Customers/Requests/BulkDeleteCustomersRequest.cs b/src/Square/Default/Customers/Requests/BulkDeleteCustomersRequest.cs similarity index 94% rename from src/Square/Customers/Requests/BulkDeleteCustomersRequest.cs rename to src/Square/Default/Customers/Requests/BulkDeleteCustomersRequest.cs index 4db148be..ad29226f 100644 --- a/src/Square/Customers/Requests/BulkDeleteCustomersRequest.cs +++ b/src/Square/Default/Customers/Requests/BulkDeleteCustomersRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Customers; +namespace Square.Default; [Serializable] public record BulkDeleteCustomersRequest diff --git a/src/Square/Customers/Requests/BulkRetrieveCustomersRequest.cs b/src/Square/Default/Customers/Requests/BulkRetrieveCustomersRequest.cs similarity index 94% rename from src/Square/Customers/Requests/BulkRetrieveCustomersRequest.cs rename to src/Square/Default/Customers/Requests/BulkRetrieveCustomersRequest.cs index 4d777f41..138c6742 100644 --- a/src/Square/Customers/Requests/BulkRetrieveCustomersRequest.cs +++ b/src/Square/Default/Customers/Requests/BulkRetrieveCustomersRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Customers; +namespace Square.Default; [Serializable] public record BulkRetrieveCustomersRequest diff --git a/src/Square/Customers/Requests/BulkUpdateCustomersRequest.cs b/src/Square/Default/Customers/Requests/BulkUpdateCustomersRequest.cs similarity index 95% rename from src/Square/Customers/Requests/BulkUpdateCustomersRequest.cs rename to src/Square/Default/Customers/Requests/BulkUpdateCustomersRequest.cs index 6fc9b095..ec1a9af2 100644 --- a/src/Square/Customers/Requests/BulkUpdateCustomersRequest.cs +++ b/src/Square/Default/Customers/Requests/BulkUpdateCustomersRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Customers; +namespace Square.Default; [Serializable] public record BulkUpdateCustomersRequest diff --git a/src/Square/Customers/Requests/CreateCustomerRequest.cs b/src/Square/Default/Customers/Requests/CreateCustomerRequest.cs similarity index 98% rename from src/Square/Customers/Requests/CreateCustomerRequest.cs rename to src/Square/Default/Customers/Requests/CreateCustomerRequest.cs index 23f9a672..8a5e9c3f 100644 --- a/src/Square/Customers/Requests/CreateCustomerRequest.cs +++ b/src/Square/Default/Customers/Requests/CreateCustomerRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Customers; +namespace Square.Default; [Serializable] public record CreateCustomerRequest diff --git a/src/Square/Customers/Requests/DeleteCustomersRequest.cs b/src/Square/Default/Customers/Requests/DeleteCustomersRequest.cs similarity index 96% rename from src/Square/Customers/Requests/DeleteCustomersRequest.cs rename to src/Square/Default/Customers/Requests/DeleteCustomersRequest.cs index 7fae6ba8..c9c8a78a 100644 --- a/src/Square/Customers/Requests/DeleteCustomersRequest.cs +++ b/src/Square/Default/Customers/Requests/DeleteCustomersRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Customers; +namespace Square.Default; [Serializable] public record DeleteCustomersRequest diff --git a/src/Square/Customers/Requests/GetCustomersRequest.cs b/src/Square/Default/Customers/Requests/GetCustomersRequest.cs similarity index 93% rename from src/Square/Customers/Requests/GetCustomersRequest.cs rename to src/Square/Default/Customers/Requests/GetCustomersRequest.cs index df753f78..6d8e908b 100644 --- a/src/Square/Customers/Requests/GetCustomersRequest.cs +++ b/src/Square/Default/Customers/Requests/GetCustomersRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Customers; +namespace Square.Default; [Serializable] public record GetCustomersRequest diff --git a/src/Square/Customers/Requests/ListCustomersRequest.cs b/src/Square/Default/Customers/Requests/ListCustomersRequest.cs similarity index 97% rename from src/Square/Customers/Requests/ListCustomersRequest.cs rename to src/Square/Default/Customers/Requests/ListCustomersRequest.cs index 74c883dc..e3fb18d2 100644 --- a/src/Square/Customers/Requests/ListCustomersRequest.cs +++ b/src/Square/Default/Customers/Requests/ListCustomersRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Customers; +namespace Square.Default; [Serializable] public record ListCustomersRequest diff --git a/src/Square/Customers/Requests/SearchCustomersRequest.cs b/src/Square/Default/Customers/Requests/SearchCustomersRequest.cs similarity index 97% rename from src/Square/Customers/Requests/SearchCustomersRequest.cs rename to src/Square/Default/Customers/Requests/SearchCustomersRequest.cs index 3e077193..1325255b 100644 --- a/src/Square/Customers/Requests/SearchCustomersRequest.cs +++ b/src/Square/Default/Customers/Requests/SearchCustomersRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Customers; +namespace Square.Default; [Serializable] public record SearchCustomersRequest diff --git a/src/Square/Customers/Requests/UpdateCustomerRequest.cs b/src/Square/Default/Customers/Requests/UpdateCustomerRequest.cs similarity index 99% rename from src/Square/Customers/Requests/UpdateCustomerRequest.cs rename to src/Square/Default/Customers/Requests/UpdateCustomerRequest.cs index 5ff0f6f7..8af45cbe 100644 --- a/src/Square/Customers/Requests/UpdateCustomerRequest.cs +++ b/src/Square/Default/Customers/Requests/UpdateCustomerRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Customers; +namespace Square.Default; [Serializable] public record UpdateCustomerRequest diff --git a/src/Square/Customers/Segments/ISegmentsClient.cs b/src/Square/Default/Customers/Segments/ISegmentsClient.cs similarity index 92% rename from src/Square/Customers/Segments/ISegmentsClient.cs rename to src/Square/Default/Customers/Segments/ISegmentsClient.cs index 7daf3693..3d3ec665 100644 --- a/src/Square/Customers/Segments/ISegmentsClient.cs +++ b/src/Square/Default/Customers/Segments/ISegmentsClient.cs @@ -1,7 +1,8 @@ using Square; using Square.Core; +using Square.Default; -namespace Square.Customers.Segments; +namespace Square.Default.Customers; public partial interface ISegmentsClient { diff --git a/src/Square/Customers/Segments/Requests/GetSegmentsRequest.cs b/src/Square/Default/Customers/Segments/Requests/GetSegmentsRequest.cs similarity index 91% rename from src/Square/Customers/Segments/Requests/GetSegmentsRequest.cs rename to src/Square/Default/Customers/Segments/Requests/GetSegmentsRequest.cs index 6e184a29..9d62d62b 100644 --- a/src/Square/Customers/Segments/Requests/GetSegmentsRequest.cs +++ b/src/Square/Default/Customers/Segments/Requests/GetSegmentsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Customers.Segments; +namespace Square.Default.Customers; [Serializable] public record GetSegmentsRequest diff --git a/src/Square/Customers/Segments/Requests/ListSegmentsRequest.cs b/src/Square/Default/Customers/Segments/Requests/ListSegmentsRequest.cs similarity index 96% rename from src/Square/Customers/Segments/Requests/ListSegmentsRequest.cs rename to src/Square/Default/Customers/Segments/Requests/ListSegmentsRequest.cs index 4db71fd1..a41f477f 100644 --- a/src/Square/Customers/Segments/Requests/ListSegmentsRequest.cs +++ b/src/Square/Default/Customers/Segments/Requests/ListSegmentsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Customers.Segments; +namespace Square.Default.Customers; [Serializable] public record ListSegmentsRequest diff --git a/src/Square/Customers/Segments/SegmentsClient.cs b/src/Square/Default/Customers/Segments/SegmentsClient.cs similarity index 93% rename from src/Square/Customers/Segments/SegmentsClient.cs rename to src/Square/Default/Customers/Segments/SegmentsClient.cs index 37da0c8e..82e37da7 100644 --- a/src/Square/Customers/Segments/SegmentsClient.cs +++ b/src/Square/Default/Customers/Segments/SegmentsClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Customers.Segments; +namespace Square.Default.Customers; public partial class SegmentsClient : ISegmentsClient { @@ -71,7 +72,9 @@ private async Task ListInternalAsync( /// Retrieves the list of customer segments of a business. /// /// - /// await client.Customers.Segments.ListAsync(new ListSegmentsRequest { Cursor = "cursor", Limit = 1 }); + /// await client.Default.Customers.Segments.ListAsync( + /// new ListSegmentsRequest { Cursor = "cursor", Limit = 1 } + /// ); /// public async Task> ListAsync( ListSegmentsRequest request, @@ -110,7 +113,9 @@ public async Task> ListAsync( /// Retrieves a specific customer segment as identified by the `segment_id` value. /// /// - /// await client.Customers.Segments.GetAsync(new GetSegmentsRequest { SegmentId = "segment_id" }); + /// await client.Default.Customers.Segments.GetAsync( + /// new GetSegmentsRequest { SegmentId = "segment_id" } + /// ); /// public async Task GetAsync( GetSegmentsRequest request, diff --git a/src/Square/Default/DefaultClient.cs b/src/Square/Default/DefaultClient.cs new file mode 100644 index 00000000..59af4f27 --- /dev/null +++ b/src/Square/Default/DefaultClient.cs @@ -0,0 +1,120 @@ +using Square.Core; +using Square.Default.CashDrawers; +using Square.Default.Webhooks; + +namespace Square.Default; + +public partial class DefaultClient : IDefaultClient +{ + private RawClient _client; + + internal DefaultClient(RawClient client) + { + _client = client; + OAuth = new OAuthClient(_client); + V1Transactions = new V1TransactionsClient(_client); + ApplePay = new ApplePayClient(_client); + BankAccounts = new BankAccountsClient(_client); + Bookings = new BookingsClient(_client); + Cards = new CardsClient(_client); + Catalog = new CatalogClient(_client); + Channels = new ChannelsClient(_client); + Customers = new CustomersClient(_client); + Devices = new DevicesClient(_client); + Disputes = new DisputesClient(_client); + Employees = new EmployeesClient(_client); + Events = new EventsClient(_client); + GiftCards = new GiftCardsClient(_client); + Inventory = new InventoryClient(_client); + Invoices = new InvoicesClient(_client); + Labor = new LaborClient(_client); + Locations = new LocationsClient(_client); + Loyalty = new LoyaltyClient(_client); + Merchants = new MerchantsClient(_client); + Checkout = new CheckoutClient(_client); + Orders = new OrdersClient(_client); + Payments = new PaymentsClient(_client); + Payouts = new PayoutsClient(_client); + Refunds = new RefundsClient(_client); + Sites = new SitesClient(_client); + Snippets = new SnippetsClient(_client); + Subscriptions = new SubscriptionsClient(_client); + TeamMembers = new TeamMembersClient(_client); + Team = new TeamClient(_client); + Terminal = new TerminalClient(_client); + TransferOrders = new TransferOrdersClient(_client); + Vendors = new VendorsClient(_client); + CashDrawers = new CashDrawersClient(_client); + Webhooks = new WebhooksClient(_client); + } + + public OAuthClient OAuth { get; } + + public V1TransactionsClient V1Transactions { get; } + + public ApplePayClient ApplePay { get; } + + public BankAccountsClient BankAccounts { get; } + + public BookingsClient Bookings { get; } + + public CardsClient Cards { get; } + + public CatalogClient Catalog { get; } + + public ChannelsClient Channels { get; } + + public CustomersClient Customers { get; } + + public DevicesClient Devices { get; } + + public DisputesClient Disputes { get; } + + public EmployeesClient Employees { get; } + + public EventsClient Events { get; } + + public GiftCardsClient GiftCards { get; } + + public InventoryClient Inventory { get; } + + public InvoicesClient Invoices { get; } + + public LaborClient Labor { get; } + + public LocationsClient Locations { get; } + + public LoyaltyClient Loyalty { get; } + + public MerchantsClient Merchants { get; } + + public CheckoutClient Checkout { get; } + + public OrdersClient Orders { get; } + + public PaymentsClient Payments { get; } + + public PayoutsClient Payouts { get; } + + public RefundsClient Refunds { get; } + + public SitesClient Sites { get; } + + public SnippetsClient Snippets { get; } + + public SubscriptionsClient Subscriptions { get; } + + public TeamMembersClient TeamMembers { get; } + + public TeamClient Team { get; } + + public TerminalClient Terminal { get; } + + public TransferOrdersClient TransferOrders { get; } + + public VendorsClient Vendors { get; } + + public CashDrawersClient CashDrawers { get; } + + public WebhooksClient Webhooks { get; } +} diff --git a/src/Square/Devices/Codes/CodesClient.cs b/src/Square/Default/Devices/Codes/CodesClient.cs similarity index 96% rename from src/Square/Devices/Codes/CodesClient.cs rename to src/Square/Default/Devices/Codes/CodesClient.cs index 5f91d490..6bf3db9a 100644 --- a/src/Square/Devices/Codes/CodesClient.cs +++ b/src/Square/Default/Devices/Codes/CodesClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Devices.Codes; +namespace Square.Default.Devices; public partial class CodesClient : ICodesClient { @@ -79,7 +80,7 @@ private async Task ListInternalAsync( /// Lists all DeviceCodes associated with the merchant. /// /// - /// await client.Devices.Codes.ListAsync( + /// await client.Default.Devices.Codes.ListAsync( /// new ListCodesRequest /// { /// Cursor = "cursor", @@ -127,7 +128,7 @@ public async Task> ListAsync( /// terminal mode. /// /// - /// await client.Devices.Codes.CreateAsync( + /// await client.Default.Devices.Codes.CreateAsync( /// new CreateDeviceCodeRequest /// { /// IdempotencyKey = "01bb00a6-0c86-4770-94ed-f5fca973cd56", @@ -187,7 +188,7 @@ public async Task CreateAsync( /// Retrieves DeviceCode with the associated ID. /// /// - /// await client.Devices.Codes.GetAsync(new GetCodesRequest { Id = "id" }); + /// await client.Default.Devices.Codes.GetAsync(new GetCodesRequest { Id = "id" }); /// public async Task GetAsync( GetCodesRequest request, diff --git a/src/Square/Devices/Codes/ICodesClient.cs b/src/Square/Default/Devices/Codes/ICodesClient.cs similarity index 94% rename from src/Square/Devices/Codes/ICodesClient.cs rename to src/Square/Default/Devices/Codes/ICodesClient.cs index e9d4b03f..91bc9dad 100644 --- a/src/Square/Devices/Codes/ICodesClient.cs +++ b/src/Square/Default/Devices/Codes/ICodesClient.cs @@ -1,7 +1,8 @@ using Square; using Square.Core; +using Square.Default; -namespace Square.Devices.Codes; +namespace Square.Default.Devices; public partial interface ICodesClient { diff --git a/src/Square/Devices/Codes/Requests/CreateDeviceCodeRequest.cs b/src/Square/Default/Devices/Codes/Requests/CreateDeviceCodeRequest.cs similarity index 93% rename from src/Square/Devices/Codes/Requests/CreateDeviceCodeRequest.cs rename to src/Square/Default/Devices/Codes/Requests/CreateDeviceCodeRequest.cs index 5fc09e28..05a12b5a 100644 --- a/src/Square/Devices/Codes/Requests/CreateDeviceCodeRequest.cs +++ b/src/Square/Default/Devices/Codes/Requests/CreateDeviceCodeRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Devices.Codes; +namespace Square.Default.Devices; [Serializable] public record CreateDeviceCodeRequest diff --git a/src/Square/Devices/Codes/Requests/GetCodesRequest.cs b/src/Square/Default/Devices/Codes/Requests/GetCodesRequest.cs similarity index 91% rename from src/Square/Devices/Codes/Requests/GetCodesRequest.cs rename to src/Square/Default/Devices/Codes/Requests/GetCodesRequest.cs index 8afabda6..b694e545 100644 --- a/src/Square/Devices/Codes/Requests/GetCodesRequest.cs +++ b/src/Square/Default/Devices/Codes/Requests/GetCodesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Devices.Codes; +namespace Square.Default.Devices; [Serializable] public record GetCodesRequest diff --git a/src/Square/Devices/Codes/Requests/ListCodesRequest.cs b/src/Square/Default/Devices/Codes/Requests/ListCodesRequest.cs similarity index 95% rename from src/Square/Devices/Codes/Requests/ListCodesRequest.cs rename to src/Square/Default/Devices/Codes/Requests/ListCodesRequest.cs index 22319a14..286836a8 100644 --- a/src/Square/Devices/Codes/Requests/ListCodesRequest.cs +++ b/src/Square/Default/Devices/Codes/Requests/ListCodesRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Devices.Codes; +namespace Square.Default.Devices; [Serializable] public record ListCodesRequest diff --git a/src/Square/Devices/DevicesClient.cs b/src/Square/Default/Devices/DevicesClient.cs similarity index 96% rename from src/Square/Devices/DevicesClient.cs rename to src/Square/Default/Devices/DevicesClient.cs index d835d450..6bd10ffb 100644 --- a/src/Square/Devices/DevicesClient.cs +++ b/src/Square/Default/Devices/DevicesClient.cs @@ -1,9 +1,9 @@ using System.Text.Json; using Square; using Square.Core; -using Square.Devices.Codes; +using Square.Default.Devices; -namespace Square.Devices; +namespace Square.Default; public partial class DevicesClient : IDevicesClient { @@ -85,7 +85,7 @@ private async Task ListInternalAsync( /// devices are supported. /// /// - /// await client.Devices.ListAsync( + /// await client.Default.Devices.ListAsync( /// new ListDevicesRequest /// { /// Cursor = "cursor", @@ -132,7 +132,7 @@ public async Task> ListAsync( /// Retrieves Device with the associated `device_id`. /// /// - /// await client.Devices.GetAsync(new GetDevicesRequest { DeviceId = "device_id" }); + /// await client.Default.Devices.GetAsync(new GetDevicesRequest { DeviceId = "device_id" }); /// public async Task GetAsync( GetDevicesRequest request, diff --git a/src/Square/Devices/IDevicesClient.cs b/src/Square/Default/Devices/IDevicesClient.cs similarity index 92% rename from src/Square/Devices/IDevicesClient.cs rename to src/Square/Default/Devices/IDevicesClient.cs index 2b4f7f70..8d53dfed 100644 --- a/src/Square/Devices/IDevicesClient.cs +++ b/src/Square/Default/Devices/IDevicesClient.cs @@ -1,8 +1,8 @@ using Square; using Square.Core; -using Square.Devices.Codes; +using Square.Default.Devices; -namespace Square.Devices; +namespace Square.Default; public partial interface IDevicesClient { diff --git a/src/Square/Devices/Requests/GetDevicesRequest.cs b/src/Square/Default/Devices/Requests/GetDevicesRequest.cs similarity index 93% rename from src/Square/Devices/Requests/GetDevicesRequest.cs rename to src/Square/Default/Devices/Requests/GetDevicesRequest.cs index f4b66548..0134348f 100644 --- a/src/Square/Devices/Requests/GetDevicesRequest.cs +++ b/src/Square/Default/Devices/Requests/GetDevicesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Devices; +namespace Square.Default; [Serializable] public record GetDevicesRequest diff --git a/src/Square/Devices/Requests/ListDevicesRequest.cs b/src/Square/Default/Devices/Requests/ListDevicesRequest.cs similarity index 96% rename from src/Square/Devices/Requests/ListDevicesRequest.cs rename to src/Square/Default/Devices/Requests/ListDevicesRequest.cs index 79b7614e..c89e1535 100644 --- a/src/Square/Devices/Requests/ListDevicesRequest.cs +++ b/src/Square/Default/Devices/Requests/ListDevicesRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Devices; +namespace Square.Default; [Serializable] public record ListDevicesRequest diff --git a/src/Square/Disputes/DisputesClient.cs b/src/Square/Default/Disputes/DisputesClient.cs similarity index 96% rename from src/Square/Disputes/DisputesClient.cs rename to src/Square/Default/Disputes/DisputesClient.cs index de9b2c82..36c84902 100644 --- a/src/Square/Disputes/DisputesClient.cs +++ b/src/Square/Default/Disputes/DisputesClient.cs @@ -1,9 +1,9 @@ using System.Text.Json; using Square; using Square.Core; -using Square.Disputes.Evidence; +using Square.Default.Disputes; -namespace Square.Disputes; +namespace Square.Default; public partial class DisputesClient : IDisputesClient { @@ -79,7 +79,7 @@ private async Task ListInternalAsync( /// Returns a list of disputes associated with a particular account. /// /// - /// await client.Disputes.ListAsync( + /// await client.Default.Disputes.ListAsync( /// new ListDisputesRequest /// { /// Cursor = "cursor", @@ -125,7 +125,7 @@ public async Task> ListAsync( /// Returns details about a specific dispute. /// /// - /// await client.Disputes.GetAsync(new GetDisputesRequest { DisputeId = "dispute_id" }); + /// await client.Default.Disputes.GetAsync(new GetDisputesRequest { DisputeId = "dispute_id" }); /// public async Task GetAsync( GetDisputesRequest request, @@ -179,7 +179,7 @@ public async Task GetAsync( /// does not have sufficient funds, Square debits the associated bank account. /// /// - /// await client.Disputes.AcceptAsync(new AcceptDisputesRequest { DisputeId = "dispute_id" }); + /// await client.Default.Disputes.AcceptAsync(new AcceptDisputesRequest { DisputeId = "dispute_id" }); /// public async Task AcceptAsync( AcceptDisputesRequest request, @@ -230,7 +230,7 @@ public async Task AcceptAsync( /// multipart/form-data file uploads in HEIC, HEIF, JPEG, PDF, PNG, and TIFF formats. /// /// - /// await client.Disputes.CreateEvidenceFileAsync( + /// await client.Default.Disputes.CreateEvidenceFileAsync( /// new CreateEvidenceFileDisputesRequest { DisputeId = "dispute_id" } /// ); /// @@ -286,7 +286,7 @@ public async Task CreateEvidenceFileAsync( /// Uploads text to use as evidence for a dispute challenge. /// /// - /// await client.Disputes.CreateEvidenceTextAsync( + /// await client.Default.Disputes.CreateEvidenceTextAsync( /// new CreateDisputeEvidenceTextRequest /// { /// DisputeId = "dispute_id", @@ -352,7 +352,7 @@ public async Task CreateEvidenceTextAsync( /// a dispute after submission. /// /// - /// await client.Disputes.SubmitEvidenceAsync( + /// await client.Default.Disputes.SubmitEvidenceAsync( /// new SubmitEvidenceDisputesRequest { DisputeId = "dispute_id" } /// ); /// diff --git a/src/Square/Disputes/Evidence/EvidenceClient.cs b/src/Square/Default/Disputes/Evidence/EvidenceClient.cs similarity index 96% rename from src/Square/Disputes/Evidence/EvidenceClient.cs rename to src/Square/Default/Disputes/Evidence/EvidenceClient.cs index fd4ef353..f6d1e19b 100644 --- a/src/Square/Disputes/Evidence/EvidenceClient.cs +++ b/src/Square/Default/Disputes/Evidence/EvidenceClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Disputes.Evidence; +namespace Square.Default.Disputes; public partial class EvidenceClient : IEvidenceClient { @@ -70,7 +71,7 @@ private async Task ListInternalAsync( /// Returns a list of evidence associated with a dispute. /// /// - /// await client.Disputes.Evidence.ListAsync( + /// await client.Default.Disputes.Evidence.ListAsync( /// new ListEvidenceRequest { DisputeId = "dispute_id", Cursor = "cursor" } /// ); /// @@ -113,7 +114,7 @@ public async Task> ListAsync( /// You must maintain a copy of any evidence uploaded if you want to reference it later. Evidence cannot be downloaded after you upload it. /// /// - /// await client.Disputes.Evidence.GetAsync( + /// await client.Default.Disputes.Evidence.GetAsync( /// new GetEvidenceRequest { DisputeId = "dispute_id", EvidenceId = "evidence_id" } /// ); /// @@ -167,7 +168,7 @@ public async Task GetAsync( /// Square does not send the bank any evidence that is removed. /// /// - /// await client.Disputes.Evidence.DeleteAsync( + /// await client.Default.Disputes.Evidence.DeleteAsync( /// new DeleteEvidenceRequest { DisputeId = "dispute_id", EvidenceId = "evidence_id" } /// ); /// diff --git a/src/Square/Disputes/Evidence/IEvidenceClient.cs b/src/Square/Default/Disputes/Evidence/IEvidenceClient.cs similarity index 95% rename from src/Square/Disputes/Evidence/IEvidenceClient.cs rename to src/Square/Default/Disputes/Evidence/IEvidenceClient.cs index f6af4c54..95dc17fb 100644 --- a/src/Square/Disputes/Evidence/IEvidenceClient.cs +++ b/src/Square/Default/Disputes/Evidence/IEvidenceClient.cs @@ -1,7 +1,8 @@ using Square; using Square.Core; +using Square.Default; -namespace Square.Disputes.Evidence; +namespace Square.Default.Disputes; public partial interface IEvidenceClient { diff --git a/src/Square/Disputes/Evidence/Requests/DeleteEvidenceRequest.cs b/src/Square/Default/Disputes/Evidence/Requests/DeleteEvidenceRequest.cs similarity index 93% rename from src/Square/Disputes/Evidence/Requests/DeleteEvidenceRequest.cs rename to src/Square/Default/Disputes/Evidence/Requests/DeleteEvidenceRequest.cs index fadebee8..99211d75 100644 --- a/src/Square/Disputes/Evidence/Requests/DeleteEvidenceRequest.cs +++ b/src/Square/Default/Disputes/Evidence/Requests/DeleteEvidenceRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Disputes.Evidence; +namespace Square.Default.Disputes; [Serializable] public record DeleteEvidenceRequest diff --git a/src/Square/Disputes/Evidence/Requests/GetEvidenceRequest.cs b/src/Square/Default/Disputes/Evidence/Requests/GetEvidenceRequest.cs similarity index 94% rename from src/Square/Disputes/Evidence/Requests/GetEvidenceRequest.cs rename to src/Square/Default/Disputes/Evidence/Requests/GetEvidenceRequest.cs index 84b387dd..4bbdd507 100644 --- a/src/Square/Disputes/Evidence/Requests/GetEvidenceRequest.cs +++ b/src/Square/Default/Disputes/Evidence/Requests/GetEvidenceRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Disputes.Evidence; +namespace Square.Default.Disputes; [Serializable] public record GetEvidenceRequest diff --git a/src/Square/Disputes/Evidence/Requests/ListEvidenceRequest.cs b/src/Square/Default/Disputes/Evidence/Requests/ListEvidenceRequest.cs similarity index 95% rename from src/Square/Disputes/Evidence/Requests/ListEvidenceRequest.cs rename to src/Square/Default/Disputes/Evidence/Requests/ListEvidenceRequest.cs index 41c3a36a..bc6580b5 100644 --- a/src/Square/Disputes/Evidence/Requests/ListEvidenceRequest.cs +++ b/src/Square/Default/Disputes/Evidence/Requests/ListEvidenceRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Disputes.Evidence; +namespace Square.Default.Disputes; [Serializable] public record ListEvidenceRequest diff --git a/src/Square/Disputes/IDisputesClient.cs b/src/Square/Default/Disputes/IDisputesClient.cs similarity index 97% rename from src/Square/Disputes/IDisputesClient.cs rename to src/Square/Default/Disputes/IDisputesClient.cs index 0f400175..6144fb3b 100644 --- a/src/Square/Disputes/IDisputesClient.cs +++ b/src/Square/Default/Disputes/IDisputesClient.cs @@ -1,8 +1,8 @@ using Square; using Square.Core; -using Square.Disputes.Evidence; +using Square.Default.Disputes; -namespace Square.Disputes; +namespace Square.Default; public partial interface IDisputesClient { diff --git a/src/Square/Disputes/Requests/AcceptDisputesRequest.cs b/src/Square/Default/Disputes/Requests/AcceptDisputesRequest.cs similarity index 93% rename from src/Square/Disputes/Requests/AcceptDisputesRequest.cs rename to src/Square/Default/Disputes/Requests/AcceptDisputesRequest.cs index 2f56264b..1d273c33 100644 --- a/src/Square/Disputes/Requests/AcceptDisputesRequest.cs +++ b/src/Square/Default/Disputes/Requests/AcceptDisputesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Disputes; +namespace Square.Default; [Serializable] public record AcceptDisputesRequest diff --git a/src/Square/Disputes/Requests/CreateDisputeEvidenceTextRequest.cs b/src/Square/Default/Disputes/Requests/CreateDisputeEvidenceTextRequest.cs similarity index 96% rename from src/Square/Disputes/Requests/CreateDisputeEvidenceTextRequest.cs rename to src/Square/Default/Disputes/Requests/CreateDisputeEvidenceTextRequest.cs index 0697cbba..afb5db22 100644 --- a/src/Square/Disputes/Requests/CreateDisputeEvidenceTextRequest.cs +++ b/src/Square/Default/Disputes/Requests/CreateDisputeEvidenceTextRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Disputes; +namespace Square.Default; [Serializable] public record CreateDisputeEvidenceTextRequest diff --git a/src/Square/Disputes/Requests/CreateEvidenceFileDisputesRequest.cs b/src/Square/Default/Disputes/Requests/CreateEvidenceFileDisputesRequest.cs similarity index 95% rename from src/Square/Disputes/Requests/CreateEvidenceFileDisputesRequest.cs rename to src/Square/Default/Disputes/Requests/CreateEvidenceFileDisputesRequest.cs index be558466..9cc1f365 100644 --- a/src/Square/Disputes/Requests/CreateEvidenceFileDisputesRequest.cs +++ b/src/Square/Default/Disputes/Requests/CreateEvidenceFileDisputesRequest.cs @@ -2,7 +2,7 @@ using Square; using Square.Core; -namespace Square.Disputes; +namespace Square.Default; [Serializable] public record CreateEvidenceFileDisputesRequest diff --git a/src/Square/Disputes/Requests/GetDisputesRequest.cs b/src/Square/Default/Disputes/Requests/GetDisputesRequest.cs similarity index 93% rename from src/Square/Disputes/Requests/GetDisputesRequest.cs rename to src/Square/Default/Disputes/Requests/GetDisputesRequest.cs index 952e4ec8..619448ad 100644 --- a/src/Square/Disputes/Requests/GetDisputesRequest.cs +++ b/src/Square/Default/Disputes/Requests/GetDisputesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Disputes; +namespace Square.Default; [Serializable] public record GetDisputesRequest diff --git a/src/Square/Disputes/Requests/ListDisputesRequest.cs b/src/Square/Default/Disputes/Requests/ListDisputesRequest.cs similarity index 96% rename from src/Square/Disputes/Requests/ListDisputesRequest.cs rename to src/Square/Default/Disputes/Requests/ListDisputesRequest.cs index af5f41e5..42c46ff7 100644 --- a/src/Square/Disputes/Requests/ListDisputesRequest.cs +++ b/src/Square/Default/Disputes/Requests/ListDisputesRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Disputes; +namespace Square.Default; [Serializable] public record ListDisputesRequest diff --git a/src/Square/Disputes/Requests/SubmitEvidenceDisputesRequest.cs b/src/Square/Default/Disputes/Requests/SubmitEvidenceDisputesRequest.cs similarity index 93% rename from src/Square/Disputes/Requests/SubmitEvidenceDisputesRequest.cs rename to src/Square/Default/Disputes/Requests/SubmitEvidenceDisputesRequest.cs index 3eb79674..98acbdaf 100644 --- a/src/Square/Disputes/Requests/SubmitEvidenceDisputesRequest.cs +++ b/src/Square/Default/Disputes/Requests/SubmitEvidenceDisputesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Disputes; +namespace Square.Default; [Serializable] public record SubmitEvidenceDisputesRequest diff --git a/src/Square/Employees/EmployeesClient.cs b/src/Square/Default/Employees/EmployeesClient.cs similarity index 96% rename from src/Square/Employees/EmployeesClient.cs rename to src/Square/Default/Employees/EmployeesClient.cs index 60c7f670..5de106e2 100644 --- a/src/Square/Employees/EmployeesClient.cs +++ b/src/Square/Default/Employees/EmployeesClient.cs @@ -2,7 +2,7 @@ using Square; using Square.Core; -namespace Square.Employees; +namespace Square.Default; public partial class EmployeesClient : IEmployeesClient { @@ -73,7 +73,7 @@ private async Task ListInternalAsync( } /// - /// await client.Employees.ListAsync( + /// await client.Default.Employees.ListAsync( /// new ListEmployeesRequest /// { /// LocationId = "location_id", @@ -117,7 +117,7 @@ public async Task> ListAsync( } /// - /// await client.Employees.GetAsync(new GetEmployeesRequest { Id = "id" }); + /// await client.Default.Employees.GetAsync(new GetEmployeesRequest { Id = "id" }); /// public async Task GetAsync( GetEmployeesRequest request, diff --git a/src/Square/Employees/IEmployeesClient.cs b/src/Square/Default/Employees/IEmployeesClient.cs similarity index 93% rename from src/Square/Employees/IEmployeesClient.cs rename to src/Square/Default/Employees/IEmployeesClient.cs index 1c330d75..6f6a0e52 100644 --- a/src/Square/Employees/IEmployeesClient.cs +++ b/src/Square/Default/Employees/IEmployeesClient.cs @@ -1,7 +1,7 @@ using Square; using Square.Core; -namespace Square.Employees; +namespace Square.Default; public partial interface IEmployeesClient { diff --git a/src/Square/Employees/Requests/GetEmployeesRequest.cs b/src/Square/Default/Employees/Requests/GetEmployeesRequest.cs similarity index 93% rename from src/Square/Employees/Requests/GetEmployeesRequest.cs rename to src/Square/Default/Employees/Requests/GetEmployeesRequest.cs index 4d6f2cc2..9596dd66 100644 --- a/src/Square/Employees/Requests/GetEmployeesRequest.cs +++ b/src/Square/Default/Employees/Requests/GetEmployeesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Employees; +namespace Square.Default; [Serializable] public record GetEmployeesRequest diff --git a/src/Square/Employees/Requests/ListEmployeesRequest.cs b/src/Square/Default/Employees/Requests/ListEmployeesRequest.cs similarity index 94% rename from src/Square/Employees/Requests/ListEmployeesRequest.cs rename to src/Square/Default/Employees/Requests/ListEmployeesRequest.cs index 00be3287..d2cf194b 100644 --- a/src/Square/Employees/Requests/ListEmployeesRequest.cs +++ b/src/Square/Default/Employees/Requests/ListEmployeesRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Employees; +namespace Square.Default; [Serializable] public record ListEmployeesRequest diff --git a/src/Square/Events/EventsClient.cs b/src/Square/Default/Events/EventsClient.cs similarity index 94% rename from src/Square/Events/EventsClient.cs rename to src/Square/Default/Events/EventsClient.cs index 28b8eed3..a085804a 100644 --- a/src/Square/Events/EventsClient.cs +++ b/src/Square/Default/Events/EventsClient.cs @@ -2,7 +2,7 @@ using Square; using Square.Core; -namespace Square.Events; +namespace Square.Default; public partial class EventsClient : IEventsClient { @@ -17,7 +17,7 @@ internal EventsClient(RawClient client) /// Search for Square API events that occur within a 28-day timeframe. /// /// - /// await client.Events.SearchEventsAsync(new SearchEventsRequest()); + /// await client.Default.Events.SearchEventsAsync(new SearchEventsRequest()); /// public async Task SearchEventsAsync( SearchEventsRequest request, @@ -68,7 +68,7 @@ public async Task SearchEventsAsync( /// Disabling events for a specific time period prevents them from being searchable, even if you re-enable them later. /// /// - /// await client.Events.DisableEventsAsync(); + /// await client.Default.Events.DisableEventsAsync(); /// public async Task DisableEventsAsync( RequestOptions? options = null, @@ -114,7 +114,7 @@ public async Task DisableEventsAsync( /// Enables events to make them searchable. Only events that occur while in the enabled state are searchable. /// /// - /// await client.Events.EnableEventsAsync(); + /// await client.Default.Events.EnableEventsAsync(); /// public async Task EnableEventsAsync( RequestOptions? options = null, @@ -160,8 +160,8 @@ public async Task EnableEventsAsync( /// Lists all event types that you can subscribe to as webhooks or query using the Events API. /// /// - /// await client.Events.ListEventTypesAsync( - /// new Square.Events.ListEventTypesRequest { ApiVersion = "api_version" } + /// await client.Default.Events.ListEventTypesAsync( + /// new Square.Default.ListEventTypesRequest { ApiVersion = "api_version" } /// ); /// public async Task ListEventTypesAsync( diff --git a/src/Square/Events/IEventsClient.cs b/src/Square/Default/Events/IEventsClient.cs similarity index 98% rename from src/Square/Events/IEventsClient.cs rename to src/Square/Default/Events/IEventsClient.cs index 03d306f2..f4516cee 100644 --- a/src/Square/Events/IEventsClient.cs +++ b/src/Square/Default/Events/IEventsClient.cs @@ -1,6 +1,6 @@ using Square; -namespace Square.Events; +namespace Square.Default; public partial interface IEventsClient { diff --git a/src/Square/Events/Requests/ListEventTypesRequest.cs b/src/Square/Default/Events/Requests/ListEventTypesRequest.cs similarity index 94% rename from src/Square/Events/Requests/ListEventTypesRequest.cs rename to src/Square/Default/Events/Requests/ListEventTypesRequest.cs index d7d835a8..28c7ab98 100644 --- a/src/Square/Events/Requests/ListEventTypesRequest.cs +++ b/src/Square/Default/Events/Requests/ListEventTypesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Events; +namespace Square.Default; [Serializable] public record ListEventTypesRequest diff --git a/src/Square/Events/Requests/SearchEventsRequest.cs b/src/Square/Default/Events/Requests/SearchEventsRequest.cs similarity index 97% rename from src/Square/Events/Requests/SearchEventsRequest.cs rename to src/Square/Default/Events/Requests/SearchEventsRequest.cs index abc274ac..e0fea2a7 100644 --- a/src/Square/Events/Requests/SearchEventsRequest.cs +++ b/src/Square/Default/Events/Requests/SearchEventsRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Events; +namespace Square.Default; [Serializable] public record SearchEventsRequest diff --git a/src/Square/GiftCards/Activities/ActivitiesClient.cs b/src/Square/Default/GiftCards/Activities/ActivitiesClient.cs similarity index 97% rename from src/Square/GiftCards/Activities/ActivitiesClient.cs rename to src/Square/Default/GiftCards/Activities/ActivitiesClient.cs index 8c395409..0d33145a 100644 --- a/src/Square/GiftCards/Activities/ActivitiesClient.cs +++ b/src/Square/Default/GiftCards/Activities/ActivitiesClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.GiftCards.Activities; +namespace Square.Default.GiftCards; public partial class ActivitiesClient : IActivitiesClient { @@ -101,7 +102,7 @@ private async Task ListInternalAsync( /// for all gift cards in a specific region, or for activities within a time window. /// /// - /// await client.GiftCards.Activities.ListAsync( + /// await client.Default.GiftCards.Activities.ListAsync( /// new ListActivitiesRequest /// { /// GiftCardId = "gift_card_id", @@ -153,7 +154,7 @@ public async Task> ListAsync( /// For example, create an `ACTIVATE` activity to activate a gift card with an initial balance before first use. /// /// - /// await client.GiftCards.Activities.CreateAsync( + /// await client.Default.GiftCards.Activities.CreateAsync( /// new CreateGiftCardActivityRequest /// { /// IdempotencyKey = "U16kfr-kA70er-q4Rsym-7U7NnY", diff --git a/src/Square/GiftCards/Activities/IActivitiesClient.cs b/src/Square/Default/GiftCards/Activities/IActivitiesClient.cs similarity index 95% rename from src/Square/GiftCards/Activities/IActivitiesClient.cs rename to src/Square/Default/GiftCards/Activities/IActivitiesClient.cs index 334a9c0b..f81d56e9 100644 --- a/src/Square/GiftCards/Activities/IActivitiesClient.cs +++ b/src/Square/Default/GiftCards/Activities/IActivitiesClient.cs @@ -1,7 +1,8 @@ using Square; using Square.Core; +using Square.Default; -namespace Square.GiftCards.Activities; +namespace Square.Default.GiftCards; public partial interface IActivitiesClient { diff --git a/src/Square/GiftCards/Activities/Requests/CreateGiftCardActivityRequest.cs b/src/Square/Default/GiftCards/Activities/Requests/CreateGiftCardActivityRequest.cs similarity index 93% rename from src/Square/GiftCards/Activities/Requests/CreateGiftCardActivityRequest.cs rename to src/Square/Default/GiftCards/Activities/Requests/CreateGiftCardActivityRequest.cs index 724d1dd0..c722a272 100644 --- a/src/Square/GiftCards/Activities/Requests/CreateGiftCardActivityRequest.cs +++ b/src/Square/Default/GiftCards/Activities/Requests/CreateGiftCardActivityRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.GiftCards.Activities; +namespace Square.Default.GiftCards; [Serializable] public record CreateGiftCardActivityRequest diff --git a/src/Square/GiftCards/Activities/Requests/ListActivitiesRequest.cs b/src/Square/Default/GiftCards/Activities/Requests/ListActivitiesRequest.cs similarity index 98% rename from src/Square/GiftCards/Activities/Requests/ListActivitiesRequest.cs rename to src/Square/Default/GiftCards/Activities/Requests/ListActivitiesRequest.cs index 3976b102..fe49c6e6 100644 --- a/src/Square/GiftCards/Activities/Requests/ListActivitiesRequest.cs +++ b/src/Square/Default/GiftCards/Activities/Requests/ListActivitiesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.GiftCards.Activities; +namespace Square.Default.GiftCards; [Serializable] public record ListActivitiesRequest diff --git a/src/Square/GiftCards/GiftCardsClient.cs b/src/Square/Default/GiftCards/GiftCardsClient.cs similarity index 96% rename from src/Square/GiftCards/GiftCardsClient.cs rename to src/Square/Default/GiftCards/GiftCardsClient.cs index d10b553f..d0e80cea 100644 --- a/src/Square/GiftCards/GiftCardsClient.cs +++ b/src/Square/Default/GiftCards/GiftCardsClient.cs @@ -1,9 +1,9 @@ using System.Text.Json; using Square; using Square.Core; -using Square.GiftCards.Activities; +using Square.Default.GiftCards; -namespace Square.GiftCards; +namespace Square.Default; public partial class GiftCardsClient : IGiftCardsClient { @@ -89,7 +89,7 @@ private async Task ListInternalAsync( /// a subset of the gift cards. Results are sorted by `created_at` in ascending order. /// /// - /// await client.GiftCards.ListAsync( + /// await client.Default.GiftCards.ListAsync( /// new ListGiftCardsRequest /// { /// Type = "type", @@ -141,7 +141,7 @@ public async Task> ListAsync( /// to refund a payment to the new gift card. /// /// - /// await client.GiftCards.CreateAsync( + /// await client.Default.GiftCards.CreateAsync( /// new CreateGiftCardRequest /// { /// IdempotencyKey = "NC9Tm69EjbjtConu", @@ -197,7 +197,9 @@ public async Task CreateAsync( /// Retrieves a gift card using the gift card account number (GAN). /// /// - /// await client.GiftCards.GetFromGanAsync(new GetGiftCardFromGanRequest { Gan = "7783320001001635" }); + /// await client.Default.GiftCards.GetFromGanAsync( + /// new GetGiftCardFromGanRequest { Gan = "7783320001001635" } + /// ); /// public async Task GetFromGanAsync( GetGiftCardFromGanRequest request, @@ -246,7 +248,7 @@ public async Task GetFromGanAsync( /// Retrieves a gift card using a secure payment token that represents the gift card. /// /// - /// await client.GiftCards.GetFromNonceAsync( + /// await client.Default.GiftCards.GetFromNonceAsync( /// new GetGiftCardFromNonceRequest { Nonce = "cnon:7783322135245171" } /// ); /// @@ -297,7 +299,7 @@ public async Task GetFromNonceAsync( /// Links a customer to a gift card, which is also referred to as adding a card on file. /// /// - /// await client.GiftCards.LinkCustomerAsync( + /// await client.Default.GiftCards.LinkCustomerAsync( /// new LinkCustomerToGiftCardRequest /// { /// GiftCardId = "gift_card_id", @@ -355,7 +357,7 @@ public async Task LinkCustomerAsync( /// Unlinks a customer from a gift card, which is also referred to as removing a card on file. /// /// - /// await client.GiftCards.UnlinkCustomerAsync( + /// await client.Default.GiftCards.UnlinkCustomerAsync( /// new UnlinkCustomerFromGiftCardRequest /// { /// GiftCardId = "gift_card_id", @@ -413,7 +415,7 @@ public async Task UnlinkCustomerAsync( /// Retrieves a gift card using the gift card ID. /// /// - /// await client.GiftCards.GetAsync(new GetGiftCardsRequest { Id = "id" }); + /// await client.Default.GiftCards.GetAsync(new GetGiftCardsRequest { Id = "id" }); /// public async Task GetAsync( GetGiftCardsRequest request, diff --git a/src/Square/GiftCards/IGiftCardsClient.cs b/src/Square/Default/GiftCards/IGiftCardsClient.cs similarity index 97% rename from src/Square/GiftCards/IGiftCardsClient.cs rename to src/Square/Default/GiftCards/IGiftCardsClient.cs index 735e3793..662ee224 100644 --- a/src/Square/GiftCards/IGiftCardsClient.cs +++ b/src/Square/Default/GiftCards/IGiftCardsClient.cs @@ -1,8 +1,8 @@ using Square; using Square.Core; -using Square.GiftCards.Activities; +using Square.Default.GiftCards; -namespace Square.GiftCards; +namespace Square.Default; public partial interface IGiftCardsClient { diff --git a/src/Square/GiftCards/Requests/CreateGiftCardRequest.cs b/src/Square/Default/GiftCards/Requests/CreateGiftCardRequest.cs similarity index 98% rename from src/Square/GiftCards/Requests/CreateGiftCardRequest.cs rename to src/Square/Default/GiftCards/Requests/CreateGiftCardRequest.cs index c122da58..bfbd6114 100644 --- a/src/Square/GiftCards/Requests/CreateGiftCardRequest.cs +++ b/src/Square/Default/GiftCards/Requests/CreateGiftCardRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.GiftCards; +namespace Square.Default; [Serializable] public record CreateGiftCardRequest diff --git a/src/Square/GiftCards/Requests/GetGiftCardFromGanRequest.cs b/src/Square/Default/GiftCards/Requests/GetGiftCardFromGanRequest.cs similarity index 95% rename from src/Square/GiftCards/Requests/GetGiftCardFromGanRequest.cs rename to src/Square/Default/GiftCards/Requests/GetGiftCardFromGanRequest.cs index 33ae8294..f923a6ca 100644 --- a/src/Square/GiftCards/Requests/GetGiftCardFromGanRequest.cs +++ b/src/Square/Default/GiftCards/Requests/GetGiftCardFromGanRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.GiftCards; +namespace Square.Default; [Serializable] public record GetGiftCardFromGanRequest diff --git a/src/Square/GiftCards/Requests/GetGiftCardFromNonceRequest.cs b/src/Square/Default/GiftCards/Requests/GetGiftCardFromNonceRequest.cs similarity index 94% rename from src/Square/GiftCards/Requests/GetGiftCardFromNonceRequest.cs rename to src/Square/Default/GiftCards/Requests/GetGiftCardFromNonceRequest.cs index e4bd8091..cecf4c2a 100644 --- a/src/Square/GiftCards/Requests/GetGiftCardFromNonceRequest.cs +++ b/src/Square/Default/GiftCards/Requests/GetGiftCardFromNonceRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.GiftCards; +namespace Square.Default; [Serializable] public record GetGiftCardFromNonceRequest diff --git a/src/Square/GiftCards/Requests/GetGiftCardsRequest.cs b/src/Square/Default/GiftCards/Requests/GetGiftCardsRequest.cs similarity index 92% rename from src/Square/GiftCards/Requests/GetGiftCardsRequest.cs rename to src/Square/Default/GiftCards/Requests/GetGiftCardsRequest.cs index b80ea34a..cbedd6cd 100644 --- a/src/Square/GiftCards/Requests/GetGiftCardsRequest.cs +++ b/src/Square/Default/GiftCards/Requests/GetGiftCardsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.GiftCards; +namespace Square.Default; [Serializable] public record GetGiftCardsRequest diff --git a/src/Square/GiftCards/Requests/LinkCustomerToGiftCardRequest.cs b/src/Square/Default/GiftCards/Requests/LinkCustomerToGiftCardRequest.cs similarity index 95% rename from src/Square/GiftCards/Requests/LinkCustomerToGiftCardRequest.cs rename to src/Square/Default/GiftCards/Requests/LinkCustomerToGiftCardRequest.cs index 28ee3dc3..673a0dd0 100644 --- a/src/Square/GiftCards/Requests/LinkCustomerToGiftCardRequest.cs +++ b/src/Square/Default/GiftCards/Requests/LinkCustomerToGiftCardRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.GiftCards; +namespace Square.Default; [Serializable] public record LinkCustomerToGiftCardRequest diff --git a/src/Square/GiftCards/Requests/ListGiftCardsRequest.cs b/src/Square/Default/GiftCards/Requests/ListGiftCardsRequest.cs similarity index 98% rename from src/Square/GiftCards/Requests/ListGiftCardsRequest.cs rename to src/Square/Default/GiftCards/Requests/ListGiftCardsRequest.cs index 6d64ae2d..55077830 100644 --- a/src/Square/GiftCards/Requests/ListGiftCardsRequest.cs +++ b/src/Square/Default/GiftCards/Requests/ListGiftCardsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.GiftCards; +namespace Square.Default; [Serializable] public record ListGiftCardsRequest diff --git a/src/Square/GiftCards/Requests/UnlinkCustomerFromGiftCardRequest.cs b/src/Square/Default/GiftCards/Requests/UnlinkCustomerFromGiftCardRequest.cs similarity index 95% rename from src/Square/GiftCards/Requests/UnlinkCustomerFromGiftCardRequest.cs rename to src/Square/Default/GiftCards/Requests/UnlinkCustomerFromGiftCardRequest.cs index 1b244e4f..808ca9c1 100644 --- a/src/Square/GiftCards/Requests/UnlinkCustomerFromGiftCardRequest.cs +++ b/src/Square/Default/GiftCards/Requests/UnlinkCustomerFromGiftCardRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.GiftCards; +namespace Square.Default; [Serializable] public record UnlinkCustomerFromGiftCardRequest diff --git a/src/Square/Default/IDefaultClient.cs b/src/Square/Default/IDefaultClient.cs new file mode 100644 index 00000000..0ee9a95c --- /dev/null +++ b/src/Square/Default/IDefaultClient.cs @@ -0,0 +1,43 @@ +using Square.Default.CashDrawers; +using Square.Default.Webhooks; + +namespace Square.Default; + +public partial interface IDefaultClient +{ + public OAuthClient OAuth { get; } + public V1TransactionsClient V1Transactions { get; } + public ApplePayClient ApplePay { get; } + public BankAccountsClient BankAccounts { get; } + public BookingsClient Bookings { get; } + public CardsClient Cards { get; } + public CatalogClient Catalog { get; } + public ChannelsClient Channels { get; } + public CustomersClient Customers { get; } + public DevicesClient Devices { get; } + public DisputesClient Disputes { get; } + public EmployeesClient Employees { get; } + public EventsClient Events { get; } + public GiftCardsClient GiftCards { get; } + public InventoryClient Inventory { get; } + public InvoicesClient Invoices { get; } + public LaborClient Labor { get; } + public LocationsClient Locations { get; } + public LoyaltyClient Loyalty { get; } + public MerchantsClient Merchants { get; } + public CheckoutClient Checkout { get; } + public OrdersClient Orders { get; } + public PaymentsClient Payments { get; } + public PayoutsClient Payouts { get; } + public RefundsClient Refunds { get; } + public SitesClient Sites { get; } + public SnippetsClient Snippets { get; } + public SubscriptionsClient Subscriptions { get; } + public TeamMembersClient TeamMembers { get; } + public TeamClient Team { get; } + public TerminalClient Terminal { get; } + public TransferOrdersClient TransferOrders { get; } + public VendorsClient Vendors { get; } + public CashDrawersClient CashDrawers { get; } + public WebhooksClient Webhooks { get; } +} diff --git a/src/Square/Inventory/IInventoryClient.cs b/src/Square/Default/Inventory/IInventoryClient.cs similarity index 99% rename from src/Square/Inventory/IInventoryClient.cs rename to src/Square/Default/Inventory/IInventoryClient.cs index b6a5d0c8..c305e13f 100644 --- a/src/Square/Inventory/IInventoryClient.cs +++ b/src/Square/Default/Inventory/IInventoryClient.cs @@ -1,7 +1,7 @@ using Square; using Square.Core; -namespace Square.Inventory; +namespace Square.Default; public partial interface IInventoryClient { diff --git a/src/Square/Inventory/InventoryClient.cs b/src/Square/Default/Inventory/InventoryClient.cs similarity index 97% rename from src/Square/Inventory/InventoryClient.cs rename to src/Square/Default/Inventory/InventoryClient.cs index acae06db..4a03faf1 100644 --- a/src/Square/Inventory/InventoryClient.cs +++ b/src/Square/Default/Inventory/InventoryClient.cs @@ -2,7 +2,7 @@ using Square; using Square.Core; -namespace Square.Inventory; +namespace Square.Default; public partial class InventoryClient : IInventoryClient { @@ -256,7 +256,7 @@ private async Task ChangesInternalAsync( /// is updated to conform to the standard convention. /// /// - /// await client.Inventory.DeprecatedGetAdjustmentAsync( + /// await client.Default.Inventory.DeprecatedGetAdjustmentAsync( /// new DeprecatedGetAdjustmentInventoryRequest { AdjustmentId = "adjustment_id" } /// ); /// @@ -309,7 +309,7 @@ public async Task DeprecatedGetAdjustmentAsync( /// with the provided `adjustment_id`. /// /// - /// await client.Inventory.GetAdjustmentAsync( + /// await client.Default.Inventory.GetAdjustmentAsync( /// new GetAdjustmentInventoryRequest { AdjustmentId = "adjustment_id" } /// ); /// @@ -362,7 +362,7 @@ public async Task GetAdjustmentAsync( /// is updated to conform to the standard convention. /// /// - /// await client.Inventory.DeprecatedBatchChangeAsync( + /// await client.Default.Inventory.DeprecatedBatchChangeAsync( /// new BatchChangeInventoryRequest /// { /// IdempotencyKey = "8fc6a5b0-9fe8-4b46-b46b-2ef95793abbe", @@ -435,7 +435,7 @@ public async Task DeprecatedBatchChangeAsync( /// is updated to conform to the standard convention. /// /// - /// await client.Inventory.DeprecatedBatchGetChangesAsync( + /// await client.Default.Inventory.DeprecatedBatchGetChangesAsync( /// new BatchRetrieveInventoryChangesRequest /// { /// CatalogObjectIds = new List<string>() { "W62UWFY35CWMYGVWK6TWJDNI" }, @@ -495,7 +495,7 @@ public async Task DeprecatedBatchGetChangesAsy /// is updated to conform to the standard convention. /// /// - /// await client.Inventory.DeprecatedBatchGetCountsAsync( + /// await client.Default.Inventory.DeprecatedBatchGetCountsAsync( /// new BatchGetInventoryCountsRequest /// { /// CatalogObjectIds = new List<string>() { "W62UWFY35CWMYGVWK6TWJDNI" }, @@ -555,7 +555,7 @@ public async Task DeprecatedBatchGetCountsAsync /// On failure: returns a list of related errors. /// /// - /// await client.Inventory.BatchCreateChangesAsync( + /// await client.Default.Inventory.BatchCreateChangesAsync( /// new BatchChangeInventoryRequest /// { /// IdempotencyKey = "8fc6a5b0-9fe8-4b46-b46b-2ef95793abbe", @@ -634,7 +634,7 @@ public async Task BatchCreateChangesAsync( /// that cannot be handled by other, simpler endpoints. /// /// - /// await client.Inventory.BatchGetChangesAsync( + /// await client.Default.Inventory.BatchGetChangesAsync( /// new BatchRetrieveInventoryChangesRequest /// { /// CatalogObjectIds = new List<string>() { "W62UWFY35CWMYGVWK6TWJDNI" }, @@ -693,7 +693,7 @@ public async Task> BatchGetChangesAsync( /// in response to receiving a Webhook notification. /// /// - /// await client.Inventory.BatchGetCountsAsync( + /// await client.Default.Inventory.BatchGetCountsAsync( /// new BatchGetInventoryCountsRequest /// { /// CatalogObjectIds = new List<string>() { "W62UWFY35CWMYGVWK6TWJDNI" }, @@ -740,7 +740,7 @@ public async Task> BatchGetCountsAsync( /// is updated to conform to the standard convention. /// /// - /// await client.Inventory.DeprecatedGetPhysicalCountAsync( + /// await client.Default.Inventory.DeprecatedGetPhysicalCountAsync( /// new DeprecatedGetPhysicalCountInventoryRequest { PhysicalCountId = "physical_count_id" } /// ); /// @@ -793,7 +793,7 @@ public async Task DeprecatedGetPhysicalCountA /// object with the provided `physical_count_id`. /// /// - /// await client.Inventory.GetPhysicalCountAsync( + /// await client.Default.Inventory.GetPhysicalCountAsync( /// new GetPhysicalCountInventoryRequest { PhysicalCountId = "physical_count_id" } /// ); /// @@ -846,7 +846,7 @@ public async Task GetPhysicalCountAsync( /// with the provided `transfer_id`. /// /// - /// await client.Inventory.GetTransferAsync( + /// await client.Default.Inventory.GetTransferAsync( /// new GetTransferInventoryRequest { TransferId = "transfer_id" } /// ); /// @@ -901,7 +901,7 @@ public async Task GetTransferAsync( /// For more sophisticated queries, use a batch endpoint. /// /// - /// await client.Inventory.GetAsync( + /// await client.Default.Inventory.GetAsync( /// new GetInventoryRequest /// { /// CatalogObjectId = "catalog_object_id", @@ -959,7 +959,7 @@ public async Task> GetAsync( /// sophisticated queries, use a batch endpoint. /// /// - /// await client.Inventory.ChangesAsync( + /// await client.Default.Inventory.ChangesAsync( /// new ChangesInventoryRequest /// { /// CatalogObjectId = "catalog_object_id", diff --git a/src/Square/Inventory/Requests/ChangesInventoryRequest.cs b/src/Square/Default/Inventory/Requests/ChangesInventoryRequest.cs similarity index 97% rename from src/Square/Inventory/Requests/ChangesInventoryRequest.cs rename to src/Square/Default/Inventory/Requests/ChangesInventoryRequest.cs index 6c65d697..88a2fe75 100644 --- a/src/Square/Inventory/Requests/ChangesInventoryRequest.cs +++ b/src/Square/Default/Inventory/Requests/ChangesInventoryRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Inventory; +namespace Square.Default; [Serializable] public record ChangesInventoryRequest diff --git a/src/Square/Inventory/Requests/DeprecatedGetAdjustmentInventoryRequest.cs b/src/Square/Default/Inventory/Requests/DeprecatedGetAdjustmentInventoryRequest.cs similarity index 93% rename from src/Square/Inventory/Requests/DeprecatedGetAdjustmentInventoryRequest.cs rename to src/Square/Default/Inventory/Requests/DeprecatedGetAdjustmentInventoryRequest.cs index 9af30313..10b89625 100644 --- a/src/Square/Inventory/Requests/DeprecatedGetAdjustmentInventoryRequest.cs +++ b/src/Square/Default/Inventory/Requests/DeprecatedGetAdjustmentInventoryRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Inventory; +namespace Square.Default; [Serializable] public record DeprecatedGetAdjustmentInventoryRequest diff --git a/src/Square/Inventory/Requests/DeprecatedGetPhysicalCountInventoryRequest.cs b/src/Square/Default/Inventory/Requests/DeprecatedGetPhysicalCountInventoryRequest.cs similarity index 94% rename from src/Square/Inventory/Requests/DeprecatedGetPhysicalCountInventoryRequest.cs rename to src/Square/Default/Inventory/Requests/DeprecatedGetPhysicalCountInventoryRequest.cs index 91dbca0e..5a2ef63c 100644 --- a/src/Square/Inventory/Requests/DeprecatedGetPhysicalCountInventoryRequest.cs +++ b/src/Square/Default/Inventory/Requests/DeprecatedGetPhysicalCountInventoryRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Inventory; +namespace Square.Default; [Serializable] public record DeprecatedGetPhysicalCountInventoryRequest diff --git a/src/Square/Inventory/Requests/GetAdjustmentInventoryRequest.cs b/src/Square/Default/Inventory/Requests/GetAdjustmentInventoryRequest.cs similarity index 93% rename from src/Square/Inventory/Requests/GetAdjustmentInventoryRequest.cs rename to src/Square/Default/Inventory/Requests/GetAdjustmentInventoryRequest.cs index 85a6c76d..4ec9f539 100644 --- a/src/Square/Inventory/Requests/GetAdjustmentInventoryRequest.cs +++ b/src/Square/Default/Inventory/Requests/GetAdjustmentInventoryRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Inventory; +namespace Square.Default; [Serializable] public record GetAdjustmentInventoryRequest diff --git a/src/Square/Inventory/Requests/GetInventoryRequest.cs b/src/Square/Default/Inventory/Requests/GetInventoryRequest.cs similarity index 97% rename from src/Square/Inventory/Requests/GetInventoryRequest.cs rename to src/Square/Default/Inventory/Requests/GetInventoryRequest.cs index b1e8d930..06e94fcb 100644 --- a/src/Square/Inventory/Requests/GetInventoryRequest.cs +++ b/src/Square/Default/Inventory/Requests/GetInventoryRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Inventory; +namespace Square.Default; [Serializable] public record GetInventoryRequest diff --git a/src/Square/Inventory/Requests/GetPhysicalCountInventoryRequest.cs b/src/Square/Default/Inventory/Requests/GetPhysicalCountInventoryRequest.cs similarity index 94% rename from src/Square/Inventory/Requests/GetPhysicalCountInventoryRequest.cs rename to src/Square/Default/Inventory/Requests/GetPhysicalCountInventoryRequest.cs index 9754a38e..531700b1 100644 --- a/src/Square/Inventory/Requests/GetPhysicalCountInventoryRequest.cs +++ b/src/Square/Default/Inventory/Requests/GetPhysicalCountInventoryRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Inventory; +namespace Square.Default; [Serializable] public record GetPhysicalCountInventoryRequest diff --git a/src/Square/Inventory/Requests/GetTransferInventoryRequest.cs b/src/Square/Default/Inventory/Requests/GetTransferInventoryRequest.cs similarity index 93% rename from src/Square/Inventory/Requests/GetTransferInventoryRequest.cs rename to src/Square/Default/Inventory/Requests/GetTransferInventoryRequest.cs index e7c3ef15..40f4e06c 100644 --- a/src/Square/Inventory/Requests/GetTransferInventoryRequest.cs +++ b/src/Square/Default/Inventory/Requests/GetTransferInventoryRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Inventory; +namespace Square.Default; [Serializable] public record GetTransferInventoryRequest diff --git a/src/Square/Invoices/IInvoicesClient.cs b/src/Square/Default/Invoices/IInvoicesClient.cs similarity index 99% rename from src/Square/Invoices/IInvoicesClient.cs rename to src/Square/Default/Invoices/IInvoicesClient.cs index 422bf5ba..6a33cb59 100644 --- a/src/Square/Invoices/IInvoicesClient.cs +++ b/src/Square/Default/Invoices/IInvoicesClient.cs @@ -1,7 +1,7 @@ using Square; using Square.Core; -namespace Square.Invoices; +namespace Square.Default; public partial interface IInvoicesClient { diff --git a/src/Square/Invoices/InvoicesClient.cs b/src/Square/Default/Invoices/InvoicesClient.cs similarity index 97% rename from src/Square/Invoices/InvoicesClient.cs rename to src/Square/Default/Invoices/InvoicesClient.cs index 6a0704ab..b76a43b9 100644 --- a/src/Square/Invoices/InvoicesClient.cs +++ b/src/Square/Default/Invoices/InvoicesClient.cs @@ -2,7 +2,7 @@ using Square; using Square.Core; -namespace Square.Invoices; +namespace Square.Default; public partial class InvoicesClient : IInvoicesClient { @@ -76,7 +76,7 @@ private async Task ListInternalAsync( /// use in a subsequent request to retrieve the next set of invoices. /// /// - /// await client.Invoices.ListAsync( + /// await client.Default.Invoices.ListAsync( /// new ListInvoicesRequest /// { /// LocationId = "location_id", @@ -126,7 +126,7 @@ public async Task> ListAsync( /// You must publish the invoice before Square can process it (send it to the customer's email address or charge the customer’s card on file). /// /// - /// await client.Invoices.CreateAsync( + /// await client.Default.Invoices.CreateAsync( /// new CreateInvoiceRequest /// { /// Invoice = new Invoice @@ -240,7 +240,7 @@ public async Task CreateAsync( /// that you use in a subsequent request to retrieve the next set of invoices. /// /// - /// await client.Invoices.SearchAsync( + /// await client.Default.Invoices.SearchAsync( /// new SearchInvoicesRequest /// { /// Query = new InvoiceQuery @@ -303,7 +303,7 @@ public async Task SearchAsync( /// Retrieves an invoice by invoice ID. /// /// - /// await client.Invoices.GetAsync(new GetInvoicesRequest { InvoiceId = "invoice_id" }); + /// await client.Default.Invoices.GetAsync(new GetInvoicesRequest { InvoiceId = "invoice_id" }); /// public async Task GetAsync( GetInvoicesRequest request, @@ -356,7 +356,7 @@ public async Task GetAsync( /// `order_id` or `location_id` field. /// /// - /// await client.Invoices.UpdateAsync( + /// await client.Default.Invoices.UpdateAsync( /// new UpdateInvoiceRequest /// { /// InvoiceId = "invoice_id", @@ -428,7 +428,7 @@ public async Task UpdateAsync( /// invoice (you cannot delete a published invoice, including one that is scheduled for processing). /// /// - /// await client.Invoices.DeleteAsync( + /// await client.Default.Invoices.DeleteAsync( /// new DeleteInvoicesRequest { InvoiceId = "invoice_id", Version = 1 } /// ); /// @@ -493,7 +493,7 @@ public async Task DeleteAsync( /// __NOTE:__ When testing in the Sandbox environment, the total file size is limited to 1 KB. /// /// - /// await client.Invoices.CreateInvoiceAttachmentAsync( + /// await client.Default.Invoices.CreateInvoiceAttachmentAsync( /// new CreateInvoiceAttachmentRequest { InvoiceId = "invoice_id" } /// ); /// @@ -550,7 +550,7 @@ public async Task CreateInvoiceAttachmentAsync( /// from invoices in the `DRAFT`, `SCHEDULED`, `UNPAID`, or `PARTIALLY_PAID` state. /// /// - /// await client.Invoices.DeleteInvoiceAttachmentAsync( + /// await client.Default.Invoices.DeleteInvoiceAttachmentAsync( /// new DeleteInvoiceAttachmentRequest { InvoiceId = "invoice_id", AttachmentId = "attachment_id" } /// ); /// @@ -606,7 +606,7 @@ public async Task DeleteInvoiceAttachmentAsync( /// You cannot cancel an invoice in the `DRAFT` state or in a terminal state: `PAID`, `REFUNDED`, `CANCELED`, or `FAILED`. /// /// - /// await client.Invoices.CancelAsync( + /// await client.Default.Invoices.CancelAsync( /// new CancelInvoiceRequest { InvoiceId = "invoice_id", Version = 0 } /// ); /// @@ -673,7 +673,7 @@ public async Task CancelAsync( /// and `PAYMENTS_WRITE` are required when publishing invoices configured for card-on-file payments. /// /// - /// await client.Invoices.PublishAsync( + /// await client.Default.Invoices.PublishAsync( /// new PublishInvoiceRequest /// { /// InvoiceId = "invoice_id", diff --git a/src/Square/Invoices/Requests/CancelInvoiceRequest.cs b/src/Square/Default/Invoices/Requests/CancelInvoiceRequest.cs similarity index 96% rename from src/Square/Invoices/Requests/CancelInvoiceRequest.cs rename to src/Square/Default/Invoices/Requests/CancelInvoiceRequest.cs index 9b5b4721..95a411fb 100644 --- a/src/Square/Invoices/Requests/CancelInvoiceRequest.cs +++ b/src/Square/Default/Invoices/Requests/CancelInvoiceRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Invoices; +namespace Square.Default; [Serializable] public record CancelInvoiceRequest diff --git a/src/Square/Invoices/Requests/CreateInvoiceAttachmentRequest.cs b/src/Square/Default/Invoices/Requests/CreateInvoiceAttachmentRequest.cs similarity index 95% rename from src/Square/Invoices/Requests/CreateInvoiceAttachmentRequest.cs rename to src/Square/Default/Invoices/Requests/CreateInvoiceAttachmentRequest.cs index 0bc75695..af6493d1 100644 --- a/src/Square/Invoices/Requests/CreateInvoiceAttachmentRequest.cs +++ b/src/Square/Default/Invoices/Requests/CreateInvoiceAttachmentRequest.cs @@ -2,7 +2,7 @@ using Square; using Square.Core; -namespace Square.Invoices; +namespace Square.Default; [Serializable] public record CreateInvoiceAttachmentRequest diff --git a/src/Square/Invoices/Requests/CreateInvoiceRequest.cs b/src/Square/Default/Invoices/Requests/CreateInvoiceRequest.cs similarity index 95% rename from src/Square/Invoices/Requests/CreateInvoiceRequest.cs rename to src/Square/Default/Invoices/Requests/CreateInvoiceRequest.cs index 97028456..97f4655c 100644 --- a/src/Square/Invoices/Requests/CreateInvoiceRequest.cs +++ b/src/Square/Default/Invoices/Requests/CreateInvoiceRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Invoices; +namespace Square.Default; [Serializable] public record CreateInvoiceRequest diff --git a/src/Square/Invoices/Requests/DeleteInvoiceAttachmentRequest.cs b/src/Square/Default/Invoices/Requests/DeleteInvoiceAttachmentRequest.cs similarity index 95% rename from src/Square/Invoices/Requests/DeleteInvoiceAttachmentRequest.cs rename to src/Square/Default/Invoices/Requests/DeleteInvoiceAttachmentRequest.cs index 7897eafb..b8068b35 100644 --- a/src/Square/Invoices/Requests/DeleteInvoiceAttachmentRequest.cs +++ b/src/Square/Default/Invoices/Requests/DeleteInvoiceAttachmentRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Invoices; +namespace Square.Default; [Serializable] public record DeleteInvoiceAttachmentRequest diff --git a/src/Square/Invoices/Requests/DeleteInvoicesRequest.cs b/src/Square/Default/Invoices/Requests/DeleteInvoicesRequest.cs similarity index 96% rename from src/Square/Invoices/Requests/DeleteInvoicesRequest.cs rename to src/Square/Default/Invoices/Requests/DeleteInvoicesRequest.cs index b247966d..2f60c9ac 100644 --- a/src/Square/Invoices/Requests/DeleteInvoicesRequest.cs +++ b/src/Square/Default/Invoices/Requests/DeleteInvoicesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Invoices; +namespace Square.Default; [Serializable] public record DeleteInvoicesRequest diff --git a/src/Square/Invoices/Requests/GetInvoicesRequest.cs b/src/Square/Default/Invoices/Requests/GetInvoicesRequest.cs similarity index 93% rename from src/Square/Invoices/Requests/GetInvoicesRequest.cs rename to src/Square/Default/Invoices/Requests/GetInvoicesRequest.cs index c22fb797..caf9a4f0 100644 --- a/src/Square/Invoices/Requests/GetInvoicesRequest.cs +++ b/src/Square/Default/Invoices/Requests/GetInvoicesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Invoices; +namespace Square.Default; [Serializable] public record GetInvoicesRequest diff --git a/src/Square/Invoices/Requests/ListInvoicesRequest.cs b/src/Square/Default/Invoices/Requests/ListInvoicesRequest.cs similarity index 97% rename from src/Square/Invoices/Requests/ListInvoicesRequest.cs rename to src/Square/Default/Invoices/Requests/ListInvoicesRequest.cs index d554bc62..b43a66d3 100644 --- a/src/Square/Invoices/Requests/ListInvoicesRequest.cs +++ b/src/Square/Default/Invoices/Requests/ListInvoicesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Invoices; +namespace Square.Default; [Serializable] public record ListInvoicesRequest diff --git a/src/Square/Invoices/Requests/PublishInvoiceRequest.cs b/src/Square/Default/Invoices/Requests/PublishInvoiceRequest.cs similarity index 97% rename from src/Square/Invoices/Requests/PublishInvoiceRequest.cs rename to src/Square/Default/Invoices/Requests/PublishInvoiceRequest.cs index 2f7e7137..b762038c 100644 --- a/src/Square/Invoices/Requests/PublishInvoiceRequest.cs +++ b/src/Square/Default/Invoices/Requests/PublishInvoiceRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Invoices; +namespace Square.Default; [Serializable] public record PublishInvoiceRequest diff --git a/src/Square/Invoices/Requests/SearchInvoicesRequest.cs b/src/Square/Default/Invoices/Requests/SearchInvoicesRequest.cs similarity index 96% rename from src/Square/Invoices/Requests/SearchInvoicesRequest.cs rename to src/Square/Default/Invoices/Requests/SearchInvoicesRequest.cs index ba321cce..13b9ea98 100644 --- a/src/Square/Invoices/Requests/SearchInvoicesRequest.cs +++ b/src/Square/Default/Invoices/Requests/SearchInvoicesRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Invoices; +namespace Square.Default; [Serializable] public record SearchInvoicesRequest diff --git a/src/Square/Invoices/Requests/UpdateInvoiceRequest.cs b/src/Square/Default/Invoices/Requests/UpdateInvoiceRequest.cs similarity index 97% rename from src/Square/Invoices/Requests/UpdateInvoiceRequest.cs rename to src/Square/Default/Invoices/Requests/UpdateInvoiceRequest.cs index 6a656184..c3a42cb6 100644 --- a/src/Square/Invoices/Requests/UpdateInvoiceRequest.cs +++ b/src/Square/Default/Invoices/Requests/UpdateInvoiceRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Invoices; +namespace Square.Default; [Serializable] public record UpdateInvoiceRequest diff --git a/src/Square/Labor/BreakTypes/BreakTypesClient.cs b/src/Square/Default/Labor/BreakTypes/BreakTypesClient.cs similarity index 96% rename from src/Square/Labor/BreakTypes/BreakTypesClient.cs rename to src/Square/Default/Labor/BreakTypes/BreakTypesClient.cs index 09d8e999..5fb13698 100644 --- a/src/Square/Labor/BreakTypes/BreakTypesClient.cs +++ b/src/Square/Default/Labor/BreakTypes/BreakTypesClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Labor.BreakTypes; +namespace Square.Default.Labor; public partial class BreakTypesClient : IBreakTypesClient { @@ -75,7 +76,7 @@ private async Task ListInternalAsync( /// Returns a paginated list of `BreakType` instances for a business. /// /// - /// await client.Labor.BreakTypes.ListAsync( + /// await client.Default.Labor.BreakTypes.ListAsync( /// new ListBreakTypesRequest /// { /// LocationId = "location_id", @@ -134,7 +135,7 @@ public async Task> ListAsync( /// is returned. /// /// - /// await client.Labor.BreakTypes.CreateAsync( + /// await client.Default.Labor.BreakTypes.CreateAsync( /// new CreateBreakTypeRequest /// { /// IdempotencyKey = "PAD3NG5KSN2GL", @@ -195,7 +196,7 @@ public async Task CreateAsync( /// Returns a single `BreakType` specified by `id`. /// /// - /// await client.Labor.BreakTypes.GetAsync(new GetBreakTypesRequest { Id = "id" }); + /// await client.Default.Labor.BreakTypes.GetAsync(new GetBreakTypesRequest { Id = "id" }); /// public async Task GetAsync( GetBreakTypesRequest request, @@ -245,7 +246,7 @@ public async Task GetAsync( /// Updates an existing `BreakType`. /// /// - /// await client.Labor.BreakTypes.UpdateAsync( + /// await client.Default.Labor.BreakTypes.UpdateAsync( /// new UpdateBreakTypeRequest /// { /// Id = "id", @@ -312,7 +313,7 @@ public async Task UpdateAsync( /// A `BreakType` can be deleted even if it is referenced from a `Shift`. /// /// - /// await client.Labor.BreakTypes.DeleteAsync(new DeleteBreakTypesRequest { Id = "id" }); + /// await client.Default.Labor.BreakTypes.DeleteAsync(new DeleteBreakTypesRequest { Id = "id" }); /// public async Task DeleteAsync( DeleteBreakTypesRequest request, diff --git a/src/Square/Labor/BreakTypes/IBreakTypesClient.cs b/src/Square/Default/Labor/BreakTypes/IBreakTypesClient.cs similarity index 97% rename from src/Square/Labor/BreakTypes/IBreakTypesClient.cs rename to src/Square/Default/Labor/BreakTypes/IBreakTypesClient.cs index b88aaced..daeb6fc5 100644 --- a/src/Square/Labor/BreakTypes/IBreakTypesClient.cs +++ b/src/Square/Default/Labor/BreakTypes/IBreakTypesClient.cs @@ -1,7 +1,8 @@ using Square; using Square.Core; +using Square.Default; -namespace Square.Labor.BreakTypes; +namespace Square.Default.Labor; public partial interface IBreakTypesClient { diff --git a/src/Square/Labor/BreakTypes/Requests/CreateBreakTypeRequest.cs b/src/Square/Default/Labor/BreakTypes/Requests/CreateBreakTypeRequest.cs similarity index 91% rename from src/Square/Labor/BreakTypes/Requests/CreateBreakTypeRequest.cs rename to src/Square/Default/Labor/BreakTypes/Requests/CreateBreakTypeRequest.cs index 078e02b4..416366b0 100644 --- a/src/Square/Labor/BreakTypes/Requests/CreateBreakTypeRequest.cs +++ b/src/Square/Default/Labor/BreakTypes/Requests/CreateBreakTypeRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Labor.BreakTypes; +namespace Square.Default.Labor; [Serializable] public record CreateBreakTypeRequest diff --git a/src/Square/Labor/BreakTypes/Requests/DeleteBreakTypesRequest.cs b/src/Square/Default/Labor/BreakTypes/Requests/DeleteBreakTypesRequest.cs similarity index 91% rename from src/Square/Labor/BreakTypes/Requests/DeleteBreakTypesRequest.cs rename to src/Square/Default/Labor/BreakTypes/Requests/DeleteBreakTypesRequest.cs index 5075be50..4f875afe 100644 --- a/src/Square/Labor/BreakTypes/Requests/DeleteBreakTypesRequest.cs +++ b/src/Square/Default/Labor/BreakTypes/Requests/DeleteBreakTypesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Labor.BreakTypes; +namespace Square.Default.Labor; [Serializable] public record DeleteBreakTypesRequest diff --git a/src/Square/Labor/BreakTypes/Requests/GetBreakTypesRequest.cs b/src/Square/Default/Labor/BreakTypes/Requests/GetBreakTypesRequest.cs similarity index 91% rename from src/Square/Labor/BreakTypes/Requests/GetBreakTypesRequest.cs rename to src/Square/Default/Labor/BreakTypes/Requests/GetBreakTypesRequest.cs index 0fb70b69..b49177e2 100644 --- a/src/Square/Labor/BreakTypes/Requests/GetBreakTypesRequest.cs +++ b/src/Square/Default/Labor/BreakTypes/Requests/GetBreakTypesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Labor.BreakTypes; +namespace Square.Default.Labor; [Serializable] public record GetBreakTypesRequest diff --git a/src/Square/Labor/BreakTypes/Requests/ListBreakTypesRequest.cs b/src/Square/Default/Labor/BreakTypes/Requests/ListBreakTypesRequest.cs similarity index 95% rename from src/Square/Labor/BreakTypes/Requests/ListBreakTypesRequest.cs rename to src/Square/Default/Labor/BreakTypes/Requests/ListBreakTypesRequest.cs index 37841005..c1524a61 100644 --- a/src/Square/Labor/BreakTypes/Requests/ListBreakTypesRequest.cs +++ b/src/Square/Default/Labor/BreakTypes/Requests/ListBreakTypesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Labor.BreakTypes; +namespace Square.Default.Labor; [Serializable] public record ListBreakTypesRequest diff --git a/src/Square/Labor/BreakTypes/Requests/UpdateBreakTypeRequest.cs b/src/Square/Default/Labor/BreakTypes/Requests/UpdateBreakTypeRequest.cs similarity index 90% rename from src/Square/Labor/BreakTypes/Requests/UpdateBreakTypeRequest.cs rename to src/Square/Default/Labor/BreakTypes/Requests/UpdateBreakTypeRequest.cs index cc644c15..0d1a3c5d 100644 --- a/src/Square/Labor/BreakTypes/Requests/UpdateBreakTypeRequest.cs +++ b/src/Square/Default/Labor/BreakTypes/Requests/UpdateBreakTypeRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Labor.BreakTypes; +namespace Square.Default.Labor; [Serializable] public record UpdateBreakTypeRequest diff --git a/src/Square/Labor/EmployeeWages/EmployeeWagesClient.cs b/src/Square/Default/Labor/EmployeeWages/EmployeeWagesClient.cs similarity index 95% rename from src/Square/Labor/EmployeeWages/EmployeeWagesClient.cs rename to src/Square/Default/Labor/EmployeeWages/EmployeeWagesClient.cs index 0d39a558..b89609f8 100644 --- a/src/Square/Labor/EmployeeWages/EmployeeWagesClient.cs +++ b/src/Square/Default/Labor/EmployeeWages/EmployeeWagesClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Labor.EmployeeWages; +namespace Square.Default.Labor; public partial class EmployeeWagesClient : IEmployeeWagesClient { @@ -75,7 +76,7 @@ private async Task ListInternalAsync( /// Returns a paginated list of `EmployeeWage` instances for a business. /// /// - /// await client.Labor.EmployeeWages.ListAsync( + /// await client.Default.Labor.EmployeeWages.ListAsync( /// new ListEmployeeWagesRequest /// { /// EmployeeId = "employee_id", @@ -121,7 +122,7 @@ public async Task> ListAsync( /// Returns a single `EmployeeWage` specified by `id`. /// /// - /// await client.Labor.EmployeeWages.GetAsync(new GetEmployeeWagesRequest { Id = "id" }); + /// await client.Default.Labor.EmployeeWages.GetAsync(new GetEmployeeWagesRequest { Id = "id" }); /// public async Task GetAsync( GetEmployeeWagesRequest request, diff --git a/src/Square/Labor/EmployeeWages/IEmployeeWagesClient.cs b/src/Square/Default/Labor/EmployeeWages/IEmployeeWagesClient.cs similarity index 92% rename from src/Square/Labor/EmployeeWages/IEmployeeWagesClient.cs rename to src/Square/Default/Labor/EmployeeWages/IEmployeeWagesClient.cs index 5d0eaa37..70fb6018 100644 --- a/src/Square/Labor/EmployeeWages/IEmployeeWagesClient.cs +++ b/src/Square/Default/Labor/EmployeeWages/IEmployeeWagesClient.cs @@ -1,7 +1,8 @@ using Square; using Square.Core; +using Square.Default; -namespace Square.Labor.EmployeeWages; +namespace Square.Default.Labor; public partial interface IEmployeeWagesClient { diff --git a/src/Square/Labor/EmployeeWages/Requests/GetEmployeeWagesRequest.cs b/src/Square/Default/Labor/EmployeeWages/Requests/GetEmployeeWagesRequest.cs similarity index 91% rename from src/Square/Labor/EmployeeWages/Requests/GetEmployeeWagesRequest.cs rename to src/Square/Default/Labor/EmployeeWages/Requests/GetEmployeeWagesRequest.cs index 9db169da..c1f1c63e 100644 --- a/src/Square/Labor/EmployeeWages/Requests/GetEmployeeWagesRequest.cs +++ b/src/Square/Default/Labor/EmployeeWages/Requests/GetEmployeeWagesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Labor.EmployeeWages; +namespace Square.Default.Labor; [Serializable] public record GetEmployeeWagesRequest diff --git a/src/Square/Labor/EmployeeWages/Requests/ListEmployeeWagesRequest.cs b/src/Square/Default/Labor/EmployeeWages/Requests/ListEmployeeWagesRequest.cs similarity index 95% rename from src/Square/Labor/EmployeeWages/Requests/ListEmployeeWagesRequest.cs rename to src/Square/Default/Labor/EmployeeWages/Requests/ListEmployeeWagesRequest.cs index 3e89d810..cc158510 100644 --- a/src/Square/Labor/EmployeeWages/Requests/ListEmployeeWagesRequest.cs +++ b/src/Square/Default/Labor/EmployeeWages/Requests/ListEmployeeWagesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Labor.EmployeeWages; +namespace Square.Default.Labor; [Serializable] public record ListEmployeeWagesRequest diff --git a/src/Square/Labor/ILaborClient.cs b/src/Square/Default/Labor/ILaborClient.cs similarity index 96% rename from src/Square/Labor/ILaborClient.cs rename to src/Square/Default/Labor/ILaborClient.cs index 2d0a4f1f..6d3bdb57 100644 --- a/src/Square/Labor/ILaborClient.cs +++ b/src/Square/Default/Labor/ILaborClient.cs @@ -1,16 +1,13 @@ using Square; -using Square.Labor.BreakTypes; -using Square.Labor.EmployeeWages; -using Square.Labor.TeamMemberWages; -using Square.Labor.WorkweekConfigs; +using Square.Default.Labor; -namespace Square.Labor; +namespace Square.Default; public partial interface ILaborClient { public BreakTypesClient BreakTypes { get; } public EmployeeWagesClient EmployeeWages { get; } - public Square.Labor.Shifts.ShiftsClient Shifts { get; } + public Square.Default.Labor.ShiftsClient Shifts { get; } public TeamMemberWagesClient TeamMemberWages { get; } public WorkweekConfigsClient WorkweekConfigs { get; } diff --git a/src/Square/Labor/LaborClient.cs b/src/Square/Default/Labor/LaborClient.cs similarity index 96% rename from src/Square/Labor/LaborClient.cs rename to src/Square/Default/Labor/LaborClient.cs index 6bef62da..7db8209a 100644 --- a/src/Square/Labor/LaborClient.cs +++ b/src/Square/Default/Labor/LaborClient.cs @@ -1,12 +1,9 @@ using System.Text.Json; using Square; using Square.Core; -using Square.Labor.BreakTypes; -using Square.Labor.EmployeeWages; -using Square.Labor.TeamMemberWages; -using Square.Labor.WorkweekConfigs; +using Square.Default.Labor; -namespace Square.Labor; +namespace Square.Default; public partial class LaborClient : ILaborClient { @@ -17,7 +14,7 @@ internal LaborClient(RawClient client) _client = client; BreakTypes = new BreakTypesClient(_client); EmployeeWages = new EmployeeWagesClient(_client); - Shifts = new Square.Labor.Shifts.ShiftsClient(_client); + Shifts = new Square.Default.Labor.ShiftsClient(_client); TeamMemberWages = new TeamMemberWagesClient(_client); WorkweekConfigs = new WorkweekConfigsClient(_client); } @@ -26,7 +23,7 @@ internal LaborClient(RawClient client) public EmployeeWagesClient EmployeeWages { get; } - public Square.Labor.Shifts.ShiftsClient Shifts { get; } + public Square.Default.Labor.ShiftsClient Shifts { get; } public TeamMemberWagesClient TeamMemberWages { get; } @@ -43,7 +40,7 @@ internal LaborClient(RawClient client) /// - `end_at` /// /// - /// await client.Labor.CreateScheduledShiftAsync( + /// await client.Default.Labor.CreateScheduledShiftAsync( /// new CreateScheduledShiftRequest /// { /// IdempotencyKey = "HIDSNG5KS478L", @@ -115,7 +112,7 @@ public async Task CreateScheduledShiftAsync( /// `BulkPublishScheduledShifts` request must fall within a two-week period. /// /// - /// await client.Labor.BulkPublishScheduledShiftsAsync( + /// await client.Default.Labor.BulkPublishScheduledShiftsAsync( /// new BulkPublishScheduledShiftsRequest /// { /// ScheduledShifts = new Dictionary<string, BulkPublishScheduledShiftsData>() @@ -174,7 +171,7 @@ public async Task BulkPublishScheduledShifts /// By default, results are sorted by `start_at` in ascending order. /// /// - /// await client.Labor.SearchScheduledShiftsAsync( + /// await client.Default.Labor.SearchScheduledShiftsAsync( /// new SearchScheduledShiftsRequest /// { /// Query = new ScheduledShiftQuery @@ -241,7 +238,9 @@ public async Task SearchScheduledShiftsAsync( /// Retrieves a scheduled shift by ID. /// /// - /// await client.Labor.RetrieveScheduledShiftAsync(new RetrieveScheduledShiftRequest { Id = "id" }); + /// await client.Default.Labor.RetrieveScheduledShiftAsync( + /// new RetrieveScheduledShiftRequest { Id = "id" } + /// ); /// public async Task RetrieveScheduledShiftAsync( RetrieveScheduledShiftRequest request, @@ -300,7 +299,7 @@ public async Task RetrieveScheduledShiftAsync( /// and then publish the shift. /// /// - /// await client.Labor.UpdateScheduledShiftAsync( + /// await client.Default.Labor.UpdateScheduledShiftAsync( /// new UpdateScheduledShiftRequest /// { /// Id = "id", @@ -372,7 +371,7 @@ public async Task UpdateScheduledShiftAsync( /// `draft_shift_details` field as is and copies it to the `published_shift_details` field. /// /// - /// await client.Labor.PublishScheduledShiftAsync( + /// await client.Default.Labor.PublishScheduledShiftAsync( /// new PublishScheduledShiftRequest /// { /// Id = "id", @@ -449,7 +448,7 @@ public async Task PublishScheduledShiftAsync( /// the `Timecard.end_at`, or both. /// /// - /// await client.Labor.CreateTimecardAsync( + /// await client.Default.Labor.CreateTimecardAsync( /// new CreateTimecardRequest /// { /// IdempotencyKey = "HIDSNG5KS478L", @@ -542,7 +541,7 @@ public async Task CreateTimecardAsync( /// - `UPDATED_AT` /// /// - /// await client.Labor.SearchTimecardsAsync( + /// await client.Default.Labor.SearchTimecardsAsync( /// new SearchTimecardsRequest /// { /// Query = new TimecardQuery @@ -608,7 +607,7 @@ public async Task SearchTimecardsAsync( /// Returns a single `Timecard` specified by `id`. /// /// - /// await client.Labor.RetrieveTimecardAsync(new RetrieveTimecardRequest { Id = "id" }); + /// await client.Default.Labor.RetrieveTimecardAsync(new RetrieveTimecardRequest { Id = "id" }); /// public async Task RetrieveTimecardAsync( RetrieveTimecardRequest request, @@ -664,7 +663,7 @@ public async Task RetrieveTimecardAsync( /// set on each `Break`. /// /// - /// await client.Labor.UpdateTimecardAsync( + /// await client.Default.Labor.UpdateTimecardAsync( /// new UpdateTimecardRequest /// { /// Id = "id", @@ -750,7 +749,7 @@ public async Task UpdateTimecardAsync( /// Deletes a `Timecard`. /// /// - /// await client.Labor.DeleteTimecardAsync(new DeleteTimecardRequest { Id = "id" }); + /// await client.Default.Labor.DeleteTimecardAsync(new DeleteTimecardRequest { Id = "id" }); /// public async Task DeleteTimecardAsync( DeleteTimecardRequest request, diff --git a/src/Square/Labor/Requests/BulkPublishScheduledShiftsRequest.cs b/src/Square/Default/Labor/Requests/BulkPublishScheduledShiftsRequest.cs similarity index 97% rename from src/Square/Labor/Requests/BulkPublishScheduledShiftsRequest.cs rename to src/Square/Default/Labor/Requests/BulkPublishScheduledShiftsRequest.cs index d3026b2a..d3de23ac 100644 --- a/src/Square/Labor/Requests/BulkPublishScheduledShiftsRequest.cs +++ b/src/Square/Default/Labor/Requests/BulkPublishScheduledShiftsRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Labor; +namespace Square.Default; [Serializable] public record BulkPublishScheduledShiftsRequest diff --git a/src/Square/Labor/Requests/CreateScheduledShiftRequest.cs b/src/Square/Default/Labor/Requests/CreateScheduledShiftRequest.cs similarity index 97% rename from src/Square/Labor/Requests/CreateScheduledShiftRequest.cs rename to src/Square/Default/Labor/Requests/CreateScheduledShiftRequest.cs index ea540242..dd1153dd 100644 --- a/src/Square/Labor/Requests/CreateScheduledShiftRequest.cs +++ b/src/Square/Default/Labor/Requests/CreateScheduledShiftRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Labor; +namespace Square.Default; [Serializable] public record CreateScheduledShiftRequest diff --git a/src/Square/Labor/Requests/CreateTimecardRequest.cs b/src/Square/Default/Labor/Requests/CreateTimecardRequest.cs similarity index 93% rename from src/Square/Labor/Requests/CreateTimecardRequest.cs rename to src/Square/Default/Labor/Requests/CreateTimecardRequest.cs index 2a4cd714..47dd90b1 100644 --- a/src/Square/Labor/Requests/CreateTimecardRequest.cs +++ b/src/Square/Default/Labor/Requests/CreateTimecardRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Labor; +namespace Square.Default; [Serializable] public record CreateTimecardRequest diff --git a/src/Square/Labor/Requests/DeleteTimecardRequest.cs b/src/Square/Default/Labor/Requests/DeleteTimecardRequest.cs similarity index 93% rename from src/Square/Labor/Requests/DeleteTimecardRequest.cs rename to src/Square/Default/Labor/Requests/DeleteTimecardRequest.cs index 3831543d..e976dd7e 100644 --- a/src/Square/Labor/Requests/DeleteTimecardRequest.cs +++ b/src/Square/Default/Labor/Requests/DeleteTimecardRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Labor; +namespace Square.Default; [Serializable] public record DeleteTimecardRequest diff --git a/src/Square/Labor/Requests/PublishScheduledShiftRequest.cs b/src/Square/Default/Labor/Requests/PublishScheduledShiftRequest.cs similarity index 97% rename from src/Square/Labor/Requests/PublishScheduledShiftRequest.cs rename to src/Square/Default/Labor/Requests/PublishScheduledShiftRequest.cs index da54b4d4..e24dfc86 100644 --- a/src/Square/Labor/Requests/PublishScheduledShiftRequest.cs +++ b/src/Square/Default/Labor/Requests/PublishScheduledShiftRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Labor; +namespace Square.Default; [Serializable] public record PublishScheduledShiftRequest diff --git a/src/Square/Labor/Requests/RetrieveScheduledShiftRequest.cs b/src/Square/Default/Labor/Requests/RetrieveScheduledShiftRequest.cs similarity index 93% rename from src/Square/Labor/Requests/RetrieveScheduledShiftRequest.cs rename to src/Square/Default/Labor/Requests/RetrieveScheduledShiftRequest.cs index 942d6e30..10f3c305 100644 --- a/src/Square/Labor/Requests/RetrieveScheduledShiftRequest.cs +++ b/src/Square/Default/Labor/Requests/RetrieveScheduledShiftRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Labor; +namespace Square.Default; [Serializable] public record RetrieveScheduledShiftRequest diff --git a/src/Square/Labor/Requests/RetrieveTimecardRequest.cs b/src/Square/Default/Labor/Requests/RetrieveTimecardRequest.cs similarity index 93% rename from src/Square/Labor/Requests/RetrieveTimecardRequest.cs rename to src/Square/Default/Labor/Requests/RetrieveTimecardRequest.cs index a039a00f..09f197f1 100644 --- a/src/Square/Labor/Requests/RetrieveTimecardRequest.cs +++ b/src/Square/Default/Labor/Requests/RetrieveTimecardRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Labor; +namespace Square.Default; [Serializable] public record RetrieveTimecardRequest diff --git a/src/Square/Labor/Requests/SearchScheduledShiftsRequest.cs b/src/Square/Default/Labor/Requests/SearchScheduledShiftsRequest.cs similarity index 96% rename from src/Square/Labor/Requests/SearchScheduledShiftsRequest.cs rename to src/Square/Default/Labor/Requests/SearchScheduledShiftsRequest.cs index b21893aa..d368949a 100644 --- a/src/Square/Labor/Requests/SearchScheduledShiftsRequest.cs +++ b/src/Square/Default/Labor/Requests/SearchScheduledShiftsRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Labor; +namespace Square.Default; [Serializable] public record SearchScheduledShiftsRequest diff --git a/src/Square/Labor/Requests/SearchTimecardsRequest.cs b/src/Square/Default/Labor/Requests/SearchTimecardsRequest.cs similarity index 94% rename from src/Square/Labor/Requests/SearchTimecardsRequest.cs rename to src/Square/Default/Labor/Requests/SearchTimecardsRequest.cs index 3e6d1c0a..d1929cc0 100644 --- a/src/Square/Labor/Requests/SearchTimecardsRequest.cs +++ b/src/Square/Default/Labor/Requests/SearchTimecardsRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Labor; +namespace Square.Default; [Serializable] public record SearchTimecardsRequest diff --git a/src/Square/Labor/Requests/UpdateScheduledShiftRequest.cs b/src/Square/Default/Labor/Requests/UpdateScheduledShiftRequest.cs similarity index 97% rename from src/Square/Labor/Requests/UpdateScheduledShiftRequest.cs rename to src/Square/Default/Labor/Requests/UpdateScheduledShiftRequest.cs index a89f27ef..a776d444 100644 --- a/src/Square/Labor/Requests/UpdateScheduledShiftRequest.cs +++ b/src/Square/Default/Labor/Requests/UpdateScheduledShiftRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Labor; +namespace Square.Default; [Serializable] public record UpdateScheduledShiftRequest diff --git a/src/Square/Labor/Requests/UpdateTimecardRequest.cs b/src/Square/Default/Labor/Requests/UpdateTimecardRequest.cs similarity index 93% rename from src/Square/Labor/Requests/UpdateTimecardRequest.cs rename to src/Square/Default/Labor/Requests/UpdateTimecardRequest.cs index 62910470..52c33105 100644 --- a/src/Square/Labor/Requests/UpdateTimecardRequest.cs +++ b/src/Square/Default/Labor/Requests/UpdateTimecardRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Labor; +namespace Square.Default; [Serializable] public record UpdateTimecardRequest diff --git a/src/Square/Labor/Shifts/IShiftsClient.cs b/src/Square/Default/Labor/Shifts/IShiftsClient.cs similarity index 98% rename from src/Square/Labor/Shifts/IShiftsClient.cs rename to src/Square/Default/Labor/Shifts/IShiftsClient.cs index dcf56d3f..bc60f2da 100644 --- a/src/Square/Labor/Shifts/IShiftsClient.cs +++ b/src/Square/Default/Labor/Shifts/IShiftsClient.cs @@ -1,6 +1,7 @@ using Square; +using Square.Default; -namespace Square.Labor.Shifts; +namespace Square.Default.Labor; public partial interface IShiftsClient { diff --git a/src/Square/Labor/Shifts/Requests/CreateShiftRequest.cs b/src/Square/Default/Labor/Shifts/Requests/CreateShiftRequest.cs similarity index 91% rename from src/Square/Labor/Shifts/Requests/CreateShiftRequest.cs rename to src/Square/Default/Labor/Shifts/Requests/CreateShiftRequest.cs index aeaccc55..b9b6765f 100644 --- a/src/Square/Labor/Shifts/Requests/CreateShiftRequest.cs +++ b/src/Square/Default/Labor/Shifts/Requests/CreateShiftRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Labor.Shifts; +namespace Square.Default.Labor; [Serializable] public record CreateShiftRequest diff --git a/src/Square/Labor/Shifts/Requests/DeleteShiftsRequest.cs b/src/Square/Default/Labor/Shifts/Requests/DeleteShiftsRequest.cs similarity index 92% rename from src/Square/Labor/Shifts/Requests/DeleteShiftsRequest.cs rename to src/Square/Default/Labor/Shifts/Requests/DeleteShiftsRequest.cs index 16a6ce28..938ea9de 100644 --- a/src/Square/Labor/Shifts/Requests/DeleteShiftsRequest.cs +++ b/src/Square/Default/Labor/Shifts/Requests/DeleteShiftsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Labor.Shifts; +namespace Square.Default.Labor; [Serializable] public record DeleteShiftsRequest diff --git a/src/Square/Labor/Shifts/Requests/GetShiftsRequest.cs b/src/Square/Default/Labor/Shifts/Requests/GetShiftsRequest.cs similarity index 92% rename from src/Square/Labor/Shifts/Requests/GetShiftsRequest.cs rename to src/Square/Default/Labor/Shifts/Requests/GetShiftsRequest.cs index 5fb3bc4c..2b2c740e 100644 --- a/src/Square/Labor/Shifts/Requests/GetShiftsRequest.cs +++ b/src/Square/Default/Labor/Shifts/Requests/GetShiftsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Labor.Shifts; +namespace Square.Default.Labor; [Serializable] public record GetShiftsRequest diff --git a/src/Square/Labor/Shifts/Requests/SearchShiftsRequest.cs b/src/Square/Default/Labor/Shifts/Requests/SearchShiftsRequest.cs similarity index 92% rename from src/Square/Labor/Shifts/Requests/SearchShiftsRequest.cs rename to src/Square/Default/Labor/Shifts/Requests/SearchShiftsRequest.cs index 7588f0ed..85e85a57 100644 --- a/src/Square/Labor/Shifts/Requests/SearchShiftsRequest.cs +++ b/src/Square/Default/Labor/Shifts/Requests/SearchShiftsRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Labor.Shifts; +namespace Square.Default.Labor; [Serializable] public record SearchShiftsRequest diff --git a/src/Square/Labor/Shifts/Requests/UpdateShiftRequest.cs b/src/Square/Default/Labor/Shifts/Requests/UpdateShiftRequest.cs similarity index 90% rename from src/Square/Labor/Shifts/Requests/UpdateShiftRequest.cs rename to src/Square/Default/Labor/Shifts/Requests/UpdateShiftRequest.cs index 380b9f28..9c7882fe 100644 --- a/src/Square/Labor/Shifts/Requests/UpdateShiftRequest.cs +++ b/src/Square/Default/Labor/Shifts/Requests/UpdateShiftRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Labor.Shifts; +namespace Square.Default.Labor; [Serializable] public record UpdateShiftRequest diff --git a/src/Square/Labor/Shifts/ShiftsClient.cs b/src/Square/Default/Labor/Shifts/ShiftsClient.cs similarity index 96% rename from src/Square/Labor/Shifts/ShiftsClient.cs rename to src/Square/Default/Labor/Shifts/ShiftsClient.cs index a46791de..9cef563c 100644 --- a/src/Square/Labor/Shifts/ShiftsClient.cs +++ b/src/Square/Default/Labor/Shifts/ShiftsClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Labor.Shifts; +namespace Square.Default.Labor; public partial class ShiftsClient : IShiftsClient { @@ -34,7 +35,7 @@ internal ShiftsClient(RawClient client) /// the `Shift.end_at`, or both. /// /// - /// await client.Labor.Shifts.CreateAsync( + /// await client.Default.Labor.Shifts.CreateAsync( /// new CreateShiftRequest /// { /// IdempotencyKey = "HIDSNG5KS478L", @@ -127,7 +128,7 @@ public async Task CreateAsync( /// - `UPDATED_AT` /// /// - /// await client.Labor.Shifts.SearchAsync( + /// await client.Default.Labor.Shifts.SearchAsync( /// new SearchShiftsRequest /// { /// Query = new ShiftQuery @@ -193,7 +194,7 @@ public async Task SearchAsync( /// Returns a single `Shift` specified by `id`. /// /// - /// await client.Labor.Shifts.GetAsync(new Square.Labor.Shifts.GetShiftsRequest { Id = "id" }); + /// await client.Default.Labor.Shifts.GetAsync(new Square.Default.Labor.GetShiftsRequest { Id = "id" }); /// public async Task GetAsync( GetShiftsRequest request, @@ -249,7 +250,7 @@ public async Task GetAsync( /// set on each `Break`. /// /// - /// await client.Labor.Shifts.UpdateAsync( + /// await client.Default.Labor.Shifts.UpdateAsync( /// new UpdateShiftRequest /// { /// Id = "id", @@ -334,7 +335,7 @@ public async Task UpdateAsync( /// Deletes a `Shift`. /// /// - /// await client.Labor.Shifts.DeleteAsync(new DeleteShiftsRequest { Id = "id" }); + /// await client.Default.Labor.Shifts.DeleteAsync(new DeleteShiftsRequest { Id = "id" }); /// public async Task DeleteAsync( DeleteShiftsRequest request, diff --git a/src/Square/Labor/TeamMemberWages/ITeamMemberWagesClient.cs b/src/Square/Default/Labor/TeamMemberWages/ITeamMemberWagesClient.cs similarity index 92% rename from src/Square/Labor/TeamMemberWages/ITeamMemberWagesClient.cs rename to src/Square/Default/Labor/TeamMemberWages/ITeamMemberWagesClient.cs index 68bc3ca7..48436b5d 100644 --- a/src/Square/Labor/TeamMemberWages/ITeamMemberWagesClient.cs +++ b/src/Square/Default/Labor/TeamMemberWages/ITeamMemberWagesClient.cs @@ -1,7 +1,8 @@ using Square; using Square.Core; +using Square.Default; -namespace Square.Labor.TeamMemberWages; +namespace Square.Default.Labor; public partial interface ITeamMemberWagesClient { diff --git a/src/Square/Labor/TeamMemberWages/Requests/GetTeamMemberWagesRequest.cs b/src/Square/Default/Labor/TeamMemberWages/Requests/GetTeamMemberWagesRequest.cs similarity index 90% rename from src/Square/Labor/TeamMemberWages/Requests/GetTeamMemberWagesRequest.cs rename to src/Square/Default/Labor/TeamMemberWages/Requests/GetTeamMemberWagesRequest.cs index f5e32586..683df927 100644 --- a/src/Square/Labor/TeamMemberWages/Requests/GetTeamMemberWagesRequest.cs +++ b/src/Square/Default/Labor/TeamMemberWages/Requests/GetTeamMemberWagesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Labor.TeamMemberWages; +namespace Square.Default.Labor; [Serializable] public record GetTeamMemberWagesRequest diff --git a/src/Square/Labor/TeamMemberWages/Requests/ListTeamMemberWagesRequest.cs b/src/Square/Default/Labor/TeamMemberWages/Requests/ListTeamMemberWagesRequest.cs similarity index 95% rename from src/Square/Labor/TeamMemberWages/Requests/ListTeamMemberWagesRequest.cs rename to src/Square/Default/Labor/TeamMemberWages/Requests/ListTeamMemberWagesRequest.cs index 00369141..bd1b5c4c 100644 --- a/src/Square/Labor/TeamMemberWages/Requests/ListTeamMemberWagesRequest.cs +++ b/src/Square/Default/Labor/TeamMemberWages/Requests/ListTeamMemberWagesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Labor.TeamMemberWages; +namespace Square.Default.Labor; [Serializable] public record ListTeamMemberWagesRequest diff --git a/src/Square/Labor/TeamMemberWages/TeamMemberWagesClient.cs b/src/Square/Default/Labor/TeamMemberWages/TeamMemberWagesClient.cs similarity index 95% rename from src/Square/Labor/TeamMemberWages/TeamMemberWagesClient.cs rename to src/Square/Default/Labor/TeamMemberWages/TeamMemberWagesClient.cs index 1fbf03b2..e1e3fa26 100644 --- a/src/Square/Labor/TeamMemberWages/TeamMemberWagesClient.cs +++ b/src/Square/Default/Labor/TeamMemberWages/TeamMemberWagesClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Labor.TeamMemberWages; +namespace Square.Default.Labor; public partial class TeamMemberWagesClient : ITeamMemberWagesClient { @@ -75,7 +76,7 @@ private async Task ListInternalAsync( /// Returns a paginated list of `TeamMemberWage` instances for a business. /// /// - /// await client.Labor.TeamMemberWages.ListAsync( + /// await client.Default.Labor.TeamMemberWages.ListAsync( /// new ListTeamMemberWagesRequest /// { /// TeamMemberId = "team_member_id", @@ -121,7 +122,7 @@ public async Task> ListAsync( /// Returns a single `TeamMemberWage` specified by `id`. /// /// - /// await client.Labor.TeamMemberWages.GetAsync(new GetTeamMemberWagesRequest { Id = "id" }); + /// await client.Default.Labor.TeamMemberWages.GetAsync(new GetTeamMemberWagesRequest { Id = "id" }); /// public async Task GetAsync( GetTeamMemberWagesRequest request, diff --git a/src/Square/Labor/WorkweekConfigs/IWorkweekConfigsClient.cs b/src/Square/Default/Labor/WorkweekConfigs/IWorkweekConfigsClient.cs similarity index 92% rename from src/Square/Labor/WorkweekConfigs/IWorkweekConfigsClient.cs rename to src/Square/Default/Labor/WorkweekConfigs/IWorkweekConfigsClient.cs index 422d3736..3c4a8669 100644 --- a/src/Square/Labor/WorkweekConfigs/IWorkweekConfigsClient.cs +++ b/src/Square/Default/Labor/WorkweekConfigs/IWorkweekConfigsClient.cs @@ -1,7 +1,8 @@ using Square; using Square.Core; +using Square.Default; -namespace Square.Labor.WorkweekConfigs; +namespace Square.Default.Labor; public partial interface IWorkweekConfigsClient { diff --git a/src/Square/Labor/WorkweekConfigs/Requests/ListWorkweekConfigsRequest.cs b/src/Square/Default/Labor/WorkweekConfigs/Requests/ListWorkweekConfigsRequest.cs similarity index 93% rename from src/Square/Labor/WorkweekConfigs/Requests/ListWorkweekConfigsRequest.cs rename to src/Square/Default/Labor/WorkweekConfigs/Requests/ListWorkweekConfigsRequest.cs index 90d9ad85..41a13634 100644 --- a/src/Square/Labor/WorkweekConfigs/Requests/ListWorkweekConfigsRequest.cs +++ b/src/Square/Default/Labor/WorkweekConfigs/Requests/ListWorkweekConfigsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Labor.WorkweekConfigs; +namespace Square.Default.Labor; [Serializable] public record ListWorkweekConfigsRequest diff --git a/src/Square/Labor/WorkweekConfigs/Requests/UpdateWorkweekConfigRequest.cs b/src/Square/Default/Labor/WorkweekConfigs/Requests/UpdateWorkweekConfigRequest.cs similarity index 91% rename from src/Square/Labor/WorkweekConfigs/Requests/UpdateWorkweekConfigRequest.cs rename to src/Square/Default/Labor/WorkweekConfigs/Requests/UpdateWorkweekConfigRequest.cs index 9d784759..b4517082 100644 --- a/src/Square/Labor/WorkweekConfigs/Requests/UpdateWorkweekConfigRequest.cs +++ b/src/Square/Default/Labor/WorkweekConfigs/Requests/UpdateWorkweekConfigRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Labor.WorkweekConfigs; +namespace Square.Default.Labor; [Serializable] public record UpdateWorkweekConfigRequest diff --git a/src/Square/Labor/WorkweekConfigs/WorkweekConfigsClient.cs b/src/Square/Default/Labor/WorkweekConfigs/WorkweekConfigsClient.cs similarity index 96% rename from src/Square/Labor/WorkweekConfigs/WorkweekConfigsClient.cs rename to src/Square/Default/Labor/WorkweekConfigs/WorkweekConfigsClient.cs index 33c19ff5..e7315375 100644 --- a/src/Square/Labor/WorkweekConfigs/WorkweekConfigsClient.cs +++ b/src/Square/Default/Labor/WorkweekConfigs/WorkweekConfigsClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Labor.WorkweekConfigs; +namespace Square.Default.Labor; public partial class WorkweekConfigsClient : IWorkweekConfigsClient { @@ -71,7 +72,7 @@ private async Task ListInternalAsync( /// Returns a list of `WorkweekConfig` instances for a business. /// /// - /// await client.Labor.WorkweekConfigs.ListAsync( + /// await client.Default.Labor.WorkweekConfigs.ListAsync( /// new ListWorkweekConfigsRequest { Limit = 1, Cursor = "cursor" } /// ); /// @@ -112,7 +113,7 @@ public async Task> ListAsync( /// Updates a `WorkweekConfig`. /// /// - /// await client.Labor.WorkweekConfigs.GetAsync( + /// await client.Default.Labor.WorkweekConfigs.GetAsync( /// new UpdateWorkweekConfigRequest /// { /// Id = "id", diff --git a/src/Square/Locations/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs b/src/Square/Default/Locations/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs similarity index 94% rename from src/Square/Locations/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs rename to src/Square/Default/Locations/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs index 39748c52..8b50dab6 100644 --- a/src/Square/Locations/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs +++ b/src/Square/Default/Locations/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Locations.CustomAttributeDefinitions; +namespace Square.Default.Locations; public partial class CustomAttributeDefinitionsClient : ICustomAttributeDefinitionsClient { @@ -83,8 +84,8 @@ private async Task ListInternalA /// applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. /// /// - /// await client.Locations.CustomAttributeDefinitions.ListAsync( - /// new Square.Locations.CustomAttributeDefinitions.ListCustomAttributeDefinitionsRequest + /// await client.Default.Locations.CustomAttributeDefinitions.ListAsync( + /// new Square.Default.Locations.ListCustomAttributeDefinitionsRequest /// { /// VisibilityFilter = VisibilityFilter.All, /// Limit = 1, @@ -135,7 +136,7 @@ public async Task> ListAsync( /// to set the custom attribute for locations. /// /// - /// await client.Locations.CustomAttributeDefinitions.CreateAsync( + /// await client.Default.Locations.CustomAttributeDefinitions.CreateAsync( /// new CreateLocationCustomAttributeDefinitionRequest /// { /// CustomAttributeDefinition = new CustomAttributeDefinition @@ -206,12 +207,8 @@ public async Task CreateAsync( /// setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. /// /// - /// await client.Locations.CustomAttributeDefinitions.GetAsync( - /// new Square.Locations.CustomAttributeDefinitions.GetCustomAttributeDefinitionsRequest - /// { - /// Key = "key", - /// Version = 1, - /// } + /// await client.Default.Locations.CustomAttributeDefinitions.GetAsync( + /// new Square.Default.Locations.GetCustomAttributeDefinitionsRequest { Key = "key", Version = 1 } /// ); /// public async Task GetAsync( @@ -273,7 +270,7 @@ public async Task GetAsync( /// Only the definition owner can update a custom attribute definition. /// /// - /// await client.Locations.CustomAttributeDefinitions.UpdateAsync( + /// await client.Default.Locations.CustomAttributeDefinitions.UpdateAsync( /// new UpdateLocationCustomAttributeDefinitionRequest /// { /// Key = "key", @@ -340,11 +337,8 @@ public async Task UpdateAsync( /// Only the definition owner can delete a custom attribute definition. /// /// - /// await client.Locations.CustomAttributeDefinitions.DeleteAsync( - /// new Square.Locations.CustomAttributeDefinitions.DeleteCustomAttributeDefinitionsRequest - /// { - /// Key = "key", - /// } + /// await client.Default.Locations.CustomAttributeDefinitions.DeleteAsync( + /// new Square.Default.Locations.DeleteCustomAttributeDefinitionsRequest { Key = "key" } /// ); /// public async Task DeleteAsync( diff --git a/src/Square/Locations/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs b/src/Square/Default/Locations/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs similarity index 98% rename from src/Square/Locations/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs rename to src/Square/Default/Locations/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs index b19ef7dd..1cae935e 100644 --- a/src/Square/Locations/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs +++ b/src/Square/Default/Locations/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs @@ -1,7 +1,8 @@ using Square; using Square.Core; +using Square.Default; -namespace Square.Locations.CustomAttributeDefinitions; +namespace Square.Default.Locations; public partial interface ICustomAttributeDefinitionsClient { diff --git a/src/Square/Locations/CustomAttributeDefinitions/Requests/CreateLocationCustomAttributeDefinitionRequest.cs b/src/Square/Default/Locations/CustomAttributeDefinitions/Requests/CreateLocationCustomAttributeDefinitionRequest.cs similarity index 94% rename from src/Square/Locations/CustomAttributeDefinitions/Requests/CreateLocationCustomAttributeDefinitionRequest.cs rename to src/Square/Default/Locations/CustomAttributeDefinitions/Requests/CreateLocationCustomAttributeDefinitionRequest.cs index b6333215..16a0fc38 100644 --- a/src/Square/Locations/CustomAttributeDefinitions/Requests/CreateLocationCustomAttributeDefinitionRequest.cs +++ b/src/Square/Default/Locations/CustomAttributeDefinitions/Requests/CreateLocationCustomAttributeDefinitionRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Locations.CustomAttributeDefinitions; +namespace Square.Default.Locations; [Serializable] public record CreateLocationCustomAttributeDefinitionRequest diff --git a/src/Square/Locations/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs b/src/Square/Default/Locations/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs similarity index 88% rename from src/Square/Locations/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs rename to src/Square/Default/Locations/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs index b614a377..41b8b733 100644 --- a/src/Square/Locations/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs +++ b/src/Square/Default/Locations/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Locations.CustomAttributeDefinitions; +namespace Square.Default.Locations; [Serializable] public record DeleteCustomAttributeDefinitionsRequest diff --git a/src/Square/Merchants/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs b/src/Square/Default/Locations/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs similarity index 94% rename from src/Square/Merchants/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs rename to src/Square/Default/Locations/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs index 5c515823..05bb8407 100644 --- a/src/Square/Merchants/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs +++ b/src/Square/Default/Locations/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Merchants.CustomAttributeDefinitions; +namespace Square.Default.Locations; [Serializable] public record GetCustomAttributeDefinitionsRequest diff --git a/src/Square/Merchants/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs b/src/Square/Default/Locations/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs similarity index 94% rename from src/Square/Merchants/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs rename to src/Square/Default/Locations/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs index 00c81eba..052cbd1e 100644 --- a/src/Square/Merchants/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs +++ b/src/Square/Default/Locations/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Merchants.CustomAttributeDefinitions; +namespace Square.Default.Locations; [Serializable] public record ListCustomAttributeDefinitionsRequest diff --git a/src/Square/Locations/CustomAttributeDefinitions/Requests/UpdateLocationCustomAttributeDefinitionRequest.cs b/src/Square/Default/Locations/CustomAttributeDefinitions/Requests/UpdateLocationCustomAttributeDefinitionRequest.cs similarity index 96% rename from src/Square/Locations/CustomAttributeDefinitions/Requests/UpdateLocationCustomAttributeDefinitionRequest.cs rename to src/Square/Default/Locations/CustomAttributeDefinitions/Requests/UpdateLocationCustomAttributeDefinitionRequest.cs index b100562e..966c5ad5 100644 --- a/src/Square/Locations/CustomAttributeDefinitions/Requests/UpdateLocationCustomAttributeDefinitionRequest.cs +++ b/src/Square/Default/Locations/CustomAttributeDefinitions/Requests/UpdateLocationCustomAttributeDefinitionRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Locations.CustomAttributeDefinitions; +namespace Square.Default.Locations; [Serializable] public record UpdateLocationCustomAttributeDefinitionRequest diff --git a/src/Square/Locations/CustomAttributes/CustomAttributesClient.cs b/src/Square/Default/Locations/CustomAttributes/CustomAttributesClient.cs similarity index 96% rename from src/Square/Locations/CustomAttributes/CustomAttributesClient.cs rename to src/Square/Default/Locations/CustomAttributes/CustomAttributesClient.cs index 414cd1bb..d44b7602 100644 --- a/src/Square/Locations/CustomAttributes/CustomAttributesClient.cs +++ b/src/Square/Default/Locations/CustomAttributes/CustomAttributesClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Locations.CustomAttributes; +namespace Square.Default.Locations; public partial class CustomAttributesClient : ICustomAttributesClient { @@ -89,7 +90,7 @@ private async Task ListInternalAsync( /// `VISIBILITY_READ_WRITE_VALUES`. /// /// - /// await client.Locations.CustomAttributes.BatchDeleteAsync( + /// await client.Default.Locations.CustomAttributes.BatchDeleteAsync( /// new BulkDeleteLocationCustomAttributesRequest /// { /// Values = new Dictionary< @@ -180,7 +181,7 @@ public async Task BatchDeleteAsync( /// must be `VISIBILITY_READ_WRITE_VALUES`. /// /// - /// await client.Locations.CustomAttributes.BatchUpsertAsync( + /// await client.Default.Locations.CustomAttributes.BatchUpsertAsync( /// new BulkUpsertLocationCustomAttributesRequest /// { /// Values = new Dictionary< @@ -282,8 +283,8 @@ public async Task BatchUpsertAsync( /// and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. /// /// - /// await client.Locations.CustomAttributes.ListAsync( - /// new Square.Locations.CustomAttributes.ListCustomAttributesRequest + /// await client.Default.Locations.CustomAttributes.ListAsync( + /// new Square.Default.Locations.ListCustomAttributesRequest /// { /// LocationId = "location_id", /// VisibilityFilter = VisibilityFilter.All, @@ -334,8 +335,8 @@ public async Task> ListAsync( /// `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. /// /// - /// await client.Locations.CustomAttributes.GetAsync( - /// new Square.Locations.CustomAttributes.GetCustomAttributesRequest + /// await client.Default.Locations.CustomAttributes.GetAsync( + /// new Square.Default.Locations.GetCustomAttributesRequest /// { /// LocationId = "location_id", /// Key = "key", @@ -410,7 +411,7 @@ public async Task GetAsync( /// must be `VISIBILITY_READ_WRITE_VALUES`. /// /// - /// await client.Locations.CustomAttributes.UpsertAsync( + /// await client.Default.Locations.CustomAttributes.UpsertAsync( /// new UpsertLocationCustomAttributeRequest /// { /// LocationId = "location_id", @@ -472,8 +473,8 @@ public async Task UpsertAsync( /// `VISIBILITY_READ_WRITE_VALUES`. /// /// - /// await client.Locations.CustomAttributes.DeleteAsync( - /// new Square.Locations.CustomAttributes.DeleteCustomAttributesRequest + /// await client.Default.Locations.CustomAttributes.DeleteAsync( + /// new Square.Default.Locations.DeleteCustomAttributesRequest /// { /// LocationId = "location_id", /// Key = "key", diff --git a/src/Square/Locations/CustomAttributes/ICustomAttributesClient.cs b/src/Square/Default/Locations/CustomAttributes/ICustomAttributesClient.cs similarity index 98% rename from src/Square/Locations/CustomAttributes/ICustomAttributesClient.cs rename to src/Square/Default/Locations/CustomAttributes/ICustomAttributesClient.cs index cc8919e7..ce79b7c8 100644 --- a/src/Square/Locations/CustomAttributes/ICustomAttributesClient.cs +++ b/src/Square/Default/Locations/CustomAttributes/ICustomAttributesClient.cs @@ -1,7 +1,8 @@ using Square; using Square.Core; +using Square.Default; -namespace Square.Locations.CustomAttributes; +namespace Square.Default.Locations; public partial interface ICustomAttributesClient { diff --git a/src/Square/Locations/CustomAttributes/Requests/BulkDeleteLocationCustomAttributesRequest.cs b/src/Square/Default/Locations/CustomAttributes/Requests/BulkDeleteLocationCustomAttributesRequest.cs similarity index 92% rename from src/Square/Locations/CustomAttributes/Requests/BulkDeleteLocationCustomAttributesRequest.cs rename to src/Square/Default/Locations/CustomAttributes/Requests/BulkDeleteLocationCustomAttributesRequest.cs index cc16fad7..f72a376c 100644 --- a/src/Square/Locations/CustomAttributes/Requests/BulkDeleteLocationCustomAttributesRequest.cs +++ b/src/Square/Default/Locations/CustomAttributes/Requests/BulkDeleteLocationCustomAttributesRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Locations.CustomAttributes; +namespace Square.Default.Locations; [Serializable] public record BulkDeleteLocationCustomAttributesRequest diff --git a/src/Square/Locations/CustomAttributes/Requests/BulkUpsertLocationCustomAttributesRequest.cs b/src/Square/Default/Locations/CustomAttributes/Requests/BulkUpsertLocationCustomAttributesRequest.cs similarity index 93% rename from src/Square/Locations/CustomAttributes/Requests/BulkUpsertLocationCustomAttributesRequest.cs rename to src/Square/Default/Locations/CustomAttributes/Requests/BulkUpsertLocationCustomAttributesRequest.cs index 693c4e9e..8ea6241f 100644 --- a/src/Square/Locations/CustomAttributes/Requests/BulkUpsertLocationCustomAttributesRequest.cs +++ b/src/Square/Default/Locations/CustomAttributes/Requests/BulkUpsertLocationCustomAttributesRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Locations.CustomAttributes; +namespace Square.Default.Locations; [Serializable] public record BulkUpsertLocationCustomAttributesRequest diff --git a/src/Square/Locations/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs b/src/Square/Default/Locations/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs similarity index 94% rename from src/Square/Locations/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs rename to src/Square/Default/Locations/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs index 33c5ae03..eecb341a 100644 --- a/src/Square/Locations/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs +++ b/src/Square/Default/Locations/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Locations.CustomAttributes; +namespace Square.Default.Locations; [Serializable] public record DeleteCustomAttributesRequest diff --git a/src/Square/Locations/CustomAttributes/Requests/GetCustomAttributesRequest.cs b/src/Square/Default/Locations/CustomAttributes/Requests/GetCustomAttributesRequest.cs similarity index 97% rename from src/Square/Locations/CustomAttributes/Requests/GetCustomAttributesRequest.cs rename to src/Square/Default/Locations/CustomAttributes/Requests/GetCustomAttributesRequest.cs index 5706eec8..0ca3fc15 100644 --- a/src/Square/Locations/CustomAttributes/Requests/GetCustomAttributesRequest.cs +++ b/src/Square/Default/Locations/CustomAttributes/Requests/GetCustomAttributesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Locations.CustomAttributes; +namespace Square.Default.Locations; [Serializable] public record GetCustomAttributesRequest diff --git a/src/Square/Locations/CustomAttributes/Requests/ListCustomAttributesRequest.cs b/src/Square/Default/Locations/CustomAttributes/Requests/ListCustomAttributesRequest.cs similarity index 97% rename from src/Square/Locations/CustomAttributes/Requests/ListCustomAttributesRequest.cs rename to src/Square/Default/Locations/CustomAttributes/Requests/ListCustomAttributesRequest.cs index 7586d835..e818e5be 100644 --- a/src/Square/Locations/CustomAttributes/Requests/ListCustomAttributesRequest.cs +++ b/src/Square/Default/Locations/CustomAttributes/Requests/ListCustomAttributesRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Locations.CustomAttributes; +namespace Square.Default.Locations; [Serializable] public record ListCustomAttributesRequest diff --git a/src/Square/Locations/CustomAttributes/Requests/UpsertLocationCustomAttributeRequest.cs b/src/Square/Default/Locations/CustomAttributes/Requests/UpsertLocationCustomAttributeRequest.cs similarity index 96% rename from src/Square/Locations/CustomAttributes/Requests/UpsertLocationCustomAttributeRequest.cs rename to src/Square/Default/Locations/CustomAttributes/Requests/UpsertLocationCustomAttributeRequest.cs index 67e0b94b..900f38a2 100644 --- a/src/Square/Locations/CustomAttributes/Requests/UpsertLocationCustomAttributeRequest.cs +++ b/src/Square/Default/Locations/CustomAttributes/Requests/UpsertLocationCustomAttributeRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Locations.CustomAttributes; +namespace Square.Default.Locations; [Serializable] public record UpsertLocationCustomAttributeRequest diff --git a/src/Square/Locations/ILocationsClient.cs b/src/Square/Default/Locations/ILocationsClient.cs similarity index 90% rename from src/Square/Locations/ILocationsClient.cs rename to src/Square/Default/Locations/ILocationsClient.cs index 31b0d6e3..899fc075 100644 --- a/src/Square/Locations/ILocationsClient.cs +++ b/src/Square/Default/Locations/ILocationsClient.cs @@ -1,12 +1,12 @@ using Square; -using Square.Locations.Transactions; +using Square.Default.Locations; -namespace Square.Locations; +namespace Square.Default; public partial interface ILocationsClient { - public Square.Locations.CustomAttributeDefinitions.CustomAttributeDefinitionsClient CustomAttributeDefinitions { get; } - public Square.Locations.CustomAttributes.CustomAttributesClient CustomAttributes { get; } + public Square.Default.Locations.CustomAttributeDefinitionsClient CustomAttributeDefinitions { get; } + public Square.Default.Locations.CustomAttributesClient CustomAttributes { get; } public TransactionsClient Transactions { get; } /// diff --git a/src/Square/Locations/LocationsClient.cs b/src/Square/Default/Locations/LocationsClient.cs similarity index 93% rename from src/Square/Locations/LocationsClient.cs rename to src/Square/Default/Locations/LocationsClient.cs index 1dcd72ce..d35cdaf2 100644 --- a/src/Square/Locations/LocationsClient.cs +++ b/src/Square/Default/Locations/LocationsClient.cs @@ -1,9 +1,9 @@ using System.Text.Json; using Square; using Square.Core; -using Square.Locations.Transactions; +using Square.Default.Locations; -namespace Square.Locations; +namespace Square.Default; public partial class LocationsClient : ILocationsClient { @@ -12,17 +12,16 @@ public partial class LocationsClient : ILocationsClient internal LocationsClient(RawClient client) { _client = client; - CustomAttributeDefinitions = - new Square.Locations.CustomAttributeDefinitions.CustomAttributeDefinitionsClient( - _client - ); - CustomAttributes = new Square.Locations.CustomAttributes.CustomAttributesClient(_client); + CustomAttributeDefinitions = new Square.Default.Locations.CustomAttributeDefinitionsClient( + _client + ); + CustomAttributes = new Square.Default.Locations.CustomAttributesClient(_client); Transactions = new TransactionsClient(_client); } - public Square.Locations.CustomAttributeDefinitions.CustomAttributeDefinitionsClient CustomAttributeDefinitions { get; } + public Square.Default.Locations.CustomAttributeDefinitionsClient CustomAttributeDefinitions { get; } - public Square.Locations.CustomAttributes.CustomAttributesClient CustomAttributes { get; } + public Square.Default.Locations.CustomAttributesClient CustomAttributes { get; } public TransactionsClient Transactions { get; } @@ -31,7 +30,7 @@ internal LocationsClient(RawClient client) /// including those with an inactive status. Locations are listed alphabetically by `name`. /// /// - /// await client.Locations.ListAsync(); + /// await client.Default.Locations.ListAsync(); /// public async Task ListAsync( RequestOptions? options = null, @@ -83,7 +82,7 @@ public async Task ListAsync( /// each location has a sensible and unique name. /// /// - /// await client.Locations.CreateAsync( + /// await client.Default.Locations.CreateAsync( /// new CreateLocationRequest /// { /// Location = new Location @@ -149,7 +148,7 @@ public async Task CreateAsync( /// as the location ID to retrieve details of the [main location](https://developer.squareup.com/docs/locations-api#about-the-main-location). /// /// - /// await client.Locations.GetAsync(new GetLocationsRequest { LocationId = "location_id" }); + /// await client.Default.Locations.GetAsync(new GetLocationsRequest { LocationId = "location_id" }); /// public async Task GetAsync( GetLocationsRequest request, @@ -199,7 +198,7 @@ public async Task GetAsync( /// Updates a [location](https://developer.squareup.com/docs/locations-api). /// /// - /// await client.Locations.UpdateAsync( + /// await client.Default.Locations.UpdateAsync( /// new UpdateLocationRequest /// { /// LocationId = "location_id", @@ -211,19 +210,19 @@ public async Task GetAsync( /// { /// new BusinessHoursPeriod /// { - /// DayOfWeek = Square.DayOfWeek.Fri, + /// DayOfWeek = Square.Default.DayOfWeek.Fri, /// StartLocalTime = "07:00", /// EndLocalTime = "18:00", /// }, /// new BusinessHoursPeriod /// { - /// DayOfWeek = Square.DayOfWeek.Sat, + /// DayOfWeek = Square.Default.DayOfWeek.Sat, /// StartLocalTime = "07:00", /// EndLocalTime = "18:00", /// }, /// new BusinessHoursPeriod /// { - /// DayOfWeek = Square.DayOfWeek.Sun, + /// DayOfWeek = Square.Default.DayOfWeek.Sun, /// StartLocalTime = "09:00", /// EndLocalTime = "15:00", /// }, @@ -290,7 +289,7 @@ public async Task UpdateAsync( /// For more information, see [Checkout API highlights](https://developer.squareup.com/docs/checkout-api#checkout-api-highlights). /// /// - /// await client.Locations.CheckoutsAsync( + /// await client.Default.Locations.CheckoutsAsync( /// new CreateCheckoutRequest /// { /// LocationId = "location_id", diff --git a/src/Square/Locations/Requests/CreateCheckoutRequest.cs b/src/Square/Default/Locations/Requests/CreateCheckoutRequest.cs similarity index 99% rename from src/Square/Locations/Requests/CreateCheckoutRequest.cs rename to src/Square/Default/Locations/Requests/CreateCheckoutRequest.cs index 438836fd..609c8e7d 100644 --- a/src/Square/Locations/Requests/CreateCheckoutRequest.cs +++ b/src/Square/Default/Locations/Requests/CreateCheckoutRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Locations; +namespace Square.Default; [Serializable] public record CreateCheckoutRequest diff --git a/src/Square/Locations/Requests/CreateLocationRequest.cs b/src/Square/Default/Locations/Requests/CreateLocationRequest.cs similarity index 94% rename from src/Square/Locations/Requests/CreateLocationRequest.cs rename to src/Square/Default/Locations/Requests/CreateLocationRequest.cs index ff540e30..d1da985f 100644 --- a/src/Square/Locations/Requests/CreateLocationRequest.cs +++ b/src/Square/Default/Locations/Requests/CreateLocationRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Locations; +namespace Square.Default; [Serializable] public record CreateLocationRequest diff --git a/src/Square/Locations/Requests/GetLocationsRequest.cs b/src/Square/Default/Locations/Requests/GetLocationsRequest.cs similarity index 94% rename from src/Square/Locations/Requests/GetLocationsRequest.cs rename to src/Square/Default/Locations/Requests/GetLocationsRequest.cs index 26da041b..eda45421 100644 --- a/src/Square/Locations/Requests/GetLocationsRequest.cs +++ b/src/Square/Default/Locations/Requests/GetLocationsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Locations; +namespace Square.Default; [Serializable] public record GetLocationsRequest diff --git a/src/Square/Locations/Requests/UpdateLocationRequest.cs b/src/Square/Default/Locations/Requests/UpdateLocationRequest.cs similarity index 92% rename from src/Square/Locations/Requests/UpdateLocationRequest.cs rename to src/Square/Default/Locations/Requests/UpdateLocationRequest.cs index 70cad1f7..048df1eb 100644 --- a/src/Square/Locations/Requests/UpdateLocationRequest.cs +++ b/src/Square/Default/Locations/Requests/UpdateLocationRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Locations; +namespace Square.Default; [Serializable] public record UpdateLocationRequest diff --git a/src/Square/Locations/Transactions/ITransactionsClient.cs b/src/Square/Default/Locations/Transactions/ITransactionsClient.cs similarity index 97% rename from src/Square/Locations/Transactions/ITransactionsClient.cs rename to src/Square/Default/Locations/Transactions/ITransactionsClient.cs index 7eff149f..6772545a 100644 --- a/src/Square/Locations/Transactions/ITransactionsClient.cs +++ b/src/Square/Default/Locations/Transactions/ITransactionsClient.cs @@ -1,6 +1,7 @@ using Square; +using Square.Default; -namespace Square.Locations.Transactions; +namespace Square.Default.Locations; public partial interface ITransactionsClient { diff --git a/src/Square/Locations/Transactions/Requests/CaptureTransactionsRequest.cs b/src/Square/Default/Locations/Transactions/Requests/CaptureTransactionsRequest.cs similarity index 90% rename from src/Square/Locations/Transactions/Requests/CaptureTransactionsRequest.cs rename to src/Square/Default/Locations/Transactions/Requests/CaptureTransactionsRequest.cs index 471202d4..9b10f21d 100644 --- a/src/Square/Locations/Transactions/Requests/CaptureTransactionsRequest.cs +++ b/src/Square/Default/Locations/Transactions/Requests/CaptureTransactionsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Locations.Transactions; +namespace Square.Default.Locations; [Serializable] public record CaptureTransactionsRequest diff --git a/src/Square/Locations/Transactions/Requests/GetTransactionsRequest.cs b/src/Square/Default/Locations/Transactions/Requests/GetTransactionsRequest.cs similarity index 93% rename from src/Square/Locations/Transactions/Requests/GetTransactionsRequest.cs rename to src/Square/Default/Locations/Transactions/Requests/GetTransactionsRequest.cs index cd645262..0ddf3438 100644 --- a/src/Square/Locations/Transactions/Requests/GetTransactionsRequest.cs +++ b/src/Square/Default/Locations/Transactions/Requests/GetTransactionsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Locations.Transactions; +namespace Square.Default.Locations; [Serializable] public record GetTransactionsRequest diff --git a/src/Square/Locations/Transactions/Requests/ListTransactionsRequest.cs b/src/Square/Default/Locations/Transactions/Requests/ListTransactionsRequest.cs similarity index 96% rename from src/Square/Locations/Transactions/Requests/ListTransactionsRequest.cs rename to src/Square/Default/Locations/Transactions/Requests/ListTransactionsRequest.cs index e734b8c6..ac6b6c74 100644 --- a/src/Square/Locations/Transactions/Requests/ListTransactionsRequest.cs +++ b/src/Square/Default/Locations/Transactions/Requests/ListTransactionsRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Locations.Transactions; +namespace Square.Default.Locations; [Serializable] public record ListTransactionsRequest diff --git a/src/Square/Locations/Transactions/Requests/VoidTransactionsRequest.cs b/src/Square/Default/Locations/Transactions/Requests/VoidTransactionsRequest.cs similarity index 90% rename from src/Square/Locations/Transactions/Requests/VoidTransactionsRequest.cs rename to src/Square/Default/Locations/Transactions/Requests/VoidTransactionsRequest.cs index d22a0a57..2927acfb 100644 --- a/src/Square/Locations/Transactions/Requests/VoidTransactionsRequest.cs +++ b/src/Square/Default/Locations/Transactions/Requests/VoidTransactionsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Locations.Transactions; +namespace Square.Default.Locations; [Serializable] public record VoidTransactionsRequest diff --git a/src/Square/Locations/Transactions/TransactionsClient.cs b/src/Square/Default/Locations/Transactions/TransactionsClient.cs similarity index 96% rename from src/Square/Locations/Transactions/TransactionsClient.cs rename to src/Square/Default/Locations/Transactions/TransactionsClient.cs index 249065b5..424b531c 100644 --- a/src/Square/Locations/Transactions/TransactionsClient.cs +++ b/src/Square/Default/Locations/Transactions/TransactionsClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Locations.Transactions; +namespace Square.Default.Locations; public partial class TransactionsClient : ITransactionsClient { @@ -22,7 +23,7 @@ internal TransactionsClient(RawClient client) /// Max results per [page](https://developer.squareup.com/docs/working-with-apis/pagination): 50 /// /// - /// await client.Locations.Transactions.ListAsync( + /// await client.Default.Locations.Transactions.ListAsync( /// new ListTransactionsRequest /// { /// LocationId = "location_id", @@ -99,7 +100,7 @@ public async Task ListAsync( /// Retrieves details for a single transaction. /// /// - /// await client.Locations.Transactions.GetAsync( + /// await client.Default.Locations.Transactions.GetAsync( /// new GetTransactionsRequest { LocationId = "location_id", TransactionId = "transaction_id" } /// ); /// @@ -157,7 +158,7 @@ public async Task GetAsync( /// for more information. /// /// - /// await client.Locations.Transactions.CaptureAsync( + /// await client.Default.Locations.Transactions.CaptureAsync( /// new CaptureTransactionsRequest { LocationId = "location_id", TransactionId = "transaction_id" } /// ); /// @@ -215,7 +216,7 @@ public async Task CaptureAsync( /// for more information. /// /// - /// await client.Locations.Transactions.VoidAsync( + /// await client.Default.Locations.Transactions.VoidAsync( /// new VoidTransactionsRequest { LocationId = "location_id", TransactionId = "transaction_id" } /// ); /// diff --git a/src/Square/Loyalty/Accounts/AccountsClient.cs b/src/Square/Default/Loyalty/Accounts/AccountsClient.cs similarity index 96% rename from src/Square/Loyalty/Accounts/AccountsClient.cs rename to src/Square/Default/Loyalty/Accounts/AccountsClient.cs index f583f4e9..ba17099a 100644 --- a/src/Square/Loyalty/Accounts/AccountsClient.cs +++ b/src/Square/Default/Loyalty/Accounts/AccountsClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Loyalty.Accounts; +namespace Square.Default.Loyalty; public partial class AccountsClient : IAccountsClient { @@ -17,7 +18,7 @@ internal AccountsClient(RawClient client) /// Creates a loyalty account. To create a loyalty account, you must provide the `program_id` and a `mapping` with the `phone_number` of the buyer. /// /// - /// await client.Loyalty.Accounts.CreateAsync( + /// await client.Default.Loyalty.Accounts.CreateAsync( /// new CreateLoyaltyAccountRequest /// { /// LoyaltyAccount = new LoyaltyAccount @@ -80,7 +81,7 @@ public async Task CreateAsync( /// Search results are sorted by `created_at` in ascending order. /// /// - /// await client.Loyalty.Accounts.SearchAsync( + /// await client.Default.Loyalty.Accounts.SearchAsync( /// new SearchLoyaltyAccountsRequest /// { /// Query = new SearchLoyaltyAccountsRequestLoyaltyAccountQuery @@ -141,7 +142,7 @@ public async Task SearchAsync( /// Retrieves a loyalty account. /// /// - /// await client.Loyalty.Accounts.GetAsync(new GetAccountsRequest { AccountId = "account_id" }); + /// await client.Default.Loyalty.Accounts.GetAsync(new GetAccountsRequest { AccountId = "account_id" }); /// public async Task GetAsync( GetAccountsRequest request, @@ -204,7 +205,7 @@ public async Task GetAsync( /// [Calculating promotion points](https://developer.squareup.com/docs/loyalty-api/loyalty-promotions#calculate-promotion-points). /// /// - /// await client.Loyalty.Accounts.AccumulatePointsAsync( + /// await client.Default.Loyalty.Accounts.AccumulatePointsAsync( /// new AccumulateLoyaltyPointsRequest /// { /// AccountId = "account_id", @@ -271,7 +272,7 @@ public async Task AccumulatePointsAsync( /// to add points when a buyer pays for the purchase. /// /// - /// await client.Loyalty.Accounts.AdjustAsync( + /// await client.Default.Loyalty.Accounts.AdjustAsync( /// new AdjustLoyaltyPointsRequest /// { /// AccountId = "account_id", diff --git a/src/Square/Loyalty/Accounts/IAccountsClient.cs b/src/Square/Default/Loyalty/Accounts/IAccountsClient.cs similarity index 98% rename from src/Square/Loyalty/Accounts/IAccountsClient.cs rename to src/Square/Default/Loyalty/Accounts/IAccountsClient.cs index b0419657..57b6c0d5 100644 --- a/src/Square/Loyalty/Accounts/IAccountsClient.cs +++ b/src/Square/Default/Loyalty/Accounts/IAccountsClient.cs @@ -1,6 +1,7 @@ using Square; +using Square.Default; -namespace Square.Loyalty.Accounts; +namespace Square.Default.Loyalty; public partial interface IAccountsClient { diff --git a/src/Square/Loyalty/Accounts/Requests/AccumulateLoyaltyPointsRequest.cs b/src/Square/Default/Loyalty/Accounts/Requests/AccumulateLoyaltyPointsRequest.cs similarity index 95% rename from src/Square/Loyalty/Accounts/Requests/AccumulateLoyaltyPointsRequest.cs rename to src/Square/Default/Loyalty/Accounts/Requests/AccumulateLoyaltyPointsRequest.cs index 82fbe466..15400ad6 100644 --- a/src/Square/Loyalty/Accounts/Requests/AccumulateLoyaltyPointsRequest.cs +++ b/src/Square/Default/Loyalty/Accounts/Requests/AccumulateLoyaltyPointsRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Loyalty.Accounts; +namespace Square.Default.Loyalty; [Serializable] public record AccumulateLoyaltyPointsRequest diff --git a/src/Square/Loyalty/Accounts/Requests/AdjustLoyaltyPointsRequest.cs b/src/Square/Default/Loyalty/Accounts/Requests/AdjustLoyaltyPointsRequest.cs similarity index 96% rename from src/Square/Loyalty/Accounts/Requests/AdjustLoyaltyPointsRequest.cs rename to src/Square/Default/Loyalty/Accounts/Requests/AdjustLoyaltyPointsRequest.cs index d551181d..7d5cb076 100644 --- a/src/Square/Loyalty/Accounts/Requests/AdjustLoyaltyPointsRequest.cs +++ b/src/Square/Default/Loyalty/Accounts/Requests/AdjustLoyaltyPointsRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Loyalty.Accounts; +namespace Square.Default.Loyalty; [Serializable] public record AdjustLoyaltyPointsRequest diff --git a/src/Square/Loyalty/Accounts/Requests/CreateLoyaltyAccountRequest.cs b/src/Square/Default/Loyalty/Accounts/Requests/CreateLoyaltyAccountRequest.cs similarity index 92% rename from src/Square/Loyalty/Accounts/Requests/CreateLoyaltyAccountRequest.cs rename to src/Square/Default/Loyalty/Accounts/Requests/CreateLoyaltyAccountRequest.cs index 60e3de21..fc207278 100644 --- a/src/Square/Loyalty/Accounts/Requests/CreateLoyaltyAccountRequest.cs +++ b/src/Square/Default/Loyalty/Accounts/Requests/CreateLoyaltyAccountRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Loyalty.Accounts; +namespace Square.Default.Loyalty; [Serializable] public record CreateLoyaltyAccountRequest diff --git a/src/Square/Loyalty/Accounts/Requests/GetAccountsRequest.cs b/src/Square/Default/Loyalty/Accounts/Requests/GetAccountsRequest.cs similarity index 92% rename from src/Square/Loyalty/Accounts/Requests/GetAccountsRequest.cs rename to src/Square/Default/Loyalty/Accounts/Requests/GetAccountsRequest.cs index 9e524ee8..1af15c57 100644 --- a/src/Square/Loyalty/Accounts/Requests/GetAccountsRequest.cs +++ b/src/Square/Default/Loyalty/Accounts/Requests/GetAccountsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Loyalty.Accounts; +namespace Square.Default.Loyalty; [Serializable] public record GetAccountsRequest diff --git a/src/Square/Loyalty/Accounts/Requests/SearchLoyaltyAccountsRequest.cs b/src/Square/Default/Loyalty/Accounts/Requests/SearchLoyaltyAccountsRequest.cs similarity index 94% rename from src/Square/Loyalty/Accounts/Requests/SearchLoyaltyAccountsRequest.cs rename to src/Square/Default/Loyalty/Accounts/Requests/SearchLoyaltyAccountsRequest.cs index 26547dc5..23fcbb17 100644 --- a/src/Square/Loyalty/Accounts/Requests/SearchLoyaltyAccountsRequest.cs +++ b/src/Square/Default/Loyalty/Accounts/Requests/SearchLoyaltyAccountsRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Loyalty.Accounts; +namespace Square.Default.Loyalty; [Serializable] public record SearchLoyaltyAccountsRequest diff --git a/src/Square/Loyalty/ILoyaltyClient.cs b/src/Square/Default/Loyalty/ILoyaltyClient.cs similarity index 88% rename from src/Square/Loyalty/ILoyaltyClient.cs rename to src/Square/Default/Loyalty/ILoyaltyClient.cs index 39ba7819..e577654e 100644 --- a/src/Square/Loyalty/ILoyaltyClient.cs +++ b/src/Square/Default/Loyalty/ILoyaltyClient.cs @@ -1,9 +1,7 @@ using Square; -using Square.Loyalty.Accounts; -using Square.Loyalty.Programs; -using Square.Loyalty.Rewards; +using Square.Default.Loyalty; -namespace Square.Loyalty; +namespace Square.Default; public partial interface ILoyaltyClient { diff --git a/src/Square/Loyalty/LoyaltyClient.cs b/src/Square/Default/Loyalty/LoyaltyClient.cs similarity index 94% rename from src/Square/Loyalty/LoyaltyClient.cs rename to src/Square/Default/Loyalty/LoyaltyClient.cs index 7ba1d9e9..52822c8e 100644 --- a/src/Square/Loyalty/LoyaltyClient.cs +++ b/src/Square/Default/Loyalty/LoyaltyClient.cs @@ -1,11 +1,9 @@ using System.Text.Json; using Square; using Square.Core; -using Square.Loyalty.Accounts; -using Square.Loyalty.Programs; -using Square.Loyalty.Rewards; +using Square.Default.Loyalty; -namespace Square.Loyalty; +namespace Square.Default; public partial class LoyaltyClient : ILoyaltyClient { @@ -36,7 +34,7 @@ internal LoyaltyClient(RawClient client) /// Search results are sorted by `created_at` in descending order. /// /// - /// await client.Loyalty.SearchEventsAsync( + /// await client.Default.Loyalty.SearchEventsAsync( /// new SearchLoyaltyEventsRequest /// { /// Query = new LoyaltyEventQuery diff --git a/src/Square/Loyalty/Programs/IProgramsClient.cs b/src/Square/Default/Loyalty/Programs/IProgramsClient.cs similarity index 96% rename from src/Square/Loyalty/Programs/IProgramsClient.cs rename to src/Square/Default/Loyalty/Programs/IProgramsClient.cs index 959b941f..323b297d 100644 --- a/src/Square/Loyalty/Programs/IProgramsClient.cs +++ b/src/Square/Default/Loyalty/Programs/IProgramsClient.cs @@ -1,7 +1,8 @@ using Square; -using Square.Loyalty.Programs.Promotions; +using Square.Default; +using Square.Default.Loyalty.Programs; -namespace Square.Loyalty.Programs; +namespace Square.Default.Loyalty; public partial interface IProgramsClient { diff --git a/src/Square/Loyalty/Programs/ProgramsClient.cs b/src/Square/Default/Loyalty/Programs/ProgramsClient.cs similarity index 95% rename from src/Square/Loyalty/Programs/ProgramsClient.cs rename to src/Square/Default/Loyalty/Programs/ProgramsClient.cs index 2c886712..05ad4d3b 100644 --- a/src/Square/Loyalty/Programs/ProgramsClient.cs +++ b/src/Square/Default/Loyalty/Programs/ProgramsClient.cs @@ -1,9 +1,10 @@ using System.Text.Json; using Square; using Square.Core; -using Square.Loyalty.Programs.Promotions; +using Square.Default; +using Square.Default.Loyalty.Programs; -namespace Square.Loyalty.Programs; +namespace Square.Default.Loyalty; public partial class ProgramsClient : IProgramsClient { @@ -25,7 +26,7 @@ internal ProgramsClient(RawClient client) /// Replaced with [RetrieveLoyaltyProgram](api-endpoint:Loyalty-RetrieveLoyaltyProgram) when used with the keyword `main`. /// /// - /// await client.Loyalty.Programs.ListAsync(); + /// await client.Default.Loyalty.Programs.ListAsync(); /// public async Task ListAsync( RequestOptions? options = null, @@ -73,7 +74,7 @@ public async Task ListAsync( /// 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). /// /// - /// await client.Loyalty.Programs.GetAsync(new GetProgramsRequest { ProgramId = "program_id" }); + /// await client.Default.Loyalty.Programs.GetAsync(new GetProgramsRequest { ProgramId = "program_id" }); /// public async Task GetAsync( GetProgramsRequest request, @@ -137,7 +138,7 @@ public async Task GetAsync( /// [Calculating promotion points](https://developer.squareup.com/docs/loyalty-api/loyalty-promotions#calculate-promotion-points). /// /// - /// await client.Loyalty.Programs.CalculateAsync( + /// await client.Default.Loyalty.Programs.CalculateAsync( /// new CalculateLoyaltyPointsRequest /// { /// ProgramId = "program_id", diff --git a/src/Square/Loyalty/Programs/Promotions/IPromotionsClient.cs b/src/Square/Default/Loyalty/Programs/Promotions/IPromotionsClient.cs similarity index 97% rename from src/Square/Loyalty/Programs/Promotions/IPromotionsClient.cs rename to src/Square/Default/Loyalty/Programs/Promotions/IPromotionsClient.cs index 844751b9..8fb791d7 100644 --- a/src/Square/Loyalty/Programs/Promotions/IPromotionsClient.cs +++ b/src/Square/Default/Loyalty/Programs/Promotions/IPromotionsClient.cs @@ -1,7 +1,8 @@ using Square; using Square.Core; +using Square.Default; -namespace Square.Loyalty.Programs.Promotions; +namespace Square.Default.Loyalty.Programs; public partial interface IPromotionsClient { diff --git a/src/Square/Loyalty/Programs/Promotions/PromotionsClient.cs b/src/Square/Default/Loyalty/Programs/Promotions/PromotionsClient.cs similarity index 97% rename from src/Square/Loyalty/Programs/Promotions/PromotionsClient.cs rename to src/Square/Default/Loyalty/Programs/Promotions/PromotionsClient.cs index ef164862..d4556e26 100644 --- a/src/Square/Loyalty/Programs/Promotions/PromotionsClient.cs +++ b/src/Square/Default/Loyalty/Programs/Promotions/PromotionsClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Loyalty.Programs.Promotions; +namespace Square.Default.Loyalty.Programs; public partial class PromotionsClient : IPromotionsClient { @@ -80,7 +81,7 @@ private async Task ListInternalAsync( /// Results are sorted by the `created_at` date in descending order (newest to oldest). /// /// - /// await client.Loyalty.Programs.Promotions.ListAsync( + /// await client.Default.Loyalty.Programs.Promotions.ListAsync( /// new ListPromotionsRequest /// { /// ProgramId = "program_id", @@ -132,7 +133,7 @@ public async Task> ListAsync( /// `ACTIVE` or `SCHEDULED` status. /// /// - /// await client.Loyalty.Programs.Promotions.CreateAsync( + /// await client.Default.Loyalty.Programs.Promotions.CreateAsync( /// new CreateLoyaltyPromotionRequest /// { /// ProgramId = "program_id", @@ -216,7 +217,7 @@ public async Task CreateAsync( /// Retrieves a loyalty promotion. /// /// - /// await client.Loyalty.Programs.Promotions.GetAsync( + /// await client.Default.Loyalty.Programs.Promotions.GetAsync( /// new GetPromotionsRequest { ProgramId = "program_id", PromotionId = "promotion_id" } /// ); /// @@ -274,7 +275,7 @@ public async Task GetAsync( /// This endpoint sets the loyalty promotion to the `CANCELED` state /// /// - /// await client.Loyalty.Programs.Promotions.CancelAsync( + /// await client.Default.Loyalty.Programs.Promotions.CancelAsync( /// new CancelPromotionsRequest { ProgramId = "program_id", PromotionId = "promotion_id" } /// ); /// diff --git a/src/Square/Loyalty/Programs/Promotions/Requests/CancelPromotionsRequest.cs b/src/Square/Default/Loyalty/Programs/Promotions/Requests/CancelPromotionsRequest.cs similarity index 93% rename from src/Square/Loyalty/Programs/Promotions/Requests/CancelPromotionsRequest.cs rename to src/Square/Default/Loyalty/Programs/Promotions/Requests/CancelPromotionsRequest.cs index 38c66f53..505dce56 100644 --- a/src/Square/Loyalty/Programs/Promotions/Requests/CancelPromotionsRequest.cs +++ b/src/Square/Default/Loyalty/Programs/Promotions/Requests/CancelPromotionsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Loyalty.Programs.Promotions; +namespace Square.Default.Loyalty.Programs; [Serializable] public record CancelPromotionsRequest diff --git a/src/Square/Loyalty/Programs/Promotions/Requests/CreateLoyaltyPromotionRequest.cs b/src/Square/Default/Loyalty/Programs/Promotions/Requests/CreateLoyaltyPromotionRequest.cs similarity index 94% rename from src/Square/Loyalty/Programs/Promotions/Requests/CreateLoyaltyPromotionRequest.cs rename to src/Square/Default/Loyalty/Programs/Promotions/Requests/CreateLoyaltyPromotionRequest.cs index a0944813..90e1775f 100644 --- a/src/Square/Loyalty/Programs/Promotions/Requests/CreateLoyaltyPromotionRequest.cs +++ b/src/Square/Default/Loyalty/Programs/Promotions/Requests/CreateLoyaltyPromotionRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Loyalty.Programs.Promotions; +namespace Square.Default.Loyalty.Programs; [Serializable] public record CreateLoyaltyPromotionRequest diff --git a/src/Square/Loyalty/Programs/Promotions/Requests/GetPromotionsRequest.cs b/src/Square/Default/Loyalty/Programs/Promotions/Requests/GetPromotionsRequest.cs similarity index 94% rename from src/Square/Loyalty/Programs/Promotions/Requests/GetPromotionsRequest.cs rename to src/Square/Default/Loyalty/Programs/Promotions/Requests/GetPromotionsRequest.cs index 39e0a9e8..5dff05e5 100644 --- a/src/Square/Loyalty/Programs/Promotions/Requests/GetPromotionsRequest.cs +++ b/src/Square/Default/Loyalty/Programs/Promotions/Requests/GetPromotionsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Loyalty.Programs.Promotions; +namespace Square.Default.Loyalty.Programs; [Serializable] public record GetPromotionsRequest diff --git a/src/Square/Loyalty/Programs/Promotions/Requests/ListPromotionsRequest.cs b/src/Square/Default/Loyalty/Programs/Promotions/Requests/ListPromotionsRequest.cs similarity index 96% rename from src/Square/Loyalty/Programs/Promotions/Requests/ListPromotionsRequest.cs rename to src/Square/Default/Loyalty/Programs/Promotions/Requests/ListPromotionsRequest.cs index 71a3a434..f6daf037 100644 --- a/src/Square/Loyalty/Programs/Promotions/Requests/ListPromotionsRequest.cs +++ b/src/Square/Default/Loyalty/Programs/Promotions/Requests/ListPromotionsRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Loyalty.Programs.Promotions; +namespace Square.Default.Loyalty.Programs; [Serializable] public record ListPromotionsRequest diff --git a/src/Square/Loyalty/Programs/Requests/CalculateLoyaltyPointsRequest.cs b/src/Square/Default/Loyalty/Programs/Requests/CalculateLoyaltyPointsRequest.cs similarity index 97% rename from src/Square/Loyalty/Programs/Requests/CalculateLoyaltyPointsRequest.cs rename to src/Square/Default/Loyalty/Programs/Requests/CalculateLoyaltyPointsRequest.cs index 27cfce37..b6c57179 100644 --- a/src/Square/Loyalty/Programs/Requests/CalculateLoyaltyPointsRequest.cs +++ b/src/Square/Default/Loyalty/Programs/Requests/CalculateLoyaltyPointsRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Loyalty.Programs; +namespace Square.Default.Loyalty; [Serializable] public record CalculateLoyaltyPointsRequest diff --git a/src/Square/Loyalty/Programs/Requests/GetProgramsRequest.cs b/src/Square/Default/Loyalty/Programs/Requests/GetProgramsRequest.cs similarity index 93% rename from src/Square/Loyalty/Programs/Requests/GetProgramsRequest.cs rename to src/Square/Default/Loyalty/Programs/Requests/GetProgramsRequest.cs index 6342b87c..48f2cfef 100644 --- a/src/Square/Loyalty/Programs/Requests/GetProgramsRequest.cs +++ b/src/Square/Default/Loyalty/Programs/Requests/GetProgramsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Loyalty.Programs; +namespace Square.Default.Loyalty; [Serializable] public record GetProgramsRequest diff --git a/src/Square/Loyalty/Requests/SearchLoyaltyEventsRequest.cs b/src/Square/Default/Loyalty/Requests/SearchLoyaltyEventsRequest.cs similarity index 96% rename from src/Square/Loyalty/Requests/SearchLoyaltyEventsRequest.cs rename to src/Square/Default/Loyalty/Requests/SearchLoyaltyEventsRequest.cs index 64ffb4a6..9ef0b096 100644 --- a/src/Square/Loyalty/Requests/SearchLoyaltyEventsRequest.cs +++ b/src/Square/Default/Loyalty/Requests/SearchLoyaltyEventsRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Loyalty; +namespace Square.Default; [Serializable] public record SearchLoyaltyEventsRequest diff --git a/src/Square/Loyalty/Rewards/IRewardsClient.cs b/src/Square/Default/Loyalty/Rewards/IRewardsClient.cs similarity index 98% rename from src/Square/Loyalty/Rewards/IRewardsClient.cs rename to src/Square/Default/Loyalty/Rewards/IRewardsClient.cs index b5a4590c..30900cbb 100644 --- a/src/Square/Loyalty/Rewards/IRewardsClient.cs +++ b/src/Square/Default/Loyalty/Rewards/IRewardsClient.cs @@ -1,6 +1,7 @@ using Square; +using Square.Default; -namespace Square.Loyalty.Rewards; +namespace Square.Default.Loyalty; public partial interface IRewardsClient { diff --git a/src/Square/Loyalty/Rewards/Requests/CreateLoyaltyRewardRequest.cs b/src/Square/Default/Loyalty/Rewards/Requests/CreateLoyaltyRewardRequest.cs similarity index 92% rename from src/Square/Loyalty/Rewards/Requests/CreateLoyaltyRewardRequest.cs rename to src/Square/Default/Loyalty/Rewards/Requests/CreateLoyaltyRewardRequest.cs index c9189b64..9c1ec8e5 100644 --- a/src/Square/Loyalty/Rewards/Requests/CreateLoyaltyRewardRequest.cs +++ b/src/Square/Default/Loyalty/Rewards/Requests/CreateLoyaltyRewardRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Loyalty.Rewards; +namespace Square.Default.Loyalty; [Serializable] public record CreateLoyaltyRewardRequest diff --git a/src/Square/Loyalty/Rewards/Requests/DeleteRewardsRequest.cs b/src/Square/Default/Loyalty/Rewards/Requests/DeleteRewardsRequest.cs similarity index 92% rename from src/Square/Loyalty/Rewards/Requests/DeleteRewardsRequest.cs rename to src/Square/Default/Loyalty/Rewards/Requests/DeleteRewardsRequest.cs index 8528908d..db218076 100644 --- a/src/Square/Loyalty/Rewards/Requests/DeleteRewardsRequest.cs +++ b/src/Square/Default/Loyalty/Rewards/Requests/DeleteRewardsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Loyalty.Rewards; +namespace Square.Default.Loyalty; [Serializable] public record DeleteRewardsRequest diff --git a/src/Square/Loyalty/Rewards/Requests/GetRewardsRequest.cs b/src/Square/Default/Loyalty/Rewards/Requests/GetRewardsRequest.cs similarity index 92% rename from src/Square/Loyalty/Rewards/Requests/GetRewardsRequest.cs rename to src/Square/Default/Loyalty/Rewards/Requests/GetRewardsRequest.cs index d7c25a69..4ffe7947 100644 --- a/src/Square/Loyalty/Rewards/Requests/GetRewardsRequest.cs +++ b/src/Square/Default/Loyalty/Rewards/Requests/GetRewardsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Loyalty.Rewards; +namespace Square.Default.Loyalty; [Serializable] public record GetRewardsRequest diff --git a/src/Square/Loyalty/Rewards/Requests/RedeemLoyaltyRewardRequest.cs b/src/Square/Default/Loyalty/Rewards/Requests/RedeemLoyaltyRewardRequest.cs similarity index 96% rename from src/Square/Loyalty/Rewards/Requests/RedeemLoyaltyRewardRequest.cs rename to src/Square/Default/Loyalty/Rewards/Requests/RedeemLoyaltyRewardRequest.cs index 286ee18d..67cc6024 100644 --- a/src/Square/Loyalty/Rewards/Requests/RedeemLoyaltyRewardRequest.cs +++ b/src/Square/Default/Loyalty/Rewards/Requests/RedeemLoyaltyRewardRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Loyalty.Rewards; +namespace Square.Default.Loyalty; [Serializable] public record RedeemLoyaltyRewardRequest diff --git a/src/Square/Loyalty/Rewards/Requests/SearchLoyaltyRewardsRequest.cs b/src/Square/Default/Loyalty/Rewards/Requests/SearchLoyaltyRewardsRequest.cs similarity index 95% rename from src/Square/Loyalty/Rewards/Requests/SearchLoyaltyRewardsRequest.cs rename to src/Square/Default/Loyalty/Rewards/Requests/SearchLoyaltyRewardsRequest.cs index 849a955b..4f4d6bde 100644 --- a/src/Square/Loyalty/Rewards/Requests/SearchLoyaltyRewardsRequest.cs +++ b/src/Square/Default/Loyalty/Rewards/Requests/SearchLoyaltyRewardsRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Loyalty.Rewards; +namespace Square.Default.Loyalty; [Serializable] public record SearchLoyaltyRewardsRequest diff --git a/src/Square/Loyalty/Rewards/RewardsClient.cs b/src/Square/Default/Loyalty/Rewards/RewardsClient.cs similarity index 95% rename from src/Square/Loyalty/Rewards/RewardsClient.cs rename to src/Square/Default/Loyalty/Rewards/RewardsClient.cs index 729dbb4e..694ca65e 100644 --- a/src/Square/Loyalty/Rewards/RewardsClient.cs +++ b/src/Square/Default/Loyalty/Rewards/RewardsClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Loyalty.Rewards; +namespace Square.Default.Loyalty; public partial class RewardsClient : IRewardsClient { @@ -24,7 +25,7 @@ internal RewardsClient(RawClient client) /// not available for the buyer to redeem another reward. /// /// - /// await client.Loyalty.Rewards.CreateAsync( + /// await client.Default.Loyalty.Rewards.CreateAsync( /// new CreateLoyaltyRewardRequest /// { /// Reward = new LoyaltyReward @@ -90,7 +91,7 @@ public async Task CreateAsync( /// Search results are sorted by `updated_at` in descending order. /// /// - /// await client.Loyalty.Rewards.SearchAsync( + /// await client.Default.Loyalty.Rewards.SearchAsync( /// new SearchLoyaltyRewardsRequest /// { /// Query = new SearchLoyaltyRewardsRequestLoyaltyRewardQuery @@ -148,7 +149,7 @@ public async Task SearchAsync( /// Retrieves a loyalty reward. /// /// - /// await client.Loyalty.Rewards.GetAsync(new GetRewardsRequest { RewardId = "reward_id" }); + /// await client.Default.Loyalty.Rewards.GetAsync(new GetRewardsRequest { RewardId = "reward_id" }); /// public async Task GetAsync( GetRewardsRequest request, @@ -206,7 +207,9 @@ public async Task GetAsync( /// You cannot delete a reward that has reached the terminal state (REDEEMED). /// /// - /// await client.Loyalty.Rewards.DeleteAsync(new DeleteRewardsRequest { RewardId = "reward_id" }); + /// await client.Default.Loyalty.Rewards.DeleteAsync( + /// new DeleteRewardsRequest { RewardId = "reward_id" } + /// ); /// public async Task DeleteAsync( DeleteRewardsRequest request, @@ -266,7 +269,7 @@ public async Task DeleteAsync( /// to the account. /// /// - /// await client.Loyalty.Rewards.RedeemAsync( + /// await client.Default.Loyalty.Rewards.RedeemAsync( /// new RedeemLoyaltyRewardRequest /// { /// RewardId = "reward_id", diff --git a/src/Square/Merchants/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs b/src/Square/Default/Merchants/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs similarity index 94% rename from src/Square/Merchants/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs rename to src/Square/Default/Merchants/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs index a9364a41..5b3d027b 100644 --- a/src/Square/Merchants/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs +++ b/src/Square/Default/Merchants/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Merchants.CustomAttributeDefinitions; +namespace Square.Default.Merchants; public partial class CustomAttributeDefinitionsClient : ICustomAttributeDefinitionsClient { @@ -83,8 +84,8 @@ private async Task ListInternalA /// applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. /// /// - /// await client.Merchants.CustomAttributeDefinitions.ListAsync( - /// new Square.Merchants.CustomAttributeDefinitions.ListCustomAttributeDefinitionsRequest + /// await client.Default.Merchants.CustomAttributeDefinitions.ListAsync( + /// new Square.Default.Merchants.ListCustomAttributeDefinitionsRequest /// { /// VisibilityFilter = VisibilityFilter.All, /// Limit = 1, @@ -135,7 +136,7 @@ public async Task> ListAsync( /// to set the custom attribute for a merchant. /// /// - /// await client.Merchants.CustomAttributeDefinitions.CreateAsync( + /// await client.Default.Merchants.CustomAttributeDefinitions.CreateAsync( /// new CreateMerchantCustomAttributeDefinitionRequest /// { /// CustomAttributeDefinition = new CustomAttributeDefinition @@ -206,12 +207,8 @@ public async Task CreateAsync( /// setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. /// /// - /// await client.Merchants.CustomAttributeDefinitions.GetAsync( - /// new Square.Merchants.CustomAttributeDefinitions.GetCustomAttributeDefinitionsRequest - /// { - /// Key = "key", - /// Version = 1, - /// } + /// await client.Default.Merchants.CustomAttributeDefinitions.GetAsync( + /// new Square.Default.Merchants.GetCustomAttributeDefinitionsRequest { Key = "key", Version = 1 } /// ); /// public async Task GetAsync( @@ -273,7 +270,7 @@ public async Task GetAsync( /// Only the definition owner can update a custom attribute definition. /// /// - /// await client.Merchants.CustomAttributeDefinitions.UpdateAsync( + /// await client.Default.Merchants.CustomAttributeDefinitions.UpdateAsync( /// new UpdateMerchantCustomAttributeDefinitionRequest /// { /// Key = "key", @@ -340,11 +337,8 @@ public async Task UpdateAsync( /// Only the definition owner can delete a custom attribute definition. /// /// - /// await client.Merchants.CustomAttributeDefinitions.DeleteAsync( - /// new Square.Merchants.CustomAttributeDefinitions.DeleteCustomAttributeDefinitionsRequest - /// { - /// Key = "key", - /// } + /// await client.Default.Merchants.CustomAttributeDefinitions.DeleteAsync( + /// new Square.Default.Merchants.DeleteCustomAttributeDefinitionsRequest { Key = "key" } /// ); /// public async Task DeleteAsync( diff --git a/src/Square/Merchants/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs b/src/Square/Default/Merchants/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs similarity index 98% rename from src/Square/Merchants/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs rename to src/Square/Default/Merchants/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs index 6ff01b32..4c3636af 100644 --- a/src/Square/Merchants/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs +++ b/src/Square/Default/Merchants/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs @@ -1,7 +1,8 @@ using Square; using Square.Core; +using Square.Default; -namespace Square.Merchants.CustomAttributeDefinitions; +namespace Square.Default.Merchants; public partial interface ICustomAttributeDefinitionsClient { diff --git a/src/Square/Merchants/CustomAttributeDefinitions/Requests/CreateMerchantCustomAttributeDefinitionRequest.cs b/src/Square/Default/Merchants/CustomAttributeDefinitions/Requests/CreateMerchantCustomAttributeDefinitionRequest.cs similarity index 94% rename from src/Square/Merchants/CustomAttributeDefinitions/Requests/CreateMerchantCustomAttributeDefinitionRequest.cs rename to src/Square/Default/Merchants/CustomAttributeDefinitions/Requests/CreateMerchantCustomAttributeDefinitionRequest.cs index 3c19ed43..09450259 100644 --- a/src/Square/Merchants/CustomAttributeDefinitions/Requests/CreateMerchantCustomAttributeDefinitionRequest.cs +++ b/src/Square/Default/Merchants/CustomAttributeDefinitions/Requests/CreateMerchantCustomAttributeDefinitionRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Merchants.CustomAttributeDefinitions; +namespace Square.Default.Merchants; [Serializable] public record CreateMerchantCustomAttributeDefinitionRequest diff --git a/src/Square/Customers/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs b/src/Square/Default/Merchants/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs similarity index 88% rename from src/Square/Customers/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs rename to src/Square/Default/Merchants/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs index 870c894d..b2dee913 100644 --- a/src/Square/Customers/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs +++ b/src/Square/Default/Merchants/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Customers.CustomAttributeDefinitions; +namespace Square.Default.Merchants; [Serializable] public record DeleteCustomAttributeDefinitionsRequest diff --git a/src/Square/Customers/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs b/src/Square/Default/Merchants/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs similarity index 94% rename from src/Square/Customers/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs rename to src/Square/Default/Merchants/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs index 500aaf10..35ef0033 100644 --- a/src/Square/Customers/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs +++ b/src/Square/Default/Merchants/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Customers.CustomAttributeDefinitions; +namespace Square.Default.Merchants; [Serializable] public record GetCustomAttributeDefinitionsRequest diff --git a/src/Square/Locations/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs b/src/Square/Default/Merchants/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs similarity index 94% rename from src/Square/Locations/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs rename to src/Square/Default/Merchants/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs index 2bd4928d..261fdb5a 100644 --- a/src/Square/Locations/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs +++ b/src/Square/Default/Merchants/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Locations.CustomAttributeDefinitions; +namespace Square.Default.Merchants; [Serializable] public record ListCustomAttributeDefinitionsRequest diff --git a/src/Square/Merchants/CustomAttributeDefinitions/Requests/UpdateMerchantCustomAttributeDefinitionRequest.cs b/src/Square/Default/Merchants/CustomAttributeDefinitions/Requests/UpdateMerchantCustomAttributeDefinitionRequest.cs similarity index 96% rename from src/Square/Merchants/CustomAttributeDefinitions/Requests/UpdateMerchantCustomAttributeDefinitionRequest.cs rename to src/Square/Default/Merchants/CustomAttributeDefinitions/Requests/UpdateMerchantCustomAttributeDefinitionRequest.cs index 160304ff..619f90df 100644 --- a/src/Square/Merchants/CustomAttributeDefinitions/Requests/UpdateMerchantCustomAttributeDefinitionRequest.cs +++ b/src/Square/Default/Merchants/CustomAttributeDefinitions/Requests/UpdateMerchantCustomAttributeDefinitionRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Merchants.CustomAttributeDefinitions; +namespace Square.Default.Merchants; [Serializable] public record UpdateMerchantCustomAttributeDefinitionRequest diff --git a/src/Square/Merchants/CustomAttributes/CustomAttributesClient.cs b/src/Square/Default/Merchants/CustomAttributes/CustomAttributesClient.cs similarity index 96% rename from src/Square/Merchants/CustomAttributes/CustomAttributesClient.cs rename to src/Square/Default/Merchants/CustomAttributes/CustomAttributesClient.cs index f3720ef3..a239b75b 100644 --- a/src/Square/Merchants/CustomAttributes/CustomAttributesClient.cs +++ b/src/Square/Default/Merchants/CustomAttributes/CustomAttributesClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Merchants.CustomAttributes; +namespace Square.Default.Merchants; public partial class CustomAttributesClient : ICustomAttributesClient { @@ -89,7 +90,7 @@ private async Task ListInternalAsync( /// `VISIBILITY_READ_WRITE_VALUES`. /// /// - /// await client.Merchants.CustomAttributes.BatchDeleteAsync( + /// await client.Default.Merchants.CustomAttributes.BatchDeleteAsync( /// new BulkDeleteMerchantCustomAttributesRequest /// { /// Values = new Dictionary< @@ -173,7 +174,7 @@ public async Task BatchDeleteAsync( /// must be `VISIBILITY_READ_WRITE_VALUES`. /// /// - /// await client.Merchants.CustomAttributes.BatchUpsertAsync( + /// await client.Default.Merchants.CustomAttributes.BatchUpsertAsync( /// new BulkUpsertMerchantCustomAttributesRequest /// { /// Values = new Dictionary< @@ -263,8 +264,8 @@ public async Task BatchUpsertAsync( /// and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. /// /// - /// await client.Merchants.CustomAttributes.ListAsync( - /// new Square.Merchants.CustomAttributes.ListCustomAttributesRequest + /// await client.Default.Merchants.CustomAttributes.ListAsync( + /// new Square.Default.Merchants.ListCustomAttributesRequest /// { /// MerchantId = "merchant_id", /// VisibilityFilter = VisibilityFilter.All, @@ -315,8 +316,8 @@ public async Task> ListAsync( /// `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. /// /// - /// await client.Merchants.CustomAttributes.GetAsync( - /// new Square.Merchants.CustomAttributes.GetCustomAttributesRequest + /// await client.Default.Merchants.CustomAttributes.GetAsync( + /// new Square.Default.Merchants.GetCustomAttributesRequest /// { /// MerchantId = "merchant_id", /// Key = "key", @@ -391,7 +392,7 @@ public async Task GetAsync( /// must be `VISIBILITY_READ_WRITE_VALUES`. /// /// - /// await client.Merchants.CustomAttributes.UpsertAsync( + /// await client.Default.Merchants.CustomAttributes.UpsertAsync( /// new UpsertMerchantCustomAttributeRequest /// { /// MerchantId = "merchant_id", @@ -453,8 +454,8 @@ public async Task UpsertAsync( /// `VISIBILITY_READ_WRITE_VALUES`. /// /// - /// await client.Merchants.CustomAttributes.DeleteAsync( - /// new Square.Merchants.CustomAttributes.DeleteCustomAttributesRequest + /// await client.Default.Merchants.CustomAttributes.DeleteAsync( + /// new Square.Default.Merchants.DeleteCustomAttributesRequest /// { /// MerchantId = "merchant_id", /// Key = "key", diff --git a/src/Square/Merchants/CustomAttributes/ICustomAttributesClient.cs b/src/Square/Default/Merchants/CustomAttributes/ICustomAttributesClient.cs similarity index 98% rename from src/Square/Merchants/CustomAttributes/ICustomAttributesClient.cs rename to src/Square/Default/Merchants/CustomAttributes/ICustomAttributesClient.cs index 5ceb8a30..057536f8 100644 --- a/src/Square/Merchants/CustomAttributes/ICustomAttributesClient.cs +++ b/src/Square/Default/Merchants/CustomAttributes/ICustomAttributesClient.cs @@ -1,7 +1,8 @@ using Square; using Square.Core; +using Square.Default; -namespace Square.Merchants.CustomAttributes; +namespace Square.Default.Merchants; public partial interface ICustomAttributesClient { diff --git a/src/Square/Merchants/CustomAttributes/Requests/BulkDeleteMerchantCustomAttributesRequest.cs b/src/Square/Default/Merchants/CustomAttributes/Requests/BulkDeleteMerchantCustomAttributesRequest.cs similarity index 92% rename from src/Square/Merchants/CustomAttributes/Requests/BulkDeleteMerchantCustomAttributesRequest.cs rename to src/Square/Default/Merchants/CustomAttributes/Requests/BulkDeleteMerchantCustomAttributesRequest.cs index c1529f44..4ef14208 100644 --- a/src/Square/Merchants/CustomAttributes/Requests/BulkDeleteMerchantCustomAttributesRequest.cs +++ b/src/Square/Default/Merchants/CustomAttributes/Requests/BulkDeleteMerchantCustomAttributesRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Merchants.CustomAttributes; +namespace Square.Default.Merchants; [Serializable] public record BulkDeleteMerchantCustomAttributesRequest diff --git a/src/Square/Merchants/CustomAttributes/Requests/BulkUpsertMerchantCustomAttributesRequest.cs b/src/Square/Default/Merchants/CustomAttributes/Requests/BulkUpsertMerchantCustomAttributesRequest.cs similarity index 93% rename from src/Square/Merchants/CustomAttributes/Requests/BulkUpsertMerchantCustomAttributesRequest.cs rename to src/Square/Default/Merchants/CustomAttributes/Requests/BulkUpsertMerchantCustomAttributesRequest.cs index bedea590..ee629bcd 100644 --- a/src/Square/Merchants/CustomAttributes/Requests/BulkUpsertMerchantCustomAttributesRequest.cs +++ b/src/Square/Default/Merchants/CustomAttributes/Requests/BulkUpsertMerchantCustomAttributesRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Merchants.CustomAttributes; +namespace Square.Default.Merchants; [Serializable] public record BulkUpsertMerchantCustomAttributesRequest diff --git a/src/Square/Merchants/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs b/src/Square/Default/Merchants/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs similarity index 94% rename from src/Square/Merchants/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs rename to src/Square/Default/Merchants/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs index dbf34815..e0cea9ea 100644 --- a/src/Square/Merchants/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs +++ b/src/Square/Default/Merchants/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Merchants.CustomAttributes; +namespace Square.Default.Merchants; [Serializable] public record DeleteCustomAttributesRequest diff --git a/src/Square/Merchants/CustomAttributes/Requests/GetCustomAttributesRequest.cs b/src/Square/Default/Merchants/CustomAttributes/Requests/GetCustomAttributesRequest.cs similarity index 97% rename from src/Square/Merchants/CustomAttributes/Requests/GetCustomAttributesRequest.cs rename to src/Square/Default/Merchants/CustomAttributes/Requests/GetCustomAttributesRequest.cs index 1e6f2f0b..49daf7af 100644 --- a/src/Square/Merchants/CustomAttributes/Requests/GetCustomAttributesRequest.cs +++ b/src/Square/Default/Merchants/CustomAttributes/Requests/GetCustomAttributesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Merchants.CustomAttributes; +namespace Square.Default.Merchants; [Serializable] public record GetCustomAttributesRequest diff --git a/src/Square/Merchants/CustomAttributes/Requests/ListCustomAttributesRequest.cs b/src/Square/Default/Merchants/CustomAttributes/Requests/ListCustomAttributesRequest.cs similarity index 97% rename from src/Square/Merchants/CustomAttributes/Requests/ListCustomAttributesRequest.cs rename to src/Square/Default/Merchants/CustomAttributes/Requests/ListCustomAttributesRequest.cs index 97741d14..1894180d 100644 --- a/src/Square/Merchants/CustomAttributes/Requests/ListCustomAttributesRequest.cs +++ b/src/Square/Default/Merchants/CustomAttributes/Requests/ListCustomAttributesRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Merchants.CustomAttributes; +namespace Square.Default.Merchants; [Serializable] public record ListCustomAttributesRequest diff --git a/src/Square/Merchants/CustomAttributes/Requests/UpsertMerchantCustomAttributeRequest.cs b/src/Square/Default/Merchants/CustomAttributes/Requests/UpsertMerchantCustomAttributeRequest.cs similarity index 97% rename from src/Square/Merchants/CustomAttributes/Requests/UpsertMerchantCustomAttributeRequest.cs rename to src/Square/Default/Merchants/CustomAttributes/Requests/UpsertMerchantCustomAttributeRequest.cs index 7584859e..d222d488 100644 --- a/src/Square/Merchants/CustomAttributes/Requests/UpsertMerchantCustomAttributeRequest.cs +++ b/src/Square/Default/Merchants/CustomAttributes/Requests/UpsertMerchantCustomAttributeRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Merchants.CustomAttributes; +namespace Square.Default.Merchants; [Serializable] public record UpsertMerchantCustomAttributeRequest diff --git a/src/Square/Merchants/IMerchantsClient.cs b/src/Square/Default/Merchants/IMerchantsClient.cs similarity index 83% rename from src/Square/Merchants/IMerchantsClient.cs rename to src/Square/Default/Merchants/IMerchantsClient.cs index 1ab838ce..57dc5fad 100644 --- a/src/Square/Merchants/IMerchantsClient.cs +++ b/src/Square/Default/Merchants/IMerchantsClient.cs @@ -1,12 +1,12 @@ using Square; using Square.Core; -namespace Square.Merchants; +namespace Square.Default; public partial interface IMerchantsClient { - public Square.Merchants.CustomAttributeDefinitions.CustomAttributeDefinitionsClient CustomAttributeDefinitions { get; } - public Square.Merchants.CustomAttributes.CustomAttributesClient CustomAttributes { get; } + public Square.Default.Merchants.CustomAttributeDefinitionsClient CustomAttributeDefinitions { get; } + public Square.Default.Merchants.CustomAttributesClient CustomAttributes { get; } /// /// Provides details about the merchant associated with a given access token. diff --git a/src/Square/Merchants/MerchantsClient.cs b/src/Square/Default/Merchants/MerchantsClient.cs similarity index 89% rename from src/Square/Merchants/MerchantsClient.cs rename to src/Square/Default/Merchants/MerchantsClient.cs index 8e8b51e4..b1a67e04 100644 --- a/src/Square/Merchants/MerchantsClient.cs +++ b/src/Square/Default/Merchants/MerchantsClient.cs @@ -2,7 +2,7 @@ using Square; using Square.Core; -namespace Square.Merchants; +namespace Square.Default; public partial class MerchantsClient : IMerchantsClient { @@ -11,16 +11,15 @@ public partial class MerchantsClient : IMerchantsClient internal MerchantsClient(RawClient client) { _client = client; - CustomAttributeDefinitions = - new Square.Merchants.CustomAttributeDefinitions.CustomAttributeDefinitionsClient( - _client - ); - CustomAttributes = new Square.Merchants.CustomAttributes.CustomAttributesClient(_client); + CustomAttributeDefinitions = new Square.Default.Merchants.CustomAttributeDefinitionsClient( + _client + ); + CustomAttributes = new Square.Default.Merchants.CustomAttributesClient(_client); } - public Square.Merchants.CustomAttributeDefinitions.CustomAttributeDefinitionsClient CustomAttributeDefinitions { get; } + public Square.Default.Merchants.CustomAttributeDefinitionsClient CustomAttributeDefinitions { get; } - public Square.Merchants.CustomAttributes.CustomAttributesClient CustomAttributes { get; } + public Square.Default.Merchants.CustomAttributesClient CustomAttributes { get; } /// /// Provides details about the merchant associated with a given access token. @@ -94,7 +93,7 @@ private async Task ListInternalAsync( /// endpoint to retrieve the merchant information. /// /// - /// await client.Merchants.ListAsync(new ListMerchantsRequest { Cursor = 1 }); + /// await client.Default.Merchants.ListAsync(new ListMerchantsRequest { Cursor = 1 }); /// public async Task> ListAsync( ListMerchantsRequest request, @@ -133,7 +132,7 @@ public async Task> ListAsync( /// Retrieves the `Merchant` object for the given `merchant_id`. /// /// - /// await client.Merchants.GetAsync(new GetMerchantsRequest { MerchantId = "merchant_id" }); + /// await client.Default.Merchants.GetAsync(new GetMerchantsRequest { MerchantId = "merchant_id" }); /// public async Task GetAsync( GetMerchantsRequest request, diff --git a/src/Square/Merchants/Requests/GetMerchantsRequest.cs b/src/Square/Default/Merchants/Requests/GetMerchantsRequest.cs similarity index 94% rename from src/Square/Merchants/Requests/GetMerchantsRequest.cs rename to src/Square/Default/Merchants/Requests/GetMerchantsRequest.cs index cd0fa576..9823a4ff 100644 --- a/src/Square/Merchants/Requests/GetMerchantsRequest.cs +++ b/src/Square/Default/Merchants/Requests/GetMerchantsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Merchants; +namespace Square.Default; [Serializable] public record GetMerchantsRequest diff --git a/src/Square/Merchants/Requests/ListMerchantsRequest.cs b/src/Square/Default/Merchants/Requests/ListMerchantsRequest.cs similarity index 93% rename from src/Square/Merchants/Requests/ListMerchantsRequest.cs rename to src/Square/Default/Merchants/Requests/ListMerchantsRequest.cs index ff3d8ea0..7f4cef41 100644 --- a/src/Square/Merchants/Requests/ListMerchantsRequest.cs +++ b/src/Square/Default/Merchants/Requests/ListMerchantsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Merchants; +namespace Square.Default; [Serializable] public record ListMerchantsRequest diff --git a/src/Square/OAuth/IOAuthClient.cs b/src/Square/Default/OAuth/IOAuthClient.cs similarity index 99% rename from src/Square/OAuth/IOAuthClient.cs rename to src/Square/Default/OAuth/IOAuthClient.cs index 3709119d..14a021a8 100644 --- a/src/Square/OAuth/IOAuthClient.cs +++ b/src/Square/Default/OAuth/IOAuthClient.cs @@ -1,6 +1,6 @@ using Square; -namespace Square.OAuth; +namespace Square.Default; public partial interface IOAuthClient { diff --git a/src/Square/OAuth/OAuthClient.cs b/src/Square/Default/OAuth/OAuthClient.cs similarity index 97% rename from src/Square/OAuth/OAuthClient.cs rename to src/Square/Default/OAuth/OAuthClient.cs index 1bb056d0..5b5a5e5e 100644 --- a/src/Square/OAuth/OAuthClient.cs +++ b/src/Square/Default/OAuth/OAuthClient.cs @@ -2,7 +2,7 @@ using Square; using Square.Core; -namespace Square.OAuth; +namespace Square.Default; public partial class OAuthClient : IOAuthClient { @@ -30,7 +30,7 @@ internal OAuthClient(RawClient client) /// page for your application in the Developer Dashboard. /// /// - /// await client.OAuth.RevokeTokenAsync( + /// await client.Default.OAuth.RevokeTokenAsync( /// new RevokeTokenRequest { ClientId = "CLIENT_ID", AccessToken = "ACCESS_TOKEN" } /// ); /// @@ -101,7 +101,7 @@ public async Task RevokeTokenAsync( /// Application clients should never interact directly with OAuth tokens. /// /// - /// await client.OAuth.ObtainTokenAsync( + /// await client.Default.OAuth.ObtainTokenAsync( /// new ObtainTokenRequest /// { /// ClientId = "sq0idp-uaPHILoPzWZk3tlJqlML0g", @@ -171,7 +171,7 @@ public async Task ObtainTokenAsync( /// If the access token is expired or not a valid access token, the endpoint returns an `UNAUTHORIZED` error. /// /// - /// await client.OAuth.RetrieveTokenStatusAsync(); + /// await client.Default.OAuth.RetrieveTokenStatusAsync(); /// public async Task RetrieveTokenStatusAsync( RequestOptions? options = null, @@ -214,7 +214,7 @@ public async Task RetrieveTokenStatusAsync( } /// - /// await client.OAuth.AuthorizeAsync(); + /// await client.Default.OAuth.AuthorizeAsync(); /// public async Task AuthorizeAsync( RequestOptions? options = null, diff --git a/src/Square/OAuth/Requests/ObtainTokenRequest.cs b/src/Square/Default/OAuth/Requests/ObtainTokenRequest.cs similarity index 99% rename from src/Square/OAuth/Requests/ObtainTokenRequest.cs rename to src/Square/Default/OAuth/Requests/ObtainTokenRequest.cs index 5bddd305..a5e0005a 100644 --- a/src/Square/OAuth/Requests/ObtainTokenRequest.cs +++ b/src/Square/Default/OAuth/Requests/ObtainTokenRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.OAuth; +namespace Square.Default; [Serializable] public record ObtainTokenRequest diff --git a/src/Square/OAuth/Requests/RevokeTokenRequest.cs b/src/Square/Default/OAuth/Requests/RevokeTokenRequest.cs similarity index 98% rename from src/Square/OAuth/Requests/RevokeTokenRequest.cs rename to src/Square/Default/OAuth/Requests/RevokeTokenRequest.cs index 834a5e8a..aa9d4d85 100644 --- a/src/Square/OAuth/Requests/RevokeTokenRequest.cs +++ b/src/Square/Default/OAuth/Requests/RevokeTokenRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.OAuth; +namespace Square.Default; [Serializable] public record RevokeTokenRequest diff --git a/src/Square/Orders/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs b/src/Square/Default/Orders/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs similarity index 94% rename from src/Square/Orders/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs rename to src/Square/Default/Orders/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs index 0b344f40..8fef797c 100644 --- a/src/Square/Orders/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs +++ b/src/Square/Default/Orders/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Orders.CustomAttributeDefinitions; +namespace Square.Default.Orders; public partial class CustomAttributeDefinitionsClient : ICustomAttributeDefinitionsClient { @@ -87,8 +88,8 @@ private async Task ListInternalAsyn /// seller-defined custom attributes (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`. /// /// - /// await client.Orders.CustomAttributeDefinitions.ListAsync( - /// new Square.Orders.CustomAttributeDefinitions.ListCustomAttributeDefinitionsRequest + /// await client.Default.Orders.CustomAttributeDefinitions.ListAsync( + /// new Square.Default.Orders.ListCustomAttributeDefinitionsRequest /// { /// VisibilityFilter = VisibilityFilter.All, /// Cursor = "cursor", @@ -137,7 +138,7 @@ public async Task> ListAsync( /// in the Square seller account. /// /// - /// await client.Orders.CustomAttributeDefinitions.CreateAsync( + /// await client.Default.Orders.CustomAttributeDefinitions.CreateAsync( /// new CreateOrderCustomAttributeDefinitionRequest /// { /// CustomAttributeDefinition = new CustomAttributeDefinition @@ -211,12 +212,8 @@ public async Task CreateAsync( /// (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`. /// /// - /// await client.Orders.CustomAttributeDefinitions.GetAsync( - /// new Square.Orders.CustomAttributeDefinitions.GetCustomAttributeDefinitionsRequest - /// { - /// Key = "key", - /// Version = 1, - /// } + /// await client.Default.Orders.CustomAttributeDefinitions.GetAsync( + /// new Square.Default.Orders.GetCustomAttributeDefinitionsRequest { Key = "key", Version = 1 } /// ); /// public async Task GetAsync( @@ -277,7 +274,7 @@ public async Task GetAsync( /// Only the definition owner can update a custom attribute definition. Note that sellers can view all custom attributes in exported customer data, including those set to `VISIBILITY_HIDDEN`. /// /// - /// await client.Orders.CustomAttributeDefinitions.UpdateAsync( + /// await client.Default.Orders.CustomAttributeDefinitions.UpdateAsync( /// new UpdateOrderCustomAttributeDefinitionRequest /// { /// Key = "key", @@ -345,11 +342,8 @@ public async Task UpdateAsync( /// Only the definition owner can delete a custom attribute definition. /// /// - /// await client.Orders.CustomAttributeDefinitions.DeleteAsync( - /// new Square.Orders.CustomAttributeDefinitions.DeleteCustomAttributeDefinitionsRequest - /// { - /// Key = "key", - /// } + /// await client.Default.Orders.CustomAttributeDefinitions.DeleteAsync( + /// new Square.Default.Orders.DeleteCustomAttributeDefinitionsRequest { Key = "key" } /// ); /// public async Task DeleteAsync( diff --git a/src/Square/Orders/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs b/src/Square/Default/Orders/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs similarity index 98% rename from src/Square/Orders/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs rename to src/Square/Default/Orders/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs index 48b5bf4a..8ee300ac 100644 --- a/src/Square/Orders/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs +++ b/src/Square/Default/Orders/CustomAttributeDefinitions/ICustomAttributeDefinitionsClient.cs @@ -1,7 +1,8 @@ using Square; using Square.Core; +using Square.Default; -namespace Square.Orders.CustomAttributeDefinitions; +namespace Square.Default.Orders; public partial interface ICustomAttributeDefinitionsClient { diff --git a/src/Square/Orders/CustomAttributeDefinitions/Requests/CreateOrderCustomAttributeDefinitionRequest.cs b/src/Square/Default/Orders/CustomAttributeDefinitions/Requests/CreateOrderCustomAttributeDefinitionRequest.cs similarity index 95% rename from src/Square/Orders/CustomAttributeDefinitions/Requests/CreateOrderCustomAttributeDefinitionRequest.cs rename to src/Square/Default/Orders/CustomAttributeDefinitions/Requests/CreateOrderCustomAttributeDefinitionRequest.cs index 844a5a62..60411bb5 100644 --- a/src/Square/Orders/CustomAttributeDefinitions/Requests/CreateOrderCustomAttributeDefinitionRequest.cs +++ b/src/Square/Default/Orders/CustomAttributeDefinitions/Requests/CreateOrderCustomAttributeDefinitionRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Orders.CustomAttributeDefinitions; +namespace Square.Default.Orders; [Serializable] public record CreateOrderCustomAttributeDefinitionRequest diff --git a/src/Square/Default/Orders/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs b/src/Square/Default/Orders/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs new file mode 100644 index 00000000..f2a1cecf --- /dev/null +++ b/src/Square/Default/Orders/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs @@ -0,0 +1,20 @@ +using System.Text.Json.Serialization; +using Square.Core; + +namespace Square.Default.Orders; + +[Serializable] +public record DeleteCustomAttributeDefinitionsRequest +{ + /// + /// The key of the custom attribute definition to delete. + /// + [JsonIgnore] + public required string Key { get; set; } + + /// + public override string ToString() + { + return JsonUtils.Serialize(this); + } +} diff --git a/src/Square/Orders/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs b/src/Square/Default/Orders/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs similarity index 93% rename from src/Square/Orders/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs rename to src/Square/Default/Orders/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs index 22e20085..7388eba1 100644 --- a/src/Square/Orders/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs +++ b/src/Square/Default/Orders/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Orders.CustomAttributeDefinitions; +namespace Square.Default.Orders; [Serializable] public record GetCustomAttributeDefinitionsRequest diff --git a/src/Square/Orders/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs b/src/Square/Default/Orders/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs similarity index 95% rename from src/Square/Orders/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs rename to src/Square/Default/Orders/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs index 38233b30..e1561b90 100644 --- a/src/Square/Orders/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs +++ b/src/Square/Default/Orders/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Orders.CustomAttributeDefinitions; +namespace Square.Default.Orders; [Serializable] public record ListCustomAttributeDefinitionsRequest diff --git a/src/Square/Orders/CustomAttributeDefinitions/Requests/UpdateOrderCustomAttributeDefinitionRequest.cs b/src/Square/Default/Orders/CustomAttributeDefinitions/Requests/UpdateOrderCustomAttributeDefinitionRequest.cs similarity index 95% rename from src/Square/Orders/CustomAttributeDefinitions/Requests/UpdateOrderCustomAttributeDefinitionRequest.cs rename to src/Square/Default/Orders/CustomAttributeDefinitions/Requests/UpdateOrderCustomAttributeDefinitionRequest.cs index 96549665..a427d6dc 100644 --- a/src/Square/Orders/CustomAttributeDefinitions/Requests/UpdateOrderCustomAttributeDefinitionRequest.cs +++ b/src/Square/Default/Orders/CustomAttributeDefinitions/Requests/UpdateOrderCustomAttributeDefinitionRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Orders.CustomAttributeDefinitions; +namespace Square.Default.Orders; [Serializable] public record UpdateOrderCustomAttributeDefinitionRequest diff --git a/src/Square/Orders/CustomAttributes/CustomAttributesClient.cs b/src/Square/Default/Orders/CustomAttributes/CustomAttributesClient.cs similarity index 96% rename from src/Square/Orders/CustomAttributes/CustomAttributesClient.cs rename to src/Square/Default/Orders/CustomAttributes/CustomAttributesClient.cs index 65c15e94..87de5295 100644 --- a/src/Square/Orders/CustomAttributes/CustomAttributesClient.cs +++ b/src/Square/Default/Orders/CustomAttributes/CustomAttributesClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Orders.CustomAttributes; +namespace Square.Default.Orders; public partial class CustomAttributesClient : ICustomAttributesClient { @@ -102,7 +103,7 @@ private async Task ListInternalAsync( /// (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`. /// /// - /// await client.Orders.CustomAttributes.BatchDeleteAsync( + /// await client.Default.Orders.CustomAttributes.BatchDeleteAsync( /// new BulkDeleteOrderCustomAttributesRequest /// { /// Values = new Dictionary< @@ -192,7 +193,7 @@ public async Task BatchDeleteAsync( /// (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`. /// /// - /// await client.Orders.CustomAttributes.BatchUpsertAsync( + /// await client.Default.Orders.CustomAttributes.BatchUpsertAsync( /// new BulkUpsertOrderCustomAttributesRequest /// { /// Values = new Dictionary< @@ -286,8 +287,8 @@ public async Task BatchUpsertAsync( /// and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. /// /// - /// await client.Orders.CustomAttributes.ListAsync( - /// new Square.Orders.CustomAttributes.ListCustomAttributesRequest + /// await client.Default.Orders.CustomAttributes.ListAsync( + /// new Square.Default.Orders.ListCustomAttributesRequest /// { /// OrderId = "order_id", /// VisibilityFilter = VisibilityFilter.All, @@ -341,8 +342,8 @@ public async Task> ListAsync( /// also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`. /// /// - /// await client.Orders.CustomAttributes.GetAsync( - /// new Square.Orders.CustomAttributes.GetCustomAttributesRequest + /// await client.Default.Orders.CustomAttributes.GetAsync( + /// new Square.Default.Orders.GetCustomAttributesRequest /// { /// OrderId = "order_id", /// CustomAttributeKey = "custom_attribute_key", @@ -418,7 +419,7 @@ public async Task GetAsync( /// (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`. /// /// - /// await client.Orders.CustomAttributes.UpsertAsync( + /// await client.Default.Orders.CustomAttributes.UpsertAsync( /// new UpsertOrderCustomAttributeRequest /// { /// OrderId = "order_id", @@ -487,8 +488,8 @@ public async Task UpsertAsync( /// (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`. /// /// - /// await client.Orders.CustomAttributes.DeleteAsync( - /// new Square.Orders.CustomAttributes.DeleteCustomAttributesRequest + /// await client.Default.Orders.CustomAttributes.DeleteAsync( + /// new Square.Default.Orders.DeleteCustomAttributesRequest /// { /// OrderId = "order_id", /// CustomAttributeKey = "custom_attribute_key", diff --git a/src/Square/Orders/CustomAttributes/ICustomAttributesClient.cs b/src/Square/Default/Orders/CustomAttributes/ICustomAttributesClient.cs similarity index 99% rename from src/Square/Orders/CustomAttributes/ICustomAttributesClient.cs rename to src/Square/Default/Orders/CustomAttributes/ICustomAttributesClient.cs index b6479334..86b9e036 100644 --- a/src/Square/Orders/CustomAttributes/ICustomAttributesClient.cs +++ b/src/Square/Default/Orders/CustomAttributes/ICustomAttributesClient.cs @@ -1,7 +1,8 @@ using Square; using Square.Core; +using Square.Default; -namespace Square.Orders.CustomAttributes; +namespace Square.Default.Orders; public partial interface ICustomAttributesClient { diff --git a/src/Square/Orders/CustomAttributes/Requests/BulkDeleteOrderCustomAttributesRequest.cs b/src/Square/Default/Orders/CustomAttributes/Requests/BulkDeleteOrderCustomAttributesRequest.cs similarity index 92% rename from src/Square/Orders/CustomAttributes/Requests/BulkDeleteOrderCustomAttributesRequest.cs rename to src/Square/Default/Orders/CustomAttributes/Requests/BulkDeleteOrderCustomAttributesRequest.cs index 5ef858c0..8964a9a9 100644 --- a/src/Square/Orders/CustomAttributes/Requests/BulkDeleteOrderCustomAttributesRequest.cs +++ b/src/Square/Default/Orders/CustomAttributes/Requests/BulkDeleteOrderCustomAttributesRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Orders.CustomAttributes; +namespace Square.Default.Orders; [Serializable] public record BulkDeleteOrderCustomAttributesRequest diff --git a/src/Square/Orders/CustomAttributes/Requests/BulkUpsertOrderCustomAttributesRequest.cs b/src/Square/Default/Orders/CustomAttributes/Requests/BulkUpsertOrderCustomAttributesRequest.cs similarity index 92% rename from src/Square/Orders/CustomAttributes/Requests/BulkUpsertOrderCustomAttributesRequest.cs rename to src/Square/Default/Orders/CustomAttributes/Requests/BulkUpsertOrderCustomAttributesRequest.cs index 45430f9d..d2b161f2 100644 --- a/src/Square/Orders/CustomAttributes/Requests/BulkUpsertOrderCustomAttributesRequest.cs +++ b/src/Square/Default/Orders/CustomAttributes/Requests/BulkUpsertOrderCustomAttributesRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Orders.CustomAttributes; +namespace Square.Default.Orders; [Serializable] public record BulkUpsertOrderCustomAttributesRequest diff --git a/src/Square/Orders/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs b/src/Square/Default/Orders/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs similarity index 93% rename from src/Square/Orders/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs rename to src/Square/Default/Orders/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs index dae82171..7414353c 100644 --- a/src/Square/Orders/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs +++ b/src/Square/Default/Orders/CustomAttributes/Requests/DeleteCustomAttributesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Orders.CustomAttributes; +namespace Square.Default.Orders; [Serializable] public record DeleteCustomAttributesRequest diff --git a/src/Square/Orders/CustomAttributes/Requests/GetCustomAttributesRequest.cs b/src/Square/Default/Orders/CustomAttributes/Requests/GetCustomAttributesRequest.cs similarity index 97% rename from src/Square/Orders/CustomAttributes/Requests/GetCustomAttributesRequest.cs rename to src/Square/Default/Orders/CustomAttributes/Requests/GetCustomAttributesRequest.cs index 76ed3c59..db987eff 100644 --- a/src/Square/Orders/CustomAttributes/Requests/GetCustomAttributesRequest.cs +++ b/src/Square/Default/Orders/CustomAttributes/Requests/GetCustomAttributesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Orders.CustomAttributes; +namespace Square.Default.Orders; [Serializable] public record GetCustomAttributesRequest diff --git a/src/Square/Orders/CustomAttributes/Requests/ListCustomAttributesRequest.cs b/src/Square/Default/Orders/CustomAttributes/Requests/ListCustomAttributesRequest.cs similarity index 97% rename from src/Square/Orders/CustomAttributes/Requests/ListCustomAttributesRequest.cs rename to src/Square/Default/Orders/CustomAttributes/Requests/ListCustomAttributesRequest.cs index 89c27f1d..157e8e58 100644 --- a/src/Square/Orders/CustomAttributes/Requests/ListCustomAttributesRequest.cs +++ b/src/Square/Default/Orders/CustomAttributes/Requests/ListCustomAttributesRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Orders.CustomAttributes; +namespace Square.Default.Orders; [Serializable] public record ListCustomAttributesRequest diff --git a/src/Square/Orders/CustomAttributes/Requests/UpsertOrderCustomAttributeRequest.cs b/src/Square/Default/Orders/CustomAttributes/Requests/UpsertOrderCustomAttributeRequest.cs similarity index 96% rename from src/Square/Orders/CustomAttributes/Requests/UpsertOrderCustomAttributeRequest.cs rename to src/Square/Default/Orders/CustomAttributes/Requests/UpsertOrderCustomAttributeRequest.cs index 6e6f3e2b..1172560f 100644 --- a/src/Square/Orders/CustomAttributes/Requests/UpsertOrderCustomAttributeRequest.cs +++ b/src/Square/Default/Orders/CustomAttributes/Requests/UpsertOrderCustomAttributeRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Orders.CustomAttributes; +namespace Square.Default.Orders; [Serializable] public record UpsertOrderCustomAttributeRequest diff --git a/src/Square/Orders/IOrdersClient.cs b/src/Square/Default/Orders/IOrdersClient.cs similarity index 95% rename from src/Square/Orders/IOrdersClient.cs rename to src/Square/Default/Orders/IOrdersClient.cs index 578aa571..a259ef81 100644 --- a/src/Square/Orders/IOrdersClient.cs +++ b/src/Square/Default/Orders/IOrdersClient.cs @@ -1,11 +1,11 @@ using Square; -namespace Square.Orders; +namespace Square.Default; public partial interface IOrdersClient { - public Square.Orders.CustomAttributeDefinitions.CustomAttributeDefinitionsClient CustomAttributeDefinitions { get; } - public Square.Orders.CustomAttributes.CustomAttributesClient CustomAttributes { get; } + public Square.Default.Orders.CustomAttributeDefinitionsClient CustomAttributeDefinitions { get; } + public Square.Default.Orders.CustomAttributesClient CustomAttributes { get; } /// /// Creates a new [order](entity:Order) that can include information about products for diff --git a/src/Square/Orders/OrdersClient.cs b/src/Square/Default/Orders/OrdersClient.cs similarity index 96% rename from src/Square/Orders/OrdersClient.cs rename to src/Square/Default/Orders/OrdersClient.cs index a0c0b50f..c77a504e 100644 --- a/src/Square/Orders/OrdersClient.cs +++ b/src/Square/Default/Orders/OrdersClient.cs @@ -2,7 +2,7 @@ using Square; using Square.Core; -namespace Square.Orders; +namespace Square.Default; public partial class OrdersClient : IOrdersClient { @@ -11,14 +11,15 @@ public partial class OrdersClient : IOrdersClient internal OrdersClient(RawClient client) { _client = client; - CustomAttributeDefinitions = - new Square.Orders.CustomAttributeDefinitions.CustomAttributeDefinitionsClient(_client); - CustomAttributes = new Square.Orders.CustomAttributes.CustomAttributesClient(_client); + CustomAttributeDefinitions = new Square.Default.Orders.CustomAttributeDefinitionsClient( + _client + ); + CustomAttributes = new Square.Default.Orders.CustomAttributesClient(_client); } - public Square.Orders.CustomAttributeDefinitions.CustomAttributeDefinitionsClient CustomAttributeDefinitions { get; } + public Square.Default.Orders.CustomAttributeDefinitionsClient CustomAttributeDefinitions { get; } - public Square.Orders.CustomAttributes.CustomAttributesClient CustomAttributes { get; } + public Square.Default.Orders.CustomAttributesClient CustomAttributes { get; } /// /// Creates a new [order](entity:Order) that can include information about products for @@ -30,7 +31,7 @@ internal OrdersClient(RawClient client) /// You can modify open orders using the [UpdateOrder](api-endpoint:Orders-UpdateOrder) endpoint. /// /// - /// await client.Orders.CreateAsync( + /// await client.Default.Orders.CreateAsync( /// new CreateOrderRequest /// { /// Order = new Order @@ -146,7 +147,7 @@ public async Task CreateAsync( /// If a given order ID does not exist, the ID is ignored instead of generating an error. /// /// - /// await client.Orders.BatchGetAsync( + /// await client.Default.Orders.BatchGetAsync( /// new BatchGetOrdersRequest /// { /// LocationId = "057P5VYJ4A5X1", @@ -205,7 +206,7 @@ public async Task BatchGetAsync( /// Enables applications to preview order pricing without creating an order. /// /// - /// await client.Orders.CalculateAsync( + /// await client.Default.Orders.CalculateAsync( /// new CalculateOrderRequest /// { /// Order = new Order @@ -287,7 +288,7 @@ public async Task CalculateAsync( /// only the core fields (such as line items, taxes, and discounts) copied from the original order. /// /// - /// await client.Orders.CloneAsync( + /// await client.Default.Orders.CloneAsync( /// new CloneOrderRequest /// { /// OrderId = "ZAISEM52YcpmcWAzERDOyiWS123", @@ -359,7 +360,7 @@ public async Task CloneAsync( /// not the time it was subsequently transmitted to Square. /// /// - /// await client.Orders.SearchAsync( + /// await client.Default.Orders.SearchAsync( /// new SearchOrdersRequest /// { /// LocationIds = new List<string>() { "057P5VYJ4A5X1", "18YC4JDH91E1H" }, @@ -438,7 +439,7 @@ public async Task SearchAsync( /// Retrieves an [Order](entity:Order) by ID. /// /// - /// await client.Orders.GetAsync(new GetOrdersRequest { OrderId = "order_id" }); + /// await client.Default.Orders.GetAsync(new GetOrdersRequest { OrderId = "order_id" }); /// public async Task GetAsync( GetOrdersRequest request, @@ -502,7 +503,7 @@ public async Task GetAsync( /// [Pay for Orders](https://developer.squareup.com/docs/orders-api/pay-for-orders). /// /// - /// await client.Orders.UpdateAsync( + /// await client.Default.Orders.UpdateAsync( /// new UpdateOrderRequest /// { /// OrderId = "order_id", @@ -589,7 +590,7 @@ public async Task UpdateAsync( /// Using a delayed capture payment with `PayOrder` completes the approved payment. /// /// - /// await client.Orders.PayAsync( + /// await client.Default.Orders.PayAsync( /// new PayOrderRequest /// { /// OrderId = "order_id", diff --git a/src/Square/Orders/Requests/BatchGetOrdersRequest.cs b/src/Square/Default/Orders/Requests/BatchGetOrdersRequest.cs similarity index 96% rename from src/Square/Orders/Requests/BatchGetOrdersRequest.cs rename to src/Square/Default/Orders/Requests/BatchGetOrdersRequest.cs index 513f0421..3f17d996 100644 --- a/src/Square/Orders/Requests/BatchGetOrdersRequest.cs +++ b/src/Square/Default/Orders/Requests/BatchGetOrdersRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Orders; +namespace Square.Default; [Serializable] public record BatchGetOrdersRequest diff --git a/src/Square/Orders/Requests/CalculateOrderRequest.cs b/src/Square/Default/Orders/Requests/CalculateOrderRequest.cs similarity index 96% rename from src/Square/Orders/Requests/CalculateOrderRequest.cs rename to src/Square/Default/Orders/Requests/CalculateOrderRequest.cs index b4e41e7a..5b388a3f 100644 --- a/src/Square/Orders/Requests/CalculateOrderRequest.cs +++ b/src/Square/Default/Orders/Requests/CalculateOrderRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Orders; +namespace Square.Default; [Serializable] public record CalculateOrderRequest diff --git a/src/Square/Orders/Requests/CloneOrderRequest.cs b/src/Square/Default/Orders/Requests/CloneOrderRequest.cs similarity index 98% rename from src/Square/Orders/Requests/CloneOrderRequest.cs rename to src/Square/Default/Orders/Requests/CloneOrderRequest.cs index e4c9a407..d71317a2 100644 --- a/src/Square/Orders/Requests/CloneOrderRequest.cs +++ b/src/Square/Default/Orders/Requests/CloneOrderRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Orders; +namespace Square.Default; [Serializable] public record CloneOrderRequest diff --git a/src/Square/Orders/Requests/GetOrdersRequest.cs b/src/Square/Default/Orders/Requests/GetOrdersRequest.cs similarity index 93% rename from src/Square/Orders/Requests/GetOrdersRequest.cs rename to src/Square/Default/Orders/Requests/GetOrdersRequest.cs index 16f7a0bb..d72175cf 100644 --- a/src/Square/Orders/Requests/GetOrdersRequest.cs +++ b/src/Square/Default/Orders/Requests/GetOrdersRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Orders; +namespace Square.Default; [Serializable] public record GetOrdersRequest diff --git a/src/Square/Orders/Requests/PayOrderRequest.cs b/src/Square/Default/Orders/Requests/PayOrderRequest.cs similarity index 98% rename from src/Square/Orders/Requests/PayOrderRequest.cs rename to src/Square/Default/Orders/Requests/PayOrderRequest.cs index eee09ff1..6dc71272 100644 --- a/src/Square/Orders/Requests/PayOrderRequest.cs +++ b/src/Square/Default/Orders/Requests/PayOrderRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Orders; +namespace Square.Default; [Serializable] public record PayOrderRequest diff --git a/src/Square/Orders/Requests/SearchOrdersRequest.cs b/src/Square/Default/Orders/Requests/SearchOrdersRequest.cs similarity index 97% rename from src/Square/Orders/Requests/SearchOrdersRequest.cs rename to src/Square/Default/Orders/Requests/SearchOrdersRequest.cs index f27a5d1e..bf7fa02b 100644 --- a/src/Square/Orders/Requests/SearchOrdersRequest.cs +++ b/src/Square/Default/Orders/Requests/SearchOrdersRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Orders; +namespace Square.Default; [Serializable] public record SearchOrdersRequest diff --git a/src/Square/Orders/Requests/UpdateOrderRequest.cs b/src/Square/Default/Orders/Requests/UpdateOrderRequest.cs similarity index 97% rename from src/Square/Orders/Requests/UpdateOrderRequest.cs rename to src/Square/Default/Orders/Requests/UpdateOrderRequest.cs index cd966dd9..b3609cb5 100644 --- a/src/Square/Orders/Requests/UpdateOrderRequest.cs +++ b/src/Square/Default/Orders/Requests/UpdateOrderRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Orders; +namespace Square.Default; [Serializable] public record UpdateOrderRequest diff --git a/src/Square/Payments/IPaymentsClient.cs b/src/Square/Default/Payments/IPaymentsClient.cs similarity index 99% rename from src/Square/Payments/IPaymentsClient.cs rename to src/Square/Default/Payments/IPaymentsClient.cs index 28950542..7e45ae1a 100644 --- a/src/Square/Payments/IPaymentsClient.cs +++ b/src/Square/Default/Payments/IPaymentsClient.cs @@ -1,7 +1,7 @@ using Square; using Square.Core; -namespace Square.Payments; +namespace Square.Default; public partial interface IPaymentsClient { diff --git a/src/Square/Payments/PaymentsClient.cs b/src/Square/Default/Payments/PaymentsClient.cs similarity index 96% rename from src/Square/Payments/PaymentsClient.cs rename to src/Square/Default/Payments/PaymentsClient.cs index d6314e59..4cd19053 100644 --- a/src/Square/Payments/PaymentsClient.cs +++ b/src/Square/Default/Payments/PaymentsClient.cs @@ -2,7 +2,7 @@ using Square; using Square.Core; -namespace Square.Payments; +namespace Square.Default; public partial class PaymentsClient : IPaymentsClient { @@ -133,7 +133,7 @@ private async Task ListInternalAsync( /// The maximum results per page is 100. /// /// - /// await client.Payments.ListAsync( + /// await client.Default.Payments.ListAsync( /// new ListPaymentsRequest /// { /// BeginTime = "begin_time", @@ -198,7 +198,7 @@ public async Task> ListAsync( /// `Payment` object and returns it in the response. /// /// - /// await client.Payments.CreateAsync( + /// await client.Default.Payments.CreateAsync( /// new CreatePaymentRequest /// { /// SourceId = "ccof:GaJGNaZa8x4OgDJn4GB", @@ -270,7 +270,7 @@ public async Task CreateAsync( /// returns successfully. /// /// - /// await client.Payments.CancelByIdempotencyKeyAsync( + /// await client.Default.Payments.CancelByIdempotencyKeyAsync( /// new CancelPaymentByIdempotencyKeyRequest /// { /// IdempotencyKey = "a7e36d40-d24b-11e8-b568-0800200c9a66", @@ -324,7 +324,7 @@ public async Task CancelByIdempotencyKeyA /// Retrieves details for a specific payment. /// /// - /// await client.Payments.GetAsync(new GetPaymentsRequest { PaymentId = "payment_id" }); + /// await client.Default.Payments.GetAsync(new GetPaymentsRequest { PaymentId = "payment_id" }); /// public async Task GetAsync( GetPaymentsRequest request, @@ -375,7 +375,7 @@ public async Task GetAsync( /// You can update the `amount_money` and `tip_money` using this endpoint. /// /// - /// await client.Payments.UpdateAsync( + /// await client.Default.Payments.UpdateAsync( /// new UpdatePaymentRequest /// { /// PaymentId = "payment_id", @@ -440,7 +440,7 @@ public async Task UpdateAsync( /// the APPROVED `status`. /// /// - /// await client.Payments.CancelAsync(new CancelPaymentsRequest { PaymentId = "payment_id" }); + /// await client.Default.Payments.CancelAsync(new CancelPaymentsRequest { PaymentId = "payment_id" }); /// public async Task CancelAsync( CancelPaymentsRequest request, @@ -493,7 +493,9 @@ public async Task CancelAsync( /// You can use this endpoint to complete a payment with the APPROVED `status`. /// /// - /// await client.Payments.CompleteAsync(new CompletePaymentRequest { PaymentId = "payment_id" }); + /// await client.Default.Payments.CompleteAsync( + /// new CompletePaymentRequest { PaymentId = "payment_id" } + /// ); /// public async Task CompleteAsync( CompletePaymentRequest request, diff --git a/src/Square/Payments/Requests/CancelPaymentByIdempotencyKeyRequest.cs b/src/Square/Default/Payments/Requests/CancelPaymentByIdempotencyKeyRequest.cs similarity index 94% rename from src/Square/Payments/Requests/CancelPaymentByIdempotencyKeyRequest.cs rename to src/Square/Default/Payments/Requests/CancelPaymentByIdempotencyKeyRequest.cs index 7fb39441..82f23949 100644 --- a/src/Square/Payments/Requests/CancelPaymentByIdempotencyKeyRequest.cs +++ b/src/Square/Default/Payments/Requests/CancelPaymentByIdempotencyKeyRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Payments; +namespace Square.Default; [Serializable] public record CancelPaymentByIdempotencyKeyRequest diff --git a/src/Square/Payments/Requests/CancelPaymentsRequest.cs b/src/Square/Default/Payments/Requests/CancelPaymentsRequest.cs similarity index 93% rename from src/Square/Payments/Requests/CancelPaymentsRequest.cs rename to src/Square/Default/Payments/Requests/CancelPaymentsRequest.cs index 24557d96..0b633b1c 100644 --- a/src/Square/Payments/Requests/CancelPaymentsRequest.cs +++ b/src/Square/Default/Payments/Requests/CancelPaymentsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Payments; +namespace Square.Default; [Serializable] public record CancelPaymentsRequest diff --git a/src/Square/Payments/Requests/CompletePaymentRequest.cs b/src/Square/Default/Payments/Requests/CompletePaymentRequest.cs similarity index 96% rename from src/Square/Payments/Requests/CompletePaymentRequest.cs rename to src/Square/Default/Payments/Requests/CompletePaymentRequest.cs index 8b8cef30..5c5ed7c6 100644 --- a/src/Square/Payments/Requests/CompletePaymentRequest.cs +++ b/src/Square/Default/Payments/Requests/CompletePaymentRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Payments; +namespace Square.Default; [Serializable] public record CompletePaymentRequest diff --git a/src/Square/Payments/Requests/CreatePaymentRequest.cs b/src/Square/Default/Payments/Requests/CreatePaymentRequest.cs similarity index 99% rename from src/Square/Payments/Requests/CreatePaymentRequest.cs rename to src/Square/Default/Payments/Requests/CreatePaymentRequest.cs index d9358e74..bb163c8c 100644 --- a/src/Square/Payments/Requests/CreatePaymentRequest.cs +++ b/src/Square/Default/Payments/Requests/CreatePaymentRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Payments; +namespace Square.Default; [Serializable] public record CreatePaymentRequest diff --git a/src/Square/Payments/Requests/GetPaymentsRequest.cs b/src/Square/Default/Payments/Requests/GetPaymentsRequest.cs similarity index 93% rename from src/Square/Payments/Requests/GetPaymentsRequest.cs rename to src/Square/Default/Payments/Requests/GetPaymentsRequest.cs index 8eafa1f1..e460f3b6 100644 --- a/src/Square/Payments/Requests/GetPaymentsRequest.cs +++ b/src/Square/Default/Payments/Requests/GetPaymentsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Payments; +namespace Square.Default; [Serializable] public record GetPaymentsRequest diff --git a/src/Square/Payments/Requests/ListPaymentsRequest.cs b/src/Square/Default/Payments/Requests/ListPaymentsRequest.cs similarity index 99% rename from src/Square/Payments/Requests/ListPaymentsRequest.cs rename to src/Square/Default/Payments/Requests/ListPaymentsRequest.cs index b712bc4c..514f0f7a 100644 --- a/src/Square/Payments/Requests/ListPaymentsRequest.cs +++ b/src/Square/Default/Payments/Requests/ListPaymentsRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Payments; +namespace Square.Default; [Serializable] public record ListPaymentsRequest diff --git a/src/Square/Payments/Requests/UpdatePaymentRequest.cs b/src/Square/Default/Payments/Requests/UpdatePaymentRequest.cs similarity index 95% rename from src/Square/Payments/Requests/UpdatePaymentRequest.cs rename to src/Square/Default/Payments/Requests/UpdatePaymentRequest.cs index d6ff4f40..5b8de2ec 100644 --- a/src/Square/Payments/Requests/UpdatePaymentRequest.cs +++ b/src/Square/Default/Payments/Requests/UpdatePaymentRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Payments; +namespace Square.Default; [Serializable] public record UpdatePaymentRequest diff --git a/src/Square/Payouts/IPayoutsClient.cs b/src/Square/Default/Payouts/IPayoutsClient.cs similarity index 97% rename from src/Square/Payouts/IPayoutsClient.cs rename to src/Square/Default/Payouts/IPayoutsClient.cs index 27d4e984..d7200077 100644 --- a/src/Square/Payouts/IPayoutsClient.cs +++ b/src/Square/Default/Payouts/IPayoutsClient.cs @@ -1,7 +1,7 @@ using Square; using Square.Core; -namespace Square.Payouts; +namespace Square.Default; public partial interface IPayoutsClient { diff --git a/src/Square/Payouts/PayoutsClient.cs b/src/Square/Default/Payouts/PayoutsClient.cs similarity index 97% rename from src/Square/Payouts/PayoutsClient.cs rename to src/Square/Default/Payouts/PayoutsClient.cs index 6c29c7dd..c97a9d3d 100644 --- a/src/Square/Payouts/PayoutsClient.cs +++ b/src/Square/Default/Payouts/PayoutsClient.cs @@ -2,7 +2,7 @@ using Square; using Square.Core; -namespace Square.Payouts; +namespace Square.Default; public partial class PayoutsClient : IPayoutsClient { @@ -157,7 +157,7 @@ private async Task ListEntriesInternalAsync( /// To call this endpoint, set `PAYOUTS_READ` for the OAuth scope. /// /// - /// await client.Payouts.ListAsync( + /// await client.Default.Payouts.ListAsync( /// new ListPayoutsRequest /// { /// LocationId = "location_id", @@ -208,7 +208,7 @@ public async Task> ListAsync( /// To call this endpoint, set `PAYOUTS_READ` for the OAuth scope. /// /// - /// await client.Payouts.GetAsync(new GetPayoutsRequest { PayoutId = "payout_id" }); + /// await client.Default.Payouts.GetAsync(new GetPayoutsRequest { PayoutId = "payout_id" }); /// public async Task GetAsync( GetPayoutsRequest request, @@ -259,7 +259,7 @@ public async Task GetAsync( /// To call this endpoint, set `PAYOUTS_READ` for the OAuth scope. /// /// - /// await client.Payouts.ListEntriesAsync( + /// await client.Default.Payouts.ListEntriesAsync( /// new ListEntriesPayoutsRequest /// { /// PayoutId = "payout_id", diff --git a/src/Square/Payouts/Requests/GetPayoutsRequest.cs b/src/Square/Default/Payouts/Requests/GetPayoutsRequest.cs similarity index 93% rename from src/Square/Payouts/Requests/GetPayoutsRequest.cs rename to src/Square/Default/Payouts/Requests/GetPayoutsRequest.cs index f74eb52a..40b0cffb 100644 --- a/src/Square/Payouts/Requests/GetPayoutsRequest.cs +++ b/src/Square/Default/Payouts/Requests/GetPayoutsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Payouts; +namespace Square.Default; [Serializable] public record GetPayoutsRequest diff --git a/src/Square/Payouts/Requests/ListEntriesPayoutsRequest.cs b/src/Square/Default/Payouts/Requests/ListEntriesPayoutsRequest.cs similarity index 97% rename from src/Square/Payouts/Requests/ListEntriesPayoutsRequest.cs rename to src/Square/Default/Payouts/Requests/ListEntriesPayoutsRequest.cs index f5dfa71c..973ce418 100644 --- a/src/Square/Payouts/Requests/ListEntriesPayoutsRequest.cs +++ b/src/Square/Default/Payouts/Requests/ListEntriesPayoutsRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Payouts; +namespace Square.Default; [Serializable] public record ListEntriesPayoutsRequest diff --git a/src/Square/Payouts/Requests/ListPayoutsRequest.cs b/src/Square/Default/Payouts/Requests/ListPayoutsRequest.cs similarity index 98% rename from src/Square/Payouts/Requests/ListPayoutsRequest.cs rename to src/Square/Default/Payouts/Requests/ListPayoutsRequest.cs index affe85e6..f828d090 100644 --- a/src/Square/Payouts/Requests/ListPayoutsRequest.cs +++ b/src/Square/Default/Payouts/Requests/ListPayoutsRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Payouts; +namespace Square.Default; [Serializable] public record ListPayoutsRequest diff --git a/src/Square/Refunds/IRefundsClient.cs b/src/Square/Default/Refunds/IRefundsClient.cs similarity index 98% rename from src/Square/Refunds/IRefundsClient.cs rename to src/Square/Default/Refunds/IRefundsClient.cs index cf06a944..0018c34d 100644 --- a/src/Square/Refunds/IRefundsClient.cs +++ b/src/Square/Default/Refunds/IRefundsClient.cs @@ -1,7 +1,7 @@ using Square; using Square.Core; -namespace Square.Refunds; +namespace Square.Default; public partial interface IRefundsClient { diff --git a/src/Square/Refunds/RefundsClient.cs b/src/Square/Default/Refunds/RefundsClient.cs similarity index 97% rename from src/Square/Refunds/RefundsClient.cs rename to src/Square/Default/Refunds/RefundsClient.cs index bfa4ff5e..b9603057 100644 --- a/src/Square/Refunds/RefundsClient.cs +++ b/src/Square/Default/Refunds/RefundsClient.cs @@ -2,7 +2,7 @@ using Square; using Square.Core; -namespace Square.Refunds; +namespace Square.Default; public partial class RefundsClient : IRefundsClient { @@ -117,7 +117,7 @@ private async Task ListInternalAsync( /// The maximum results per page is 100. /// /// - /// await client.Refunds.ListAsync( + /// await client.Default.Refunds.ListAsync( /// new ListRefundsRequest /// { /// BeginTime = "begin_time", @@ -174,7 +174,7 @@ public async Task> ListAsync( /// [Refund Payment](https://developer.squareup.com/docs/payments-api/refund-payments). /// /// - /// await client.Refunds.RefundPaymentAsync( + /// await client.Default.Refunds.RefundPaymentAsync( /// new RefundPaymentRequest /// { /// IdempotencyKey = "9b7f2dcf-49da-4411-b23e-a2d6af21333a", @@ -232,7 +232,9 @@ public async Task RefundPaymentAsync( /// Retrieves a specific refund using the `refund_id`. /// /// - /// await client.Refunds.GetAsync(new Square.Refunds.GetRefundsRequest { RefundId = "refund_id" }); + /// await client.Default.Refunds.GetAsync( + /// new Square.Default.GetRefundsRequest { RefundId = "refund_id" } + /// ); /// public async Task GetAsync( GetRefundsRequest request, diff --git a/src/Square/Refunds/Requests/GetRefundsRequest.cs b/src/Square/Default/Refunds/Requests/GetRefundsRequest.cs similarity index 93% rename from src/Square/Refunds/Requests/GetRefundsRequest.cs rename to src/Square/Default/Refunds/Requests/GetRefundsRequest.cs index 2e494098..2e2f726b 100644 --- a/src/Square/Refunds/Requests/GetRefundsRequest.cs +++ b/src/Square/Default/Refunds/Requests/GetRefundsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Refunds; +namespace Square.Default; [Serializable] public record GetRefundsRequest diff --git a/src/Square/Refunds/Requests/ListRefundsRequest.cs b/src/Square/Default/Refunds/Requests/ListRefundsRequest.cs similarity index 98% rename from src/Square/Refunds/Requests/ListRefundsRequest.cs rename to src/Square/Default/Refunds/Requests/ListRefundsRequest.cs index 1a77ca7b..368c26c6 100644 --- a/src/Square/Refunds/Requests/ListRefundsRequest.cs +++ b/src/Square/Default/Refunds/Requests/ListRefundsRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Refunds; +namespace Square.Default; [Serializable] public record ListRefundsRequest diff --git a/src/Square/Refunds/Requests/RefundPaymentRequest.cs b/src/Square/Default/Refunds/Requests/RefundPaymentRequest.cs similarity index 99% rename from src/Square/Refunds/Requests/RefundPaymentRequest.cs rename to src/Square/Default/Refunds/Requests/RefundPaymentRequest.cs index 70d745a3..41ad706c 100644 --- a/src/Square/Refunds/Requests/RefundPaymentRequest.cs +++ b/src/Square/Default/Refunds/Requests/RefundPaymentRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Refunds; +namespace Square.Default; [Serializable] public record RefundPaymentRequest diff --git a/src/Square/Sites/ISitesClient.cs b/src/Square/Default/Sites/ISitesClient.cs similarity index 96% rename from src/Square/Sites/ISitesClient.cs rename to src/Square/Default/Sites/ISitesClient.cs index f62e72c8..22ee4bc2 100644 --- a/src/Square/Sites/ISitesClient.cs +++ b/src/Square/Default/Sites/ISitesClient.cs @@ -1,6 +1,6 @@ using Square; -namespace Square.Sites; +namespace Square.Default; public partial interface ISitesClient { diff --git a/src/Square/Sites/SitesClient.cs b/src/Square/Default/Sites/SitesClient.cs similarity index 96% rename from src/Square/Sites/SitesClient.cs rename to src/Square/Default/Sites/SitesClient.cs index 69e70391..b437603f 100644 --- a/src/Square/Sites/SitesClient.cs +++ b/src/Square/Default/Sites/SitesClient.cs @@ -2,7 +2,7 @@ using Square; using Square.Core; -namespace Square.Sites; +namespace Square.Default; public partial class SitesClient : ISitesClient { @@ -20,7 +20,7 @@ internal SitesClient(RawClient client) /// __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). /// /// - /// await client.Sites.ListAsync(); + /// await client.Default.Sites.ListAsync(); /// public async Task ListAsync( RequestOptions? options = null, diff --git a/src/Square/Snippets/ISnippetsClient.cs b/src/Square/Default/Snippets/ISnippetsClient.cs similarity index 98% rename from src/Square/Snippets/ISnippetsClient.cs rename to src/Square/Default/Snippets/ISnippetsClient.cs index 2ab75180..17b0b930 100644 --- a/src/Square/Snippets/ISnippetsClient.cs +++ b/src/Square/Default/Snippets/ISnippetsClient.cs @@ -1,6 +1,6 @@ using Square; -namespace Square.Snippets; +namespace Square.Default; public partial interface ISnippetsClient { diff --git a/src/Square/Snippets/Requests/DeleteSnippetsRequest.cs b/src/Square/Default/Snippets/Requests/DeleteSnippetsRequest.cs similarity index 93% rename from src/Square/Snippets/Requests/DeleteSnippetsRequest.cs rename to src/Square/Default/Snippets/Requests/DeleteSnippetsRequest.cs index 668bd91b..d19f0666 100644 --- a/src/Square/Snippets/Requests/DeleteSnippetsRequest.cs +++ b/src/Square/Default/Snippets/Requests/DeleteSnippetsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Snippets; +namespace Square.Default; [Serializable] public record DeleteSnippetsRequest diff --git a/src/Square/Snippets/Requests/GetSnippetsRequest.cs b/src/Square/Default/Snippets/Requests/GetSnippetsRequest.cs similarity index 93% rename from src/Square/Snippets/Requests/GetSnippetsRequest.cs rename to src/Square/Default/Snippets/Requests/GetSnippetsRequest.cs index 91767f58..feef159e 100644 --- a/src/Square/Snippets/Requests/GetSnippetsRequest.cs +++ b/src/Square/Default/Snippets/Requests/GetSnippetsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Snippets; +namespace Square.Default; [Serializable] public record GetSnippetsRequest diff --git a/src/Square/Snippets/Requests/UpsertSnippetRequest.cs b/src/Square/Default/Snippets/Requests/UpsertSnippetRequest.cs similarity index 93% rename from src/Square/Snippets/Requests/UpsertSnippetRequest.cs rename to src/Square/Default/Snippets/Requests/UpsertSnippetRequest.cs index 8cdc4d96..0fbf088a 100644 --- a/src/Square/Snippets/Requests/UpsertSnippetRequest.cs +++ b/src/Square/Default/Snippets/Requests/UpsertSnippetRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Snippets; +namespace Square.Default; [Serializable] public record UpsertSnippetRequest diff --git a/src/Square/Snippets/SnippetsClient.cs b/src/Square/Default/Snippets/SnippetsClient.cs similarity index 96% rename from src/Square/Snippets/SnippetsClient.cs rename to src/Square/Default/Snippets/SnippetsClient.cs index 3ad80c6d..3c74a355 100644 --- a/src/Square/Snippets/SnippetsClient.cs +++ b/src/Square/Default/Snippets/SnippetsClient.cs @@ -2,7 +2,7 @@ using Square; using Square.Core; -namespace Square.Snippets; +namespace Square.Default; public partial class SnippetsClient : ISnippetsClient { @@ -22,7 +22,7 @@ internal SnippetsClient(RawClient client) /// __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). /// /// - /// await client.Snippets.GetAsync(new GetSnippetsRequest { SiteId = "site_id" }); + /// await client.Default.Snippets.GetAsync(new GetSnippetsRequest { SiteId = "site_id" }); /// public async Task GetAsync( GetSnippetsRequest request, @@ -78,7 +78,7 @@ public async Task GetAsync( /// __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). /// /// - /// await client.Snippets.UpsertAsync( + /// await client.Default.Snippets.UpsertAsync( /// new UpsertSnippetRequest /// { /// SiteId = "site_id", @@ -141,7 +141,7 @@ public async Task UpsertAsync( /// __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). /// /// - /// await client.Snippets.DeleteAsync(new DeleteSnippetsRequest { SiteId = "site_id" }); + /// await client.Default.Snippets.DeleteAsync(new DeleteSnippetsRequest { SiteId = "site_id" }); /// public async Task DeleteAsync( DeleteSnippetsRequest request, diff --git a/src/Square/Subscriptions/ISubscriptionsClient.cs b/src/Square/Default/Subscriptions/ISubscriptionsClient.cs similarity index 99% rename from src/Square/Subscriptions/ISubscriptionsClient.cs rename to src/Square/Default/Subscriptions/ISubscriptionsClient.cs index 4d8fae98..5fa6d631 100644 --- a/src/Square/Subscriptions/ISubscriptionsClient.cs +++ b/src/Square/Default/Subscriptions/ISubscriptionsClient.cs @@ -1,7 +1,7 @@ using Square; using Square.Core; -namespace Square.Subscriptions; +namespace Square.Default; public partial interface ISubscriptionsClient { diff --git a/src/Square/Subscriptions/Requests/BulkSwapPlanRequest.cs b/src/Square/Default/Subscriptions/Requests/BulkSwapPlanRequest.cs similarity index 96% rename from src/Square/Subscriptions/Requests/BulkSwapPlanRequest.cs rename to src/Square/Default/Subscriptions/Requests/BulkSwapPlanRequest.cs index 11674519..358f5548 100644 --- a/src/Square/Subscriptions/Requests/BulkSwapPlanRequest.cs +++ b/src/Square/Default/Subscriptions/Requests/BulkSwapPlanRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Subscriptions; +namespace Square.Default; [Serializable] public record BulkSwapPlanRequest diff --git a/src/Square/Subscriptions/Requests/CancelSubscriptionsRequest.cs b/src/Square/Default/Subscriptions/Requests/CancelSubscriptionsRequest.cs similarity index 92% rename from src/Square/Subscriptions/Requests/CancelSubscriptionsRequest.cs rename to src/Square/Default/Subscriptions/Requests/CancelSubscriptionsRequest.cs index a38e37f8..466255e8 100644 --- a/src/Square/Subscriptions/Requests/CancelSubscriptionsRequest.cs +++ b/src/Square/Default/Subscriptions/Requests/CancelSubscriptionsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Subscriptions; +namespace Square.Default; [Serializable] public record CancelSubscriptionsRequest diff --git a/src/Square/Subscriptions/Requests/ChangeBillingAnchorDateRequest.cs b/src/Square/Default/Subscriptions/Requests/ChangeBillingAnchorDateRequest.cs similarity index 96% rename from src/Square/Subscriptions/Requests/ChangeBillingAnchorDateRequest.cs rename to src/Square/Default/Subscriptions/Requests/ChangeBillingAnchorDateRequest.cs index 7a7ad7a0..f8805c76 100644 --- a/src/Square/Subscriptions/Requests/ChangeBillingAnchorDateRequest.cs +++ b/src/Square/Default/Subscriptions/Requests/ChangeBillingAnchorDateRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Subscriptions; +namespace Square.Default; [Serializable] public record ChangeBillingAnchorDateRequest diff --git a/src/Square/Subscriptions/Requests/CreateSubscriptionRequest.cs b/src/Square/Default/Subscriptions/Requests/CreateSubscriptionRequest.cs similarity index 99% rename from src/Square/Subscriptions/Requests/CreateSubscriptionRequest.cs rename to src/Square/Default/Subscriptions/Requests/CreateSubscriptionRequest.cs index bb6b867e..37e1edd2 100644 --- a/src/Square/Subscriptions/Requests/CreateSubscriptionRequest.cs +++ b/src/Square/Default/Subscriptions/Requests/CreateSubscriptionRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Subscriptions; +namespace Square.Default; [Serializable] public record CreateSubscriptionRequest diff --git a/src/Square/Subscriptions/Requests/DeleteActionSubscriptionsRequest.cs b/src/Square/Default/Subscriptions/Requests/DeleteActionSubscriptionsRequest.cs similarity index 94% rename from src/Square/Subscriptions/Requests/DeleteActionSubscriptionsRequest.cs rename to src/Square/Default/Subscriptions/Requests/DeleteActionSubscriptionsRequest.cs index 346ce7aa..3582bd78 100644 --- a/src/Square/Subscriptions/Requests/DeleteActionSubscriptionsRequest.cs +++ b/src/Square/Default/Subscriptions/Requests/DeleteActionSubscriptionsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Subscriptions; +namespace Square.Default; [Serializable] public record DeleteActionSubscriptionsRequest diff --git a/src/Square/Subscriptions/Requests/GetSubscriptionsRequest.cs b/src/Square/Default/Subscriptions/Requests/GetSubscriptionsRequest.cs similarity index 95% rename from src/Square/Subscriptions/Requests/GetSubscriptionsRequest.cs rename to src/Square/Default/Subscriptions/Requests/GetSubscriptionsRequest.cs index 6a388652..4f0e1215 100644 --- a/src/Square/Subscriptions/Requests/GetSubscriptionsRequest.cs +++ b/src/Square/Default/Subscriptions/Requests/GetSubscriptionsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Subscriptions; +namespace Square.Default; [Serializable] public record GetSubscriptionsRequest diff --git a/src/Square/Subscriptions/Requests/ListEventsSubscriptionsRequest.cs b/src/Square/Default/Subscriptions/Requests/ListEventsSubscriptionsRequest.cs similarity index 97% rename from src/Square/Subscriptions/Requests/ListEventsSubscriptionsRequest.cs rename to src/Square/Default/Subscriptions/Requests/ListEventsSubscriptionsRequest.cs index ec4bd8e0..6d831615 100644 --- a/src/Square/Subscriptions/Requests/ListEventsSubscriptionsRequest.cs +++ b/src/Square/Default/Subscriptions/Requests/ListEventsSubscriptionsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Subscriptions; +namespace Square.Default; [Serializable] public record ListEventsSubscriptionsRequest diff --git a/src/Square/Subscriptions/Requests/PauseSubscriptionRequest.cs b/src/Square/Default/Subscriptions/Requests/PauseSubscriptionRequest.cs similarity index 97% rename from src/Square/Subscriptions/Requests/PauseSubscriptionRequest.cs rename to src/Square/Default/Subscriptions/Requests/PauseSubscriptionRequest.cs index 3b97a004..80d1a256 100644 --- a/src/Square/Subscriptions/Requests/PauseSubscriptionRequest.cs +++ b/src/Square/Default/Subscriptions/Requests/PauseSubscriptionRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Subscriptions; +namespace Square.Default; [Serializable] public record PauseSubscriptionRequest diff --git a/src/Square/Subscriptions/Requests/ResumeSubscriptionRequest.cs b/src/Square/Default/Subscriptions/Requests/ResumeSubscriptionRequest.cs similarity index 95% rename from src/Square/Subscriptions/Requests/ResumeSubscriptionRequest.cs rename to src/Square/Default/Subscriptions/Requests/ResumeSubscriptionRequest.cs index 67f9d49f..cb077c3e 100644 --- a/src/Square/Subscriptions/Requests/ResumeSubscriptionRequest.cs +++ b/src/Square/Default/Subscriptions/Requests/ResumeSubscriptionRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Subscriptions; +namespace Square.Default; [Serializable] public record ResumeSubscriptionRequest diff --git a/src/Square/Subscriptions/Requests/SearchSubscriptionsRequest.cs b/src/Square/Default/Subscriptions/Requests/SearchSubscriptionsRequest.cs similarity index 97% rename from src/Square/Subscriptions/Requests/SearchSubscriptionsRequest.cs rename to src/Square/Default/Subscriptions/Requests/SearchSubscriptionsRequest.cs index d826bd7f..7cc3b149 100644 --- a/src/Square/Subscriptions/Requests/SearchSubscriptionsRequest.cs +++ b/src/Square/Default/Subscriptions/Requests/SearchSubscriptionsRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Subscriptions; +namespace Square.Default; [Serializable] public record SearchSubscriptionsRequest diff --git a/src/Square/Subscriptions/Requests/SwapPlanRequest.cs b/src/Square/Default/Subscriptions/Requests/SwapPlanRequest.cs similarity index 94% rename from src/Square/Subscriptions/Requests/SwapPlanRequest.cs rename to src/Square/Default/Subscriptions/Requests/SwapPlanRequest.cs index cd8cadf2..43efa833 100644 --- a/src/Square/Subscriptions/Requests/SwapPlanRequest.cs +++ b/src/Square/Default/Subscriptions/Requests/SwapPlanRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Subscriptions; +namespace Square.Default; [Serializable] public record SwapPlanRequest diff --git a/src/Square/Subscriptions/Requests/UpdateSubscriptionRequest.cs b/src/Square/Default/Subscriptions/Requests/UpdateSubscriptionRequest.cs similarity index 94% rename from src/Square/Subscriptions/Requests/UpdateSubscriptionRequest.cs rename to src/Square/Default/Subscriptions/Requests/UpdateSubscriptionRequest.cs index 4ddfad38..b566ce31 100644 --- a/src/Square/Subscriptions/Requests/UpdateSubscriptionRequest.cs +++ b/src/Square/Default/Subscriptions/Requests/UpdateSubscriptionRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Subscriptions; +namespace Square.Default; [Serializable] public record UpdateSubscriptionRequest diff --git a/src/Square/Subscriptions/SubscriptionsClient.cs b/src/Square/Default/Subscriptions/SubscriptionsClient.cs similarity index 97% rename from src/Square/Subscriptions/SubscriptionsClient.cs rename to src/Square/Default/Subscriptions/SubscriptionsClient.cs index 9dbb22cb..abbdac8d 100644 --- a/src/Square/Subscriptions/SubscriptionsClient.cs +++ b/src/Square/Default/Subscriptions/SubscriptionsClient.cs @@ -2,7 +2,7 @@ using Square; using Square.Core; -namespace Square.Subscriptions; +namespace Square.Default; public partial class SubscriptionsClient : ISubscriptionsClient { @@ -81,7 +81,7 @@ private async Task ListEventsInternalAsync( /// For more information, see [Create a subscription](https://developer.squareup.com/docs/subscriptions-api/manage-subscriptions#create-a-subscription). /// /// - /// await client.Subscriptions.CreateAsync( + /// await client.Default.Subscriptions.CreateAsync( /// new CreateSubscriptionRequest /// { /// IdempotencyKey = "8193148c-9586-11e6-99f9-28cfe92138cf", @@ -147,7 +147,7 @@ public async Task CreateAsync( /// variation. For more information, see [Swap Subscription Plan Variations](https://developer.squareup.com/docs/subscriptions-api/swap-plan-variations). /// /// - /// await client.Subscriptions.BulkSwapPlanAsync( + /// await client.Default.Subscriptions.BulkSwapPlanAsync( /// new BulkSwapPlanRequest /// { /// NewPlanVariationId = "FQ7CDXXWSLUJRPM3GFJSJGZ7", @@ -216,7 +216,7 @@ public async Task BulkSwapPlanAsync( /// customer by subscription creation date. /// /// - /// await client.Subscriptions.SearchAsync( + /// await client.Default.Subscriptions.SearchAsync( /// new SearchSubscriptionsRequest /// { /// Query = new SearchSubscriptionsQuery @@ -278,8 +278,8 @@ public async Task SearchAsync( /// Retrieves a specific subscription. /// /// - /// await client.Subscriptions.GetAsync( - /// new Square.Subscriptions.GetSubscriptionsRequest + /// await client.Default.Subscriptions.GetAsync( + /// new Square.Default.GetSubscriptionsRequest /// { /// SubscriptionId = "subscription_id", /// Include = "include", @@ -341,7 +341,7 @@ public async Task GetAsync( /// To clear a field, set its value to `null`. /// /// - /// await client.Subscriptions.UpdateAsync( + /// await client.Default.Subscriptions.UpdateAsync( /// new UpdateSubscriptionRequest /// { /// SubscriptionId = "subscription_id", @@ -399,7 +399,7 @@ public async Task UpdateAsync( /// Deletes a scheduled action for a subscription. /// /// - /// await client.Subscriptions.DeleteActionAsync( + /// await client.Default.Subscriptions.DeleteActionAsync( /// new DeleteActionSubscriptionsRequest /// { /// SubscriptionId = "subscription_id", @@ -457,7 +457,7 @@ public async Task DeleteActionAsync( /// for a subscription. /// /// - /// await client.Subscriptions.ChangeBillingAnchorDateAsync( + /// await client.Default.Subscriptions.ChangeBillingAnchorDateAsync( /// new ChangeBillingAnchorDateRequest /// { /// SubscriptionId = "subscription_id", @@ -517,7 +517,7 @@ public async Task ChangeBillingAnchorDateAsync( /// the subscription status changes from ACTIVE to CANCELED. /// /// - /// await client.Subscriptions.CancelAsync( + /// await client.Default.Subscriptions.CancelAsync( /// new CancelSubscriptionsRequest { SubscriptionId = "subscription_id" } /// ); /// @@ -569,7 +569,7 @@ public async Task CancelAsync( /// Lists all [events](https://developer.squareup.com/docs/subscriptions-api/actions-events) for a specific subscription. /// /// - /// await client.Subscriptions.ListEventsAsync( + /// await client.Default.Subscriptions.ListEventsAsync( /// new ListEventsSubscriptionsRequest /// { /// SubscriptionId = "subscription_id", @@ -615,7 +615,7 @@ public async Task> ListEventsAsync( /// Schedules a `PAUSE` action to pause an active subscription. /// /// - /// await client.Subscriptions.PauseAsync( + /// await client.Default.Subscriptions.PauseAsync( /// new PauseSubscriptionRequest { SubscriptionId = "subscription_id" } /// ); /// @@ -669,7 +669,7 @@ public async Task PauseAsync( /// Schedules a `RESUME` action to resume a paused or a deactivated subscription. /// /// - /// await client.Subscriptions.ResumeAsync( + /// await client.Default.Subscriptions.ResumeAsync( /// new ResumeSubscriptionRequest { SubscriptionId = "subscription_id" } /// ); /// @@ -724,7 +724,7 @@ public async Task ResumeAsync( /// For more information, see [Swap Subscription Plan Variations](https://developer.squareup.com/docs/subscriptions-api/swap-plan-variations). /// /// - /// await client.Subscriptions.SwapPlanAsync( + /// await client.Default.Subscriptions.SwapPlanAsync( /// new SwapPlanRequest /// { /// SubscriptionId = "subscription_id", diff --git a/src/Square/Team/ITeamClient.cs b/src/Square/Default/Team/ITeamClient.cs similarity index 98% rename from src/Square/Team/ITeamClient.cs rename to src/Square/Default/Team/ITeamClient.cs index 234e12c6..652e65f8 100644 --- a/src/Square/Team/ITeamClient.cs +++ b/src/Square/Default/Team/ITeamClient.cs @@ -1,6 +1,6 @@ using Square; -namespace Square.Team; +namespace Square.Default; public partial interface ITeamClient { diff --git a/src/Square/Team/Requests/CreateJobRequest.cs b/src/Square/Default/Team/Requests/CreateJobRequest.cs similarity index 95% rename from src/Square/Team/Requests/CreateJobRequest.cs rename to src/Square/Default/Team/Requests/CreateJobRequest.cs index a7a198ac..a54728d7 100644 --- a/src/Square/Team/Requests/CreateJobRequest.cs +++ b/src/Square/Default/Team/Requests/CreateJobRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Team; +namespace Square.Default; [Serializable] public record CreateJobRequest diff --git a/src/Square/Team/Requests/ListJobsRequest.cs b/src/Square/Default/Team/Requests/ListJobsRequest.cs similarity index 95% rename from src/Square/Team/Requests/ListJobsRequest.cs rename to src/Square/Default/Team/Requests/ListJobsRequest.cs index c8c367ea..867bded8 100644 --- a/src/Square/Team/Requests/ListJobsRequest.cs +++ b/src/Square/Default/Team/Requests/ListJobsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Team; +namespace Square.Default; [Serializable] public record ListJobsRequest diff --git a/src/Square/Team/Requests/RetrieveJobRequest.cs b/src/Square/Default/Team/Requests/RetrieveJobRequest.cs similarity index 93% rename from src/Square/Team/Requests/RetrieveJobRequest.cs rename to src/Square/Default/Team/Requests/RetrieveJobRequest.cs index 2897b072..453fc8f0 100644 --- a/src/Square/Team/Requests/RetrieveJobRequest.cs +++ b/src/Square/Default/Team/Requests/RetrieveJobRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Team; +namespace Square.Default; [Serializable] public record RetrieveJobRequest diff --git a/src/Square/Team/Requests/UpdateJobRequest.cs b/src/Square/Default/Team/Requests/UpdateJobRequest.cs similarity index 94% rename from src/Square/Team/Requests/UpdateJobRequest.cs rename to src/Square/Default/Team/Requests/UpdateJobRequest.cs index 29b6e70d..a1ca7296 100644 --- a/src/Square/Team/Requests/UpdateJobRequest.cs +++ b/src/Square/Default/Team/Requests/UpdateJobRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Team; +namespace Square.Default; [Serializable] public record UpdateJobRequest diff --git a/src/Square/Team/TeamClient.cs b/src/Square/Default/Team/TeamClient.cs similarity index 95% rename from src/Square/Team/TeamClient.cs rename to src/Square/Default/Team/TeamClient.cs index d07242b8..d8519b99 100644 --- a/src/Square/Team/TeamClient.cs +++ b/src/Square/Default/Team/TeamClient.cs @@ -2,7 +2,7 @@ using Square; using Square.Core; -namespace Square.Team; +namespace Square.Default; public partial class TeamClient : ITeamClient { @@ -17,7 +17,7 @@ internal TeamClient(RawClient client) /// Lists jobs in a seller account. Results are sorted by title in ascending order. /// /// - /// await client.Team.ListJobsAsync(new ListJobsRequest { Cursor = "cursor" }); + /// await client.Default.Team.ListJobsAsync(new ListJobsRequest { Cursor = "cursor" }); /// public async Task ListJobsAsync( ListJobsRequest request, @@ -71,7 +71,7 @@ public async Task ListJobsAsync( /// compensation is defined in a [job assignment](entity:JobAssignment) in a team member's wage setting. /// /// - /// await client.Team.CreateJobAsync( + /// await client.Default.Team.CreateJobAsync( /// new CreateJobRequest /// { /// Job = new Job { Title = "Cashier", IsTipEligible = true }, @@ -126,7 +126,7 @@ public async Task CreateJobAsync( /// Retrieves a specified job. /// /// - /// await client.Team.RetrieveJobAsync(new RetrieveJobRequest { JobId = "job_id" }); + /// await client.Default.Team.RetrieveJobAsync(new RetrieveJobRequest { JobId = "job_id" }); /// public async Task RetrieveJobAsync( RetrieveJobRequest request, @@ -178,7 +178,7 @@ public async Task RetrieveJobAsync( /// tip eligibility propagate to all `TeamMemberWage` objects that reference the job ID. /// /// - /// await client.Team.UpdateJobAsync( + /// await client.Default.Team.UpdateJobAsync( /// new UpdateJobRequest /// { /// JobId = "job_id", diff --git a/src/Square/TeamMembers/ITeamMembersClient.cs b/src/Square/Default/TeamMembers/ITeamMembersClient.cs similarity index 98% rename from src/Square/TeamMembers/ITeamMembersClient.cs rename to src/Square/Default/TeamMembers/ITeamMembersClient.cs index ad0a004e..a6cff9c4 100644 --- a/src/Square/TeamMembers/ITeamMembersClient.cs +++ b/src/Square/Default/TeamMembers/ITeamMembersClient.cs @@ -1,7 +1,7 @@ using Square; -using Square.TeamMembers.WageSetting; +using Square.Default.TeamMembers; -namespace Square.TeamMembers; +namespace Square.Default; public partial interface ITeamMembersClient { diff --git a/src/Square/TeamMembers/Requests/BatchCreateTeamMembersRequest.cs b/src/Square/Default/TeamMembers/Requests/BatchCreateTeamMembersRequest.cs similarity index 94% rename from src/Square/TeamMembers/Requests/BatchCreateTeamMembersRequest.cs rename to src/Square/Default/TeamMembers/Requests/BatchCreateTeamMembersRequest.cs index 828bd255..8ed64c16 100644 --- a/src/Square/TeamMembers/Requests/BatchCreateTeamMembersRequest.cs +++ b/src/Square/Default/TeamMembers/Requests/BatchCreateTeamMembersRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.TeamMembers; +namespace Square.Default; [Serializable] public record BatchCreateTeamMembersRequest diff --git a/src/Square/TeamMembers/Requests/BatchUpdateTeamMembersRequest.cs b/src/Square/Default/TeamMembers/Requests/BatchUpdateTeamMembersRequest.cs similarity index 95% rename from src/Square/TeamMembers/Requests/BatchUpdateTeamMembersRequest.cs rename to src/Square/Default/TeamMembers/Requests/BatchUpdateTeamMembersRequest.cs index 4123920e..89c89a7a 100644 --- a/src/Square/TeamMembers/Requests/BatchUpdateTeamMembersRequest.cs +++ b/src/Square/Default/TeamMembers/Requests/BatchUpdateTeamMembersRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.TeamMembers; +namespace Square.Default; [Serializable] public record BatchUpdateTeamMembersRequest diff --git a/src/Square/TeamMembers/Requests/GetTeamMembersRequest.cs b/src/Square/Default/TeamMembers/Requests/GetTeamMembersRequest.cs similarity index 92% rename from src/Square/TeamMembers/Requests/GetTeamMembersRequest.cs rename to src/Square/Default/TeamMembers/Requests/GetTeamMembersRequest.cs index 7d8787eb..a9762446 100644 --- a/src/Square/TeamMembers/Requests/GetTeamMembersRequest.cs +++ b/src/Square/Default/TeamMembers/Requests/GetTeamMembersRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.TeamMembers; +namespace Square.Default; [Serializable] public record GetTeamMembersRequest diff --git a/src/Square/TeamMembers/Requests/SearchTeamMembersRequest.cs b/src/Square/Default/TeamMembers/Requests/SearchTeamMembersRequest.cs similarity index 95% rename from src/Square/TeamMembers/Requests/SearchTeamMembersRequest.cs rename to src/Square/Default/TeamMembers/Requests/SearchTeamMembersRequest.cs index 264d6d9e..95717a35 100644 --- a/src/Square/TeamMembers/Requests/SearchTeamMembersRequest.cs +++ b/src/Square/Default/TeamMembers/Requests/SearchTeamMembersRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.TeamMembers; +namespace Square.Default; [Serializable] public record SearchTeamMembersRequest diff --git a/src/Square/TeamMembers/Requests/UpdateTeamMembersRequest.cs b/src/Square/Default/TeamMembers/Requests/UpdateTeamMembersRequest.cs similarity index 91% rename from src/Square/TeamMembers/Requests/UpdateTeamMembersRequest.cs rename to src/Square/Default/TeamMembers/Requests/UpdateTeamMembersRequest.cs index 22a2065d..e058a0d2 100644 --- a/src/Square/TeamMembers/Requests/UpdateTeamMembersRequest.cs +++ b/src/Square/Default/TeamMembers/Requests/UpdateTeamMembersRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.TeamMembers; +namespace Square.Default; [Serializable] public record UpdateTeamMembersRequest diff --git a/src/Square/TeamMembers/TeamMembersClient.cs b/src/Square/Default/TeamMembers/TeamMembersClient.cs similarity index 97% rename from src/Square/TeamMembers/TeamMembersClient.cs rename to src/Square/Default/TeamMembers/TeamMembersClient.cs index 271cd2c9..babef249 100644 --- a/src/Square/TeamMembers/TeamMembersClient.cs +++ b/src/Square/Default/TeamMembers/TeamMembersClient.cs @@ -1,9 +1,9 @@ using System.Text.Json; using Square; using Square.Core; -using Square.TeamMembers.WageSetting; +using Square.Default.TeamMembers; -namespace Square.TeamMembers; +namespace Square.Default; public partial class TeamMembersClient : ITeamMembersClient { @@ -26,7 +26,7 @@ internal TeamMembersClient(RawClient client) /// Learn about [Troubleshooting the Team API](https://developer.squareup.com/docs/team/troubleshooting#createteammember). /// /// - /// await client.TeamMembers.CreateAsync( + /// await client.Default.TeamMembers.CreateAsync( /// new CreateTeamMemberRequest /// { /// IdempotencyKey = "idempotency-key-0", @@ -43,7 +43,7 @@ internal TeamMembersClient(RawClient client) /// AssignmentType = TeamMemberAssignedLocationsAssignmentType.ExplicitLocations, /// LocationIds = new List<string>() { "YSGH2WBKG94QZ", "GA2Y9HSJ8KRYT" }, /// }, - /// WageSetting = new Square.WageSetting + /// WageSetting = new WageSetting /// { /// JobAssignments = new List<JobAssignment>() /// { @@ -119,7 +119,7 @@ public async Task CreateAsync( /// Learn about [Troubleshooting the Team API](https://developer.squareup.com/docs/team/troubleshooting#bulk-create-team-members). /// /// - /// await client.TeamMembers.BatchCreateAsync( + /// await client.Default.TeamMembers.BatchCreateAsync( /// new BatchCreateTeamMembersRequest /// { /// TeamMembers = new Dictionary<string, CreateTeamMemberRequest>() @@ -218,7 +218,7 @@ public async Task BatchCreateAsync( /// Learn about [Troubleshooting the Team API](https://developer.squareup.com/docs/team/troubleshooting#bulk-update-team-members). /// /// - /// await client.TeamMembers.BatchUpdateAsync( + /// await client.Default.TeamMembers.BatchUpdateAsync( /// new BatchUpdateTeamMembersRequest /// { /// TeamMembers = new Dictionary<string, UpdateTeamMemberRequest>() @@ -319,7 +319,7 @@ public async Task BatchUpdateAsync( /// the team member is the Square account owner. /// /// - /// await client.TeamMembers.SearchAsync( + /// await client.Default.TeamMembers.SearchAsync( /// new SearchTeamMembersRequest /// { /// Query = new SearchTeamMembersQuery @@ -382,7 +382,9 @@ public async Task SearchAsync( /// Learn about [Troubleshooting the Team API](https://developer.squareup.com/docs/team/troubleshooting#retrieve-a-team-member). /// /// - /// await client.TeamMembers.GetAsync(new GetTeamMembersRequest { TeamMemberId = "team_member_id" }); + /// await client.Default.TeamMembers.GetAsync( + /// new GetTeamMembersRequest { TeamMemberId = "team_member_id" } + /// ); /// public async Task GetAsync( GetTeamMembersRequest request, @@ -433,7 +435,7 @@ public async Task GetAsync( /// Learn about [Troubleshooting the Team API](https://developer.squareup.com/docs/team/troubleshooting#update-a-team-member). /// /// - /// await client.TeamMembers.UpdateAsync( + /// await client.Default.TeamMembers.UpdateAsync( /// new UpdateTeamMembersRequest /// { /// TeamMemberId = "team_member_id", @@ -452,7 +454,7 @@ public async Task GetAsync( /// AssignmentType = TeamMemberAssignedLocationsAssignmentType.ExplicitLocations, /// LocationIds = new List<string>() { "YSGH2WBKG94QZ", "GA2Y9HSJ8KRYT" }, /// }, - /// WageSetting = new Square.WageSetting + /// WageSetting = new WageSetting /// { /// JobAssignments = new List<JobAssignment>() /// { diff --git a/src/Square/TeamMembers/WageSetting/IWageSettingClient.cs b/src/Square/Default/TeamMembers/WageSetting/IWageSettingClient.cs similarity index 96% rename from src/Square/TeamMembers/WageSetting/IWageSettingClient.cs rename to src/Square/Default/TeamMembers/WageSetting/IWageSettingClient.cs index 2364007b..9edcb507 100644 --- a/src/Square/TeamMembers/WageSetting/IWageSettingClient.cs +++ b/src/Square/Default/TeamMembers/WageSetting/IWageSettingClient.cs @@ -1,6 +1,7 @@ using Square; +using Square.Default; -namespace Square.TeamMembers.WageSetting; +namespace Square.Default.TeamMembers; public partial interface IWageSettingClient { diff --git a/src/Square/TeamMembers/WageSetting/Requests/GetWageSettingRequest.cs b/src/Square/Default/TeamMembers/WageSetting/Requests/GetWageSettingRequest.cs similarity index 90% rename from src/Square/TeamMembers/WageSetting/Requests/GetWageSettingRequest.cs rename to src/Square/Default/TeamMembers/WageSetting/Requests/GetWageSettingRequest.cs index 8153cdb9..d0352261 100644 --- a/src/Square/TeamMembers/WageSetting/Requests/GetWageSettingRequest.cs +++ b/src/Square/Default/TeamMembers/WageSetting/Requests/GetWageSettingRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.TeamMembers.WageSetting; +namespace Square.Default.TeamMembers; [Serializable] public record GetWageSettingRequest diff --git a/src/Square/TeamMembers/WageSetting/Requests/UpdateWageSettingRequest.cs b/src/Square/Default/TeamMembers/WageSetting/Requests/UpdateWageSettingRequest.cs similarity index 88% rename from src/Square/TeamMembers/WageSetting/Requests/UpdateWageSettingRequest.cs rename to src/Square/Default/TeamMembers/WageSetting/Requests/UpdateWageSettingRequest.cs index 476cd866..31f40e71 100644 --- a/src/Square/TeamMembers/WageSetting/Requests/UpdateWageSettingRequest.cs +++ b/src/Square/Default/TeamMembers/WageSetting/Requests/UpdateWageSettingRequest.cs @@ -1,7 +1,8 @@ using System.Text.Json.Serialization; using Square.Core; +using Square.Default; -namespace Square.TeamMembers.WageSetting; +namespace Square.Default.TeamMembers; [Serializable] public record UpdateWageSettingRequest @@ -20,7 +21,7 @@ public record UpdateWageSettingRequest /// This value is ignored if `job_id` is also provided. /// [JsonPropertyName("wage_setting")] - public required Square.WageSetting WageSetting { get; set; } + public required WageSetting WageSetting { get; set; } /// public override string ToString() diff --git a/src/Square/TeamMembers/WageSetting/WageSettingClient.cs b/src/Square/Default/TeamMembers/WageSetting/WageSettingClient.cs similarity index 94% rename from src/Square/TeamMembers/WageSetting/WageSettingClient.cs rename to src/Square/Default/TeamMembers/WageSetting/WageSettingClient.cs index 6017e348..d0f88298 100644 --- a/src/Square/TeamMembers/WageSetting/WageSettingClient.cs +++ b/src/Square/Default/TeamMembers/WageSetting/WageSettingClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.TeamMembers.WageSetting; +namespace Square.Default.TeamMembers; public partial class WageSettingClient : IWageSettingClient { @@ -22,8 +23,8 @@ internal WageSettingClient(RawClient client) /// to get this information directly from the `TeamMember.wage_setting` field. /// /// - /// await client.TeamMembers.WageSetting.GetAsync( - /// new Square.TeamMembers.WageSetting.GetWageSettingRequest { TeamMemberId = "team_member_id" } + /// await client.Default.TeamMembers.WageSetting.GetAsync( + /// new Square.Default.TeamMembers.GetWageSettingRequest { TeamMemberId = "team_member_id" } /// ); /// public async Task GetAsync( @@ -81,11 +82,11 @@ public async Task GetAsync( /// to manage the `TeamMember.wage_setting` field directly. /// /// - /// await client.TeamMembers.WageSetting.UpdateAsync( + /// await client.Default.TeamMembers.WageSetting.UpdateAsync( /// new UpdateWageSettingRequest /// { /// TeamMemberId = "team_member_id", - /// WageSetting = new Square.WageSetting + /// WageSetting = new WageSetting /// { /// JobAssignments = new List<JobAssignment>() /// { diff --git a/src/Square/Terminal/Actions/ActionsClient.cs b/src/Square/Default/Terminal/Actions/ActionsClient.cs similarity index 95% rename from src/Square/Terminal/Actions/ActionsClient.cs rename to src/Square/Default/Terminal/Actions/ActionsClient.cs index 56b58397..851dd088 100644 --- a/src/Square/Terminal/Actions/ActionsClient.cs +++ b/src/Square/Default/Terminal/Actions/ActionsClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Terminal.Actions; +namespace Square.Default.Terminal; public partial class ActionsClient : IActionsClient { @@ -17,7 +18,7 @@ internal ActionsClient(RawClient client) /// Creates a Terminal action request and sends it to the specified device. /// /// - /// await client.Terminal.Actions.CreateAsync( + /// await client.Default.Terminal.Actions.CreateAsync( /// new CreateTerminalActionRequest /// { /// IdempotencyKey = "thahn-70e75c10-47f7-4ab6-88cc-aaa4076d065e", @@ -82,7 +83,7 @@ public async Task CreateAsync( /// Retrieves a filtered list of Terminal action requests created by the account making the request. Terminal action requests are available for 30 days. /// /// - /// await client.Terminal.Actions.SearchAsync( + /// await client.Default.Terminal.Actions.SearchAsync( /// new SearchTerminalActionsRequest /// { /// Query = new TerminalActionQuery @@ -144,7 +145,7 @@ public async Task SearchAsync( /// Retrieves a Terminal action request by `action_id`. Terminal action requests are available for 30 days. /// /// - /// await client.Terminal.Actions.GetAsync(new GetActionsRequest { ActionId = "action_id" }); + /// await client.Default.Terminal.Actions.GetAsync(new GetActionsRequest { ActionId = "action_id" }); /// public async Task GetAsync( GetActionsRequest request, @@ -194,7 +195,9 @@ public async Task GetAsync( /// Cancels a Terminal action request if the status of the request permits it. /// /// - /// await client.Terminal.Actions.CancelAsync(new CancelActionsRequest { ActionId = "action_id" }); + /// await client.Default.Terminal.Actions.CancelAsync( + /// new CancelActionsRequest { ActionId = "action_id" } + /// ); /// public async Task CancelAsync( CancelActionsRequest request, diff --git a/src/Square/Terminal/Actions/IActionsClient.cs b/src/Square/Default/Terminal/Actions/IActionsClient.cs similarity index 96% rename from src/Square/Terminal/Actions/IActionsClient.cs rename to src/Square/Default/Terminal/Actions/IActionsClient.cs index b61101fe..09ba3799 100644 --- a/src/Square/Terminal/Actions/IActionsClient.cs +++ b/src/Square/Default/Terminal/Actions/IActionsClient.cs @@ -1,6 +1,7 @@ using Square; +using Square.Default; -namespace Square.Terminal.Actions; +namespace Square.Default.Terminal; public partial interface IActionsClient { diff --git a/src/Square/Terminal/Actions/Requests/CancelActionsRequest.cs b/src/Square/Default/Terminal/Actions/Requests/CancelActionsRequest.cs similarity index 91% rename from src/Square/Terminal/Actions/Requests/CancelActionsRequest.cs rename to src/Square/Default/Terminal/Actions/Requests/CancelActionsRequest.cs index 6ca7c6bd..282e1820 100644 --- a/src/Square/Terminal/Actions/Requests/CancelActionsRequest.cs +++ b/src/Square/Default/Terminal/Actions/Requests/CancelActionsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Terminal.Actions; +namespace Square.Default.Terminal; [Serializable] public record CancelActionsRequest diff --git a/src/Square/Terminal/Actions/Requests/CreateTerminalActionRequest.cs b/src/Square/Default/Terminal/Actions/Requests/CreateTerminalActionRequest.cs similarity index 93% rename from src/Square/Terminal/Actions/Requests/CreateTerminalActionRequest.cs rename to src/Square/Default/Terminal/Actions/Requests/CreateTerminalActionRequest.cs index 23ce9dde..3fd28daa 100644 --- a/src/Square/Terminal/Actions/Requests/CreateTerminalActionRequest.cs +++ b/src/Square/Default/Terminal/Actions/Requests/CreateTerminalActionRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Terminal.Actions; +namespace Square.Default.Terminal; [Serializable] public record CreateTerminalActionRequest diff --git a/src/Square/Terminal/Actions/Requests/GetActionsRequest.cs b/src/Square/Default/Terminal/Actions/Requests/GetActionsRequest.cs similarity index 91% rename from src/Square/Terminal/Actions/Requests/GetActionsRequest.cs rename to src/Square/Default/Terminal/Actions/Requests/GetActionsRequest.cs index b4dc4590..ef7d0417 100644 --- a/src/Square/Terminal/Actions/Requests/GetActionsRequest.cs +++ b/src/Square/Default/Terminal/Actions/Requests/GetActionsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Terminal.Actions; +namespace Square.Default.Terminal; [Serializable] public record GetActionsRequest diff --git a/src/Square/Terminal/Actions/Requests/SearchTerminalActionsRequest.cs b/src/Square/Default/Terminal/Actions/Requests/SearchTerminalActionsRequest.cs similarity index 95% rename from src/Square/Terminal/Actions/Requests/SearchTerminalActionsRequest.cs rename to src/Square/Default/Terminal/Actions/Requests/SearchTerminalActionsRequest.cs index 41e838c3..9755df38 100644 --- a/src/Square/Terminal/Actions/Requests/SearchTerminalActionsRequest.cs +++ b/src/Square/Default/Terminal/Actions/Requests/SearchTerminalActionsRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Terminal.Actions; +namespace Square.Default.Terminal; [Serializable] public record SearchTerminalActionsRequest diff --git a/src/Square/Terminal/Checkouts/CheckoutsClient.cs b/src/Square/Default/Terminal/Checkouts/CheckoutsClient.cs similarity index 95% rename from src/Square/Terminal/Checkouts/CheckoutsClient.cs rename to src/Square/Default/Terminal/Checkouts/CheckoutsClient.cs index 0fbc63a5..c2d67c4e 100644 --- a/src/Square/Terminal/Checkouts/CheckoutsClient.cs +++ b/src/Square/Default/Terminal/Checkouts/CheckoutsClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Terminal.Checkouts; +namespace Square.Default.Terminal; public partial class CheckoutsClient : ICheckoutsClient { @@ -18,7 +19,7 @@ internal CheckoutsClient(RawClient client) /// for the requested amount. /// /// - /// await client.Terminal.Checkouts.CreateAsync( + /// await client.Default.Terminal.Checkouts.CreateAsync( /// new CreateTerminalCheckoutRequest /// { /// IdempotencyKey = "28a0c3bc-7839-11ea-bc55-0242ac130003", @@ -82,7 +83,7 @@ public async Task CreateAsync( /// Returns a filtered list of Terminal checkout requests created by the application making the request. Only Terminal checkout requests created for the merchant scoped to the OAuth token are returned. Terminal checkout requests are available for 30 days. /// /// - /// await client.Terminal.Checkouts.SearchAsync( + /// await client.Default.Terminal.Checkouts.SearchAsync( /// new SearchTerminalCheckoutsRequest /// { /// Query = new TerminalCheckoutQuery @@ -140,7 +141,9 @@ public async Task SearchAsync( /// Retrieves a Terminal checkout request by `checkout_id`. Terminal checkout requests are available for 30 days. /// /// - /// await client.Terminal.Checkouts.GetAsync(new GetCheckoutsRequest { CheckoutId = "checkout_id" }); + /// await client.Default.Terminal.Checkouts.GetAsync( + /// new GetCheckoutsRequest { CheckoutId = "checkout_id" } + /// ); /// public async Task GetAsync( GetCheckoutsRequest request, @@ -190,7 +193,7 @@ public async Task GetAsync( /// Cancels a Terminal checkout request if the status of the request permits it. /// /// - /// await client.Terminal.Checkouts.CancelAsync( + /// await client.Default.Terminal.Checkouts.CancelAsync( /// new CancelCheckoutsRequest { CheckoutId = "checkout_id" } /// ); /// diff --git a/src/Square/Terminal/Checkouts/ICheckoutsClient.cs b/src/Square/Default/Terminal/Checkouts/ICheckoutsClient.cs similarity index 96% rename from src/Square/Terminal/Checkouts/ICheckoutsClient.cs rename to src/Square/Default/Terminal/Checkouts/ICheckoutsClient.cs index 5dfa540a..6a6e2f0b 100644 --- a/src/Square/Terminal/Checkouts/ICheckoutsClient.cs +++ b/src/Square/Default/Terminal/Checkouts/ICheckoutsClient.cs @@ -1,6 +1,7 @@ using Square; +using Square.Default; -namespace Square.Terminal.Checkouts; +namespace Square.Default.Terminal; public partial interface ICheckoutsClient { diff --git a/src/Square/Terminal/Checkouts/Requests/CancelCheckoutsRequest.cs b/src/Square/Default/Terminal/Checkouts/Requests/CancelCheckoutsRequest.cs similarity index 91% rename from src/Square/Terminal/Checkouts/Requests/CancelCheckoutsRequest.cs rename to src/Square/Default/Terminal/Checkouts/Requests/CancelCheckoutsRequest.cs index 54ee7f68..21dac5d3 100644 --- a/src/Square/Terminal/Checkouts/Requests/CancelCheckoutsRequest.cs +++ b/src/Square/Default/Terminal/Checkouts/Requests/CancelCheckoutsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Terminal.Checkouts; +namespace Square.Default.Terminal; [Serializable] public record CancelCheckoutsRequest diff --git a/src/Square/Terminal/Checkouts/Requests/CreateTerminalCheckoutRequest.cs b/src/Square/Default/Terminal/Checkouts/Requests/CreateTerminalCheckoutRequest.cs similarity index 93% rename from src/Square/Terminal/Checkouts/Requests/CreateTerminalCheckoutRequest.cs rename to src/Square/Default/Terminal/Checkouts/Requests/CreateTerminalCheckoutRequest.cs index b7fc6e4f..909771a6 100644 --- a/src/Square/Terminal/Checkouts/Requests/CreateTerminalCheckoutRequest.cs +++ b/src/Square/Default/Terminal/Checkouts/Requests/CreateTerminalCheckoutRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Terminal.Checkouts; +namespace Square.Default.Terminal; [Serializable] public record CreateTerminalCheckoutRequest diff --git a/src/Square/Terminal/Checkouts/Requests/GetCheckoutsRequest.cs b/src/Square/Default/Terminal/Checkouts/Requests/GetCheckoutsRequest.cs similarity index 91% rename from src/Square/Terminal/Checkouts/Requests/GetCheckoutsRequest.cs rename to src/Square/Default/Terminal/Checkouts/Requests/GetCheckoutsRequest.cs index 7b69a813..7df8993b 100644 --- a/src/Square/Terminal/Checkouts/Requests/GetCheckoutsRequest.cs +++ b/src/Square/Default/Terminal/Checkouts/Requests/GetCheckoutsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Terminal.Checkouts; +namespace Square.Default.Terminal; [Serializable] public record GetCheckoutsRequest diff --git a/src/Square/Terminal/Checkouts/Requests/SearchTerminalCheckoutsRequest.cs b/src/Square/Default/Terminal/Checkouts/Requests/SearchTerminalCheckoutsRequest.cs similarity index 95% rename from src/Square/Terminal/Checkouts/Requests/SearchTerminalCheckoutsRequest.cs rename to src/Square/Default/Terminal/Checkouts/Requests/SearchTerminalCheckoutsRequest.cs index 54ad07be..56754601 100644 --- a/src/Square/Terminal/Checkouts/Requests/SearchTerminalCheckoutsRequest.cs +++ b/src/Square/Default/Terminal/Checkouts/Requests/SearchTerminalCheckoutsRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Terminal.Checkouts; +namespace Square.Default.Terminal; [Serializable] public record SearchTerminalCheckoutsRequest diff --git a/src/Square/Terminal/ITerminalClient.cs b/src/Square/Default/Terminal/ITerminalClient.cs similarity index 89% rename from src/Square/Terminal/ITerminalClient.cs rename to src/Square/Default/Terminal/ITerminalClient.cs index 23ebecd6..e057516a 100644 --- a/src/Square/Terminal/ITerminalClient.cs +++ b/src/Square/Default/Terminal/ITerminalClient.cs @@ -1,14 +1,13 @@ using Square; -using Square.Terminal.Actions; -using Square.Terminal.Checkouts; +using Square.Default.Terminal; -namespace Square.Terminal; +namespace Square.Default; public partial interface ITerminalClient { public ActionsClient Actions { get; } public CheckoutsClient Checkouts { get; } - public Square.Terminal.Refunds.RefundsClient Refunds { get; } + public Square.Default.Terminal.RefundsClient Refunds { get; } /// /// Dismisses a Terminal action request if the status and type of the request permits it. diff --git a/src/Square/Terminal/Refunds/IRefundsClient.cs b/src/Square/Default/Terminal/Refunds/IRefundsClient.cs similarity index 96% rename from src/Square/Terminal/Refunds/IRefundsClient.cs rename to src/Square/Default/Terminal/Refunds/IRefundsClient.cs index 25906d9b..0467cc8a 100644 --- a/src/Square/Terminal/Refunds/IRefundsClient.cs +++ b/src/Square/Default/Terminal/Refunds/IRefundsClient.cs @@ -1,6 +1,7 @@ using Square; +using Square.Default; -namespace Square.Terminal.Refunds; +namespace Square.Default.Terminal; public partial interface IRefundsClient { diff --git a/src/Square/Terminal/Refunds/RefundsClient.cs b/src/Square/Default/Terminal/Refunds/RefundsClient.cs similarity index 95% rename from src/Square/Terminal/Refunds/RefundsClient.cs rename to src/Square/Default/Terminal/Refunds/RefundsClient.cs index 33154075..c64c9cdc 100644 --- a/src/Square/Terminal/Refunds/RefundsClient.cs +++ b/src/Square/Default/Terminal/Refunds/RefundsClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Terminal.Refunds; +namespace Square.Default.Terminal; public partial class RefundsClient : IRefundsClient { @@ -17,7 +18,7 @@ internal RefundsClient(RawClient client) /// Creates a request to refund an Interac payment completed on a Square Terminal. Refunds for Interac payments on a Square Terminal are supported only for Interac debit cards in Canada. Other refunds for Terminal payments should use the Refunds API. For more information, see [Refunds API](api:Refunds). /// /// - /// await client.Terminal.Refunds.CreateAsync( + /// await client.Default.Terminal.Refunds.CreateAsync( /// new CreateTerminalRefundRequest /// { /// IdempotencyKey = "402a640b-b26f-401f-b406-46f839590c04", @@ -78,7 +79,7 @@ public async Task CreateAsync( /// Retrieves a filtered list of Interac Terminal refund requests created by the seller making the request. Terminal refund requests are available for 30 days. /// /// - /// await client.Terminal.Refunds.SearchAsync( + /// await client.Default.Terminal.Refunds.SearchAsync( /// new SearchTerminalRefundsRequest /// { /// Query = new TerminalRefundQuery @@ -136,8 +137,8 @@ public async Task SearchAsync( /// Retrieves an Interac Terminal refund object by ID. Terminal refund objects are available for 30 days. /// /// - /// await client.Terminal.Refunds.GetAsync( - /// new Square.Terminal.Refunds.GetRefundsRequest { TerminalRefundId = "terminal_refund_id" } + /// await client.Default.Terminal.Refunds.GetAsync( + /// new Square.Default.Terminal.GetRefundsRequest { TerminalRefundId = "terminal_refund_id" } /// ); /// public async Task GetAsync( @@ -188,7 +189,7 @@ public async Task GetAsync( /// Cancels an Interac Terminal refund request by refund request ID if the status of the request permits it. /// /// - /// await client.Terminal.Refunds.CancelAsync( + /// await client.Default.Terminal.Refunds.CancelAsync( /// new CancelRefundsRequest { TerminalRefundId = "terminal_refund_id" } /// ); /// diff --git a/src/Square/Terminal/Refunds/Requests/CancelRefundsRequest.cs b/src/Square/Default/Terminal/Refunds/Requests/CancelRefundsRequest.cs similarity index 91% rename from src/Square/Terminal/Refunds/Requests/CancelRefundsRequest.cs rename to src/Square/Default/Terminal/Refunds/Requests/CancelRefundsRequest.cs index 2a798fa4..5d706221 100644 --- a/src/Square/Terminal/Refunds/Requests/CancelRefundsRequest.cs +++ b/src/Square/Default/Terminal/Refunds/Requests/CancelRefundsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Terminal.Refunds; +namespace Square.Default.Terminal; [Serializable] public record CancelRefundsRequest diff --git a/src/Square/Terminal/Refunds/Requests/CreateTerminalRefundRequest.cs b/src/Square/Default/Terminal/Refunds/Requests/CreateTerminalRefundRequest.cs similarity index 93% rename from src/Square/Terminal/Refunds/Requests/CreateTerminalRefundRequest.cs rename to src/Square/Default/Terminal/Refunds/Requests/CreateTerminalRefundRequest.cs index 8ce3e653..b99b4854 100644 --- a/src/Square/Terminal/Refunds/Requests/CreateTerminalRefundRequest.cs +++ b/src/Square/Default/Terminal/Refunds/Requests/CreateTerminalRefundRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Terminal.Refunds; +namespace Square.Default.Terminal; [Serializable] public record CreateTerminalRefundRequest diff --git a/src/Square/Terminal/Refunds/Requests/GetRefundsRequest.cs b/src/Square/Default/Terminal/Refunds/Requests/GetRefundsRequest.cs similarity index 91% rename from src/Square/Terminal/Refunds/Requests/GetRefundsRequest.cs rename to src/Square/Default/Terminal/Refunds/Requests/GetRefundsRequest.cs index e66a975e..622359c3 100644 --- a/src/Square/Terminal/Refunds/Requests/GetRefundsRequest.cs +++ b/src/Square/Default/Terminal/Refunds/Requests/GetRefundsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Terminal.Refunds; +namespace Square.Default.Terminal; [Serializable] public record GetRefundsRequest diff --git a/src/Square/Terminal/Refunds/Requests/SearchTerminalRefundsRequest.cs b/src/Square/Default/Terminal/Refunds/Requests/SearchTerminalRefundsRequest.cs similarity index 94% rename from src/Square/Terminal/Refunds/Requests/SearchTerminalRefundsRequest.cs rename to src/Square/Default/Terminal/Refunds/Requests/SearchTerminalRefundsRequest.cs index 24c56950..4085a4d5 100644 --- a/src/Square/Terminal/Refunds/Requests/SearchTerminalRefundsRequest.cs +++ b/src/Square/Default/Terminal/Refunds/Requests/SearchTerminalRefundsRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Terminal.Refunds; +namespace Square.Default.Terminal; [Serializable] public record SearchTerminalRefundsRequest diff --git a/src/Square/Terminal/Requests/DismissTerminalActionRequest.cs b/src/Square/Default/Terminal/Requests/DismissTerminalActionRequest.cs similarity index 94% rename from src/Square/Terminal/Requests/DismissTerminalActionRequest.cs rename to src/Square/Default/Terminal/Requests/DismissTerminalActionRequest.cs index bded9e8e..37f20af0 100644 --- a/src/Square/Terminal/Requests/DismissTerminalActionRequest.cs +++ b/src/Square/Default/Terminal/Requests/DismissTerminalActionRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Terminal; +namespace Square.Default; [Serializable] public record DismissTerminalActionRequest diff --git a/src/Square/Terminal/Requests/DismissTerminalCheckoutRequest.cs b/src/Square/Default/Terminal/Requests/DismissTerminalCheckoutRequest.cs similarity index 94% rename from src/Square/Terminal/Requests/DismissTerminalCheckoutRequest.cs rename to src/Square/Default/Terminal/Requests/DismissTerminalCheckoutRequest.cs index 7af610a1..1e9f8730 100644 --- a/src/Square/Terminal/Requests/DismissTerminalCheckoutRequest.cs +++ b/src/Square/Default/Terminal/Requests/DismissTerminalCheckoutRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Terminal; +namespace Square.Default; [Serializable] public record DismissTerminalCheckoutRequest diff --git a/src/Square/Terminal/Requests/DismissTerminalRefundRequest.cs b/src/Square/Default/Terminal/Requests/DismissTerminalRefundRequest.cs similarity index 94% rename from src/Square/Terminal/Requests/DismissTerminalRefundRequest.cs rename to src/Square/Default/Terminal/Requests/DismissTerminalRefundRequest.cs index 95ff9dc5..59b7c682 100644 --- a/src/Square/Terminal/Requests/DismissTerminalRefundRequest.cs +++ b/src/Square/Default/Terminal/Requests/DismissTerminalRefundRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Terminal; +namespace Square.Default; [Serializable] public record DismissTerminalRefundRequest diff --git a/src/Square/Terminal/TerminalClient.cs b/src/Square/Default/Terminal/TerminalClient.cs similarity index 93% rename from src/Square/Terminal/TerminalClient.cs rename to src/Square/Default/Terminal/TerminalClient.cs index 50eaa901..44b5969c 100644 --- a/src/Square/Terminal/TerminalClient.cs +++ b/src/Square/Default/Terminal/TerminalClient.cs @@ -1,10 +1,9 @@ using System.Text.Json; using Square; using Square.Core; -using Square.Terminal.Actions; -using Square.Terminal.Checkouts; +using Square.Default.Terminal; -namespace Square.Terminal; +namespace Square.Default; public partial class TerminalClient : ITerminalClient { @@ -15,14 +14,14 @@ internal TerminalClient(RawClient client) _client = client; Actions = new ActionsClient(_client); Checkouts = new CheckoutsClient(_client); - Refunds = new Square.Terminal.Refunds.RefundsClient(_client); + Refunds = new Square.Default.Terminal.RefundsClient(_client); } public ActionsClient Actions { get; } public CheckoutsClient Checkouts { get; } - public Square.Terminal.Refunds.RefundsClient Refunds { get; } + public Square.Default.Terminal.RefundsClient Refunds { get; } /// /// Dismisses a Terminal action request if the status and type of the request permits it. @@ -30,7 +29,7 @@ internal TerminalClient(RawClient client) /// See [Link and Dismiss Actions](https://developer.squareup.com/docs/terminal-api/advanced-features/custom-workflows/link-and-dismiss-actions) for more details. /// /// - /// await client.Terminal.DismissTerminalActionAsync( + /// await client.Default.Terminal.DismissTerminalActionAsync( /// new DismissTerminalActionRequest { ActionId = "action_id" } /// ); /// @@ -82,7 +81,7 @@ public async Task DismissTerminalActionAsync( /// Dismisses a Terminal checkout request if the status and type of the request permits it. /// /// - /// await client.Terminal.DismissTerminalCheckoutAsync( + /// await client.Default.Terminal.DismissTerminalCheckoutAsync( /// new DismissTerminalCheckoutRequest { CheckoutId = "checkout_id" } /// ); /// @@ -134,7 +133,7 @@ public async Task DismissTerminalCheckoutAsync( /// Dismisses a Terminal refund request if the status and type of the request permits it. /// /// - /// await client.Terminal.DismissTerminalRefundAsync( + /// await client.Default.Terminal.DismissTerminalRefundAsync( /// new DismissTerminalRefundRequest { TerminalRefundId = "terminal_refund_id" } /// ); /// diff --git a/src/Square/TransferOrders/ITransferOrdersClient.cs b/src/Square/Default/TransferOrders/ITransferOrdersClient.cs similarity index 99% rename from src/Square/TransferOrders/ITransferOrdersClient.cs rename to src/Square/Default/TransferOrders/ITransferOrdersClient.cs index 7837ecb4..e1efb14e 100644 --- a/src/Square/TransferOrders/ITransferOrdersClient.cs +++ b/src/Square/Default/TransferOrders/ITransferOrdersClient.cs @@ -1,7 +1,7 @@ using Square; using Square.Core; -namespace Square.TransferOrders; +namespace Square.Default; public partial interface ITransferOrdersClient { diff --git a/src/Square/TransferOrders/Requests/CancelTransferOrderRequest.cs b/src/Square/Default/TransferOrders/Requests/CancelTransferOrderRequest.cs similarity index 96% rename from src/Square/TransferOrders/Requests/CancelTransferOrderRequest.cs rename to src/Square/Default/TransferOrders/Requests/CancelTransferOrderRequest.cs index 4f3283b2..659a4a2a 100644 --- a/src/Square/TransferOrders/Requests/CancelTransferOrderRequest.cs +++ b/src/Square/Default/TransferOrders/Requests/CancelTransferOrderRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.TransferOrders; +namespace Square.Default; [Serializable] public record CancelTransferOrderRequest diff --git a/src/Square/TransferOrders/Requests/CreateTransferOrderRequest.cs b/src/Square/Default/TransferOrders/Requests/CreateTransferOrderRequest.cs similarity index 93% rename from src/Square/TransferOrders/Requests/CreateTransferOrderRequest.cs rename to src/Square/Default/TransferOrders/Requests/CreateTransferOrderRequest.cs index 1ea1ee8a..bcc8cc38 100644 --- a/src/Square/TransferOrders/Requests/CreateTransferOrderRequest.cs +++ b/src/Square/Default/TransferOrders/Requests/CreateTransferOrderRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.TransferOrders; +namespace Square.Default; [Serializable] public record CreateTransferOrderRequest diff --git a/src/Square/TransferOrders/Requests/DeleteTransferOrdersRequest.cs b/src/Square/Default/TransferOrders/Requests/DeleteTransferOrdersRequest.cs similarity index 94% rename from src/Square/TransferOrders/Requests/DeleteTransferOrdersRequest.cs rename to src/Square/Default/TransferOrders/Requests/DeleteTransferOrdersRequest.cs index 12d66cb9..e9bc7e12 100644 --- a/src/Square/TransferOrders/Requests/DeleteTransferOrdersRequest.cs +++ b/src/Square/Default/TransferOrders/Requests/DeleteTransferOrdersRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.TransferOrders; +namespace Square.Default; [Serializable] public record DeleteTransferOrdersRequest diff --git a/src/Square/TransferOrders/Requests/GetTransferOrdersRequest.cs b/src/Square/Default/TransferOrders/Requests/GetTransferOrdersRequest.cs similarity index 92% rename from src/Square/TransferOrders/Requests/GetTransferOrdersRequest.cs rename to src/Square/Default/TransferOrders/Requests/GetTransferOrdersRequest.cs index 20b21a05..0a2e3e45 100644 --- a/src/Square/TransferOrders/Requests/GetTransferOrdersRequest.cs +++ b/src/Square/Default/TransferOrders/Requests/GetTransferOrdersRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.TransferOrders; +namespace Square.Default; [Serializable] public record GetTransferOrdersRequest diff --git a/src/Square/TransferOrders/Requests/ReceiveTransferOrderRequest.cs b/src/Square/Default/TransferOrders/Requests/ReceiveTransferOrderRequest.cs similarity index 95% rename from src/Square/TransferOrders/Requests/ReceiveTransferOrderRequest.cs rename to src/Square/Default/TransferOrders/Requests/ReceiveTransferOrderRequest.cs index 4b7b871b..bca8c87e 100644 --- a/src/Square/TransferOrders/Requests/ReceiveTransferOrderRequest.cs +++ b/src/Square/Default/TransferOrders/Requests/ReceiveTransferOrderRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.TransferOrders; +namespace Square.Default; [Serializable] public record ReceiveTransferOrderRequest diff --git a/src/Square/TransferOrders/Requests/SearchTransferOrdersRequest.cs b/src/Square/Default/TransferOrders/Requests/SearchTransferOrdersRequest.cs similarity index 93% rename from src/Square/TransferOrders/Requests/SearchTransferOrdersRequest.cs rename to src/Square/Default/TransferOrders/Requests/SearchTransferOrdersRequest.cs index 900760a4..1f83104b 100644 --- a/src/Square/TransferOrders/Requests/SearchTransferOrdersRequest.cs +++ b/src/Square/Default/TransferOrders/Requests/SearchTransferOrdersRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.TransferOrders; +namespace Square.Default; [Serializable] public record SearchTransferOrdersRequest diff --git a/src/Square/TransferOrders/Requests/StartTransferOrderRequest.cs b/src/Square/Default/TransferOrders/Requests/StartTransferOrderRequest.cs similarity index 96% rename from src/Square/TransferOrders/Requests/StartTransferOrderRequest.cs rename to src/Square/Default/TransferOrders/Requests/StartTransferOrderRequest.cs index 0ad18304..d4a4e05f 100644 --- a/src/Square/TransferOrders/Requests/StartTransferOrderRequest.cs +++ b/src/Square/Default/TransferOrders/Requests/StartTransferOrderRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.TransferOrders; +namespace Square.Default; [Serializable] public record StartTransferOrderRequest diff --git a/src/Square/TransferOrders/Requests/UpdateTransferOrderRequest.cs b/src/Square/Default/TransferOrders/Requests/UpdateTransferOrderRequest.cs similarity index 95% rename from src/Square/TransferOrders/Requests/UpdateTransferOrderRequest.cs rename to src/Square/Default/TransferOrders/Requests/UpdateTransferOrderRequest.cs index a9b72ef6..33d7b01d 100644 --- a/src/Square/TransferOrders/Requests/UpdateTransferOrderRequest.cs +++ b/src/Square/Default/TransferOrders/Requests/UpdateTransferOrderRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.TransferOrders; +namespace Square.Default; [Serializable] public record UpdateTransferOrderRequest diff --git a/src/Square/TransferOrders/TransferOrdersClient.cs b/src/Square/Default/TransferOrders/TransferOrdersClient.cs similarity index 98% rename from src/Square/TransferOrders/TransferOrdersClient.cs rename to src/Square/Default/TransferOrders/TransferOrdersClient.cs index 96869b3d..6e036d71 100644 --- a/src/Square/TransferOrders/TransferOrdersClient.cs +++ b/src/Square/Default/TransferOrders/TransferOrdersClient.cs @@ -2,7 +2,7 @@ using Square; using Square.Core; -namespace Square.TransferOrders; +namespace Square.Default; public partial class TransferOrdersClient : ITransferOrdersClient { @@ -88,7 +88,7 @@ private async Task SearchInternalAsync( /// Creates a [transfer_order.created](webhook:transfer_order.created) webhook event. /// /// - /// await client.TransferOrders.CreateAsync( + /// await client.Default.TransferOrders.CreateAsync( /// new CreateTransferOrderRequest /// { /// IdempotencyKey = "65cc0586-3e82-384s-b524-3885cffd52", @@ -170,7 +170,7 @@ public async Task CreateAsync( /// - Find orders in a particular [TransferOrderStatus](entity:TransferOrderStatus) /// /// - /// await client.TransferOrders.SearchAsync( + /// await client.Default.TransferOrders.SearchAsync( /// new SearchTransferOrdersRequest /// { /// Query = new TransferOrderQuery @@ -239,7 +239,7 @@ public async Task> SearchAsync( /// - Tracking information (if available) /// /// - /// await client.TransferOrders.GetAsync( + /// await client.Default.TransferOrders.GetAsync( /// new GetTransferOrdersRequest { TransferOrderId = "transfer_order_id" } /// ); /// @@ -294,7 +294,7 @@ public async Task GetAsync( /// Creates a [transfer_order.updated](webhook:transfer_order.updated) webhook event. /// /// - /// await client.TransferOrders.UpdateAsync( + /// await client.Default.TransferOrders.UpdateAsync( /// new UpdateTransferOrderRequest /// { /// TransferOrderId = "transfer_order_id", @@ -375,7 +375,7 @@ public async Task UpdateAsync( /// Creates a [transfer_order.deleted](webhook:transfer_order.deleted) webhook event. /// /// - /// await client.TransferOrders.DeleteAsync( + /// await client.Default.TransferOrders.DeleteAsync( /// new DeleteTransferOrdersRequest { TransferOrderId = "transfer_order_id", Version = 1000000 } /// ); /// @@ -442,7 +442,7 @@ public async Task DeleteAsync( /// Creates a [transfer_order.updated](webhook:transfer_order.updated) webhook event. /// /// - /// await client.TransferOrders.CancelAsync( + /// await client.Default.TransferOrders.CancelAsync( /// new CancelTransferOrderRequest /// { /// TransferOrderId = "transfer_order_id", @@ -516,7 +516,7 @@ public async Task CancelAsync( /// Creates a [transfer_order.updated](webhook:transfer_order.updated) webhook event. /// /// - /// await client.TransferOrders.ReceiveAsync( + /// await client.Default.TransferOrders.ReceiveAsync( /// new ReceiveTransferOrderRequest /// { /// TransferOrderId = "transfer_order_id", @@ -601,7 +601,7 @@ public async Task ReceiveAsync( /// Creates a [transfer_order.updated](webhook:transfer_order.updated) webhook event. /// /// - /// await client.TransferOrders.StartAsync( + /// await client.Default.TransferOrders.StartAsync( /// new StartTransferOrderRequest /// { /// TransferOrderId = "transfer_order_id", diff --git a/src/Square/Types/AcceptDisputeResponse.cs b/src/Square/Default/Types/AcceptDisputeResponse.cs similarity index 96% rename from src/Square/Types/AcceptDisputeResponse.cs rename to src/Square/Default/Types/AcceptDisputeResponse.cs index a8ff3780..40c9df95 100644 --- a/src/Square/Types/AcceptDisputeResponse.cs +++ b/src/Square/Default/Types/AcceptDisputeResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields in an `AcceptDispute` response. diff --git a/src/Square/Types/AcceptedPaymentMethods.cs b/src/Square/Default/Types/AcceptedPaymentMethods.cs similarity index 97% rename from src/Square/Types/AcceptedPaymentMethods.cs rename to src/Square/Default/Types/AcceptedPaymentMethods.cs index 371051f6..de52e9b6 100644 --- a/src/Square/Types/AcceptedPaymentMethods.cs +++ b/src/Square/Default/Types/AcceptedPaymentMethods.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record AcceptedPaymentMethods : IJsonOnDeserialized diff --git a/src/Square/Types/AccumulateLoyaltyPointsResponse.cs b/src/Square/Default/Types/AccumulateLoyaltyPointsResponse.cs similarity index 97% rename from src/Square/Types/AccumulateLoyaltyPointsResponse.cs rename to src/Square/Default/Types/AccumulateLoyaltyPointsResponse.cs index 0f60a13e..1b2fb597 100644 --- a/src/Square/Types/AccumulateLoyaltyPointsResponse.cs +++ b/src/Square/Default/Types/AccumulateLoyaltyPointsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an [AccumulateLoyaltyPoints](api-endpoint:Loyalty-AccumulateLoyaltyPoints) response. diff --git a/src/Square/Types/AchDetails.cs b/src/Square/Default/Types/AchDetails.cs similarity index 97% rename from src/Square/Types/AchDetails.cs rename to src/Square/Default/Types/AchDetails.cs index 830d0f82..9a797eb8 100644 --- a/src/Square/Types/AchDetails.cs +++ b/src/Square/Default/Types/AchDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// ACH-specific details about `BANK_ACCOUNT` type payments with the `transfer_type` of `ACH`. diff --git a/src/Square/Types/ActionCancelReason.cs b/src/Square/Default/Types/ActionCancelReason.cs similarity index 98% rename from src/Square/Types/ActionCancelReason.cs rename to src/Square/Default/Types/ActionCancelReason.cs index e2c086df..66e6ee92 100644 --- a/src/Square/Types/ActionCancelReason.cs +++ b/src/Square/Default/Types/ActionCancelReason.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/ActivityType.cs b/src/Square/Default/Types/ActivityType.cs similarity index 99% rename from src/Square/Types/ActivityType.cs rename to src/Square/Default/Types/ActivityType.cs index 8c612334..e3150991 100644 --- a/src/Square/Types/ActivityType.cs +++ b/src/Square/Default/Types/ActivityType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/AddGroupToCustomerResponse.cs b/src/Square/Default/Types/AddGroupToCustomerResponse.cs similarity index 96% rename from src/Square/Types/AddGroupToCustomerResponse.cs rename to src/Square/Default/Types/AddGroupToCustomerResponse.cs index 2c5d7757..b5189dbe 100644 --- a/src/Square/Types/AddGroupToCustomerResponse.cs +++ b/src/Square/Default/Types/AddGroupToCustomerResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/AdditionalRecipient.cs b/src/Square/Default/Types/AdditionalRecipient.cs similarity index 97% rename from src/Square/Types/AdditionalRecipient.cs rename to src/Square/Default/Types/AdditionalRecipient.cs index a77751da..8ea488e4 100644 --- a/src/Square/Types/AdditionalRecipient.cs +++ b/src/Square/Default/Types/AdditionalRecipient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an additional recipient (other than the merchant) receiving a portion of this tender. diff --git a/src/Square/Types/Address.cs b/src/Square/Default/Types/Address.cs similarity index 99% rename from src/Square/Types/Address.cs rename to src/Square/Default/Types/Address.cs index 64065e61..e0df27c6 100644 --- a/src/Square/Types/Address.cs +++ b/src/Square/Default/Types/Address.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a postal address in a country. diff --git a/src/Square/Types/AdjustLoyaltyPointsResponse.cs b/src/Square/Default/Types/AdjustLoyaltyPointsResponse.cs similarity index 96% rename from src/Square/Types/AdjustLoyaltyPointsResponse.cs rename to src/Square/Default/Types/AdjustLoyaltyPointsResponse.cs index c6f67bac..821b7a1e 100644 --- a/src/Square/Types/AdjustLoyaltyPointsResponse.cs +++ b/src/Square/Default/Types/AdjustLoyaltyPointsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an [AdjustLoyaltyPoints](api-endpoint:Loyalty-AdjustLoyaltyPoints) request. diff --git a/src/Square/Types/AfterpayDetails.cs b/src/Square/Default/Types/AfterpayDetails.cs similarity index 95% rename from src/Square/Types/AfterpayDetails.cs rename to src/Square/Default/Types/AfterpayDetails.cs index ae411e5f..9fe64dc7 100644 --- a/src/Square/Types/AfterpayDetails.cs +++ b/src/Square/Default/Types/AfterpayDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Additional details about Afterpay payments. diff --git a/src/Square/Types/ApplicationDetails.cs b/src/Square/Default/Types/ApplicationDetails.cs similarity index 97% rename from src/Square/Types/ApplicationDetails.cs rename to src/Square/Default/Types/ApplicationDetails.cs index 9b2face4..543ec66c 100644 --- a/src/Square/Types/ApplicationDetails.cs +++ b/src/Square/Default/Types/ApplicationDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Details about the application that took the payment. diff --git a/src/Square/Types/ApplicationDetailsExternalSquareProduct.cs b/src/Square/Default/Types/ApplicationDetailsExternalSquareProduct.cs similarity index 99% rename from src/Square/Types/ApplicationDetailsExternalSquareProduct.cs rename to src/Square/Default/Types/ApplicationDetailsExternalSquareProduct.cs index 34bb75ff..3776c4fb 100644 --- a/src/Square/Types/ApplicationDetailsExternalSquareProduct.cs +++ b/src/Square/Default/Types/ApplicationDetailsExternalSquareProduct.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/AppointmentSegment.cs b/src/Square/Default/Types/AppointmentSegment.cs similarity index 98% rename from src/Square/Types/AppointmentSegment.cs rename to src/Square/Default/Types/AppointmentSegment.cs index bbc2206e..0f93ca64 100644 --- a/src/Square/Types/AppointmentSegment.cs +++ b/src/Square/Default/Types/AppointmentSegment.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines an appointment segment of a booking. diff --git a/src/Square/Types/ArchivedState.cs b/src/Square/Default/Types/ArchivedState.cs similarity index 98% rename from src/Square/Types/ArchivedState.cs rename to src/Square/Default/Types/ArchivedState.cs index 2ad09e43..d5fe8a26 100644 --- a/src/Square/Types/ArchivedState.cs +++ b/src/Square/Default/Types/ArchivedState.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/Availability.cs b/src/Square/Default/Types/Availability.cs similarity index 97% rename from src/Square/Types/Availability.cs rename to src/Square/Default/Types/Availability.cs index 3d1ad796..aa2a5e99 100644 --- a/src/Square/Types/Availability.cs +++ b/src/Square/Default/Types/Availability.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines an appointment slot that encapsulates the appointment segments, location and starting time available for booking. diff --git a/src/Square/Types/BankAccount.cs b/src/Square/Default/Types/BankAccount.cs similarity index 99% rename from src/Square/Types/BankAccount.cs rename to src/Square/Default/Types/BankAccount.cs index 0239b1eb..9b1e9955 100644 --- a/src/Square/Types/BankAccount.cs +++ b/src/Square/Default/Types/BankAccount.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a bank account. For more information about diff --git a/src/Square/Types/BankAccountCreatedEvent.cs b/src/Square/Default/Types/BankAccountCreatedEvent.cs similarity index 98% rename from src/Square/Types/BankAccountCreatedEvent.cs rename to src/Square/Default/Types/BankAccountCreatedEvent.cs index f7198e5c..5ee91c84 100644 --- a/src/Square/Types/BankAccountCreatedEvent.cs +++ b/src/Square/Default/Types/BankAccountCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when you link an external bank account to a Square diff --git a/src/Square/Types/BankAccountCreatedEventData.cs b/src/Square/Default/Types/BankAccountCreatedEventData.cs similarity index 96% rename from src/Square/Types/BankAccountCreatedEventData.cs rename to src/Square/Default/Types/BankAccountCreatedEventData.cs index e6d44f1b..9fe43652 100644 --- a/src/Square/Types/BankAccountCreatedEventData.cs +++ b/src/Square/Default/Types/BankAccountCreatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record BankAccountCreatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/BankAccountCreatedEventObject.cs b/src/Square/Default/Types/BankAccountCreatedEventObject.cs similarity index 95% rename from src/Square/Types/BankAccountCreatedEventObject.cs rename to src/Square/Default/Types/BankAccountCreatedEventObject.cs index fe7dd543..5043314e 100644 --- a/src/Square/Types/BankAccountCreatedEventObject.cs +++ b/src/Square/Default/Types/BankAccountCreatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record BankAccountCreatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/BankAccountDisabledEvent.cs b/src/Square/Default/Types/BankAccountDisabledEvent.cs similarity index 97% rename from src/Square/Types/BankAccountDisabledEvent.cs rename to src/Square/Default/Types/BankAccountDisabledEvent.cs index d69b80cc..c80b5dfb 100644 --- a/src/Square/Types/BankAccountDisabledEvent.cs +++ b/src/Square/Default/Types/BankAccountDisabledEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when Square sets the status of a diff --git a/src/Square/Types/BankAccountDisabledEventData.cs b/src/Square/Default/Types/BankAccountDisabledEventData.cs similarity index 96% rename from src/Square/Types/BankAccountDisabledEventData.cs rename to src/Square/Default/Types/BankAccountDisabledEventData.cs index 3b1d8422..912235b5 100644 --- a/src/Square/Types/BankAccountDisabledEventData.cs +++ b/src/Square/Default/Types/BankAccountDisabledEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record BankAccountDisabledEventData : IJsonOnDeserialized diff --git a/src/Square/Types/BankAccountDisabledEventObject.cs b/src/Square/Default/Types/BankAccountDisabledEventObject.cs similarity index 95% rename from src/Square/Types/BankAccountDisabledEventObject.cs rename to src/Square/Default/Types/BankAccountDisabledEventObject.cs index dbad600b..0dadd0f0 100644 --- a/src/Square/Types/BankAccountDisabledEventObject.cs +++ b/src/Square/Default/Types/BankAccountDisabledEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record BankAccountDisabledEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/BankAccountPaymentDetails.cs b/src/Square/Default/Types/BankAccountPaymentDetails.cs similarity index 98% rename from src/Square/Types/BankAccountPaymentDetails.cs rename to src/Square/Default/Types/BankAccountPaymentDetails.cs index a92c0e7a..d7b79507 100644 --- a/src/Square/Types/BankAccountPaymentDetails.cs +++ b/src/Square/Default/Types/BankAccountPaymentDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Additional details about BANK_ACCOUNT type payments. diff --git a/src/Square/Types/BankAccountStatus.cs b/src/Square/Default/Types/BankAccountStatus.cs similarity index 98% rename from src/Square/Types/BankAccountStatus.cs rename to src/Square/Default/Types/BankAccountStatus.cs index 70b293f0..a1d0eb62 100644 --- a/src/Square/Types/BankAccountStatus.cs +++ b/src/Square/Default/Types/BankAccountStatus.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/BankAccountType.cs b/src/Square/Default/Types/BankAccountType.cs similarity index 98% rename from src/Square/Types/BankAccountType.cs rename to src/Square/Default/Types/BankAccountType.cs index 0a3efd7b..5c1cefac 100644 --- a/src/Square/Types/BankAccountType.cs +++ b/src/Square/Default/Types/BankAccountType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/BankAccountVerifiedEvent.cs b/src/Square/Default/Types/BankAccountVerifiedEvent.cs similarity index 97% rename from src/Square/Types/BankAccountVerifiedEvent.cs rename to src/Square/Default/Types/BankAccountVerifiedEvent.cs index 959b5247..4cd4e94e 100644 --- a/src/Square/Types/BankAccountVerifiedEvent.cs +++ b/src/Square/Default/Types/BankAccountVerifiedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when Square sets the status of a diff --git a/src/Square/Types/BankAccountVerifiedEventData.cs b/src/Square/Default/Types/BankAccountVerifiedEventData.cs similarity index 96% rename from src/Square/Types/BankAccountVerifiedEventData.cs rename to src/Square/Default/Types/BankAccountVerifiedEventData.cs index fa511775..8c38a0de 100644 --- a/src/Square/Types/BankAccountVerifiedEventData.cs +++ b/src/Square/Default/Types/BankAccountVerifiedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record BankAccountVerifiedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/BankAccountVerifiedEventObject.cs b/src/Square/Default/Types/BankAccountVerifiedEventObject.cs similarity index 95% rename from src/Square/Types/BankAccountVerifiedEventObject.cs rename to src/Square/Default/Types/BankAccountVerifiedEventObject.cs index 808a05bc..8ac2019e 100644 --- a/src/Square/Types/BankAccountVerifiedEventObject.cs +++ b/src/Square/Default/Types/BankAccountVerifiedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record BankAccountVerifiedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/BatchChangeInventoryRequest.cs b/src/Square/Default/Types/BatchChangeInventoryRequest.cs similarity index 97% rename from src/Square/Types/BatchChangeInventoryRequest.cs rename to src/Square/Default/Types/BatchChangeInventoryRequest.cs index 51f2884e..32951fd1 100644 --- a/src/Square/Types/BatchChangeInventoryRequest.cs +++ b/src/Square/Default/Types/BatchChangeInventoryRequest.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record BatchChangeInventoryRequest : IJsonOnDeserialized diff --git a/src/Square/Types/BatchChangeInventoryResponse.cs b/src/Square/Default/Types/BatchChangeInventoryResponse.cs similarity index 96% rename from src/Square/Types/BatchChangeInventoryResponse.cs rename to src/Square/Default/Types/BatchChangeInventoryResponse.cs index c66c1514..cefdc65a 100644 --- a/src/Square/Types/BatchChangeInventoryResponse.cs +++ b/src/Square/Default/Types/BatchChangeInventoryResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record BatchChangeInventoryResponse : IJsonOnDeserialized diff --git a/src/Square/Types/BatchCreateTeamMembersResponse.cs b/src/Square/Default/Types/BatchCreateTeamMembersResponse.cs similarity index 96% rename from src/Square/Types/BatchCreateTeamMembersResponse.cs rename to src/Square/Default/Types/BatchCreateTeamMembersResponse.cs index 87e38586..00bc93c7 100644 --- a/src/Square/Types/BatchCreateTeamMembersResponse.cs +++ b/src/Square/Default/Types/BatchCreateTeamMembersResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a response from a bulk create request containing the created `TeamMember` objects or error messages. diff --git a/src/Square/Types/BatchCreateVendorsResponse.cs b/src/Square/Default/Types/BatchCreateVendorsResponse.cs similarity index 97% rename from src/Square/Types/BatchCreateVendorsResponse.cs rename to src/Square/Default/Types/BatchCreateVendorsResponse.cs index 08028442..fb5e0f7d 100644 --- a/src/Square/Types/BatchCreateVendorsResponse.cs +++ b/src/Square/Default/Types/BatchCreateVendorsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an output from a call to [BulkCreateVendors](api-endpoint:Vendors-BulkCreateVendors). diff --git a/src/Square/Types/BatchDeleteCatalogObjectsResponse.cs b/src/Square/Default/Types/BatchDeleteCatalogObjectsResponse.cs similarity index 97% rename from src/Square/Types/BatchDeleteCatalogObjectsResponse.cs rename to src/Square/Default/Types/BatchDeleteCatalogObjectsResponse.cs index 423a5043..9a025cbf 100644 --- a/src/Square/Types/BatchDeleteCatalogObjectsResponse.cs +++ b/src/Square/Default/Types/BatchDeleteCatalogObjectsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record BatchDeleteCatalogObjectsResponse : IJsonOnDeserialized diff --git a/src/Square/Types/BatchGetCatalogObjectsResponse.cs b/src/Square/Default/Types/BatchGetCatalogObjectsResponse.cs similarity index 96% rename from src/Square/Types/BatchGetCatalogObjectsResponse.cs rename to src/Square/Default/Types/BatchGetCatalogObjectsResponse.cs index ba7168d7..3c053ac4 100644 --- a/src/Square/Types/BatchGetCatalogObjectsResponse.cs +++ b/src/Square/Default/Types/BatchGetCatalogObjectsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record BatchGetCatalogObjectsResponse : IJsonOnDeserialized diff --git a/src/Square/Types/BatchGetInventoryChangesResponse.cs b/src/Square/Default/Types/BatchGetInventoryChangesResponse.cs similarity index 97% rename from src/Square/Types/BatchGetInventoryChangesResponse.cs rename to src/Square/Default/Types/BatchGetInventoryChangesResponse.cs index 54c1f22b..9139b6a9 100644 --- a/src/Square/Types/BatchGetInventoryChangesResponse.cs +++ b/src/Square/Default/Types/BatchGetInventoryChangesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record BatchGetInventoryChangesResponse : IJsonOnDeserialized diff --git a/src/Square/Types/BatchGetInventoryCountsRequest.cs b/src/Square/Default/Types/BatchGetInventoryCountsRequest.cs similarity index 98% rename from src/Square/Types/BatchGetInventoryCountsRequest.cs rename to src/Square/Default/Types/BatchGetInventoryCountsRequest.cs index 7b5caf0b..9b61bdd6 100644 --- a/src/Square/Types/BatchGetInventoryCountsRequest.cs +++ b/src/Square/Default/Types/BatchGetInventoryCountsRequest.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record BatchGetInventoryCountsRequest : IJsonOnDeserialized diff --git a/src/Square/Types/BatchGetInventoryCountsResponse.cs b/src/Square/Default/Types/BatchGetInventoryCountsResponse.cs similarity index 97% rename from src/Square/Types/BatchGetInventoryCountsResponse.cs rename to src/Square/Default/Types/BatchGetInventoryCountsResponse.cs index 0154ba81..8985adc0 100644 --- a/src/Square/Types/BatchGetInventoryCountsResponse.cs +++ b/src/Square/Default/Types/BatchGetInventoryCountsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record BatchGetInventoryCountsResponse : IJsonOnDeserialized diff --git a/src/Square/Types/BatchGetOrdersResponse.cs b/src/Square/Default/Types/BatchGetOrdersResponse.cs similarity index 96% rename from src/Square/Types/BatchGetOrdersResponse.cs rename to src/Square/Default/Types/BatchGetOrdersResponse.cs index 21e72463..359517c6 100644 --- a/src/Square/Types/BatchGetOrdersResponse.cs +++ b/src/Square/Default/Types/BatchGetOrdersResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/BatchGetVendorsResponse.cs b/src/Square/Default/Types/BatchGetVendorsResponse.cs similarity index 97% rename from src/Square/Types/BatchGetVendorsResponse.cs rename to src/Square/Default/Types/BatchGetVendorsResponse.cs index a885db23..92a9bb51 100644 --- a/src/Square/Types/BatchGetVendorsResponse.cs +++ b/src/Square/Default/Types/BatchGetVendorsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an output from a call to [BulkRetrieveVendors](api-endpoint:Vendors-BulkRetrieveVendors). diff --git a/src/Square/Types/BatchRetrieveInventoryChangesRequest.cs b/src/Square/Default/Types/BatchRetrieveInventoryChangesRequest.cs similarity index 98% rename from src/Square/Types/BatchRetrieveInventoryChangesRequest.cs rename to src/Square/Default/Types/BatchRetrieveInventoryChangesRequest.cs index 137bce5d..7c13a633 100644 --- a/src/Square/Types/BatchRetrieveInventoryChangesRequest.cs +++ b/src/Square/Default/Types/BatchRetrieveInventoryChangesRequest.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record BatchRetrieveInventoryChangesRequest : IJsonOnDeserialized diff --git a/src/Square/Types/BatchUpdateTeamMembersResponse.cs b/src/Square/Default/Types/BatchUpdateTeamMembersResponse.cs similarity index 96% rename from src/Square/Types/BatchUpdateTeamMembersResponse.cs rename to src/Square/Default/Types/BatchUpdateTeamMembersResponse.cs index 1a64d7cf..eae679d5 100644 --- a/src/Square/Types/BatchUpdateTeamMembersResponse.cs +++ b/src/Square/Default/Types/BatchUpdateTeamMembersResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a response from a bulk update request containing the updated `TeamMember` objects or error messages. diff --git a/src/Square/Types/BatchUpdateVendorsResponse.cs b/src/Square/Default/Types/BatchUpdateVendorsResponse.cs similarity index 97% rename from src/Square/Types/BatchUpdateVendorsResponse.cs rename to src/Square/Default/Types/BatchUpdateVendorsResponse.cs index 40699313..9e88baa4 100644 --- a/src/Square/Types/BatchUpdateVendorsResponse.cs +++ b/src/Square/Default/Types/BatchUpdateVendorsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an output from a call to [BulkUpdateVendors](api-endpoint:Vendors-BulkUpdateVendors). diff --git a/src/Square/Types/BatchUpsertCatalogObjectsResponse.cs b/src/Square/Default/Types/BatchUpsertCatalogObjectsResponse.cs similarity index 97% rename from src/Square/Types/BatchUpsertCatalogObjectsResponse.cs rename to src/Square/Default/Types/BatchUpsertCatalogObjectsResponse.cs index 7ddbd3f1..f09a2c02 100644 --- a/src/Square/Types/BatchUpsertCatalogObjectsResponse.cs +++ b/src/Square/Default/Types/BatchUpsertCatalogObjectsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record BatchUpsertCatalogObjectsResponse : IJsonOnDeserialized diff --git a/src/Square/Types/BatchUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest.cs b/src/Square/Default/Types/BatchUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest.cs similarity index 98% rename from src/Square/Types/BatchUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest.cs rename to src/Square/Default/Types/BatchUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest.cs index ce0cc62e..2644ebd7 100644 --- a/src/Square/Types/BatchUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest.cs +++ b/src/Square/Default/Types/BatchUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an individual upsert request in a [BulkUpsertCustomerCustomAttributes](api-endpoint:CustomerCustomAttributes-BulkUpsertCustomerCustomAttributes) diff --git a/src/Square/Types/BatchUpsertCustomerCustomAttributesResponse.cs b/src/Square/Default/Types/BatchUpsertCustomerCustomAttributesResponse.cs similarity index 97% rename from src/Square/Types/BatchUpsertCustomerCustomAttributesResponse.cs rename to src/Square/Default/Types/BatchUpsertCustomerCustomAttributesResponse.cs index d79a270c..a20fa840 100644 --- a/src/Square/Types/BatchUpsertCustomerCustomAttributesResponse.cs +++ b/src/Square/Default/Types/BatchUpsertCustomerCustomAttributesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [BulkUpsertCustomerCustomAttributes](api-endpoint:CustomerCustomAttributes-BulkUpsertCustomerCustomAttributes) response, diff --git a/src/Square/Types/BatchUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse.cs b/src/Square/Default/Types/BatchUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse.cs similarity index 97% rename from src/Square/Types/BatchUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse.cs rename to src/Square/Default/Types/BatchUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse.cs index d50df159..95c7b3a9 100644 --- a/src/Square/Types/BatchUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse.cs +++ b/src/Square/Default/Types/BatchUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a response for an individual upsert request in a [BulkUpsertCustomerCustomAttributes](api-endpoint:CustomerCustomAttributes-BulkUpsertCustomerCustomAttributes) operation. diff --git a/src/Square/Types/Booking.cs b/src/Square/Default/Types/Booking.cs similarity index 99% rename from src/Square/Types/Booking.cs rename to src/Square/Default/Types/Booking.cs index c5fc0b38..666813e1 100644 --- a/src/Square/Types/Booking.cs +++ b/src/Square/Default/Types/Booking.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a booking as a time-bound service contract for a seller's staff member to provide a specified service diff --git a/src/Square/Types/BookingBookingSource.cs b/src/Square/Default/Types/BookingBookingSource.cs similarity index 98% rename from src/Square/Types/BookingBookingSource.cs rename to src/Square/Default/Types/BookingBookingSource.cs index fdfe1ee9..c065e0eb 100644 --- a/src/Square/Types/BookingBookingSource.cs +++ b/src/Square/Default/Types/BookingBookingSource.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/BookingCreatedEvent.cs b/src/Square/Default/Types/BookingCreatedEvent.cs similarity index 97% rename from src/Square/Types/BookingCreatedEvent.cs rename to src/Square/Default/Types/BookingCreatedEvent.cs index 7f623d08..4ba1c58a 100644 --- a/src/Square/Types/BookingCreatedEvent.cs +++ b/src/Square/Default/Types/BookingCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a booking is created. diff --git a/src/Square/Types/BookingCreatedEventData.cs b/src/Square/Default/Types/BookingCreatedEventData.cs similarity index 96% rename from src/Square/Types/BookingCreatedEventData.cs rename to src/Square/Default/Types/BookingCreatedEventData.cs index 2fac79ae..d05e57b5 100644 --- a/src/Square/Types/BookingCreatedEventData.cs +++ b/src/Square/Default/Types/BookingCreatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record BookingCreatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/BookingCreatedEventObject.cs b/src/Square/Default/Types/BookingCreatedEventObject.cs similarity index 95% rename from src/Square/Types/BookingCreatedEventObject.cs rename to src/Square/Default/Types/BookingCreatedEventObject.cs index cdd8388e..8e889c26 100644 --- a/src/Square/Types/BookingCreatedEventObject.cs +++ b/src/Square/Default/Types/BookingCreatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record BookingCreatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/BookingCreatorDetails.cs b/src/Square/Default/Types/BookingCreatorDetails.cs similarity index 97% rename from src/Square/Types/BookingCreatorDetails.cs rename to src/Square/Default/Types/BookingCreatorDetails.cs index 58cb90a4..745ced8d 100644 --- a/src/Square/Types/BookingCreatorDetails.cs +++ b/src/Square/Default/Types/BookingCreatorDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Information about a booking creator. diff --git a/src/Square/Types/BookingCreatorDetailsCreatorType.cs b/src/Square/Default/Types/BookingCreatorDetailsCreatorType.cs similarity index 98% rename from src/Square/Types/BookingCreatorDetailsCreatorType.cs rename to src/Square/Default/Types/BookingCreatorDetailsCreatorType.cs index bbb2223c..d91a61c5 100644 --- a/src/Square/Types/BookingCreatorDetailsCreatorType.cs +++ b/src/Square/Default/Types/BookingCreatorDetailsCreatorType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/BookingCustomAttributeDefinitionOwnedCreatedEvent.cs b/src/Square/Default/Types/BookingCustomAttributeDefinitionOwnedCreatedEvent.cs similarity index 98% rename from src/Square/Types/BookingCustomAttributeDefinitionOwnedCreatedEvent.cs rename to src/Square/Default/Types/BookingCustomAttributeDefinitionOwnedCreatedEvent.cs index b83793ca..bceae869 100644 --- a/src/Square/Types/BookingCustomAttributeDefinitionOwnedCreatedEvent.cs +++ b/src/Square/Default/Types/BookingCustomAttributeDefinitionOwnedCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a booking [custom attribute definition](entity:CustomAttributeDefinition) diff --git a/src/Square/Types/BookingCustomAttributeDefinitionOwnedDeletedEvent.cs b/src/Square/Default/Types/BookingCustomAttributeDefinitionOwnedDeletedEvent.cs similarity index 98% rename from src/Square/Types/BookingCustomAttributeDefinitionOwnedDeletedEvent.cs rename to src/Square/Default/Types/BookingCustomAttributeDefinitionOwnedDeletedEvent.cs index 16a4f55f..48d547ac 100644 --- a/src/Square/Types/BookingCustomAttributeDefinitionOwnedDeletedEvent.cs +++ b/src/Square/Default/Types/BookingCustomAttributeDefinitionOwnedDeletedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a booking [custom attribute definition](entity:CustomAttributeDefinition) diff --git a/src/Square/Types/BookingCustomAttributeDefinitionOwnedUpdatedEvent.cs b/src/Square/Default/Types/BookingCustomAttributeDefinitionOwnedUpdatedEvent.cs similarity index 98% rename from src/Square/Types/BookingCustomAttributeDefinitionOwnedUpdatedEvent.cs rename to src/Square/Default/Types/BookingCustomAttributeDefinitionOwnedUpdatedEvent.cs index 4187aec0..689cdf9a 100644 --- a/src/Square/Types/BookingCustomAttributeDefinitionOwnedUpdatedEvent.cs +++ b/src/Square/Default/Types/BookingCustomAttributeDefinitionOwnedUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a booking [custom attribute definition](entity:CustomAttributeDefinition) diff --git a/src/Square/Types/BookingCustomAttributeDefinitionVisibleCreatedEvent.cs b/src/Square/Default/Types/BookingCustomAttributeDefinitionVisibleCreatedEvent.cs similarity index 98% rename from src/Square/Types/BookingCustomAttributeDefinitionVisibleCreatedEvent.cs rename to src/Square/Default/Types/BookingCustomAttributeDefinitionVisibleCreatedEvent.cs index 4f8f5570..fef633fd 100644 --- a/src/Square/Types/BookingCustomAttributeDefinitionVisibleCreatedEvent.cs +++ b/src/Square/Default/Types/BookingCustomAttributeDefinitionVisibleCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a booking [custom attribute definition](entity:CustomAttributeDefinition) diff --git a/src/Square/Types/BookingCustomAttributeDefinitionVisibleDeletedEvent.cs b/src/Square/Default/Types/BookingCustomAttributeDefinitionVisibleDeletedEvent.cs similarity index 98% rename from src/Square/Types/BookingCustomAttributeDefinitionVisibleDeletedEvent.cs rename to src/Square/Default/Types/BookingCustomAttributeDefinitionVisibleDeletedEvent.cs index eeedd411..c0c190a3 100644 --- a/src/Square/Types/BookingCustomAttributeDefinitionVisibleDeletedEvent.cs +++ b/src/Square/Default/Types/BookingCustomAttributeDefinitionVisibleDeletedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a booking [custom attribute definition](entity:CustomAttributeDefinition) diff --git a/src/Square/Types/BookingCustomAttributeDefinitionVisibleUpdatedEvent.cs b/src/Square/Default/Types/BookingCustomAttributeDefinitionVisibleUpdatedEvent.cs similarity index 98% rename from src/Square/Types/BookingCustomAttributeDefinitionVisibleUpdatedEvent.cs rename to src/Square/Default/Types/BookingCustomAttributeDefinitionVisibleUpdatedEvent.cs index 475d42ac..72ba9f63 100644 --- a/src/Square/Types/BookingCustomAttributeDefinitionVisibleUpdatedEvent.cs +++ b/src/Square/Default/Types/BookingCustomAttributeDefinitionVisibleUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a booking [custom attribute definition](entity:CustomAttributeDefinition) diff --git a/src/Square/Types/BookingCustomAttributeDeleteRequest.cs b/src/Square/Default/Types/BookingCustomAttributeDeleteRequest.cs similarity index 97% rename from src/Square/Types/BookingCustomAttributeDeleteRequest.cs rename to src/Square/Default/Types/BookingCustomAttributeDeleteRequest.cs index a7bccfab..09a98dfd 100644 --- a/src/Square/Types/BookingCustomAttributeDeleteRequest.cs +++ b/src/Square/Default/Types/BookingCustomAttributeDeleteRequest.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an individual delete request in a [BulkDeleteBookingCustomAttributes](api-endpoint:BookingCustomAttributes-BulkDeleteBookingCustomAttributes) diff --git a/src/Square/Types/BookingCustomAttributeDeleteResponse.cs b/src/Square/Default/Types/BookingCustomAttributeDeleteResponse.cs similarity index 96% rename from src/Square/Types/BookingCustomAttributeDeleteResponse.cs rename to src/Square/Default/Types/BookingCustomAttributeDeleteResponse.cs index d23cc09f..e74e7276 100644 --- a/src/Square/Types/BookingCustomAttributeDeleteResponse.cs +++ b/src/Square/Default/Types/BookingCustomAttributeDeleteResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a response for an individual upsert request in a [BulkDeleteBookingCustomAttributes](api-endpoint:BookingCustomAttributes-BulkDeleteBookingCustomAttributes) operation. diff --git a/src/Square/Types/BookingCustomAttributeOwnedDeletedEvent.cs b/src/Square/Default/Types/BookingCustomAttributeOwnedDeletedEvent.cs similarity index 98% rename from src/Square/Types/BookingCustomAttributeOwnedDeletedEvent.cs rename to src/Square/Default/Types/BookingCustomAttributeOwnedDeletedEvent.cs index 5fbcbed9..a4379363 100644 --- a/src/Square/Types/BookingCustomAttributeOwnedDeletedEvent.cs +++ b/src/Square/Default/Types/BookingCustomAttributeOwnedDeletedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a booking [custom attribute](entity:CustomAttribute) diff --git a/src/Square/Types/BookingCustomAttributeOwnedUpdatedEvent.cs b/src/Square/Default/Types/BookingCustomAttributeOwnedUpdatedEvent.cs similarity index 97% rename from src/Square/Types/BookingCustomAttributeOwnedUpdatedEvent.cs rename to src/Square/Default/Types/BookingCustomAttributeOwnedUpdatedEvent.cs index fb780dee..690ebfe3 100644 --- a/src/Square/Types/BookingCustomAttributeOwnedUpdatedEvent.cs +++ b/src/Square/Default/Types/BookingCustomAttributeOwnedUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a booking [custom attribute](entity:CustomAttribute) diff --git a/src/Square/Types/BookingCustomAttributeUpsertRequest.cs b/src/Square/Default/Types/BookingCustomAttributeUpsertRequest.cs similarity index 98% rename from src/Square/Types/BookingCustomAttributeUpsertRequest.cs rename to src/Square/Default/Types/BookingCustomAttributeUpsertRequest.cs index cbd2c6a3..4ce165d8 100644 --- a/src/Square/Types/BookingCustomAttributeUpsertRequest.cs +++ b/src/Square/Default/Types/BookingCustomAttributeUpsertRequest.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an individual upsert request in a [BulkUpsertBookingCustomAttributes](api-endpoint:BookingCustomAttributes-BulkUpsertBookingCustomAttributes) diff --git a/src/Square/Types/BookingCustomAttributeUpsertResponse.cs b/src/Square/Default/Types/BookingCustomAttributeUpsertResponse.cs similarity index 97% rename from src/Square/Types/BookingCustomAttributeUpsertResponse.cs rename to src/Square/Default/Types/BookingCustomAttributeUpsertResponse.cs index 778eefdb..091ab2ff 100644 --- a/src/Square/Types/BookingCustomAttributeUpsertResponse.cs +++ b/src/Square/Default/Types/BookingCustomAttributeUpsertResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a response for an individual upsert request in a [BulkUpsertBookingCustomAttributes](api-endpoint:BookingCustomAttributes-BulkUpsertBookingCustomAttributes) operation. diff --git a/src/Square/Types/BookingCustomAttributeVisibleDeletedEvent.cs b/src/Square/Default/Types/BookingCustomAttributeVisibleDeletedEvent.cs similarity index 98% rename from src/Square/Types/BookingCustomAttributeVisibleDeletedEvent.cs rename to src/Square/Default/Types/BookingCustomAttributeVisibleDeletedEvent.cs index d2d6b3ee..b88cbc68 100644 --- a/src/Square/Types/BookingCustomAttributeVisibleDeletedEvent.cs +++ b/src/Square/Default/Types/BookingCustomAttributeVisibleDeletedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a booking [custom attribute](entity:CustomAttribute) with diff --git a/src/Square/Types/BookingCustomAttributeVisibleUpdatedEvent.cs b/src/Square/Default/Types/BookingCustomAttributeVisibleUpdatedEvent.cs similarity index 98% rename from src/Square/Types/BookingCustomAttributeVisibleUpdatedEvent.cs rename to src/Square/Default/Types/BookingCustomAttributeVisibleUpdatedEvent.cs index 3067d6fd..9fa05d34 100644 --- a/src/Square/Types/BookingCustomAttributeVisibleUpdatedEvent.cs +++ b/src/Square/Default/Types/BookingCustomAttributeVisibleUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a booking [custom attribute](entity:CustomAttribute) diff --git a/src/Square/Types/BookingStatus.cs b/src/Square/Default/Types/BookingStatus.cs similarity index 98% rename from src/Square/Types/BookingStatus.cs rename to src/Square/Default/Types/BookingStatus.cs index 00720145..04d2a6a7 100644 --- a/src/Square/Types/BookingStatus.cs +++ b/src/Square/Default/Types/BookingStatus.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/BookingUpdatedEvent.cs b/src/Square/Default/Types/BookingUpdatedEvent.cs similarity index 97% rename from src/Square/Types/BookingUpdatedEvent.cs rename to src/Square/Default/Types/BookingUpdatedEvent.cs index 247a2c05..f175a779 100644 --- a/src/Square/Types/BookingUpdatedEvent.cs +++ b/src/Square/Default/Types/BookingUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a booking is updated or cancelled. diff --git a/src/Square/Types/BookingUpdatedEventData.cs b/src/Square/Default/Types/BookingUpdatedEventData.cs similarity index 96% rename from src/Square/Types/BookingUpdatedEventData.cs rename to src/Square/Default/Types/BookingUpdatedEventData.cs index 3251d3cd..a78e3892 100644 --- a/src/Square/Types/BookingUpdatedEventData.cs +++ b/src/Square/Default/Types/BookingUpdatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record BookingUpdatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/BookingUpdatedEventObject.cs b/src/Square/Default/Types/BookingUpdatedEventObject.cs similarity index 95% rename from src/Square/Types/BookingUpdatedEventObject.cs rename to src/Square/Default/Types/BookingUpdatedEventObject.cs index 696b21b9..cbf4442c 100644 --- a/src/Square/Types/BookingUpdatedEventObject.cs +++ b/src/Square/Default/Types/BookingUpdatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record BookingUpdatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/Break.cs b/src/Square/Default/Types/Break.cs similarity index 98% rename from src/Square/Types/Break.cs rename to src/Square/Default/Types/Break.cs index 6592a200..fa56eb7e 100644 --- a/src/Square/Types/Break.cs +++ b/src/Square/Default/Types/Break.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A record of a team member's break on a [timecard](entity:Timecard). diff --git a/src/Square/Types/BreakType.cs b/src/Square/Default/Types/BreakType.cs similarity index 98% rename from src/Square/Types/BreakType.cs rename to src/Square/Default/Types/BreakType.cs index d84461b3..58a63df5 100644 --- a/src/Square/Types/BreakType.cs +++ b/src/Square/Default/Types/BreakType.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A template for a type of [break](entity:Break) that can be added to a diff --git a/src/Square/Types/BulkCreateCustomerData.cs b/src/Square/Default/Types/BulkCreateCustomerData.cs similarity index 98% rename from src/Square/Types/BulkCreateCustomerData.cs rename to src/Square/Default/Types/BulkCreateCustomerData.cs index c0add8d7..358242fb 100644 --- a/src/Square/Types/BulkCreateCustomerData.cs +++ b/src/Square/Default/Types/BulkCreateCustomerData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the customer data provided in individual create requests for a diff --git a/src/Square/Types/BulkCreateCustomersResponse.cs b/src/Square/Default/Types/BulkCreateCustomersResponse.cs similarity index 97% rename from src/Square/Types/BulkCreateCustomersResponse.cs rename to src/Square/Default/Types/BulkCreateCustomersResponse.cs index 05d55a32..b162648a 100644 --- a/src/Square/Types/BulkCreateCustomersResponse.cs +++ b/src/Square/Default/Types/BulkCreateCustomersResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields included in the response body from the diff --git a/src/Square/Types/BulkDeleteBookingCustomAttributesResponse.cs b/src/Square/Default/Types/BulkDeleteBookingCustomAttributesResponse.cs similarity index 97% rename from src/Square/Types/BulkDeleteBookingCustomAttributesResponse.cs rename to src/Square/Default/Types/BulkDeleteBookingCustomAttributesResponse.cs index d33d9eb7..24f07c98 100644 --- a/src/Square/Types/BulkDeleteBookingCustomAttributesResponse.cs +++ b/src/Square/Default/Types/BulkDeleteBookingCustomAttributesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [BulkDeleteBookingCustomAttributes](api-endpoint:BookingCustomAttributes-BulkDeleteBookingCustomAttributes) response, diff --git a/src/Square/Types/BulkDeleteCustomersResponse.cs b/src/Square/Default/Types/BulkDeleteCustomersResponse.cs similarity index 97% rename from src/Square/Types/BulkDeleteCustomersResponse.cs rename to src/Square/Default/Types/BulkDeleteCustomersResponse.cs index eb4b5c9d..c666739c 100644 --- a/src/Square/Types/BulkDeleteCustomersResponse.cs +++ b/src/Square/Default/Types/BulkDeleteCustomersResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields included in the response body from the diff --git a/src/Square/Types/BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest.cs b/src/Square/Default/Types/BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest.cs similarity index 97% rename from src/Square/Types/BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest.cs rename to src/Square/Default/Types/BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest.cs index 29c28a49..4b3a5411 100644 --- a/src/Square/Types/BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest.cs +++ b/src/Square/Default/Types/BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an individual delete request in a [BulkDeleteLocationCustomAttributes](api-endpoint:LocationCustomAttributes-BulkDeleteLocationCustomAttributes) diff --git a/src/Square/Types/BulkDeleteLocationCustomAttributesResponse.cs b/src/Square/Default/Types/BulkDeleteLocationCustomAttributesResponse.cs similarity index 97% rename from src/Square/Types/BulkDeleteLocationCustomAttributesResponse.cs rename to src/Square/Default/Types/BulkDeleteLocationCustomAttributesResponse.cs index 47052af5..001cfa2c 100644 --- a/src/Square/Types/BulkDeleteLocationCustomAttributesResponse.cs +++ b/src/Square/Default/Types/BulkDeleteLocationCustomAttributesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [BulkDeleteLocationCustomAttributes](api-endpoint:LocationCustomAttributes-BulkDeleteLocationCustomAttributes) response, diff --git a/src/Square/Types/BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse.cs b/src/Square/Default/Types/BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse.cs similarity index 97% rename from src/Square/Types/BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse.cs rename to src/Square/Default/Types/BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse.cs index d9c2e0be..51bdb8ac 100644 --- a/src/Square/Types/BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse.cs +++ b/src/Square/Default/Types/BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an individual delete response in a [BulkDeleteLocationCustomAttributes](api-endpoint:LocationCustomAttributes-BulkDeleteLocationCustomAttributes) diff --git a/src/Square/Types/BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest.cs b/src/Square/Default/Types/BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest.cs similarity index 97% rename from src/Square/Types/BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest.cs rename to src/Square/Default/Types/BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest.cs index 0d79aa64..6889ca03 100644 --- a/src/Square/Types/BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest.cs +++ b/src/Square/Default/Types/BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an individual delete request in a [BulkDeleteMerchantCustomAttributes](api-endpoint:MerchantCustomAttributes-BulkDeleteMerchantCustomAttributes) diff --git a/src/Square/Types/BulkDeleteMerchantCustomAttributesResponse.cs b/src/Square/Default/Types/BulkDeleteMerchantCustomAttributesResponse.cs similarity index 97% rename from src/Square/Types/BulkDeleteMerchantCustomAttributesResponse.cs rename to src/Square/Default/Types/BulkDeleteMerchantCustomAttributesResponse.cs index 3ccb38b2..20a6c0af 100644 --- a/src/Square/Types/BulkDeleteMerchantCustomAttributesResponse.cs +++ b/src/Square/Default/Types/BulkDeleteMerchantCustomAttributesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [BulkDeleteMerchantCustomAttributes](api-endpoint:MerchantCustomAttributes-BulkDeleteMerchantCustomAttributes) response, diff --git a/src/Square/Types/BulkDeleteMerchantCustomAttributesResponseMerchantCustomAttributeDeleteResponse.cs b/src/Square/Default/Types/BulkDeleteMerchantCustomAttributesResponseMerchantCustomAttributeDeleteResponse.cs similarity index 96% rename from src/Square/Types/BulkDeleteMerchantCustomAttributesResponseMerchantCustomAttributeDeleteResponse.cs rename to src/Square/Default/Types/BulkDeleteMerchantCustomAttributesResponseMerchantCustomAttributeDeleteResponse.cs index 0668e636..579ffad0 100644 --- a/src/Square/Types/BulkDeleteMerchantCustomAttributesResponseMerchantCustomAttributeDeleteResponse.cs +++ b/src/Square/Default/Types/BulkDeleteMerchantCustomAttributesResponseMerchantCustomAttributeDeleteResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an individual delete response in a [BulkDeleteMerchantCustomAttributes](api-endpoint:MerchantCustomAttributes-BulkDeleteMerchantCustomAttributes) diff --git a/src/Square/Types/BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute.cs b/src/Square/Default/Types/BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute.cs similarity index 96% rename from src/Square/Types/BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute.cs rename to src/Square/Default/Types/BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute.cs index c93e3a7e..b0a02083 100644 --- a/src/Square/Types/BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute.cs +++ b/src/Square/Default/Types/BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents one delete within the bulk operation. diff --git a/src/Square/Types/BulkDeleteOrderCustomAttributesResponse.cs b/src/Square/Default/Types/BulkDeleteOrderCustomAttributesResponse.cs similarity index 97% rename from src/Square/Types/BulkDeleteOrderCustomAttributesResponse.cs rename to src/Square/Default/Types/BulkDeleteOrderCustomAttributesResponse.cs index 9584ff0b..6414a0a2 100644 --- a/src/Square/Types/BulkDeleteOrderCustomAttributesResponse.cs +++ b/src/Square/Default/Types/BulkDeleteOrderCustomAttributesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a response from deleting one or more order custom attributes. diff --git a/src/Square/Types/BulkPublishScheduledShiftsData.cs b/src/Square/Default/Types/BulkPublishScheduledShiftsData.cs similarity index 97% rename from src/Square/Types/BulkPublishScheduledShiftsData.cs rename to src/Square/Default/Types/BulkPublishScheduledShiftsData.cs index 951784f6..8474c5c1 100644 --- a/src/Square/Types/BulkPublishScheduledShiftsData.cs +++ b/src/Square/Default/Types/BulkPublishScheduledShiftsData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents options for an individual publish request in a diff --git a/src/Square/Types/BulkPublishScheduledShiftsResponse.cs b/src/Square/Default/Types/BulkPublishScheduledShiftsResponse.cs similarity index 97% rename from src/Square/Types/BulkPublishScheduledShiftsResponse.cs rename to src/Square/Default/Types/BulkPublishScheduledShiftsResponse.cs index fed042c0..b009c32c 100644 --- a/src/Square/Types/BulkPublishScheduledShiftsResponse.cs +++ b/src/Square/Default/Types/BulkPublishScheduledShiftsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [BulkPublishScheduledShifts](api-endpoint:Labor-BulkPublishScheduledShifts) response. diff --git a/src/Square/Types/BulkRetrieveBookingsResponse.cs b/src/Square/Default/Types/BulkRetrieveBookingsResponse.cs similarity index 96% rename from src/Square/Types/BulkRetrieveBookingsResponse.cs rename to src/Square/Default/Types/BulkRetrieveBookingsResponse.cs index 94393f76..425f561d 100644 --- a/src/Square/Types/BulkRetrieveBookingsResponse.cs +++ b/src/Square/Default/Types/BulkRetrieveBookingsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Response payload for bulk retrieval of bookings. diff --git a/src/Square/Types/BulkRetrieveChannelsResponse.cs b/src/Square/Default/Types/BulkRetrieveChannelsResponse.cs similarity index 97% rename from src/Square/Types/BulkRetrieveChannelsResponse.cs rename to src/Square/Default/Types/BulkRetrieveChannelsResponse.cs index 453f99a2..eca94083 100644 --- a/src/Square/Types/BulkRetrieveChannelsResponse.cs +++ b/src/Square/Default/Types/BulkRetrieveChannelsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the request body for the diff --git a/src/Square/Types/BulkRetrieveCustomersResponse.cs b/src/Square/Default/Types/BulkRetrieveCustomersResponse.cs similarity index 97% rename from src/Square/Types/BulkRetrieveCustomersResponse.cs rename to src/Square/Default/Types/BulkRetrieveCustomersResponse.cs index 13323d55..0c322a57 100644 --- a/src/Square/Types/BulkRetrieveCustomersResponse.cs +++ b/src/Square/Default/Types/BulkRetrieveCustomersResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields included in the response body from the diff --git a/src/Square/Types/BulkRetrieveTeamMemberBookingProfilesResponse.cs b/src/Square/Default/Types/BulkRetrieveTeamMemberBookingProfilesResponse.cs similarity index 97% rename from src/Square/Types/BulkRetrieveTeamMemberBookingProfilesResponse.cs rename to src/Square/Default/Types/BulkRetrieveTeamMemberBookingProfilesResponse.cs index 2f9e09f7..0d1cc045 100644 --- a/src/Square/Types/BulkRetrieveTeamMemberBookingProfilesResponse.cs +++ b/src/Square/Default/Types/BulkRetrieveTeamMemberBookingProfilesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Response payload for the [BulkRetrieveTeamMemberBookingProfiles](api-endpoint:Bookings-BulkRetrieveTeamMemberBookingProfiles) endpoint. diff --git a/src/Square/Types/BulkSwapPlanResponse.cs b/src/Square/Default/Types/BulkSwapPlanResponse.cs similarity index 96% rename from src/Square/Types/BulkSwapPlanResponse.cs rename to src/Square/Default/Types/BulkSwapPlanResponse.cs index f14b08dc..3bf89ec6 100644 --- a/src/Square/Types/BulkSwapPlanResponse.cs +++ b/src/Square/Default/Types/BulkSwapPlanResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines output parameters in a response of the diff --git a/src/Square/Types/BulkUpdateCustomerData.cs b/src/Square/Default/Types/BulkUpdateCustomerData.cs similarity index 99% rename from src/Square/Types/BulkUpdateCustomerData.cs rename to src/Square/Default/Types/BulkUpdateCustomerData.cs index c248079b..5e4a7a17 100644 --- a/src/Square/Types/BulkUpdateCustomerData.cs +++ b/src/Square/Default/Types/BulkUpdateCustomerData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the customer data provided in individual update requests for a diff --git a/src/Square/Types/BulkUpdateCustomersResponse.cs b/src/Square/Default/Types/BulkUpdateCustomersResponse.cs similarity index 97% rename from src/Square/Types/BulkUpdateCustomersResponse.cs rename to src/Square/Default/Types/BulkUpdateCustomersResponse.cs index 7482fbb8..b8150827 100644 --- a/src/Square/Types/BulkUpdateCustomersResponse.cs +++ b/src/Square/Default/Types/BulkUpdateCustomersResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields included in the response body from the diff --git a/src/Square/Types/BulkUpsertBookingCustomAttributesResponse.cs b/src/Square/Default/Types/BulkUpsertBookingCustomAttributesResponse.cs similarity index 97% rename from src/Square/Types/BulkUpsertBookingCustomAttributesResponse.cs rename to src/Square/Default/Types/BulkUpsertBookingCustomAttributesResponse.cs index 01360880..6b5fdc08 100644 --- a/src/Square/Types/BulkUpsertBookingCustomAttributesResponse.cs +++ b/src/Square/Default/Types/BulkUpsertBookingCustomAttributesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [BulkUpsertBookingCustomAttributes](api-endpoint:BookingCustomAttributes-BulkUpsertBookingCustomAttributes) response, diff --git a/src/Square/Types/BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest.cs b/src/Square/Default/Types/BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest.cs similarity index 98% rename from src/Square/Types/BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest.cs rename to src/Square/Default/Types/BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest.cs index 9b96a577..544f3b85 100644 --- a/src/Square/Types/BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest.cs +++ b/src/Square/Default/Types/BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an individual upsert request in a [BulkUpsertLocationCustomAttributes](api-endpoint:LocationCustomAttributes-BulkUpsertLocationCustomAttributes) diff --git a/src/Square/Types/BulkUpsertLocationCustomAttributesResponse.cs b/src/Square/Default/Types/BulkUpsertLocationCustomAttributesResponse.cs similarity index 97% rename from src/Square/Types/BulkUpsertLocationCustomAttributesResponse.cs rename to src/Square/Default/Types/BulkUpsertLocationCustomAttributesResponse.cs index 90c3bd5e..9a8612ef 100644 --- a/src/Square/Types/BulkUpsertLocationCustomAttributesResponse.cs +++ b/src/Square/Default/Types/BulkUpsertLocationCustomAttributesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [BulkUpsertLocationCustomAttributes](api-endpoint:LocationCustomAttributes-BulkUpsertLocationCustomAttributes) response, diff --git a/src/Square/Types/BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse.cs b/src/Square/Default/Types/BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse.cs similarity index 97% rename from src/Square/Types/BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse.cs rename to src/Square/Default/Types/BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse.cs index d55156e7..9f0d70bc 100644 --- a/src/Square/Types/BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse.cs +++ b/src/Square/Default/Types/BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a response for an individual upsert request in a [BulkUpsertLocationCustomAttributes](api-endpoint:LocationCustomAttributes-BulkUpsertLocationCustomAttributes) operation. diff --git a/src/Square/Types/BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest.cs b/src/Square/Default/Types/BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest.cs similarity index 98% rename from src/Square/Types/BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest.cs rename to src/Square/Default/Types/BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest.cs index f882c555..8865d808 100644 --- a/src/Square/Types/BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest.cs +++ b/src/Square/Default/Types/BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an individual upsert request in a [BulkUpsertMerchantCustomAttributes](api-endpoint:MerchantCustomAttributes-BulkUpsertMerchantCustomAttributes) diff --git a/src/Square/Types/BulkUpsertMerchantCustomAttributesResponse.cs b/src/Square/Default/Types/BulkUpsertMerchantCustomAttributesResponse.cs similarity index 97% rename from src/Square/Types/BulkUpsertMerchantCustomAttributesResponse.cs rename to src/Square/Default/Types/BulkUpsertMerchantCustomAttributesResponse.cs index 19cf56a6..1af96173 100644 --- a/src/Square/Types/BulkUpsertMerchantCustomAttributesResponse.cs +++ b/src/Square/Default/Types/BulkUpsertMerchantCustomAttributesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [BulkUpsertMerchantCustomAttributes](api-endpoint:MerchantCustomAttributes-BulkUpsertMerchantCustomAttributes) response, diff --git a/src/Square/Types/BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse.cs b/src/Square/Default/Types/BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse.cs similarity index 97% rename from src/Square/Types/BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse.cs rename to src/Square/Default/Types/BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse.cs index e55cabaf..ff3cff37 100644 --- a/src/Square/Types/BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse.cs +++ b/src/Square/Default/Types/BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a response for an individual upsert request in a [BulkUpsertMerchantCustomAttributes](api-endpoint:MerchantCustomAttributes-BulkUpsertMerchantCustomAttributes) operation. diff --git a/src/Square/Types/BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute.cs b/src/Square/Default/Types/BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute.cs similarity index 98% rename from src/Square/Types/BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute.cs rename to src/Square/Default/Types/BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute.cs index 857cb94f..5ff2b547 100644 --- a/src/Square/Types/BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute.cs +++ b/src/Square/Default/Types/BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents one upsert within the bulk operation. diff --git a/src/Square/Types/BulkUpsertOrderCustomAttributesResponse.cs b/src/Square/Default/Types/BulkUpsertOrderCustomAttributesResponse.cs similarity index 96% rename from src/Square/Types/BulkUpsertOrderCustomAttributesResponse.cs rename to src/Square/Default/Types/BulkUpsertOrderCustomAttributesResponse.cs index 420b4cd3..e1107664 100644 --- a/src/Square/Types/BulkUpsertOrderCustomAttributesResponse.cs +++ b/src/Square/Default/Types/BulkUpsertOrderCustomAttributesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a response from a bulk upsert of order custom attributes. diff --git a/src/Square/Types/BusinessAppointmentSettings.cs b/src/Square/Default/Types/BusinessAppointmentSettings.cs similarity index 99% rename from src/Square/Types/BusinessAppointmentSettings.cs rename to src/Square/Default/Types/BusinessAppointmentSettings.cs index 46607e66..4f7fe457 100644 --- a/src/Square/Types/BusinessAppointmentSettings.cs +++ b/src/Square/Default/Types/BusinessAppointmentSettings.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The service appointment settings, including where and how the service is provided. diff --git a/src/Square/Types/BusinessAppointmentSettingsAlignmentTime.cs b/src/Square/Default/Types/BusinessAppointmentSettingsAlignmentTime.cs similarity index 98% rename from src/Square/Types/BusinessAppointmentSettingsAlignmentTime.cs rename to src/Square/Default/Types/BusinessAppointmentSettingsAlignmentTime.cs index 2cb483ca..d2ba1122 100644 --- a/src/Square/Types/BusinessAppointmentSettingsAlignmentTime.cs +++ b/src/Square/Default/Types/BusinessAppointmentSettingsAlignmentTime.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/BusinessAppointmentSettingsBookingLocationType.cs b/src/Square/Default/Types/BusinessAppointmentSettingsBookingLocationType.cs similarity index 98% rename from src/Square/Types/BusinessAppointmentSettingsBookingLocationType.cs rename to src/Square/Default/Types/BusinessAppointmentSettingsBookingLocationType.cs index d197777a..e6a516cf 100644 --- a/src/Square/Types/BusinessAppointmentSettingsBookingLocationType.cs +++ b/src/Square/Default/Types/BusinessAppointmentSettingsBookingLocationType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/BusinessAppointmentSettingsCancellationPolicy.cs b/src/Square/Default/Types/BusinessAppointmentSettingsCancellationPolicy.cs similarity index 98% rename from src/Square/Types/BusinessAppointmentSettingsCancellationPolicy.cs rename to src/Square/Default/Types/BusinessAppointmentSettingsCancellationPolicy.cs index ac7e4728..bba36878 100644 --- a/src/Square/Types/BusinessAppointmentSettingsCancellationPolicy.cs +++ b/src/Square/Default/Types/BusinessAppointmentSettingsCancellationPolicy.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/BusinessAppointmentSettingsMaxAppointmentsPerDayLimitType.cs b/src/Square/Default/Types/BusinessAppointmentSettingsMaxAppointmentsPerDayLimitType.cs similarity index 98% rename from src/Square/Types/BusinessAppointmentSettingsMaxAppointmentsPerDayLimitType.cs rename to src/Square/Default/Types/BusinessAppointmentSettingsMaxAppointmentsPerDayLimitType.cs index 06ce3628..1a760bc9 100644 --- a/src/Square/Types/BusinessAppointmentSettingsMaxAppointmentsPerDayLimitType.cs +++ b/src/Square/Default/Types/BusinessAppointmentSettingsMaxAppointmentsPerDayLimitType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter( typeof(StringEnumSerializer) diff --git a/src/Square/Types/BusinessBookingProfile.cs b/src/Square/Default/Types/BusinessBookingProfile.cs similarity index 98% rename from src/Square/Types/BusinessBookingProfile.cs rename to src/Square/Default/Types/BusinessBookingProfile.cs index 3499b7b4..cab09095 100644 --- a/src/Square/Types/BusinessBookingProfile.cs +++ b/src/Square/Default/Types/BusinessBookingProfile.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A seller's business booking profile, including booking policy, appointment settings, etc. diff --git a/src/Square/Types/BusinessBookingProfileBookingPolicy.cs b/src/Square/Default/Types/BusinessBookingProfileBookingPolicy.cs similarity index 98% rename from src/Square/Types/BusinessBookingProfileBookingPolicy.cs rename to src/Square/Default/Types/BusinessBookingProfileBookingPolicy.cs index 62e82eb2..91b6fb7b 100644 --- a/src/Square/Types/BusinessBookingProfileBookingPolicy.cs +++ b/src/Square/Default/Types/BusinessBookingProfileBookingPolicy.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/BusinessBookingProfileCustomerTimezoneChoice.cs b/src/Square/Default/Types/BusinessBookingProfileCustomerTimezoneChoice.cs similarity index 98% rename from src/Square/Types/BusinessBookingProfileCustomerTimezoneChoice.cs rename to src/Square/Default/Types/BusinessBookingProfileCustomerTimezoneChoice.cs index 7bf97f24..208c206f 100644 --- a/src/Square/Types/BusinessBookingProfileCustomerTimezoneChoice.cs +++ b/src/Square/Default/Types/BusinessBookingProfileCustomerTimezoneChoice.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/BusinessHours.cs b/src/Square/Default/Types/BusinessHours.cs similarity index 95% rename from src/Square/Types/BusinessHours.cs rename to src/Square/Default/Types/BusinessHours.cs index d5a78b9c..2381adf4 100644 --- a/src/Square/Types/BusinessHours.cs +++ b/src/Square/Default/Types/BusinessHours.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The hours of operation for a location. diff --git a/src/Square/Types/BusinessHoursPeriod.cs b/src/Square/Default/Types/BusinessHoursPeriod.cs similarity index 97% rename from src/Square/Types/BusinessHoursPeriod.cs rename to src/Square/Default/Types/BusinessHoursPeriod.cs index 26e9cff2..65243110 100644 --- a/src/Square/Types/BusinessHoursPeriod.cs +++ b/src/Square/Default/Types/BusinessHoursPeriod.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a period of time during which a business location is open. diff --git a/src/Square/Types/BuyNowPayLaterDetails.cs b/src/Square/Default/Types/BuyNowPayLaterDetails.cs similarity index 97% rename from src/Square/Types/BuyNowPayLaterDetails.cs rename to src/Square/Default/Types/BuyNowPayLaterDetails.cs index f30f7502..125d65b1 100644 --- a/src/Square/Types/BuyNowPayLaterDetails.cs +++ b/src/Square/Default/Types/BuyNowPayLaterDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Additional details about a Buy Now Pay Later payment type. diff --git a/src/Square/Types/CalculateLoyaltyPointsResponse.cs b/src/Square/Default/Types/CalculateLoyaltyPointsResponse.cs similarity index 97% rename from src/Square/Types/CalculateLoyaltyPointsResponse.cs rename to src/Square/Default/Types/CalculateLoyaltyPointsResponse.cs index bb3fc289..53f32be4 100644 --- a/src/Square/Types/CalculateLoyaltyPointsResponse.cs +++ b/src/Square/Default/Types/CalculateLoyaltyPointsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [CalculateLoyaltyPoints](api-endpoint:Loyalty-CalculateLoyaltyPoints) response. diff --git a/src/Square/Types/CalculateOrderResponse.cs b/src/Square/Default/Types/CalculateOrderResponse.cs similarity index 96% rename from src/Square/Types/CalculateOrderResponse.cs rename to src/Square/Default/Types/CalculateOrderResponse.cs index bde34f3a..4683e902 100644 --- a/src/Square/Types/CalculateOrderResponse.cs +++ b/src/Square/Default/Types/CalculateOrderResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CalculateOrderResponse : IJsonOnDeserialized diff --git a/src/Square/Types/CancelBookingResponse.cs b/src/Square/Default/Types/CancelBookingResponse.cs similarity index 96% rename from src/Square/Types/CancelBookingResponse.cs rename to src/Square/Default/Types/CancelBookingResponse.cs index db80d407..3fad1196 100644 --- a/src/Square/Types/CancelBookingResponse.cs +++ b/src/Square/Default/Types/CancelBookingResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CancelBookingResponse : IJsonOnDeserialized diff --git a/src/Square/Types/CancelInvoiceResponse.cs b/src/Square/Default/Types/CancelInvoiceResponse.cs similarity index 96% rename from src/Square/Types/CancelInvoiceResponse.cs rename to src/Square/Default/Types/CancelInvoiceResponse.cs index 278b175c..262e2c21 100644 --- a/src/Square/Types/CancelInvoiceResponse.cs +++ b/src/Square/Default/Types/CancelInvoiceResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The response returned by the `CancelInvoice` request. diff --git a/src/Square/Types/CancelLoyaltyPromotionResponse.cs b/src/Square/Default/Types/CancelLoyaltyPromotionResponse.cs similarity index 96% rename from src/Square/Types/CancelLoyaltyPromotionResponse.cs rename to src/Square/Default/Types/CancelLoyaltyPromotionResponse.cs index 0b14547a..d5064cab 100644 --- a/src/Square/Types/CancelLoyaltyPromotionResponse.cs +++ b/src/Square/Default/Types/CancelLoyaltyPromotionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [CancelLoyaltyPromotion](api-endpoint:Loyalty-CancelLoyaltyPromotion) response. diff --git a/src/Square/Types/CancelPaymentByIdempotencyKeyResponse.cs b/src/Square/Default/Types/CancelPaymentByIdempotencyKeyResponse.cs similarity index 96% rename from src/Square/Types/CancelPaymentByIdempotencyKeyResponse.cs rename to src/Square/Default/Types/CancelPaymentByIdempotencyKeyResponse.cs index 656eee3b..13c57403 100644 --- a/src/Square/Types/CancelPaymentByIdempotencyKeyResponse.cs +++ b/src/Square/Default/Types/CancelPaymentByIdempotencyKeyResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the response returned by diff --git a/src/Square/Types/CancelPaymentResponse.cs b/src/Square/Default/Types/CancelPaymentResponse.cs similarity index 96% rename from src/Square/Types/CancelPaymentResponse.cs rename to src/Square/Default/Types/CancelPaymentResponse.cs index b74dc580..d8b33078 100644 --- a/src/Square/Types/CancelPaymentResponse.cs +++ b/src/Square/Default/Types/CancelPaymentResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the response returned by [CancelPayment](api-endpoint:Payments-CancelPayment). diff --git a/src/Square/Types/CancelSubscriptionResponse.cs b/src/Square/Default/Types/CancelSubscriptionResponse.cs similarity index 97% rename from src/Square/Types/CancelSubscriptionResponse.cs rename to src/Square/Default/Types/CancelSubscriptionResponse.cs index b7f4680c..963e10dc 100644 --- a/src/Square/Types/CancelSubscriptionResponse.cs +++ b/src/Square/Default/Types/CancelSubscriptionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines output parameters in a response from the diff --git a/src/Square/Types/CancelTerminalActionResponse.cs b/src/Square/Default/Types/CancelTerminalActionResponse.cs similarity index 96% rename from src/Square/Types/CancelTerminalActionResponse.cs rename to src/Square/Default/Types/CancelTerminalActionResponse.cs index 49427055..d94c25de 100644 --- a/src/Square/Types/CancelTerminalActionResponse.cs +++ b/src/Square/Default/Types/CancelTerminalActionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CancelTerminalActionResponse : IJsonOnDeserialized diff --git a/src/Square/Types/CancelTerminalCheckoutResponse.cs b/src/Square/Default/Types/CancelTerminalCheckoutResponse.cs similarity index 96% rename from src/Square/Types/CancelTerminalCheckoutResponse.cs rename to src/Square/Default/Types/CancelTerminalCheckoutResponse.cs index f4b58be7..fd806044 100644 --- a/src/Square/Types/CancelTerminalCheckoutResponse.cs +++ b/src/Square/Default/Types/CancelTerminalCheckoutResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CancelTerminalCheckoutResponse : IJsonOnDeserialized diff --git a/src/Square/Types/CancelTerminalRefundResponse.cs b/src/Square/Default/Types/CancelTerminalRefundResponse.cs similarity index 96% rename from src/Square/Types/CancelTerminalRefundResponse.cs rename to src/Square/Default/Types/CancelTerminalRefundResponse.cs index 1f97660b..32a9252b 100644 --- a/src/Square/Types/CancelTerminalRefundResponse.cs +++ b/src/Square/Default/Types/CancelTerminalRefundResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CancelTerminalRefundResponse : IJsonOnDeserialized diff --git a/src/Square/Types/CancelTransferOrderResponse.cs b/src/Square/Default/Types/CancelTransferOrderResponse.cs similarity index 96% rename from src/Square/Types/CancelTransferOrderResponse.cs rename to src/Square/Default/Types/CancelTransferOrderResponse.cs index 9551cdd9..fdf38668 100644 --- a/src/Square/Types/CancelTransferOrderResponse.cs +++ b/src/Square/Default/Types/CancelTransferOrderResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Response for canceling a transfer order diff --git a/src/Square/Types/CaptureTransactionResponse.cs b/src/Square/Default/Types/CaptureTransactionResponse.cs similarity index 96% rename from src/Square/Types/CaptureTransactionResponse.cs rename to src/Square/Default/Types/CaptureTransactionResponse.cs index ec54fdc4..d26b3493 100644 --- a/src/Square/Types/CaptureTransactionResponse.cs +++ b/src/Square/Default/Types/CaptureTransactionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/Card.cs b/src/Square/Default/Types/Card.cs similarity index 99% rename from src/Square/Types/Card.cs rename to src/Square/Default/Types/Card.cs index 54423be6..ec737154 100644 --- a/src/Square/Types/Card.cs +++ b/src/Square/Default/Types/Card.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents the payment details of a card to be used for payments. These diff --git a/src/Square/Types/CardAutomaticallyUpdatedEvent.cs b/src/Square/Default/Types/CardAutomaticallyUpdatedEvent.cs similarity index 97% rename from src/Square/Types/CardAutomaticallyUpdatedEvent.cs rename to src/Square/Default/Types/CardAutomaticallyUpdatedEvent.cs index 1a9b7ac3..3db96a11 100644 --- a/src/Square/Types/CardAutomaticallyUpdatedEvent.cs +++ b/src/Square/Default/Types/CardAutomaticallyUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when Square automatically updates the expiration date or diff --git a/src/Square/Types/CardAutomaticallyUpdatedEventData.cs b/src/Square/Default/Types/CardAutomaticallyUpdatedEventData.cs similarity index 96% rename from src/Square/Types/CardAutomaticallyUpdatedEventData.cs rename to src/Square/Default/Types/CardAutomaticallyUpdatedEventData.cs index 431a8edf..3b444c7d 100644 --- a/src/Square/Types/CardAutomaticallyUpdatedEventData.cs +++ b/src/Square/Default/Types/CardAutomaticallyUpdatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CardAutomaticallyUpdatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/CardAutomaticallyUpdatedEventObject.cs b/src/Square/Default/Types/CardAutomaticallyUpdatedEventObject.cs similarity index 95% rename from src/Square/Types/CardAutomaticallyUpdatedEventObject.cs rename to src/Square/Default/Types/CardAutomaticallyUpdatedEventObject.cs index 12f9942c..af317dfd 100644 --- a/src/Square/Types/CardAutomaticallyUpdatedEventObject.cs +++ b/src/Square/Default/Types/CardAutomaticallyUpdatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CardAutomaticallyUpdatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/CardBrand.cs b/src/Square/Default/Types/CardBrand.cs similarity index 99% rename from src/Square/Types/CardBrand.cs rename to src/Square/Default/Types/CardBrand.cs index 8a2754bd..daa7c901 100644 --- a/src/Square/Types/CardBrand.cs +++ b/src/Square/Default/Types/CardBrand.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/CardCoBrand.cs b/src/Square/Default/Types/CardCoBrand.cs similarity index 98% rename from src/Square/Types/CardCoBrand.cs rename to src/Square/Default/Types/CardCoBrand.cs index 76f068e8..c4fbc2a1 100644 --- a/src/Square/Types/CardCoBrand.cs +++ b/src/Square/Default/Types/CardCoBrand.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/CardCreatedEvent.cs b/src/Square/Default/Types/CardCreatedEvent.cs similarity index 97% rename from src/Square/Types/CardCreatedEvent.cs rename to src/Square/Default/Types/CardCreatedEvent.cs index a0a30ee4..0c6bf91e 100644 --- a/src/Square/Types/CardCreatedEvent.cs +++ b/src/Square/Default/Types/CardCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [card](entity:Card) is created or imported. diff --git a/src/Square/Types/CardCreatedEventData.cs b/src/Square/Default/Types/CardCreatedEventData.cs similarity index 96% rename from src/Square/Types/CardCreatedEventData.cs rename to src/Square/Default/Types/CardCreatedEventData.cs index 02a311b4..75150b54 100644 --- a/src/Square/Types/CardCreatedEventData.cs +++ b/src/Square/Default/Types/CardCreatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CardCreatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/CardCreatedEventObject.cs b/src/Square/Default/Types/CardCreatedEventObject.cs similarity index 95% rename from src/Square/Types/CardCreatedEventObject.cs rename to src/Square/Default/Types/CardCreatedEventObject.cs index 93ce0543..cd21bb2c 100644 --- a/src/Square/Types/CardCreatedEventObject.cs +++ b/src/Square/Default/Types/CardCreatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CardCreatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/CardDisabledEvent.cs b/src/Square/Default/Types/CardDisabledEvent.cs similarity index 97% rename from src/Square/Types/CardDisabledEvent.cs rename to src/Square/Default/Types/CardDisabledEvent.cs index be023063..b2046f2f 100644 --- a/src/Square/Types/CardDisabledEvent.cs +++ b/src/Square/Default/Types/CardDisabledEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [card](entity:Card) is disabled. diff --git a/src/Square/Types/CardDisabledEventData.cs b/src/Square/Default/Types/CardDisabledEventData.cs similarity index 96% rename from src/Square/Types/CardDisabledEventData.cs rename to src/Square/Default/Types/CardDisabledEventData.cs index af563bda..181d230f 100644 --- a/src/Square/Types/CardDisabledEventData.cs +++ b/src/Square/Default/Types/CardDisabledEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CardDisabledEventData : IJsonOnDeserialized diff --git a/src/Square/Types/CardDisabledEventObject.cs b/src/Square/Default/Types/CardDisabledEventObject.cs similarity index 95% rename from src/Square/Types/CardDisabledEventObject.cs rename to src/Square/Default/Types/CardDisabledEventObject.cs index 632e24ab..63d48d8d 100644 --- a/src/Square/Types/CardDisabledEventObject.cs +++ b/src/Square/Default/Types/CardDisabledEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CardDisabledEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/CardForgottenEvent.cs b/src/Square/Default/Types/CardForgottenEvent.cs similarity index 97% rename from src/Square/Types/CardForgottenEvent.cs rename to src/Square/Default/Types/CardForgottenEvent.cs index 54a079d2..af3f67b6 100644 --- a/src/Square/Types/CardForgottenEvent.cs +++ b/src/Square/Default/Types/CardForgottenEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [card](entity:Card) is GDPR forgotten or vaulted. diff --git a/src/Square/Types/CardForgottenEventCard.cs b/src/Square/Default/Types/CardForgottenEventCard.cs similarity index 98% rename from src/Square/Types/CardForgottenEventCard.cs rename to src/Square/Default/Types/CardForgottenEventCard.cs index fbb503a1..62907486 100644 --- a/src/Square/Types/CardForgottenEventCard.cs +++ b/src/Square/Default/Types/CardForgottenEventCard.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CardForgottenEventCard : IJsonOnDeserialized diff --git a/src/Square/Types/CardForgottenEventData.cs b/src/Square/Default/Types/CardForgottenEventData.cs similarity index 96% rename from src/Square/Types/CardForgottenEventData.cs rename to src/Square/Default/Types/CardForgottenEventData.cs index 2bd1e666..2296c4d3 100644 --- a/src/Square/Types/CardForgottenEventData.cs +++ b/src/Square/Default/Types/CardForgottenEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CardForgottenEventData : IJsonOnDeserialized diff --git a/src/Square/Types/CardForgottenEventObject.cs b/src/Square/Default/Types/CardForgottenEventObject.cs similarity index 95% rename from src/Square/Types/CardForgottenEventObject.cs rename to src/Square/Default/Types/CardForgottenEventObject.cs index 0360d3a3..985b2dc0 100644 --- a/src/Square/Types/CardForgottenEventObject.cs +++ b/src/Square/Default/Types/CardForgottenEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CardForgottenEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/CardPaymentDetails.cs b/src/Square/Default/Types/CardPaymentDetails.cs similarity index 99% rename from src/Square/Types/CardPaymentDetails.cs rename to src/Square/Default/Types/CardPaymentDetails.cs index 010daa3a..db1f71f1 100644 --- a/src/Square/Types/CardPaymentDetails.cs +++ b/src/Square/Default/Types/CardPaymentDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Reflects the current status of a card payment. Contains only non-confidential information. diff --git a/src/Square/Types/CardPaymentTimeline.cs b/src/Square/Default/Types/CardPaymentTimeline.cs similarity index 96% rename from src/Square/Types/CardPaymentTimeline.cs rename to src/Square/Default/Types/CardPaymentTimeline.cs index 70c0e7b4..0d5930c6 100644 --- a/src/Square/Types/CardPaymentTimeline.cs +++ b/src/Square/Default/Types/CardPaymentTimeline.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The timeline for card payments. diff --git a/src/Square/Types/CardPrepaidType.cs b/src/Square/Default/Types/CardPrepaidType.cs similarity index 98% rename from src/Square/Types/CardPrepaidType.cs rename to src/Square/Default/Types/CardPrepaidType.cs index fa124578..53d90366 100644 --- a/src/Square/Types/CardPrepaidType.cs +++ b/src/Square/Default/Types/CardPrepaidType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/CardType.cs b/src/Square/Default/Types/CardType.cs similarity index 98% rename from src/Square/Types/CardType.cs rename to src/Square/Default/Types/CardType.cs index 56cbbf5a..2a3a232b 100644 --- a/src/Square/Types/CardType.cs +++ b/src/Square/Default/Types/CardType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/CardUpdatedEvent.cs b/src/Square/Default/Types/CardUpdatedEvent.cs similarity index 97% rename from src/Square/Types/CardUpdatedEvent.cs rename to src/Square/Default/Types/CardUpdatedEvent.cs index 548cb7f9..2bb74123 100644 --- a/src/Square/Types/CardUpdatedEvent.cs +++ b/src/Square/Default/Types/CardUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [card](entity:Card) is updated by the seller in the Square Dashboard. diff --git a/src/Square/Types/CardUpdatedEventData.cs b/src/Square/Default/Types/CardUpdatedEventData.cs similarity index 96% rename from src/Square/Types/CardUpdatedEventData.cs rename to src/Square/Default/Types/CardUpdatedEventData.cs index 6eb87142..612f19ca 100644 --- a/src/Square/Types/CardUpdatedEventData.cs +++ b/src/Square/Default/Types/CardUpdatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CardUpdatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/CardUpdatedEventObject.cs b/src/Square/Default/Types/CardUpdatedEventObject.cs similarity index 95% rename from src/Square/Types/CardUpdatedEventObject.cs rename to src/Square/Default/Types/CardUpdatedEventObject.cs index 44513c73..4e1802c9 100644 --- a/src/Square/Types/CardUpdatedEventObject.cs +++ b/src/Square/Default/Types/CardUpdatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CardUpdatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/CashAppDetails.cs b/src/Square/Default/Types/CashAppDetails.cs similarity index 97% rename from src/Square/Types/CashAppDetails.cs rename to src/Square/Default/Types/CashAppDetails.cs index d2f1be0f..f9916deb 100644 --- a/src/Square/Types/CashAppDetails.cs +++ b/src/Square/Default/Types/CashAppDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Additional details about `WALLET` type payments with the `brand` of `CASH_APP`. diff --git a/src/Square/Types/CashDrawerDevice.cs b/src/Square/Default/Types/CashDrawerDevice.cs similarity index 95% rename from src/Square/Types/CashDrawerDevice.cs rename to src/Square/Default/Types/CashDrawerDevice.cs index fa62f46d..1b535500 100644 --- a/src/Square/Types/CashDrawerDevice.cs +++ b/src/Square/Default/Types/CashDrawerDevice.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CashDrawerDevice : IJsonOnDeserialized diff --git a/src/Square/Types/CashDrawerEventType.cs b/src/Square/Default/Types/CashDrawerEventType.cs similarity index 99% rename from src/Square/Types/CashDrawerEventType.cs rename to src/Square/Default/Types/CashDrawerEventType.cs index d66e2a24..66c19d51 100644 --- a/src/Square/Types/CashDrawerEventType.cs +++ b/src/Square/Default/Types/CashDrawerEventType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/CashDrawerShift.cs b/src/Square/Default/Types/CashDrawerShift.cs similarity index 99% rename from src/Square/Types/CashDrawerShift.cs rename to src/Square/Default/Types/CashDrawerShift.cs index ff079ae2..e6642fd4 100644 --- a/src/Square/Types/CashDrawerShift.cs +++ b/src/Square/Default/Types/CashDrawerShift.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// This model gives the details of a cash drawer shift. diff --git a/src/Square/Types/CashDrawerShiftEvent.cs b/src/Square/Default/Types/CashDrawerShiftEvent.cs similarity index 98% rename from src/Square/Types/CashDrawerShiftEvent.cs rename to src/Square/Default/Types/CashDrawerShiftEvent.cs index 0ddaec35..79683cc6 100644 --- a/src/Square/Types/CashDrawerShiftEvent.cs +++ b/src/Square/Default/Types/CashDrawerShiftEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CashDrawerShiftEvent : IJsonOnDeserialized diff --git a/src/Square/Types/CashDrawerShiftState.cs b/src/Square/Default/Types/CashDrawerShiftState.cs similarity index 98% rename from src/Square/Types/CashDrawerShiftState.cs rename to src/Square/Default/Types/CashDrawerShiftState.cs index a370400c..f6be859c 100644 --- a/src/Square/Types/CashDrawerShiftState.cs +++ b/src/Square/Default/Types/CashDrawerShiftState.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/CashDrawerShiftSummary.cs b/src/Square/Default/Types/CashDrawerShiftSummary.cs similarity index 98% rename from src/Square/Types/CashDrawerShiftSummary.cs rename to src/Square/Default/Types/CashDrawerShiftSummary.cs index 8c15d9e6..a91cef18 100644 --- a/src/Square/Types/CashDrawerShiftSummary.cs +++ b/src/Square/Default/Types/CashDrawerShiftSummary.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The summary of a closed cash drawer shift. diff --git a/src/Square/Types/CashPaymentDetails.cs b/src/Square/Default/Types/CashPaymentDetails.cs similarity index 97% rename from src/Square/Types/CashPaymentDetails.cs rename to src/Square/Default/Types/CashPaymentDetails.cs index acfa95fd..c27da6af 100644 --- a/src/Square/Types/CashPaymentDetails.cs +++ b/src/Square/Default/Types/CashPaymentDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Stores details about a cash payment. Contains only non-confidential information. For more information, see diff --git a/src/Square/Types/CatalogAvailabilityPeriod.cs b/src/Square/Default/Types/CatalogAvailabilityPeriod.cs similarity index 97% rename from src/Square/Types/CatalogAvailabilityPeriod.cs rename to src/Square/Default/Types/CatalogAvailabilityPeriod.cs index 2b968783..7b4ccfdb 100644 --- a/src/Square/Types/CatalogAvailabilityPeriod.cs +++ b/src/Square/Default/Types/CatalogAvailabilityPeriod.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a time period of availability. diff --git a/src/Square/Types/CatalogCategory.cs b/src/Square/Default/Types/CatalogCategory.cs similarity index 98% rename from src/Square/Types/CatalogCategory.cs rename to src/Square/Default/Types/CatalogCategory.cs index 49efdd8e..533aa6dc 100644 --- a/src/Square/Types/CatalogCategory.cs +++ b/src/Square/Default/Types/CatalogCategory.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A category to which a `CatalogItem` instance belongs. diff --git a/src/Square/Types/CatalogCategoryType.cs b/src/Square/Default/Types/CatalogCategoryType.cs similarity index 98% rename from src/Square/Types/CatalogCategoryType.cs rename to src/Square/Default/Types/CatalogCategoryType.cs index 007700bd..7158b44a 100644 --- a/src/Square/Types/CatalogCategoryType.cs +++ b/src/Square/Default/Types/CatalogCategoryType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/CatalogCustomAttributeDefinition.cs b/src/Square/Default/Types/CatalogCustomAttributeDefinition.cs similarity index 99% rename from src/Square/Types/CatalogCustomAttributeDefinition.cs rename to src/Square/Default/Types/CatalogCustomAttributeDefinition.cs index 5295742b..04e2f49a 100644 --- a/src/Square/Types/CatalogCustomAttributeDefinition.cs +++ b/src/Square/Default/Types/CatalogCustomAttributeDefinition.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Contains information defining a custom attribute. Custom attributes are diff --git a/src/Square/Types/CatalogCustomAttributeDefinitionAppVisibility.cs b/src/Square/Default/Types/CatalogCustomAttributeDefinitionAppVisibility.cs similarity index 98% rename from src/Square/Types/CatalogCustomAttributeDefinitionAppVisibility.cs rename to src/Square/Default/Types/CatalogCustomAttributeDefinitionAppVisibility.cs index 28c67142..34608101 100644 --- a/src/Square/Types/CatalogCustomAttributeDefinitionAppVisibility.cs +++ b/src/Square/Default/Types/CatalogCustomAttributeDefinitionAppVisibility.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/CatalogCustomAttributeDefinitionNumberConfig.cs b/src/Square/Default/Types/CatalogCustomAttributeDefinitionNumberConfig.cs similarity index 96% rename from src/Square/Types/CatalogCustomAttributeDefinitionNumberConfig.cs rename to src/Square/Default/Types/CatalogCustomAttributeDefinitionNumberConfig.cs index 18ed79be..3d1aa0a0 100644 --- a/src/Square/Types/CatalogCustomAttributeDefinitionNumberConfig.cs +++ b/src/Square/Default/Types/CatalogCustomAttributeDefinitionNumberConfig.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CatalogCustomAttributeDefinitionNumberConfig : IJsonOnDeserialized diff --git a/src/Square/Types/CatalogCustomAttributeDefinitionSelectionConfig.cs b/src/Square/Default/Types/CatalogCustomAttributeDefinitionSelectionConfig.cs similarity index 97% rename from src/Square/Types/CatalogCustomAttributeDefinitionSelectionConfig.cs rename to src/Square/Default/Types/CatalogCustomAttributeDefinitionSelectionConfig.cs index 707edf05..29e19d13 100644 --- a/src/Square/Types/CatalogCustomAttributeDefinitionSelectionConfig.cs +++ b/src/Square/Default/Types/CatalogCustomAttributeDefinitionSelectionConfig.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Configuration associated with `SELECTION`-type custom attribute definitions. diff --git a/src/Square/Types/CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection.cs b/src/Square/Default/Types/CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection.cs similarity index 96% rename from src/Square/Types/CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection.cs rename to src/Square/Default/Types/CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection.cs index cdba1473..60866a4d 100644 --- a/src/Square/Types/CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection.cs +++ b/src/Square/Default/Types/CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A named selection for this `SELECTION`-type custom attribute definition. diff --git a/src/Square/Types/CatalogCustomAttributeDefinitionSellerVisibility.cs b/src/Square/Default/Types/CatalogCustomAttributeDefinitionSellerVisibility.cs similarity index 98% rename from src/Square/Types/CatalogCustomAttributeDefinitionSellerVisibility.cs rename to src/Square/Default/Types/CatalogCustomAttributeDefinitionSellerVisibility.cs index e6b23584..f725657f 100644 --- a/src/Square/Types/CatalogCustomAttributeDefinitionSellerVisibility.cs +++ b/src/Square/Default/Types/CatalogCustomAttributeDefinitionSellerVisibility.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/CatalogCustomAttributeDefinitionStringConfig.cs b/src/Square/Default/Types/CatalogCustomAttributeDefinitionStringConfig.cs similarity index 96% rename from src/Square/Types/CatalogCustomAttributeDefinitionStringConfig.cs rename to src/Square/Default/Types/CatalogCustomAttributeDefinitionStringConfig.cs index 4554db3f..a2849426 100644 --- a/src/Square/Types/CatalogCustomAttributeDefinitionStringConfig.cs +++ b/src/Square/Default/Types/CatalogCustomAttributeDefinitionStringConfig.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Configuration associated with Custom Attribute Definitions of type `STRING`. diff --git a/src/Square/Types/CatalogCustomAttributeDefinitionType.cs b/src/Square/Default/Types/CatalogCustomAttributeDefinitionType.cs similarity index 98% rename from src/Square/Types/CatalogCustomAttributeDefinitionType.cs rename to src/Square/Default/Types/CatalogCustomAttributeDefinitionType.cs index 03b2dc18..0b174172 100644 --- a/src/Square/Types/CatalogCustomAttributeDefinitionType.cs +++ b/src/Square/Default/Types/CatalogCustomAttributeDefinitionType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/CatalogCustomAttributeValue.cs b/src/Square/Default/Types/CatalogCustomAttributeValue.cs similarity index 98% rename from src/Square/Types/CatalogCustomAttributeValue.cs rename to src/Square/Default/Types/CatalogCustomAttributeValue.cs index 03ddefa9..1cfa770e 100644 --- a/src/Square/Types/CatalogCustomAttributeValue.cs +++ b/src/Square/Default/Types/CatalogCustomAttributeValue.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// An instance of a custom attribute. Custom attributes can be defined and diff --git a/src/Square/Types/CatalogDiscount.cs b/src/Square/Default/Types/CatalogDiscount.cs similarity index 98% rename from src/Square/Types/CatalogDiscount.cs rename to src/Square/Default/Types/CatalogDiscount.cs index c5d1584a..28abf631 100644 --- a/src/Square/Types/CatalogDiscount.cs +++ b/src/Square/Default/Types/CatalogDiscount.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A discount applicable to items. diff --git a/src/Square/Types/CatalogDiscountModifyTaxBasis.cs b/src/Square/Default/Types/CatalogDiscountModifyTaxBasis.cs similarity index 98% rename from src/Square/Types/CatalogDiscountModifyTaxBasis.cs rename to src/Square/Default/Types/CatalogDiscountModifyTaxBasis.cs index 9b17f42a..001bb138 100644 --- a/src/Square/Types/CatalogDiscountModifyTaxBasis.cs +++ b/src/Square/Default/Types/CatalogDiscountModifyTaxBasis.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/CatalogDiscountType.cs b/src/Square/Default/Types/CatalogDiscountType.cs similarity index 98% rename from src/Square/Types/CatalogDiscountType.cs rename to src/Square/Default/Types/CatalogDiscountType.cs index 91c2226d..810dc46c 100644 --- a/src/Square/Types/CatalogDiscountType.cs +++ b/src/Square/Default/Types/CatalogDiscountType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/CatalogEcomSeoData.cs b/src/Square/Default/Types/CatalogEcomSeoData.cs similarity index 96% rename from src/Square/Types/CatalogEcomSeoData.cs rename to src/Square/Default/Types/CatalogEcomSeoData.cs index 4fdcaedc..11be008e 100644 --- a/src/Square/Types/CatalogEcomSeoData.cs +++ b/src/Square/Default/Types/CatalogEcomSeoData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// SEO data for for a seller's Square Online store. diff --git a/src/Square/Types/CatalogIdMapping.cs b/src/Square/Default/Types/CatalogIdMapping.cs similarity index 97% rename from src/Square/Types/CatalogIdMapping.cs rename to src/Square/Default/Types/CatalogIdMapping.cs index 050448e9..28d19a53 100644 --- a/src/Square/Types/CatalogIdMapping.cs +++ b/src/Square/Default/Types/CatalogIdMapping.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A mapping between a temporary client-supplied ID and a permanent server-generated ID. diff --git a/src/Square/Types/CatalogImage.cs b/src/Square/Default/Types/CatalogImage.cs similarity index 98% rename from src/Square/Types/CatalogImage.cs rename to src/Square/Default/Types/CatalogImage.cs index 7aa4d4b1..bfe70001 100644 --- a/src/Square/Types/CatalogImage.cs +++ b/src/Square/Default/Types/CatalogImage.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// An image file to use in Square catalogs. It can be associated with diff --git a/src/Square/Types/CatalogInfoResponse.cs b/src/Square/Default/Types/CatalogInfoResponse.cs similarity index 96% rename from src/Square/Types/CatalogInfoResponse.cs rename to src/Square/Default/Types/CatalogInfoResponse.cs index 9b5572de..7b584522 100644 --- a/src/Square/Types/CatalogInfoResponse.cs +++ b/src/Square/Default/Types/CatalogInfoResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CatalogInfoResponse : IJsonOnDeserialized diff --git a/src/Square/Types/CatalogInfoResponseLimits.cs b/src/Square/Default/Types/CatalogInfoResponseLimits.cs similarity index 98% rename from src/Square/Types/CatalogInfoResponseLimits.cs rename to src/Square/Default/Types/CatalogInfoResponseLimits.cs index f1e9092b..9dba8659 100644 --- a/src/Square/Types/CatalogInfoResponseLimits.cs +++ b/src/Square/Default/Types/CatalogInfoResponseLimits.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CatalogInfoResponseLimits : IJsonOnDeserialized diff --git a/src/Square/Types/CatalogItem.cs b/src/Square/Default/Types/CatalogItem.cs similarity index 99% rename from src/Square/Types/CatalogItem.cs rename to src/Square/Default/Types/CatalogItem.cs index 23f2b383..914a5353 100644 --- a/src/Square/Types/CatalogItem.cs +++ b/src/Square/Default/Types/CatalogItem.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A [CatalogObject](entity:CatalogObject) instance of the `ITEM` type, also referred to as an item, in the catalog. diff --git a/src/Square/Types/CatalogItemFoodAndBeverageDetails.cs b/src/Square/Default/Types/CatalogItemFoodAndBeverageDetails.cs similarity index 97% rename from src/Square/Types/CatalogItemFoodAndBeverageDetails.cs rename to src/Square/Default/Types/CatalogItemFoodAndBeverageDetails.cs index e3122ffc..4365f6bd 100644 --- a/src/Square/Types/CatalogItemFoodAndBeverageDetails.cs +++ b/src/Square/Default/Types/CatalogItemFoodAndBeverageDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The food and beverage-specific details of a `FOOD_AND_BEV` item. diff --git a/src/Square/Types/CatalogItemFoodAndBeverageDetailsDietaryPreference.cs b/src/Square/Default/Types/CatalogItemFoodAndBeverageDetailsDietaryPreference.cs similarity index 97% rename from src/Square/Types/CatalogItemFoodAndBeverageDetailsDietaryPreference.cs rename to src/Square/Default/Types/CatalogItemFoodAndBeverageDetailsDietaryPreference.cs index 56e9f80a..4d25572f 100644 --- a/src/Square/Types/CatalogItemFoodAndBeverageDetailsDietaryPreference.cs +++ b/src/Square/Default/Types/CatalogItemFoodAndBeverageDetailsDietaryPreference.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Dietary preferences that can be assigned to an `FOOD_AND_BEV` item and its ingredients. diff --git a/src/Square/Types/CatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreference.cs b/src/Square/Default/Types/CatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreference.cs similarity index 99% rename from src/Square/Types/CatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreference.cs rename to src/Square/Default/Types/CatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreference.cs index b1c32908..42399289 100644 --- a/src/Square/Types/CatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreference.cs +++ b/src/Square/Default/Types/CatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreference.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter( typeof(StringEnumSerializer) diff --git a/src/Square/Types/CatalogItemFoodAndBeverageDetailsDietaryPreferenceType.cs b/src/Square/Default/Types/CatalogItemFoodAndBeverageDetailsDietaryPreferenceType.cs similarity index 98% rename from src/Square/Types/CatalogItemFoodAndBeverageDetailsDietaryPreferenceType.cs rename to src/Square/Default/Types/CatalogItemFoodAndBeverageDetailsDietaryPreferenceType.cs index 40aa1de3..36049dae 100644 --- a/src/Square/Types/CatalogItemFoodAndBeverageDetailsDietaryPreferenceType.cs +++ b/src/Square/Default/Types/CatalogItemFoodAndBeverageDetailsDietaryPreferenceType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter( typeof(StringEnumSerializer) diff --git a/src/Square/Types/CatalogItemFoodAndBeverageDetailsIngredient.cs b/src/Square/Default/Types/CatalogItemFoodAndBeverageDetailsIngredient.cs similarity index 97% rename from src/Square/Types/CatalogItemFoodAndBeverageDetailsIngredient.cs rename to src/Square/Default/Types/CatalogItemFoodAndBeverageDetailsIngredient.cs index 90ef79ee..aa5406d0 100644 --- a/src/Square/Types/CatalogItemFoodAndBeverageDetailsIngredient.cs +++ b/src/Square/Default/Types/CatalogItemFoodAndBeverageDetailsIngredient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Describes the ingredient used in a `FOOD_AND_BEV` item. diff --git a/src/Square/Types/CatalogItemFoodAndBeverageDetailsIngredientStandardIngredient.cs b/src/Square/Default/Types/CatalogItemFoodAndBeverageDetailsIngredientStandardIngredient.cs similarity index 99% rename from src/Square/Types/CatalogItemFoodAndBeverageDetailsIngredientStandardIngredient.cs rename to src/Square/Default/Types/CatalogItemFoodAndBeverageDetailsIngredientStandardIngredient.cs index 595fe78b..613ade98 100644 --- a/src/Square/Types/CatalogItemFoodAndBeverageDetailsIngredientStandardIngredient.cs +++ b/src/Square/Default/Types/CatalogItemFoodAndBeverageDetailsIngredientStandardIngredient.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter( typeof(StringEnumSerializer) diff --git a/src/Square/Types/CatalogItemModifierListInfo.cs b/src/Square/Default/Types/CatalogItemModifierListInfo.cs similarity index 99% rename from src/Square/Types/CatalogItemModifierListInfo.cs rename to src/Square/Default/Types/CatalogItemModifierListInfo.cs index 1a48ad07..0bdba4fa 100644 --- a/src/Square/Types/CatalogItemModifierListInfo.cs +++ b/src/Square/Default/Types/CatalogItemModifierListInfo.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Controls how a modifier list is applied to a specific item. This object allows for item-specific customization of modifier list behavior diff --git a/src/Square/Types/CatalogItemOption.cs b/src/Square/Default/Types/CatalogItemOption.cs similarity index 98% rename from src/Square/Types/CatalogItemOption.cs rename to src/Square/Default/Types/CatalogItemOption.cs index aa57bd41..b6b5a7a2 100644 --- a/src/Square/Types/CatalogItemOption.cs +++ b/src/Square/Default/Types/CatalogItemOption.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A group of variations for a `CatalogItem`. diff --git a/src/Square/Types/CatalogItemOptionForItem.cs b/src/Square/Default/Types/CatalogItemOptionForItem.cs similarity index 96% rename from src/Square/Types/CatalogItemOptionForItem.cs rename to src/Square/Default/Types/CatalogItemOptionForItem.cs index fe480aa5..a95870cc 100644 --- a/src/Square/Types/CatalogItemOptionForItem.cs +++ b/src/Square/Default/Types/CatalogItemOptionForItem.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// An option that can be assigned to an item. diff --git a/src/Square/Types/CatalogItemOptionValue.cs b/src/Square/Default/Types/CatalogItemOptionValue.cs similarity index 98% rename from src/Square/Types/CatalogItemOptionValue.cs rename to src/Square/Default/Types/CatalogItemOptionValue.cs index 55088061..f154c405 100644 --- a/src/Square/Types/CatalogItemOptionValue.cs +++ b/src/Square/Default/Types/CatalogItemOptionValue.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// An enumerated value that can link a diff --git a/src/Square/Types/CatalogItemOptionValueForItemVariation.cs b/src/Square/Default/Types/CatalogItemOptionValueForItemVariation.cs similarity index 97% rename from src/Square/Types/CatalogItemOptionValueForItemVariation.cs rename to src/Square/Default/Types/CatalogItemOptionValueForItemVariation.cs index 8fead831..d616d6bd 100644 --- a/src/Square/Types/CatalogItemOptionValueForItemVariation.cs +++ b/src/Square/Default/Types/CatalogItemOptionValueForItemVariation.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A `CatalogItemOptionValue` links an item variation to an item option as diff --git a/src/Square/Types/CatalogItemProductType.cs b/src/Square/Default/Types/CatalogItemProductType.cs similarity index 99% rename from src/Square/Types/CatalogItemProductType.cs rename to src/Square/Default/Types/CatalogItemProductType.cs index c504eaaa..05c476ec 100644 --- a/src/Square/Types/CatalogItemProductType.cs +++ b/src/Square/Default/Types/CatalogItemProductType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/CatalogItemVariation.cs b/src/Square/Default/Types/CatalogItemVariation.cs similarity index 99% rename from src/Square/Types/CatalogItemVariation.cs rename to src/Square/Default/Types/CatalogItemVariation.cs index a15c64f4..f00c558a 100644 --- a/src/Square/Types/CatalogItemVariation.cs +++ b/src/Square/Default/Types/CatalogItemVariation.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// An item variation, representing a product for sale, in the Catalog object model. Each [item](entity:CatalogItem) must have at least one diff --git a/src/Square/Types/CatalogMeasurementUnit.cs b/src/Square/Default/Types/CatalogMeasurementUnit.cs similarity index 97% rename from src/Square/Types/CatalogMeasurementUnit.cs rename to src/Square/Default/Types/CatalogMeasurementUnit.cs index 385ef60f..b7f4ad65 100644 --- a/src/Square/Types/CatalogMeasurementUnit.cs +++ b/src/Square/Default/Types/CatalogMeasurementUnit.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents the unit used to measure a `CatalogItemVariation` and diff --git a/src/Square/Types/CatalogModifier.cs b/src/Square/Default/Types/CatalogModifier.cs similarity index 98% rename from src/Square/Types/CatalogModifier.cs rename to src/Square/Default/Types/CatalogModifier.cs index 242008a6..d65b7e30 100644 --- a/src/Square/Types/CatalogModifier.cs +++ b/src/Square/Default/Types/CatalogModifier.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A modifier that can be applied to items at the time of sale. For example, a cheese modifier for a burger, or a flavor modifier for a serving of ice cream. diff --git a/src/Square/Types/CatalogModifierList.cs b/src/Square/Default/Types/CatalogModifierList.cs similarity index 99% rename from src/Square/Types/CatalogModifierList.cs rename to src/Square/Default/Types/CatalogModifierList.cs index 8128727d..83b89357 100644 --- a/src/Square/Types/CatalogModifierList.cs +++ b/src/Square/Default/Types/CatalogModifierList.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A container for a list of modifiers, or a text-based modifier. diff --git a/src/Square/Types/CatalogModifierListModifierType.cs b/src/Square/Default/Types/CatalogModifierListModifierType.cs similarity index 98% rename from src/Square/Types/CatalogModifierListModifierType.cs rename to src/Square/Default/Types/CatalogModifierListModifierType.cs index 69c60e91..341c1d3b 100644 --- a/src/Square/Types/CatalogModifierListModifierType.cs +++ b/src/Square/Default/Types/CatalogModifierListModifierType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/CatalogModifierListSelectionType.cs b/src/Square/Default/Types/CatalogModifierListSelectionType.cs similarity index 98% rename from src/Square/Types/CatalogModifierListSelectionType.cs rename to src/Square/Default/Types/CatalogModifierListSelectionType.cs index edcac967..4702e5b5 100644 --- a/src/Square/Types/CatalogModifierListSelectionType.cs +++ b/src/Square/Default/Types/CatalogModifierListSelectionType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/CatalogModifierOverride.cs b/src/Square/Default/Types/CatalogModifierOverride.cs similarity index 98% rename from src/Square/Types/CatalogModifierOverride.cs rename to src/Square/Default/Types/CatalogModifierOverride.cs index 1ec402c8..ca1c252d 100644 --- a/src/Square/Types/CatalogModifierOverride.cs +++ b/src/Square/Default/Types/CatalogModifierOverride.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Options to control how to override the default behavior of the specified modifier. diff --git a/src/Square/Types/CatalogModifierToggleOverrideType.cs b/src/Square/Default/Types/CatalogModifierToggleOverrideType.cs similarity index 98% rename from src/Square/Types/CatalogModifierToggleOverrideType.cs rename to src/Square/Default/Types/CatalogModifierToggleOverrideType.cs index 1526739f..4b764d84 100644 --- a/src/Square/Types/CatalogModifierToggleOverrideType.cs +++ b/src/Square/Default/Types/CatalogModifierToggleOverrideType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/CatalogObject.cs b/src/Square/Default/Types/CatalogObject.cs similarity index 62% rename from src/Square/Types/CatalogObject.cs rename to src/Square/Default/Types/CatalogObject.cs index 3a15a4a4..18c2b623 100644 --- a/src/Square/Types/CatalogObject.cs +++ b/src/Square/Default/Types/CatalogObject.cs @@ -6,7 +6,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The wrapper object for the catalog entries of a given object type. @@ -308,196 +308,196 @@ public CatalogObject(CatalogObject.AvailabilityPeriod value) public bool IsAvailabilityPeriod => Type == "AVAILABILITY_PERIOD"; /// - /// Returns the value as a if is 'ITEM', otherwise throws an exception. + /// Returns the value as a if is 'ITEM', otherwise throws an exception. /// /// Thrown when is not 'ITEM'. - public Square.CatalogObjectItem AsItem() => + public Square.Default.CatalogObjectItem AsItem() => IsItem - ? (Square.CatalogObjectItem)Value! + ? (Square.Default.CatalogObjectItem)Value! : throw new System.Exception("CatalogObject.Type is not 'ITEM'"); /// - /// Returns the value as a if is 'IMAGE', otherwise throws an exception. + /// Returns the value as a if is 'IMAGE', otherwise throws an exception. /// /// Thrown when is not 'IMAGE'. - public Square.CatalogObjectImage AsImage() => + public Square.Default.CatalogObjectImage AsImage() => IsImage - ? (Square.CatalogObjectImage)Value! + ? (Square.Default.CatalogObjectImage)Value! : throw new System.Exception("CatalogObject.Type is not 'IMAGE'"); /// - /// Returns the value as a if is 'CATEGORY', otherwise throws an exception. + /// Returns the value as a if is 'CATEGORY', otherwise throws an exception. /// /// Thrown when is not 'CATEGORY'. - public Square.CatalogObjectCategory AsCategory() => + public Square.Default.CatalogObjectCategory AsCategory() => IsCategory - ? (Square.CatalogObjectCategory)Value! + ? (Square.Default.CatalogObjectCategory)Value! : throw new System.Exception("CatalogObject.Type is not 'CATEGORY'"); /// - /// Returns the value as a if is 'ITEM_VARIATION', otherwise throws an exception. + /// Returns the value as a if is 'ITEM_VARIATION', otherwise throws an exception. /// /// Thrown when is not 'ITEM_VARIATION'. - public Square.CatalogObjectItemVariation AsItemVariation() => + public Square.Default.CatalogObjectItemVariation AsItemVariation() => IsItemVariation - ? (Square.CatalogObjectItemVariation)Value! + ? (Square.Default.CatalogObjectItemVariation)Value! : throw new System.Exception("CatalogObject.Type is not 'ITEM_VARIATION'"); /// - /// Returns the value as a if is 'TAX', otherwise throws an exception. + /// Returns the value as a if is 'TAX', otherwise throws an exception. /// /// Thrown when is not 'TAX'. - public Square.CatalogObjectTax AsTax() => + public Square.Default.CatalogObjectTax AsTax() => IsTax - ? (Square.CatalogObjectTax)Value! + ? (Square.Default.CatalogObjectTax)Value! : throw new System.Exception("CatalogObject.Type is not 'TAX'"); /// - /// Returns the value as a if is 'DISCOUNT', otherwise throws an exception. + /// Returns the value as a if is 'DISCOUNT', otherwise throws an exception. /// /// Thrown when is not 'DISCOUNT'. - public Square.CatalogObjectDiscount AsDiscount() => + public Square.Default.CatalogObjectDiscount AsDiscount() => IsDiscount - ? (Square.CatalogObjectDiscount)Value! + ? (Square.Default.CatalogObjectDiscount)Value! : throw new System.Exception("CatalogObject.Type is not 'DISCOUNT'"); /// - /// Returns the value as a if is 'MODIFIER_LIST', otherwise throws an exception. + /// Returns the value as a if is 'MODIFIER_LIST', otherwise throws an exception. /// /// Thrown when is not 'MODIFIER_LIST'. - public Square.CatalogObjectModifierList AsModifierList() => + public Square.Default.CatalogObjectModifierList AsModifierList() => IsModifierList - ? (Square.CatalogObjectModifierList)Value! + ? (Square.Default.CatalogObjectModifierList)Value! : throw new System.Exception("CatalogObject.Type is not 'MODIFIER_LIST'"); /// - /// Returns the value as a if is 'MODIFIER', otherwise throws an exception. + /// Returns the value as a if is 'MODIFIER', otherwise throws an exception. /// /// Thrown when is not 'MODIFIER'. - public Square.CatalogObjectModifier AsModifier() => + public Square.Default.CatalogObjectModifier AsModifier() => IsModifier - ? (Square.CatalogObjectModifier)Value! + ? (Square.Default.CatalogObjectModifier)Value! : throw new System.Exception("CatalogObject.Type is not 'MODIFIER'"); /// - /// Returns the value as a if is 'PRICING_RULE', otherwise throws an exception. + /// Returns the value as a if is 'PRICING_RULE', otherwise throws an exception. /// /// Thrown when is not 'PRICING_RULE'. - public Square.CatalogObjectPricingRule AsPricingRule() => + public Square.Default.CatalogObjectPricingRule AsPricingRule() => IsPricingRule - ? (Square.CatalogObjectPricingRule)Value! + ? (Square.Default.CatalogObjectPricingRule)Value! : throw new System.Exception("CatalogObject.Type is not 'PRICING_RULE'"); /// - /// Returns the value as a if is 'PRODUCT_SET', otherwise throws an exception. + /// Returns the value as a if is 'PRODUCT_SET', otherwise throws an exception. /// /// Thrown when is not 'PRODUCT_SET'. - public Square.CatalogObjectProductSet AsProductSet() => + public Square.Default.CatalogObjectProductSet AsProductSet() => IsProductSet - ? (Square.CatalogObjectProductSet)Value! + ? (Square.Default.CatalogObjectProductSet)Value! : throw new System.Exception("CatalogObject.Type is not 'PRODUCT_SET'"); /// - /// Returns the value as a if is 'TIME_PERIOD', otherwise throws an exception. + /// Returns the value as a if is 'TIME_PERIOD', otherwise throws an exception. /// /// Thrown when is not 'TIME_PERIOD'. - public Square.CatalogObjectTimePeriod AsTimePeriod() => + public Square.Default.CatalogObjectTimePeriod AsTimePeriod() => IsTimePeriod - ? (Square.CatalogObjectTimePeriod)Value! + ? (Square.Default.CatalogObjectTimePeriod)Value! : throw new System.Exception("CatalogObject.Type is not 'TIME_PERIOD'"); /// - /// Returns the value as a if is 'MEASUREMENT_UNIT', otherwise throws an exception. + /// Returns the value as a if is 'MEASUREMENT_UNIT', otherwise throws an exception. /// /// Thrown when is not 'MEASUREMENT_UNIT'. - public Square.CatalogObjectMeasurementUnit AsMeasurementUnit() => + public Square.Default.CatalogObjectMeasurementUnit AsMeasurementUnit() => IsMeasurementUnit - ? (Square.CatalogObjectMeasurementUnit)Value! + ? (Square.Default.CatalogObjectMeasurementUnit)Value! : throw new System.Exception("CatalogObject.Type is not 'MEASUREMENT_UNIT'"); /// - /// Returns the value as a if is 'SUBSCRIPTION_PLAN_VARIATION', otherwise throws an exception. + /// Returns the value as a if is 'SUBSCRIPTION_PLAN_VARIATION', otherwise throws an exception. /// /// Thrown when is not 'SUBSCRIPTION_PLAN_VARIATION'. - public Square.CatalogObjectSubscriptionPlanVariation AsSubscriptionPlanVariation() => + public Square.Default.CatalogObjectSubscriptionPlanVariation AsSubscriptionPlanVariation() => IsSubscriptionPlanVariation - ? (Square.CatalogObjectSubscriptionPlanVariation)Value! + ? (Square.Default.CatalogObjectSubscriptionPlanVariation)Value! : throw new System.Exception("CatalogObject.Type is not 'SUBSCRIPTION_PLAN_VARIATION'"); /// - /// Returns the value as a if is 'ITEM_OPTION', otherwise throws an exception. + /// Returns the value as a if is 'ITEM_OPTION', otherwise throws an exception. /// /// Thrown when is not 'ITEM_OPTION'. - public Square.CatalogObjectItemOption AsItemOption() => + public Square.Default.CatalogObjectItemOption AsItemOption() => IsItemOption - ? (Square.CatalogObjectItemOption)Value! + ? (Square.Default.CatalogObjectItemOption)Value! : throw new System.Exception("CatalogObject.Type is not 'ITEM_OPTION'"); /// - /// Returns the value as a if is 'ITEM_OPTION_VAL', otherwise throws an exception. + /// Returns the value as a if is 'ITEM_OPTION_VAL', otherwise throws an exception. /// /// Thrown when is not 'ITEM_OPTION_VAL'. - public Square.CatalogObjectItemOptionValue AsItemOptionVal() => + public Square.Default.CatalogObjectItemOptionValue AsItemOptionVal() => IsItemOptionVal - ? (Square.CatalogObjectItemOptionValue)Value! + ? (Square.Default.CatalogObjectItemOptionValue)Value! : throw new System.Exception("CatalogObject.Type is not 'ITEM_OPTION_VAL'"); /// - /// Returns the value as a if is 'CUSTOM_ATTRIBUTE_DEFINITION', otherwise throws an exception. + /// Returns the value as a if is 'CUSTOM_ATTRIBUTE_DEFINITION', otherwise throws an exception. /// /// Thrown when is not 'CUSTOM_ATTRIBUTE_DEFINITION'. - public Square.CatalogObjectCustomAttributeDefinition AsCustomAttributeDefinition() => + public Square.Default.CatalogObjectCustomAttributeDefinition AsCustomAttributeDefinition() => IsCustomAttributeDefinition - ? (Square.CatalogObjectCustomAttributeDefinition)Value! + ? (Square.Default.CatalogObjectCustomAttributeDefinition)Value! : throw new System.Exception("CatalogObject.Type is not 'CUSTOM_ATTRIBUTE_DEFINITION'"); /// - /// Returns the value as a if is 'QUICK_AMOUNTS_SETTINGS', otherwise throws an exception. + /// Returns the value as a if is 'QUICK_AMOUNTS_SETTINGS', otherwise throws an exception. /// /// Thrown when is not 'QUICK_AMOUNTS_SETTINGS'. - public Square.CatalogObjectQuickAmountsSettings AsQuickAmountsSettings() => + public Square.Default.CatalogObjectQuickAmountsSettings AsQuickAmountsSettings() => IsQuickAmountsSettings - ? (Square.CatalogObjectQuickAmountsSettings)Value! + ? (Square.Default.CatalogObjectQuickAmountsSettings)Value! : throw new System.Exception("CatalogObject.Type is not 'QUICK_AMOUNTS_SETTINGS'"); /// - /// Returns the value as a if is 'SUBSCRIPTION_PLAN', otherwise throws an exception. + /// Returns the value as a if is 'SUBSCRIPTION_PLAN', otherwise throws an exception. /// /// Thrown when is not 'SUBSCRIPTION_PLAN'. - public Square.CatalogObjectSubscriptionPlan AsSubscriptionPlan() => + public Square.Default.CatalogObjectSubscriptionPlan AsSubscriptionPlan() => IsSubscriptionPlan - ? (Square.CatalogObjectSubscriptionPlan)Value! + ? (Square.Default.CatalogObjectSubscriptionPlan)Value! : throw new System.Exception("CatalogObject.Type is not 'SUBSCRIPTION_PLAN'"); /// - /// Returns the value as a if is 'AVAILABILITY_PERIOD', otherwise throws an exception. + /// Returns the value as a if is 'AVAILABILITY_PERIOD', otherwise throws an exception. /// /// Thrown when is not 'AVAILABILITY_PERIOD'. - public Square.CatalogObjectAvailabilityPeriod AsAvailabilityPeriod() => + public Square.Default.CatalogObjectAvailabilityPeriod AsAvailabilityPeriod() => IsAvailabilityPeriod - ? (Square.CatalogObjectAvailabilityPeriod)Value! + ? (Square.Default.CatalogObjectAvailabilityPeriod)Value! : throw new System.Exception("CatalogObject.Type is not 'AVAILABILITY_PERIOD'"); public T Match( - Func onItem, - Func onImage, - Func onCategory, - Func onItemVariation, - Func onTax, - Func onDiscount, - Func onModifierList, - Func onModifier, - Func onPricingRule, - Func onProductSet, - Func onTimePeriod, - Func onMeasurementUnit, - Func onSubscriptionPlanVariation, - Func onItemOption, - Func onItemOptionVal, - Func onCustomAttributeDefinition, - Func onQuickAmountsSettings, - Func onSubscriptionPlan, - Func onAvailabilityPeriod, + Func onItem, + Func onImage, + Func onCategory, + Func onItemVariation, + Func onTax, + Func onDiscount, + Func onModifierList, + Func onModifier, + Func onPricingRule, + Func onProductSet, + Func onTimePeriod, + Func onMeasurementUnit, + Func onSubscriptionPlanVariation, + Func onItemOption, + Func onItemOptionVal, + Func onCustomAttributeDefinition, + Func onQuickAmountsSettings, + Func onSubscriptionPlan, + Func onAvailabilityPeriod, Func onUnknown_ ) { @@ -531,25 +531,25 @@ public T Match( } public void Visit( - Action onItem, - Action onImage, - Action onCategory, - Action onItemVariation, - Action onTax, - Action onDiscount, - Action onModifierList, - Action onModifier, - Action onPricingRule, - Action onProductSet, - Action onTimePeriod, - Action onMeasurementUnit, - Action onSubscriptionPlanVariation, - Action onItemOption, - Action onItemOptionVal, - Action onCustomAttributeDefinition, - Action onQuickAmountsSettings, - Action onSubscriptionPlan, - Action onAvailabilityPeriod, + Action onItem, + Action onImage, + Action onCategory, + Action onItemVariation, + Action onTax, + Action onDiscount, + Action onModifierList, + Action onModifier, + Action onPricingRule, + Action onProductSet, + Action onTimePeriod, + Action onMeasurementUnit, + Action onSubscriptionPlanVariation, + Action onItemOption, + Action onItemOptionVal, + Action onCustomAttributeDefinition, + Action onQuickAmountsSettings, + Action onSubscriptionPlan, + Action onAvailabilityPeriod, Action onUnknown_ ) { @@ -619,13 +619,13 @@ public void Visit( } /// - /// Attempts to cast the value to a and returns true if successful. + /// Attempts to cast the value to a and returns true if successful. /// - public bool TryAsItem(out Square.CatalogObjectItem? value) + public bool TryAsItem(out Square.Default.CatalogObjectItem? value) { if (Type == "ITEM") { - value = (Square.CatalogObjectItem)Value!; + value = (Square.Default.CatalogObjectItem)Value!; return true; } value = null; @@ -633,13 +633,13 @@ public bool TryAsItem(out Square.CatalogObjectItem? value) } /// - /// Attempts to cast the value to a and returns true if successful. + /// Attempts to cast the value to a and returns true if successful. /// - public bool TryAsImage(out Square.CatalogObjectImage? value) + public bool TryAsImage(out Square.Default.CatalogObjectImage? value) { if (Type == "IMAGE") { - value = (Square.CatalogObjectImage)Value!; + value = (Square.Default.CatalogObjectImage)Value!; return true; } value = null; @@ -647,13 +647,13 @@ public bool TryAsImage(out Square.CatalogObjectImage? value) } /// - /// Attempts to cast the value to a and returns true if successful. + /// Attempts to cast the value to a and returns true if successful. /// - public bool TryAsCategory(out Square.CatalogObjectCategory? value) + public bool TryAsCategory(out Square.Default.CatalogObjectCategory? value) { if (Type == "CATEGORY") { - value = (Square.CatalogObjectCategory)Value!; + value = (Square.Default.CatalogObjectCategory)Value!; return true; } value = null; @@ -661,13 +661,13 @@ public bool TryAsCategory(out Square.CatalogObjectCategory? value) } /// - /// Attempts to cast the value to a and returns true if successful. + /// Attempts to cast the value to a and returns true if successful. /// - public bool TryAsItemVariation(out Square.CatalogObjectItemVariation? value) + public bool TryAsItemVariation(out Square.Default.CatalogObjectItemVariation? value) { if (Type == "ITEM_VARIATION") { - value = (Square.CatalogObjectItemVariation)Value!; + value = (Square.Default.CatalogObjectItemVariation)Value!; return true; } value = null; @@ -675,13 +675,13 @@ public bool TryAsItemVariation(out Square.CatalogObjectItemVariation? value) } /// - /// Attempts to cast the value to a and returns true if successful. + /// Attempts to cast the value to a and returns true if successful. /// - public bool TryAsTax(out Square.CatalogObjectTax? value) + public bool TryAsTax(out Square.Default.CatalogObjectTax? value) { if (Type == "TAX") { - value = (Square.CatalogObjectTax)Value!; + value = (Square.Default.CatalogObjectTax)Value!; return true; } value = null; @@ -689,13 +689,13 @@ public bool TryAsTax(out Square.CatalogObjectTax? value) } /// - /// Attempts to cast the value to a and returns true if successful. + /// Attempts to cast the value to a and returns true if successful. /// - public bool TryAsDiscount(out Square.CatalogObjectDiscount? value) + public bool TryAsDiscount(out Square.Default.CatalogObjectDiscount? value) { if (Type == "DISCOUNT") { - value = (Square.CatalogObjectDiscount)Value!; + value = (Square.Default.CatalogObjectDiscount)Value!; return true; } value = null; @@ -703,13 +703,13 @@ public bool TryAsDiscount(out Square.CatalogObjectDiscount? value) } /// - /// Attempts to cast the value to a and returns true if successful. + /// Attempts to cast the value to a and returns true if successful. /// - public bool TryAsModifierList(out Square.CatalogObjectModifierList? value) + public bool TryAsModifierList(out Square.Default.CatalogObjectModifierList? value) { if (Type == "MODIFIER_LIST") { - value = (Square.CatalogObjectModifierList)Value!; + value = (Square.Default.CatalogObjectModifierList)Value!; return true; } value = null; @@ -717,13 +717,13 @@ public bool TryAsModifierList(out Square.CatalogObjectModifierList? value) } /// - /// Attempts to cast the value to a and returns true if successful. + /// Attempts to cast the value to a and returns true if successful. /// - public bool TryAsModifier(out Square.CatalogObjectModifier? value) + public bool TryAsModifier(out Square.Default.CatalogObjectModifier? value) { if (Type == "MODIFIER") { - value = (Square.CatalogObjectModifier)Value!; + value = (Square.Default.CatalogObjectModifier)Value!; return true; } value = null; @@ -731,13 +731,13 @@ public bool TryAsModifier(out Square.CatalogObjectModifier? value) } /// - /// Attempts to cast the value to a and returns true if successful. + /// Attempts to cast the value to a and returns true if successful. /// - public bool TryAsPricingRule(out Square.CatalogObjectPricingRule? value) + public bool TryAsPricingRule(out Square.Default.CatalogObjectPricingRule? value) { if (Type == "PRICING_RULE") { - value = (Square.CatalogObjectPricingRule)Value!; + value = (Square.Default.CatalogObjectPricingRule)Value!; return true; } value = null; @@ -745,13 +745,13 @@ public bool TryAsPricingRule(out Square.CatalogObjectPricingRule? value) } /// - /// Attempts to cast the value to a and returns true if successful. + /// Attempts to cast the value to a and returns true if successful. /// - public bool TryAsProductSet(out Square.CatalogObjectProductSet? value) + public bool TryAsProductSet(out Square.Default.CatalogObjectProductSet? value) { if (Type == "PRODUCT_SET") { - value = (Square.CatalogObjectProductSet)Value!; + value = (Square.Default.CatalogObjectProductSet)Value!; return true; } value = null; @@ -759,13 +759,13 @@ public bool TryAsProductSet(out Square.CatalogObjectProductSet? value) } /// - /// Attempts to cast the value to a and returns true if successful. + /// Attempts to cast the value to a and returns true if successful. /// - public bool TryAsTimePeriod(out Square.CatalogObjectTimePeriod? value) + public bool TryAsTimePeriod(out Square.Default.CatalogObjectTimePeriod? value) { if (Type == "TIME_PERIOD") { - value = (Square.CatalogObjectTimePeriod)Value!; + value = (Square.Default.CatalogObjectTimePeriod)Value!; return true; } value = null; @@ -773,13 +773,13 @@ public bool TryAsTimePeriod(out Square.CatalogObjectTimePeriod? value) } /// - /// Attempts to cast the value to a and returns true if successful. + /// Attempts to cast the value to a and returns true if successful. /// - public bool TryAsMeasurementUnit(out Square.CatalogObjectMeasurementUnit? value) + public bool TryAsMeasurementUnit(out Square.Default.CatalogObjectMeasurementUnit? value) { if (Type == "MEASUREMENT_UNIT") { - value = (Square.CatalogObjectMeasurementUnit)Value!; + value = (Square.Default.CatalogObjectMeasurementUnit)Value!; return true; } value = null; @@ -787,15 +787,15 @@ public bool TryAsMeasurementUnit(out Square.CatalogObjectMeasurementUnit? value) } /// - /// Attempts to cast the value to a and returns true if successful. + /// Attempts to cast the value to a and returns true if successful. /// public bool TryAsSubscriptionPlanVariation( - out Square.CatalogObjectSubscriptionPlanVariation? value + out Square.Default.CatalogObjectSubscriptionPlanVariation? value ) { if (Type == "SUBSCRIPTION_PLAN_VARIATION") { - value = (Square.CatalogObjectSubscriptionPlanVariation)Value!; + value = (Square.Default.CatalogObjectSubscriptionPlanVariation)Value!; return true; } value = null; @@ -803,13 +803,13 @@ out Square.CatalogObjectSubscriptionPlanVariation? value } /// - /// Attempts to cast the value to a and returns true if successful. + /// Attempts to cast the value to a and returns true if successful. /// - public bool TryAsItemOption(out Square.CatalogObjectItemOption? value) + public bool TryAsItemOption(out Square.Default.CatalogObjectItemOption? value) { if (Type == "ITEM_OPTION") { - value = (Square.CatalogObjectItemOption)Value!; + value = (Square.Default.CatalogObjectItemOption)Value!; return true; } value = null; @@ -817,13 +817,13 @@ public bool TryAsItemOption(out Square.CatalogObjectItemOption? value) } /// - /// Attempts to cast the value to a and returns true if successful. + /// Attempts to cast the value to a and returns true if successful. /// - public bool TryAsItemOptionVal(out Square.CatalogObjectItemOptionValue? value) + public bool TryAsItemOptionVal(out Square.Default.CatalogObjectItemOptionValue? value) { if (Type == "ITEM_OPTION_VAL") { - value = (Square.CatalogObjectItemOptionValue)Value!; + value = (Square.Default.CatalogObjectItemOptionValue)Value!; return true; } value = null; @@ -831,15 +831,15 @@ public bool TryAsItemOptionVal(out Square.CatalogObjectItemOptionValue? value) } /// - /// Attempts to cast the value to a and returns true if successful. + /// Attempts to cast the value to a and returns true if successful. /// public bool TryAsCustomAttributeDefinition( - out Square.CatalogObjectCustomAttributeDefinition? value + out Square.Default.CatalogObjectCustomAttributeDefinition? value ) { if (Type == "CUSTOM_ATTRIBUTE_DEFINITION") { - value = (Square.CatalogObjectCustomAttributeDefinition)Value!; + value = (Square.Default.CatalogObjectCustomAttributeDefinition)Value!; return true; } value = null; @@ -847,13 +847,15 @@ out Square.CatalogObjectCustomAttributeDefinition? value } /// - /// Attempts to cast the value to a and returns true if successful. + /// Attempts to cast the value to a and returns true if successful. /// - public bool TryAsQuickAmountsSettings(out Square.CatalogObjectQuickAmountsSettings? value) + public bool TryAsQuickAmountsSettings( + out Square.Default.CatalogObjectQuickAmountsSettings? value + ) { if (Type == "QUICK_AMOUNTS_SETTINGS") { - value = (Square.CatalogObjectQuickAmountsSettings)Value!; + value = (Square.Default.CatalogObjectQuickAmountsSettings)Value!; return true; } value = null; @@ -861,13 +863,13 @@ public bool TryAsQuickAmountsSettings(out Square.CatalogObjectQuickAmountsSettin } /// - /// Attempts to cast the value to a and returns true if successful. + /// Attempts to cast the value to a and returns true if successful. /// - public bool TryAsSubscriptionPlan(out Square.CatalogObjectSubscriptionPlan? value) + public bool TryAsSubscriptionPlan(out Square.Default.CatalogObjectSubscriptionPlan? value) { if (Type == "SUBSCRIPTION_PLAN") { - value = (Square.CatalogObjectSubscriptionPlan)Value!; + value = (Square.Default.CatalogObjectSubscriptionPlan)Value!; return true; } value = null; @@ -875,13 +877,13 @@ public bool TryAsSubscriptionPlan(out Square.CatalogObjectSubscriptionPlan? valu } /// - /// Attempts to cast the value to a and returns true if successful. + /// Attempts to cast the value to a and returns true if successful. /// - public bool TryAsAvailabilityPeriod(out Square.CatalogObjectAvailabilityPeriod? value) + public bool TryAsAvailabilityPeriod(out Square.Default.CatalogObjectAvailabilityPeriod? value) { if (Type == "AVAILABILITY_PERIOD") { - value = (Square.CatalogObjectAvailabilityPeriod)Value!; + value = (Square.Default.CatalogObjectAvailabilityPeriod)Value!; return true; } value = null; @@ -969,85 +971,100 @@ JsonSerializerOptions options var value = discriminator switch { - "ITEM" => json.Deserialize(options) - ?? throw new JsonException("Failed to deserialize Square.CatalogObjectItem"), - "IMAGE" => json.Deserialize(options) - ?? throw new JsonException("Failed to deserialize Square.CatalogObjectImage"), - "CATEGORY" => json.Deserialize(options) + "ITEM" => json.Deserialize(options) ?? throw new JsonException( - "Failed to deserialize Square.CatalogObjectCategory" + "Failed to deserialize Square.Default.CatalogObjectItem" ), - "ITEM_VARIATION" => json.Deserialize(options) + "IMAGE" => json.Deserialize(options) ?? throw new JsonException( - "Failed to deserialize Square.CatalogObjectItemVariation" + "Failed to deserialize Square.Default.CatalogObjectImage" ), - "TAX" => json.Deserialize(options) - ?? throw new JsonException("Failed to deserialize Square.CatalogObjectTax"), - "DISCOUNT" => json.Deserialize(options) + "CATEGORY" => json.Deserialize(options) ?? throw new JsonException( - "Failed to deserialize Square.CatalogObjectDiscount" + "Failed to deserialize Square.Default.CatalogObjectCategory" ), - "MODIFIER_LIST" => json.Deserialize(options) + "ITEM_VARIATION" => json.Deserialize( + options + ) ?? throw new JsonException( - "Failed to deserialize Square.CatalogObjectModifierList" + "Failed to deserialize Square.Default.CatalogObjectItemVariation" ), - "MODIFIER" => json.Deserialize(options) + "TAX" => json.Deserialize(options) ?? throw new JsonException( - "Failed to deserialize Square.CatalogObjectModifier" + "Failed to deserialize Square.Default.CatalogObjectTax" ), - "PRICING_RULE" => json.Deserialize(options) + "DISCOUNT" => json.Deserialize(options) ?? throw new JsonException( - "Failed to deserialize Square.CatalogObjectPricingRule" + "Failed to deserialize Square.Default.CatalogObjectDiscount" ), - "PRODUCT_SET" => json.Deserialize(options) + "MODIFIER_LIST" => json.Deserialize( + options + ) ?? throw new JsonException( - "Failed to deserialize Square.CatalogObjectProductSet" + "Failed to deserialize Square.Default.CatalogObjectModifierList" ), - "TIME_PERIOD" => json.Deserialize(options) + "MODIFIER" => json.Deserialize(options) ?? throw new JsonException( - "Failed to deserialize Square.CatalogObjectTimePeriod" + "Failed to deserialize Square.Default.CatalogObjectModifier" ), - "MEASUREMENT_UNIT" => json.Deserialize( + "PRICING_RULE" => json.Deserialize( options ) ?? throw new JsonException( - "Failed to deserialize Square.CatalogObjectMeasurementUnit" + "Failed to deserialize Square.Default.CatalogObjectPricingRule" ), - "SUBSCRIPTION_PLAN_VARIATION" => - json.Deserialize(options) - ?? throw new JsonException( - "Failed to deserialize Square.CatalogObjectSubscriptionPlanVariation" - ), - "ITEM_OPTION" => json.Deserialize(options) + "PRODUCT_SET" => json.Deserialize(options) ?? throw new JsonException( - "Failed to deserialize Square.CatalogObjectItemOption" + "Failed to deserialize Square.Default.CatalogObjectProductSet" ), - "ITEM_OPTION_VAL" => json.Deserialize(options) + "TIME_PERIOD" => json.Deserialize(options) ?? throw new JsonException( - "Failed to deserialize Square.CatalogObjectItemOptionValue" + "Failed to deserialize Square.Default.CatalogObjectTimePeriod" ), - "CUSTOM_ATTRIBUTE_DEFINITION" => - json.Deserialize(options) + "MEASUREMENT_UNIT" => + json.Deserialize(options) ?? throw new JsonException( - "Failed to deserialize Square.CatalogObjectCustomAttributeDefinition" + "Failed to deserialize Square.Default.CatalogObjectMeasurementUnit" ), - "QUICK_AMOUNTS_SETTINGS" => - json.Deserialize(options) + "SUBSCRIPTION_PLAN_VARIATION" => + json.Deserialize( + options + ) ?? throw new JsonException( - "Failed to deserialize Square.CatalogObjectQuickAmountsSettings" + "Failed to deserialize Square.Default.CatalogObjectSubscriptionPlanVariation" ), - "SUBSCRIPTION_PLAN" => json.Deserialize( - options - ) + "ITEM_OPTION" => json.Deserialize(options) ?? throw new JsonException( - "Failed to deserialize Square.CatalogObjectSubscriptionPlan" + "Failed to deserialize Square.Default.CatalogObjectItemOption" ), - "AVAILABILITY_PERIOD" => json.Deserialize( + "ITEM_OPTION_VAL" => json.Deserialize( options ) ?? throw new JsonException( - "Failed to deserialize Square.CatalogObjectAvailabilityPeriod" + "Failed to deserialize Square.Default.CatalogObjectItemOptionValue" ), + "CUSTOM_ATTRIBUTE_DEFINITION" => + json.Deserialize( + options + ) + ?? throw new JsonException( + "Failed to deserialize Square.Default.CatalogObjectCustomAttributeDefinition" + ), + "QUICK_AMOUNTS_SETTINGS" => + json.Deserialize(options) + ?? throw new JsonException( + "Failed to deserialize Square.Default.CatalogObjectQuickAmountsSettings" + ), + "SUBSCRIPTION_PLAN" => + json.Deserialize(options) + ?? throw new JsonException( + "Failed to deserialize Square.Default.CatalogObjectSubscriptionPlan" + ), + "AVAILABILITY_PERIOD" => + json.Deserialize(options) + ?? throw new JsonException( + "Failed to deserialize Square.Default.CatalogObjectAvailabilityPeriod" + ), _ => json.Deserialize(options), }; return new CatalogObject(discriminator, value); @@ -1103,17 +1120,18 @@ JsonSerializerOptions options [Serializable] public struct Item { - public Item(Square.CatalogObjectItem value) + public Item(Square.Default.CatalogObjectItem value) { Value = value; } - internal Square.CatalogObjectItem Value { get; set; } + internal Square.Default.CatalogObjectItem Value { get; set; } public override string ToString() => Value.ToString() ?? "null"; - public static implicit operator CatalogObject.Item(Square.CatalogObjectItem value) => - new(value); + public static implicit operator CatalogObject.Item( + Square.Default.CatalogObjectItem value + ) => new(value); } /// @@ -1122,17 +1140,18 @@ public static implicit operator CatalogObject.Item(Square.CatalogObjectItem valu [Serializable] public struct Image { - public Image(Square.CatalogObjectImage value) + public Image(Square.Default.CatalogObjectImage value) { Value = value; } - internal Square.CatalogObjectImage Value { get; set; } + internal Square.Default.CatalogObjectImage Value { get; set; } public override string ToString() => Value.ToString() ?? "null"; - public static implicit operator CatalogObject.Image(Square.CatalogObjectImage value) => - new(value); + public static implicit operator CatalogObject.Image( + Square.Default.CatalogObjectImage value + ) => new(value); } /// @@ -1141,17 +1160,17 @@ public static implicit operator CatalogObject.Image(Square.CatalogObjectImage va [Serializable] public struct Category { - public Category(Square.CatalogObjectCategory value) + public Category(Square.Default.CatalogObjectCategory value) { Value = value; } - internal Square.CatalogObjectCategory Value { get; set; } + internal Square.Default.CatalogObjectCategory Value { get; set; } public override string ToString() => Value.ToString() ?? "null"; public static implicit operator CatalogObject.Category( - Square.CatalogObjectCategory value + Square.Default.CatalogObjectCategory value ) => new(value); } @@ -1161,17 +1180,17 @@ Square.CatalogObjectCategory value [Serializable] public struct ItemVariation { - public ItemVariation(Square.CatalogObjectItemVariation value) + public ItemVariation(Square.Default.CatalogObjectItemVariation value) { Value = value; } - internal Square.CatalogObjectItemVariation Value { get; set; } + internal Square.Default.CatalogObjectItemVariation Value { get; set; } public override string ToString() => Value.ToString() ?? "null"; public static implicit operator CatalogObject.ItemVariation( - Square.CatalogObjectItemVariation value + Square.Default.CatalogObjectItemVariation value ) => new(value); } @@ -1181,16 +1200,16 @@ Square.CatalogObjectItemVariation value [Serializable] public struct Tax { - public Tax(Square.CatalogObjectTax value) + public Tax(Square.Default.CatalogObjectTax value) { Value = value; } - internal Square.CatalogObjectTax Value { get; set; } + internal Square.Default.CatalogObjectTax Value { get; set; } public override string ToString() => Value.ToString() ?? "null"; - public static implicit operator CatalogObject.Tax(Square.CatalogObjectTax value) => + public static implicit operator CatalogObject.Tax(Square.Default.CatalogObjectTax value) => new(value); } @@ -1200,17 +1219,17 @@ public static implicit operator CatalogObject.Tax(Square.CatalogObjectTax value) [Serializable] public struct Discount { - public Discount(Square.CatalogObjectDiscount value) + public Discount(Square.Default.CatalogObjectDiscount value) { Value = value; } - internal Square.CatalogObjectDiscount Value { get; set; } + internal Square.Default.CatalogObjectDiscount Value { get; set; } public override string ToString() => Value.ToString() ?? "null"; public static implicit operator CatalogObject.Discount( - Square.CatalogObjectDiscount value + Square.Default.CatalogObjectDiscount value ) => new(value); } @@ -1220,17 +1239,17 @@ Square.CatalogObjectDiscount value [Serializable] public struct ModifierList { - public ModifierList(Square.CatalogObjectModifierList value) + public ModifierList(Square.Default.CatalogObjectModifierList value) { Value = value; } - internal Square.CatalogObjectModifierList Value { get; set; } + internal Square.Default.CatalogObjectModifierList Value { get; set; } public override string ToString() => Value.ToString() ?? "null"; public static implicit operator CatalogObject.ModifierList( - Square.CatalogObjectModifierList value + Square.Default.CatalogObjectModifierList value ) => new(value); } @@ -1240,17 +1259,17 @@ Square.CatalogObjectModifierList value [Serializable] public struct Modifier { - public Modifier(Square.CatalogObjectModifier value) + public Modifier(Square.Default.CatalogObjectModifier value) { Value = value; } - internal Square.CatalogObjectModifier Value { get; set; } + internal Square.Default.CatalogObjectModifier Value { get; set; } public override string ToString() => Value.ToString() ?? "null"; public static implicit operator CatalogObject.Modifier( - Square.CatalogObjectModifier value + Square.Default.CatalogObjectModifier value ) => new(value); } @@ -1260,17 +1279,17 @@ Square.CatalogObjectModifier value [Serializable] public struct PricingRule { - public PricingRule(Square.CatalogObjectPricingRule value) + public PricingRule(Square.Default.CatalogObjectPricingRule value) { Value = value; } - internal Square.CatalogObjectPricingRule Value { get; set; } + internal Square.Default.CatalogObjectPricingRule Value { get; set; } public override string ToString() => Value.ToString() ?? "null"; public static implicit operator CatalogObject.PricingRule( - Square.CatalogObjectPricingRule value + Square.Default.CatalogObjectPricingRule value ) => new(value); } @@ -1280,17 +1299,17 @@ Square.CatalogObjectPricingRule value [Serializable] public struct ProductSet { - public ProductSet(Square.CatalogObjectProductSet value) + public ProductSet(Square.Default.CatalogObjectProductSet value) { Value = value; } - internal Square.CatalogObjectProductSet Value { get; set; } + internal Square.Default.CatalogObjectProductSet Value { get; set; } public override string ToString() => Value.ToString() ?? "null"; public static implicit operator CatalogObject.ProductSet( - Square.CatalogObjectProductSet value + Square.Default.CatalogObjectProductSet value ) => new(value); } @@ -1300,17 +1319,17 @@ Square.CatalogObjectProductSet value [Serializable] public struct TimePeriod { - public TimePeriod(Square.CatalogObjectTimePeriod value) + public TimePeriod(Square.Default.CatalogObjectTimePeriod value) { Value = value; } - internal Square.CatalogObjectTimePeriod Value { get; set; } + internal Square.Default.CatalogObjectTimePeriod Value { get; set; } public override string ToString() => Value.ToString() ?? "null"; public static implicit operator CatalogObject.TimePeriod( - Square.CatalogObjectTimePeriod value + Square.Default.CatalogObjectTimePeriod value ) => new(value); } @@ -1320,17 +1339,17 @@ Square.CatalogObjectTimePeriod value [Serializable] public struct MeasurementUnit { - public MeasurementUnit(Square.CatalogObjectMeasurementUnit value) + public MeasurementUnit(Square.Default.CatalogObjectMeasurementUnit value) { Value = value; } - internal Square.CatalogObjectMeasurementUnit Value { get; set; } + internal Square.Default.CatalogObjectMeasurementUnit Value { get; set; } public override string ToString() => Value.ToString() ?? "null"; public static implicit operator CatalogObject.MeasurementUnit( - Square.CatalogObjectMeasurementUnit value + Square.Default.CatalogObjectMeasurementUnit value ) => new(value); } @@ -1340,17 +1359,19 @@ Square.CatalogObjectMeasurementUnit value [Serializable] public struct SubscriptionPlanVariation { - public SubscriptionPlanVariation(Square.CatalogObjectSubscriptionPlanVariation value) + public SubscriptionPlanVariation( + Square.Default.CatalogObjectSubscriptionPlanVariation value + ) { Value = value; } - internal Square.CatalogObjectSubscriptionPlanVariation Value { get; set; } + internal Square.Default.CatalogObjectSubscriptionPlanVariation Value { get; set; } public override string ToString() => Value.ToString() ?? "null"; public static implicit operator CatalogObject.SubscriptionPlanVariation( - Square.CatalogObjectSubscriptionPlanVariation value + Square.Default.CatalogObjectSubscriptionPlanVariation value ) => new(value); } @@ -1360,17 +1381,17 @@ Square.CatalogObjectSubscriptionPlanVariation value [Serializable] public struct ItemOption { - public ItemOption(Square.CatalogObjectItemOption value) + public ItemOption(Square.Default.CatalogObjectItemOption value) { Value = value; } - internal Square.CatalogObjectItemOption Value { get; set; } + internal Square.Default.CatalogObjectItemOption Value { get; set; } public override string ToString() => Value.ToString() ?? "null"; public static implicit operator CatalogObject.ItemOption( - Square.CatalogObjectItemOption value + Square.Default.CatalogObjectItemOption value ) => new(value); } @@ -1380,17 +1401,17 @@ Square.CatalogObjectItemOption value [Serializable] public struct ItemOptionVal { - public ItemOptionVal(Square.CatalogObjectItemOptionValue value) + public ItemOptionVal(Square.Default.CatalogObjectItemOptionValue value) { Value = value; } - internal Square.CatalogObjectItemOptionValue Value { get; set; } + internal Square.Default.CatalogObjectItemOptionValue Value { get; set; } public override string ToString() => Value.ToString() ?? "null"; public static implicit operator CatalogObject.ItemOptionVal( - Square.CatalogObjectItemOptionValue value + Square.Default.CatalogObjectItemOptionValue value ) => new(value); } @@ -1400,17 +1421,19 @@ Square.CatalogObjectItemOptionValue value [Serializable] public struct CustomAttributeDefinition { - public CustomAttributeDefinition(Square.CatalogObjectCustomAttributeDefinition value) + public CustomAttributeDefinition( + Square.Default.CatalogObjectCustomAttributeDefinition value + ) { Value = value; } - internal Square.CatalogObjectCustomAttributeDefinition Value { get; set; } + internal Square.Default.CatalogObjectCustomAttributeDefinition Value { get; set; } public override string ToString() => Value.ToString() ?? "null"; public static implicit operator CatalogObject.CustomAttributeDefinition( - Square.CatalogObjectCustomAttributeDefinition value + Square.Default.CatalogObjectCustomAttributeDefinition value ) => new(value); } @@ -1420,17 +1443,17 @@ Square.CatalogObjectCustomAttributeDefinition value [Serializable] public struct QuickAmountsSettings { - public QuickAmountsSettings(Square.CatalogObjectQuickAmountsSettings value) + public QuickAmountsSettings(Square.Default.CatalogObjectQuickAmountsSettings value) { Value = value; } - internal Square.CatalogObjectQuickAmountsSettings Value { get; set; } + internal Square.Default.CatalogObjectQuickAmountsSettings Value { get; set; } public override string ToString() => Value.ToString() ?? "null"; public static implicit operator CatalogObject.QuickAmountsSettings( - Square.CatalogObjectQuickAmountsSettings value + Square.Default.CatalogObjectQuickAmountsSettings value ) => new(value); } @@ -1440,17 +1463,17 @@ Square.CatalogObjectQuickAmountsSettings value [Serializable] public struct SubscriptionPlan { - public SubscriptionPlan(Square.CatalogObjectSubscriptionPlan value) + public SubscriptionPlan(Square.Default.CatalogObjectSubscriptionPlan value) { Value = value; } - internal Square.CatalogObjectSubscriptionPlan Value { get; set; } + internal Square.Default.CatalogObjectSubscriptionPlan Value { get; set; } public override string ToString() => Value.ToString() ?? "null"; public static implicit operator CatalogObject.SubscriptionPlan( - Square.CatalogObjectSubscriptionPlan value + Square.Default.CatalogObjectSubscriptionPlan value ) => new(value); } @@ -1460,17 +1483,17 @@ Square.CatalogObjectSubscriptionPlan value [Serializable] public struct AvailabilityPeriod { - public AvailabilityPeriod(Square.CatalogObjectAvailabilityPeriod value) + public AvailabilityPeriod(Square.Default.CatalogObjectAvailabilityPeriod value) { Value = value; } - internal Square.CatalogObjectAvailabilityPeriod Value { get; set; } + internal Square.Default.CatalogObjectAvailabilityPeriod Value { get; set; } public override string ToString() => Value.ToString() ?? "null"; public static implicit operator CatalogObject.AvailabilityPeriod( - Square.CatalogObjectAvailabilityPeriod value + Square.Default.CatalogObjectAvailabilityPeriod value ) => new(value); } } diff --git a/src/Square/Types/CatalogObjectAvailabilityPeriod.cs b/src/Square/Default/Types/CatalogObjectAvailabilityPeriod.cs similarity index 99% rename from src/Square/Types/CatalogObjectAvailabilityPeriod.cs rename to src/Square/Default/Types/CatalogObjectAvailabilityPeriod.cs index 61310860..ad2f146c 100644 --- a/src/Square/Types/CatalogObjectAvailabilityPeriod.cs +++ b/src/Square/Default/Types/CatalogObjectAvailabilityPeriod.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CatalogObjectAvailabilityPeriod : IJsonOnDeserialized diff --git a/src/Square/Types/CatalogObjectBase.cs b/src/Square/Default/Types/CatalogObjectBase.cs similarity index 99% rename from src/Square/Types/CatalogObjectBase.cs rename to src/Square/Default/Types/CatalogObjectBase.cs index b9051c9a..dae19325 100644 --- a/src/Square/Types/CatalogObjectBase.cs +++ b/src/Square/Default/Types/CatalogObjectBase.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CatalogObjectBase : IJsonOnDeserialized diff --git a/src/Square/Types/CatalogObjectBatch.cs b/src/Square/Default/Types/CatalogObjectBatch.cs similarity index 95% rename from src/Square/Types/CatalogObjectBatch.cs rename to src/Square/Default/Types/CatalogObjectBatch.cs index 57bb3873..2df8517a 100644 --- a/src/Square/Types/CatalogObjectBatch.cs +++ b/src/Square/Default/Types/CatalogObjectBatch.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A batch of catalog objects. diff --git a/src/Square/Types/CatalogObjectCategory.cs b/src/Square/Default/Types/CatalogObjectCategory.cs similarity index 99% rename from src/Square/Types/CatalogObjectCategory.cs rename to src/Square/Default/Types/CatalogObjectCategory.cs index 5b65296d..4d9cbd0c 100644 --- a/src/Square/Types/CatalogObjectCategory.cs +++ b/src/Square/Default/Types/CatalogObjectCategory.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A category that can be assigned to an item or a parent category that can be assigned diff --git a/src/Square/Types/CatalogObjectCustomAttributeDefinition.cs b/src/Square/Default/Types/CatalogObjectCustomAttributeDefinition.cs similarity index 99% rename from src/Square/Types/CatalogObjectCustomAttributeDefinition.cs rename to src/Square/Default/Types/CatalogObjectCustomAttributeDefinition.cs index 289e4713..a6b9a799 100644 --- a/src/Square/Types/CatalogObjectCustomAttributeDefinition.cs +++ b/src/Square/Default/Types/CatalogObjectCustomAttributeDefinition.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CatalogObjectCustomAttributeDefinition : IJsonOnDeserialized diff --git a/src/Square/Types/CatalogObjectDiscount.cs b/src/Square/Default/Types/CatalogObjectDiscount.cs similarity index 99% rename from src/Square/Types/CatalogObjectDiscount.cs rename to src/Square/Default/Types/CatalogObjectDiscount.cs index d9d0fcae..1a0f5025 100644 --- a/src/Square/Types/CatalogObjectDiscount.cs +++ b/src/Square/Default/Types/CatalogObjectDiscount.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CatalogObjectDiscount : IJsonOnDeserialized diff --git a/src/Square/Types/CatalogObjectImage.cs b/src/Square/Default/Types/CatalogObjectImage.cs similarity index 99% rename from src/Square/Types/CatalogObjectImage.cs rename to src/Square/Default/Types/CatalogObjectImage.cs index 864cd745..b05db73f 100644 --- a/src/Square/Types/CatalogObjectImage.cs +++ b/src/Square/Default/Types/CatalogObjectImage.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CatalogObjectImage : IJsonOnDeserialized diff --git a/src/Square/Types/CatalogObjectItem.cs b/src/Square/Default/Types/CatalogObjectItem.cs similarity index 99% rename from src/Square/Types/CatalogObjectItem.cs rename to src/Square/Default/Types/CatalogObjectItem.cs index c6e4d426..69545e6b 100644 --- a/src/Square/Types/CatalogObjectItem.cs +++ b/src/Square/Default/Types/CatalogObjectItem.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CatalogObjectItem : IJsonOnDeserialized diff --git a/src/Square/Types/CatalogObjectItemOption.cs b/src/Square/Default/Types/CatalogObjectItemOption.cs similarity index 99% rename from src/Square/Types/CatalogObjectItemOption.cs rename to src/Square/Default/Types/CatalogObjectItemOption.cs index 311d05c2..6305e40a 100644 --- a/src/Square/Types/CatalogObjectItemOption.cs +++ b/src/Square/Default/Types/CatalogObjectItemOption.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CatalogObjectItemOption : IJsonOnDeserialized diff --git a/src/Square/Types/CatalogObjectItemOptionValue.cs b/src/Square/Default/Types/CatalogObjectItemOptionValue.cs similarity index 99% rename from src/Square/Types/CatalogObjectItemOptionValue.cs rename to src/Square/Default/Types/CatalogObjectItemOptionValue.cs index b79e4fe6..3d4c49d9 100644 --- a/src/Square/Types/CatalogObjectItemOptionValue.cs +++ b/src/Square/Default/Types/CatalogObjectItemOptionValue.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CatalogObjectItemOptionValue : IJsonOnDeserialized diff --git a/src/Square/Types/CatalogObjectItemVariation.cs b/src/Square/Default/Types/CatalogObjectItemVariation.cs similarity index 99% rename from src/Square/Types/CatalogObjectItemVariation.cs rename to src/Square/Default/Types/CatalogObjectItemVariation.cs index 140fa2d4..c55ff4e3 100644 --- a/src/Square/Types/CatalogObjectItemVariation.cs +++ b/src/Square/Default/Types/CatalogObjectItemVariation.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CatalogObjectItemVariation : IJsonOnDeserialized diff --git a/src/Square/Types/CatalogObjectMeasurementUnit.cs b/src/Square/Default/Types/CatalogObjectMeasurementUnit.cs similarity index 99% rename from src/Square/Types/CatalogObjectMeasurementUnit.cs rename to src/Square/Default/Types/CatalogObjectMeasurementUnit.cs index d873314d..ee5ec399 100644 --- a/src/Square/Types/CatalogObjectMeasurementUnit.cs +++ b/src/Square/Default/Types/CatalogObjectMeasurementUnit.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CatalogObjectMeasurementUnit : IJsonOnDeserialized diff --git a/src/Square/Types/CatalogObjectModifier.cs b/src/Square/Default/Types/CatalogObjectModifier.cs similarity index 99% rename from src/Square/Types/CatalogObjectModifier.cs rename to src/Square/Default/Types/CatalogObjectModifier.cs index 7d64ae2e..9c36470d 100644 --- a/src/Square/Types/CatalogObjectModifier.cs +++ b/src/Square/Default/Types/CatalogObjectModifier.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CatalogObjectModifier : IJsonOnDeserialized diff --git a/src/Square/Types/CatalogObjectModifierList.cs b/src/Square/Default/Types/CatalogObjectModifierList.cs similarity index 99% rename from src/Square/Types/CatalogObjectModifierList.cs rename to src/Square/Default/Types/CatalogObjectModifierList.cs index 7343b4b3..c51db7a9 100644 --- a/src/Square/Types/CatalogObjectModifierList.cs +++ b/src/Square/Default/Types/CatalogObjectModifierList.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CatalogObjectModifierList : IJsonOnDeserialized diff --git a/src/Square/Types/CatalogObjectPricingRule.cs b/src/Square/Default/Types/CatalogObjectPricingRule.cs similarity index 99% rename from src/Square/Types/CatalogObjectPricingRule.cs rename to src/Square/Default/Types/CatalogObjectPricingRule.cs index bfe4e058..bc5195b3 100644 --- a/src/Square/Types/CatalogObjectPricingRule.cs +++ b/src/Square/Default/Types/CatalogObjectPricingRule.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CatalogObjectPricingRule : IJsonOnDeserialized diff --git a/src/Square/Types/CatalogObjectProductSet.cs b/src/Square/Default/Types/CatalogObjectProductSet.cs similarity index 99% rename from src/Square/Types/CatalogObjectProductSet.cs rename to src/Square/Default/Types/CatalogObjectProductSet.cs index f1db037a..65ee5936 100644 --- a/src/Square/Types/CatalogObjectProductSet.cs +++ b/src/Square/Default/Types/CatalogObjectProductSet.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CatalogObjectProductSet : IJsonOnDeserialized diff --git a/src/Square/Types/CatalogObjectQuickAmountsSettings.cs b/src/Square/Default/Types/CatalogObjectQuickAmountsSettings.cs similarity index 99% rename from src/Square/Types/CatalogObjectQuickAmountsSettings.cs rename to src/Square/Default/Types/CatalogObjectQuickAmountsSettings.cs index 9fbae0a3..3e0a1c9b 100644 --- a/src/Square/Types/CatalogObjectQuickAmountsSettings.cs +++ b/src/Square/Default/Types/CatalogObjectQuickAmountsSettings.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CatalogObjectQuickAmountsSettings : IJsonOnDeserialized diff --git a/src/Square/Types/CatalogObjectReference.cs b/src/Square/Default/Types/CatalogObjectReference.cs similarity index 96% rename from src/Square/Types/CatalogObjectReference.cs rename to src/Square/Default/Types/CatalogObjectReference.cs index e6c5c852..42cdfbe3 100644 --- a/src/Square/Types/CatalogObjectReference.cs +++ b/src/Square/Default/Types/CatalogObjectReference.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A reference to a Catalog object at a specific version. In general this is diff --git a/src/Square/Types/CatalogObjectSubscriptionPlan.cs b/src/Square/Default/Types/CatalogObjectSubscriptionPlan.cs similarity index 99% rename from src/Square/Types/CatalogObjectSubscriptionPlan.cs rename to src/Square/Default/Types/CatalogObjectSubscriptionPlan.cs index b7122bed..2ae6bd65 100644 --- a/src/Square/Types/CatalogObjectSubscriptionPlan.cs +++ b/src/Square/Default/Types/CatalogObjectSubscriptionPlan.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CatalogObjectSubscriptionPlan : IJsonOnDeserialized diff --git a/src/Square/Types/CatalogObjectSubscriptionPlanVariation.cs b/src/Square/Default/Types/CatalogObjectSubscriptionPlanVariation.cs similarity index 99% rename from src/Square/Types/CatalogObjectSubscriptionPlanVariation.cs rename to src/Square/Default/Types/CatalogObjectSubscriptionPlanVariation.cs index b906bdd2..1f170c33 100644 --- a/src/Square/Types/CatalogObjectSubscriptionPlanVariation.cs +++ b/src/Square/Default/Types/CatalogObjectSubscriptionPlanVariation.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CatalogObjectSubscriptionPlanVariation : IJsonOnDeserialized diff --git a/src/Square/Types/CatalogObjectTax.cs b/src/Square/Default/Types/CatalogObjectTax.cs similarity index 99% rename from src/Square/Types/CatalogObjectTax.cs rename to src/Square/Default/Types/CatalogObjectTax.cs index 8ffa8d96..c6850da0 100644 --- a/src/Square/Types/CatalogObjectTax.cs +++ b/src/Square/Default/Types/CatalogObjectTax.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CatalogObjectTax : IJsonOnDeserialized diff --git a/src/Square/Types/CatalogObjectTimePeriod.cs b/src/Square/Default/Types/CatalogObjectTimePeriod.cs similarity index 99% rename from src/Square/Types/CatalogObjectTimePeriod.cs rename to src/Square/Default/Types/CatalogObjectTimePeriod.cs index 0bb3124a..04658fd9 100644 --- a/src/Square/Types/CatalogObjectTimePeriod.cs +++ b/src/Square/Default/Types/CatalogObjectTimePeriod.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CatalogObjectTimePeriod : IJsonOnDeserialized diff --git a/src/Square/Types/CatalogObjectType.cs b/src/Square/Default/Types/CatalogObjectType.cs similarity index 99% rename from src/Square/Types/CatalogObjectType.cs rename to src/Square/Default/Types/CatalogObjectType.cs index d3b23582..6b105fab 100644 --- a/src/Square/Types/CatalogObjectType.cs +++ b/src/Square/Default/Types/CatalogObjectType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/CatalogPricingRule.cs b/src/Square/Default/Types/CatalogPricingRule.cs similarity index 99% rename from src/Square/Types/CatalogPricingRule.cs rename to src/Square/Default/Types/CatalogPricingRule.cs index 01d13ab6..a32cfb25 100644 --- a/src/Square/Types/CatalogPricingRule.cs +++ b/src/Square/Default/Types/CatalogPricingRule.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines how discounts are automatically applied to a set of items that match the pricing rule diff --git a/src/Square/Types/CatalogPricingType.cs b/src/Square/Default/Types/CatalogPricingType.cs similarity index 98% rename from src/Square/Types/CatalogPricingType.cs rename to src/Square/Default/Types/CatalogPricingType.cs index df6e597c..3cf3ba57 100644 --- a/src/Square/Types/CatalogPricingType.cs +++ b/src/Square/Default/Types/CatalogPricingType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/CatalogProductSet.cs b/src/Square/Default/Types/CatalogProductSet.cs similarity index 98% rename from src/Square/Types/CatalogProductSet.cs rename to src/Square/Default/Types/CatalogProductSet.cs index 6c81ed85..149489c4 100644 --- a/src/Square/Types/CatalogProductSet.cs +++ b/src/Square/Default/Types/CatalogProductSet.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a collection of catalog objects for the purpose of applying a diff --git a/src/Square/Types/CatalogQuery.cs b/src/Square/Default/Types/CatalogQuery.cs similarity index 99% rename from src/Square/Types/CatalogQuery.cs rename to src/Square/Default/Types/CatalogQuery.cs index 69c09cbf..03c06b85 100644 --- a/src/Square/Types/CatalogQuery.cs +++ b/src/Square/Default/Types/CatalogQuery.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A query composed of one or more different types of filters to narrow the scope of targeted objects when calling the `SearchCatalogObjects` endpoint. diff --git a/src/Square/Types/CatalogQueryExact.cs b/src/Square/Default/Types/CatalogQueryExact.cs similarity index 97% rename from src/Square/Types/CatalogQueryExact.cs rename to src/Square/Default/Types/CatalogQueryExact.cs index d9c8b21d..04f96e41 100644 --- a/src/Square/Types/CatalogQueryExact.cs +++ b/src/Square/Default/Types/CatalogQueryExact.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The query filter to return the search result by exact match of the specified attribute name and value. diff --git a/src/Square/Types/CatalogQueryItemVariationsForItemOptionValues.cs b/src/Square/Default/Types/CatalogQueryItemVariationsForItemOptionValues.cs similarity index 96% rename from src/Square/Types/CatalogQueryItemVariationsForItemOptionValues.cs rename to src/Square/Default/Types/CatalogQueryItemVariationsForItemOptionValues.cs index 3cd7416a..943009de 100644 --- a/src/Square/Types/CatalogQueryItemVariationsForItemOptionValues.cs +++ b/src/Square/Default/Types/CatalogQueryItemVariationsForItemOptionValues.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The query filter to return the item variations containing the specified item option value IDs. diff --git a/src/Square/Types/CatalogQueryItemsForItemOptions.cs b/src/Square/Default/Types/CatalogQueryItemsForItemOptions.cs similarity index 96% rename from src/Square/Types/CatalogQueryItemsForItemOptions.cs rename to src/Square/Default/Types/CatalogQueryItemsForItemOptions.cs index 237c79b6..4ef7d414 100644 --- a/src/Square/Types/CatalogQueryItemsForItemOptions.cs +++ b/src/Square/Default/Types/CatalogQueryItemsForItemOptions.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The query filter to return the items containing the specified item option IDs. diff --git a/src/Square/Types/CatalogQueryItemsForModifierList.cs b/src/Square/Default/Types/CatalogQueryItemsForModifierList.cs similarity index 96% rename from src/Square/Types/CatalogQueryItemsForModifierList.cs rename to src/Square/Default/Types/CatalogQueryItemsForModifierList.cs index 82cc2622..da449cf4 100644 --- a/src/Square/Types/CatalogQueryItemsForModifierList.cs +++ b/src/Square/Default/Types/CatalogQueryItemsForModifierList.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The query filter to return the items containing the specified modifier list IDs. diff --git a/src/Square/Types/CatalogQueryItemsForTax.cs b/src/Square/Default/Types/CatalogQueryItemsForTax.cs similarity index 96% rename from src/Square/Types/CatalogQueryItemsForTax.cs rename to src/Square/Default/Types/CatalogQueryItemsForTax.cs index 63ab685d..6a5646d9 100644 --- a/src/Square/Types/CatalogQueryItemsForTax.cs +++ b/src/Square/Default/Types/CatalogQueryItemsForTax.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The query filter to return the items containing the specified tax IDs. diff --git a/src/Square/Types/CatalogQueryPrefix.cs b/src/Square/Default/Types/CatalogQueryPrefix.cs similarity index 96% rename from src/Square/Types/CatalogQueryPrefix.cs rename to src/Square/Default/Types/CatalogQueryPrefix.cs index 2c31bc79..f7198668 100644 --- a/src/Square/Types/CatalogQueryPrefix.cs +++ b/src/Square/Default/Types/CatalogQueryPrefix.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The query filter to return the search result whose named attribute values are prefixed by the specified attribute value. diff --git a/src/Square/Types/CatalogQueryRange.cs b/src/Square/Default/Types/CatalogQueryRange.cs similarity index 97% rename from src/Square/Types/CatalogQueryRange.cs rename to src/Square/Default/Types/CatalogQueryRange.cs index 0dc00c37..1f98b21d 100644 --- a/src/Square/Types/CatalogQueryRange.cs +++ b/src/Square/Default/Types/CatalogQueryRange.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The query filter to return the search result whose named attribute values fall between the specified range. diff --git a/src/Square/Types/CatalogQuerySet.cs b/src/Square/Default/Types/CatalogQuerySet.cs similarity index 97% rename from src/Square/Types/CatalogQuerySet.cs rename to src/Square/Default/Types/CatalogQuerySet.cs index 19112915..1c589628 100644 --- a/src/Square/Types/CatalogQuerySet.cs +++ b/src/Square/Default/Types/CatalogQuerySet.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The query filter to return the search result(s) by exact match of the specified `attribute_name` and any of diff --git a/src/Square/Types/CatalogQuerySortedAttribute.cs b/src/Square/Default/Types/CatalogQuerySortedAttribute.cs similarity index 97% rename from src/Square/Types/CatalogQuerySortedAttribute.cs rename to src/Square/Default/Types/CatalogQuerySortedAttribute.cs index b55390d8..65200891 100644 --- a/src/Square/Types/CatalogQuerySortedAttribute.cs +++ b/src/Square/Default/Types/CatalogQuerySortedAttribute.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The query expression to specify the key to sort search results. diff --git a/src/Square/Types/CatalogQueryText.cs b/src/Square/Default/Types/CatalogQueryText.cs similarity index 96% rename from src/Square/Types/CatalogQueryText.cs rename to src/Square/Default/Types/CatalogQueryText.cs index 9576849a..dc802b41 100644 --- a/src/Square/Types/CatalogQueryText.cs +++ b/src/Square/Default/Types/CatalogQueryText.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The query filter to return the search result whose searchable attribute values contain all of the specified keywords or tokens, independent of the token order or case. diff --git a/src/Square/Types/CatalogQuickAmount.cs b/src/Square/Default/Types/CatalogQuickAmount.cs similarity index 97% rename from src/Square/Types/CatalogQuickAmount.cs rename to src/Square/Default/Types/CatalogQuickAmount.cs index f4fcb075..21f5270d 100644 --- a/src/Square/Types/CatalogQuickAmount.cs +++ b/src/Square/Default/Types/CatalogQuickAmount.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a Quick Amount in the Catalog. diff --git a/src/Square/Types/CatalogQuickAmountType.cs b/src/Square/Default/Types/CatalogQuickAmountType.cs similarity index 98% rename from src/Square/Types/CatalogQuickAmountType.cs rename to src/Square/Default/Types/CatalogQuickAmountType.cs index 0d158f5a..bfa3874f 100644 --- a/src/Square/Types/CatalogQuickAmountType.cs +++ b/src/Square/Default/Types/CatalogQuickAmountType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/CatalogQuickAmountsSettings.cs b/src/Square/Default/Types/CatalogQuickAmountsSettings.cs similarity index 97% rename from src/Square/Types/CatalogQuickAmountsSettings.cs rename to src/Square/Default/Types/CatalogQuickAmountsSettings.cs index e4f04e78..0ddbe96e 100644 --- a/src/Square/Types/CatalogQuickAmountsSettings.cs +++ b/src/Square/Default/Types/CatalogQuickAmountsSettings.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A parent Catalog Object model represents a set of Quick Amounts and the settings control the amounts. diff --git a/src/Square/Types/CatalogQuickAmountsSettingsOption.cs b/src/Square/Default/Types/CatalogQuickAmountsSettingsOption.cs similarity index 98% rename from src/Square/Types/CatalogQuickAmountsSettingsOption.cs rename to src/Square/Default/Types/CatalogQuickAmountsSettingsOption.cs index bb571599..438c7ad4 100644 --- a/src/Square/Types/CatalogQuickAmountsSettingsOption.cs +++ b/src/Square/Default/Types/CatalogQuickAmountsSettingsOption.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/CatalogStockConversion.cs b/src/Square/Default/Types/CatalogStockConversion.cs similarity index 98% rename from src/Square/Types/CatalogStockConversion.cs rename to src/Square/Default/Types/CatalogStockConversion.cs index 51277564..8f57b99a 100644 --- a/src/Square/Types/CatalogStockConversion.cs +++ b/src/Square/Default/Types/CatalogStockConversion.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents the rule of conversion between a stockable [CatalogItemVariation](entity:CatalogItemVariation) diff --git a/src/Square/Types/CatalogSubscriptionPlan.cs b/src/Square/Default/Types/CatalogSubscriptionPlan.cs similarity index 98% rename from src/Square/Types/CatalogSubscriptionPlan.cs rename to src/Square/Default/Types/CatalogSubscriptionPlan.cs index 2ba61fe0..936fe853 100644 --- a/src/Square/Types/CatalogSubscriptionPlan.cs +++ b/src/Square/Default/Types/CatalogSubscriptionPlan.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Describes a subscription plan. A subscription plan represents what you want to sell in a subscription model, and includes references to each of the associated subscription plan variations. diff --git a/src/Square/Types/CatalogSubscriptionPlanVariation.cs b/src/Square/Default/Types/CatalogSubscriptionPlanVariation.cs similarity index 98% rename from src/Square/Types/CatalogSubscriptionPlanVariation.cs rename to src/Square/Default/Types/CatalogSubscriptionPlanVariation.cs index 9b667b38..02ce32e9 100644 --- a/src/Square/Types/CatalogSubscriptionPlanVariation.cs +++ b/src/Square/Default/Types/CatalogSubscriptionPlanVariation.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Describes a subscription plan variation. A subscription plan variation represents how the subscription for a product or service is sold. diff --git a/src/Square/Types/CatalogTax.cs b/src/Square/Default/Types/CatalogTax.cs similarity index 98% rename from src/Square/Types/CatalogTax.cs rename to src/Square/Default/Types/CatalogTax.cs index f51c268a..4aa94c2a 100644 --- a/src/Square/Types/CatalogTax.cs +++ b/src/Square/Default/Types/CatalogTax.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A tax applicable to an item. diff --git a/src/Square/Types/CatalogTimePeriod.cs b/src/Square/Default/Types/CatalogTimePeriod.cs similarity index 97% rename from src/Square/Types/CatalogTimePeriod.cs rename to src/Square/Default/Types/CatalogTimePeriod.cs index daf1c469..521d92e6 100644 --- a/src/Square/Types/CatalogTimePeriod.cs +++ b/src/Square/Default/Types/CatalogTimePeriod.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a time period - either a single period or a repeating period. diff --git a/src/Square/Types/CatalogV1Id.cs b/src/Square/Default/Types/CatalogV1Id.cs similarity index 96% rename from src/Square/Types/CatalogV1Id.cs rename to src/Square/Default/Types/CatalogV1Id.cs index 164ef0bd..7e6e70d9 100644 --- a/src/Square/Types/CatalogV1Id.cs +++ b/src/Square/Default/Types/CatalogV1Id.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A Square API V1 identifier of an item, including the object ID and its associated location ID. diff --git a/src/Square/Types/CatalogVersionUpdatedEvent.cs b/src/Square/Default/Types/CatalogVersionUpdatedEvent.cs similarity index 97% rename from src/Square/Types/CatalogVersionUpdatedEvent.cs rename to src/Square/Default/Types/CatalogVersionUpdatedEvent.cs index b6619439..4232e9dd 100644 --- a/src/Square/Types/CatalogVersionUpdatedEvent.cs +++ b/src/Square/Default/Types/CatalogVersionUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when the catalog is updated. diff --git a/src/Square/Types/CatalogVersionUpdatedEventCatalogVersion.cs b/src/Square/Default/Types/CatalogVersionUpdatedEventCatalogVersion.cs similarity index 95% rename from src/Square/Types/CatalogVersionUpdatedEventCatalogVersion.cs rename to src/Square/Default/Types/CatalogVersionUpdatedEventCatalogVersion.cs index a25a27e3..e64d4cd4 100644 --- a/src/Square/Types/CatalogVersionUpdatedEventCatalogVersion.cs +++ b/src/Square/Default/Types/CatalogVersionUpdatedEventCatalogVersion.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CatalogVersionUpdatedEventCatalogVersion : IJsonOnDeserialized diff --git a/src/Square/Types/CatalogVersionUpdatedEventData.cs b/src/Square/Default/Types/CatalogVersionUpdatedEventData.cs similarity index 96% rename from src/Square/Types/CatalogVersionUpdatedEventData.cs rename to src/Square/Default/Types/CatalogVersionUpdatedEventData.cs index 5884029b..54e0ef8a 100644 --- a/src/Square/Types/CatalogVersionUpdatedEventData.cs +++ b/src/Square/Default/Types/CatalogVersionUpdatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CatalogVersionUpdatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/CatalogVersionUpdatedEventObject.cs b/src/Square/Default/Types/CatalogVersionUpdatedEventObject.cs similarity index 95% rename from src/Square/Types/CatalogVersionUpdatedEventObject.cs rename to src/Square/Default/Types/CatalogVersionUpdatedEventObject.cs index fb7c5cce..8060e422 100644 --- a/src/Square/Types/CatalogVersionUpdatedEventObject.cs +++ b/src/Square/Default/Types/CatalogVersionUpdatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CatalogVersionUpdatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/CategoryPathToRootNode.cs b/src/Square/Default/Types/CategoryPathToRootNode.cs similarity index 96% rename from src/Square/Types/CategoryPathToRootNode.cs rename to src/Square/Default/Types/CategoryPathToRootNode.cs index 5bbf20b9..3130f80b 100644 --- a/src/Square/Types/CategoryPathToRootNode.cs +++ b/src/Square/Default/Types/CategoryPathToRootNode.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A node in the path from a retrieved category to its root node. diff --git a/src/Square/Types/ChangeBillingAnchorDateResponse.cs b/src/Square/Default/Types/ChangeBillingAnchorDateResponse.cs similarity index 97% rename from src/Square/Types/ChangeBillingAnchorDateResponse.cs rename to src/Square/Default/Types/ChangeBillingAnchorDateResponse.cs index b9fedb45..78504f65 100644 --- a/src/Square/Types/ChangeBillingAnchorDateResponse.cs +++ b/src/Square/Default/Types/ChangeBillingAnchorDateResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines output parameters in a request to the diff --git a/src/Square/Types/ChangeTiming.cs b/src/Square/Default/Types/ChangeTiming.cs similarity index 98% rename from src/Square/Types/ChangeTiming.cs rename to src/Square/Default/Types/ChangeTiming.cs index 2d2354bc..a78d4117 100644 --- a/src/Square/Types/ChangeTiming.cs +++ b/src/Square/Default/Types/ChangeTiming.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/Channel.cs b/src/Square/Default/Types/Channel.cs similarity index 98% rename from src/Square/Types/Channel.cs rename to src/Square/Default/Types/Channel.cs index c52fd320..bae57cea 100644 --- a/src/Square/Types/Channel.cs +++ b/src/Square/Default/Types/Channel.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record Channel : IJsonOnDeserialized diff --git a/src/Square/Types/ChannelStatus.cs b/src/Square/Default/Types/ChannelStatus.cs similarity index 98% rename from src/Square/Types/ChannelStatus.cs rename to src/Square/Default/Types/ChannelStatus.cs index 4e4c6939..f9be00d6 100644 --- a/src/Square/Types/ChannelStatus.cs +++ b/src/Square/Default/Types/ChannelStatus.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/ChargeRequestAdditionalRecipient.cs b/src/Square/Default/Types/ChargeRequestAdditionalRecipient.cs similarity index 97% rename from src/Square/Types/ChargeRequestAdditionalRecipient.cs rename to src/Square/Default/Types/ChargeRequestAdditionalRecipient.cs index 47568716..d4b19874 100644 --- a/src/Square/Types/ChargeRequestAdditionalRecipient.cs +++ b/src/Square/Default/Types/ChargeRequestAdditionalRecipient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an additional recipient (other than the merchant) entitled to a portion of the tender. diff --git a/src/Square/Types/CheckoutLocationSettings.cs b/src/Square/Default/Types/CheckoutLocationSettings.cs similarity index 98% rename from src/Square/Types/CheckoutLocationSettings.cs rename to src/Square/Default/Types/CheckoutLocationSettings.cs index 200cec99..fd1a2322 100644 --- a/src/Square/Types/CheckoutLocationSettings.cs +++ b/src/Square/Default/Types/CheckoutLocationSettings.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CheckoutLocationSettings : IJsonOnDeserialized diff --git a/src/Square/Types/CheckoutLocationSettingsBranding.cs b/src/Square/Default/Types/CheckoutLocationSettingsBranding.cs similarity index 97% rename from src/Square/Types/CheckoutLocationSettingsBranding.cs rename to src/Square/Default/Types/CheckoutLocationSettingsBranding.cs index 4842c326..8465a7d4 100644 --- a/src/Square/Types/CheckoutLocationSettingsBranding.cs +++ b/src/Square/Default/Types/CheckoutLocationSettingsBranding.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CheckoutLocationSettingsBranding : IJsonOnDeserialized diff --git a/src/Square/Types/CheckoutLocationSettingsBrandingButtonShape.cs b/src/Square/Default/Types/CheckoutLocationSettingsBrandingButtonShape.cs similarity index 98% rename from src/Square/Types/CheckoutLocationSettingsBrandingButtonShape.cs rename to src/Square/Default/Types/CheckoutLocationSettingsBrandingButtonShape.cs index b0548b29..313ca171 100644 --- a/src/Square/Types/CheckoutLocationSettingsBrandingButtonShape.cs +++ b/src/Square/Default/Types/CheckoutLocationSettingsBrandingButtonShape.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/CheckoutLocationSettingsBrandingHeaderType.cs b/src/Square/Default/Types/CheckoutLocationSettingsBrandingHeaderType.cs similarity index 98% rename from src/Square/Types/CheckoutLocationSettingsBrandingHeaderType.cs rename to src/Square/Default/Types/CheckoutLocationSettingsBrandingHeaderType.cs index 8826e2ba..bb447d7c 100644 --- a/src/Square/Types/CheckoutLocationSettingsBrandingHeaderType.cs +++ b/src/Square/Default/Types/CheckoutLocationSettingsBrandingHeaderType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/CheckoutLocationSettingsCoupons.cs b/src/Square/Default/Types/CheckoutLocationSettingsCoupons.cs similarity index 95% rename from src/Square/Types/CheckoutLocationSettingsCoupons.cs rename to src/Square/Default/Types/CheckoutLocationSettingsCoupons.cs index cc51439d..4a8c40a8 100644 --- a/src/Square/Types/CheckoutLocationSettingsCoupons.cs +++ b/src/Square/Default/Types/CheckoutLocationSettingsCoupons.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CheckoutLocationSettingsCoupons : IJsonOnDeserialized diff --git a/src/Square/Types/CheckoutLocationSettingsPolicy.cs b/src/Square/Default/Types/CheckoutLocationSettingsPolicy.cs similarity index 97% rename from src/Square/Types/CheckoutLocationSettingsPolicy.cs rename to src/Square/Default/Types/CheckoutLocationSettingsPolicy.cs index 4ceecfba..4d577c22 100644 --- a/src/Square/Types/CheckoutLocationSettingsPolicy.cs +++ b/src/Square/Default/Types/CheckoutLocationSettingsPolicy.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CheckoutLocationSettingsPolicy : IJsonOnDeserialized diff --git a/src/Square/Types/CheckoutLocationSettingsTipping.cs b/src/Square/Default/Types/CheckoutLocationSettingsTipping.cs similarity index 98% rename from src/Square/Types/CheckoutLocationSettingsTipping.cs rename to src/Square/Default/Types/CheckoutLocationSettingsTipping.cs index 9b371c49..af2fa33b 100644 --- a/src/Square/Types/CheckoutLocationSettingsTipping.cs +++ b/src/Square/Default/Types/CheckoutLocationSettingsTipping.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CheckoutLocationSettingsTipping : IJsonOnDeserialized diff --git a/src/Square/Types/CheckoutMerchantSettings.cs b/src/Square/Default/Types/CheckoutMerchantSettings.cs similarity index 97% rename from src/Square/Types/CheckoutMerchantSettings.cs rename to src/Square/Default/Types/CheckoutMerchantSettings.cs index a4440fb4..5b71c8f1 100644 --- a/src/Square/Types/CheckoutMerchantSettings.cs +++ b/src/Square/Default/Types/CheckoutMerchantSettings.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CheckoutMerchantSettings : IJsonOnDeserialized diff --git a/src/Square/Types/CheckoutMerchantSettingsPaymentMethods.cs b/src/Square/Default/Types/CheckoutMerchantSettingsPaymentMethods.cs similarity index 96% rename from src/Square/Types/CheckoutMerchantSettingsPaymentMethods.cs rename to src/Square/Default/Types/CheckoutMerchantSettingsPaymentMethods.cs index 1a475830..30d52bed 100644 --- a/src/Square/Types/CheckoutMerchantSettingsPaymentMethods.cs +++ b/src/Square/Default/Types/CheckoutMerchantSettingsPaymentMethods.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CheckoutMerchantSettingsPaymentMethods : IJsonOnDeserialized diff --git a/src/Square/Types/CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay.cs b/src/Square/Default/Types/CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay.cs similarity index 97% rename from src/Square/Types/CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay.cs rename to src/Square/Default/Types/CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay.cs index 8b6732b3..b4efdc56 100644 --- a/src/Square/Types/CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay.cs +++ b/src/Square/Default/Types/CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The settings allowed for AfterpayClearpay. diff --git a/src/Square/Types/CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange.cs b/src/Square/Default/Types/CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange.cs similarity index 95% rename from src/Square/Types/CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange.cs rename to src/Square/Default/Types/CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange.cs index 4b861db6..06d2dee9 100644 --- a/src/Square/Types/CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange.cs +++ b/src/Square/Default/Types/CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A range of purchase price that qualifies. diff --git a/src/Square/Types/CheckoutMerchantSettingsPaymentMethodsPaymentMethod.cs b/src/Square/Default/Types/CheckoutMerchantSettingsPaymentMethodsPaymentMethod.cs similarity index 95% rename from src/Square/Types/CheckoutMerchantSettingsPaymentMethodsPaymentMethod.cs rename to src/Square/Default/Types/CheckoutMerchantSettingsPaymentMethodsPaymentMethod.cs index 2d654e67..2b07cb5b 100644 --- a/src/Square/Types/CheckoutMerchantSettingsPaymentMethodsPaymentMethod.cs +++ b/src/Square/Default/Types/CheckoutMerchantSettingsPaymentMethodsPaymentMethod.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The settings allowed for a payment method. diff --git a/src/Square/Types/CheckoutOptions.cs b/src/Square/Default/Types/CheckoutOptions.cs similarity index 99% rename from src/Square/Types/CheckoutOptions.cs rename to src/Square/Default/Types/CheckoutOptions.cs index 5abceb56..2ae27f15 100644 --- a/src/Square/Types/CheckoutOptions.cs +++ b/src/Square/Default/Types/CheckoutOptions.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CheckoutOptions : IJsonOnDeserialized diff --git a/src/Square/Types/CheckoutOptionsPaymentType.cs b/src/Square/Default/Types/CheckoutOptionsPaymentType.cs similarity index 99% rename from src/Square/Types/CheckoutOptionsPaymentType.cs rename to src/Square/Default/Types/CheckoutOptionsPaymentType.cs index 14196707..9a3e222d 100644 --- a/src/Square/Types/CheckoutOptionsPaymentType.cs +++ b/src/Square/Default/Types/CheckoutOptionsPaymentType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/ClearpayDetails.cs b/src/Square/Default/Types/ClearpayDetails.cs similarity index 95% rename from src/Square/Types/ClearpayDetails.cs rename to src/Square/Default/Types/ClearpayDetails.cs index 4ee31cd2..7e4fd093 100644 --- a/src/Square/Types/ClearpayDetails.cs +++ b/src/Square/Default/Types/ClearpayDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Additional details about Clearpay payments. diff --git a/src/Square/Types/CloneOrderResponse.cs b/src/Square/Default/Types/CloneOrderResponse.cs similarity index 96% rename from src/Square/Types/CloneOrderResponse.cs rename to src/Square/Default/Types/CloneOrderResponse.cs index 09bd09d2..40b4f162 100644 --- a/src/Square/Types/CloneOrderResponse.cs +++ b/src/Square/Default/Types/CloneOrderResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/CollectedData.cs b/src/Square/Default/Types/CollectedData.cs similarity index 95% rename from src/Square/Types/CollectedData.cs rename to src/Square/Default/Types/CollectedData.cs index 486fa61b..aa33cb0a 100644 --- a/src/Square/Types/CollectedData.cs +++ b/src/Square/Default/Types/CollectedData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CollectedData : IJsonOnDeserialized diff --git a/src/Square/Types/CompletePaymentResponse.cs b/src/Square/Default/Types/CompletePaymentResponse.cs similarity index 96% rename from src/Square/Types/CompletePaymentResponse.cs rename to src/Square/Default/Types/CompletePaymentResponse.cs index 21fa168c..72c2f306 100644 --- a/src/Square/Types/CompletePaymentResponse.cs +++ b/src/Square/Default/Types/CompletePaymentResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the response returned by[CompletePayment](api-endpoint:Payments-CompletePayment). diff --git a/src/Square/Types/Component.cs b/src/Square/Default/Types/Component.cs similarity index 98% rename from src/Square/Types/Component.cs rename to src/Square/Default/Types/Component.cs index 4290d07d..7f9d0a00 100644 --- a/src/Square/Types/Component.cs +++ b/src/Square/Default/Types/Component.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The wrapper object for the component entries of a given component type. diff --git a/src/Square/Types/ComponentComponentType.cs b/src/Square/Default/Types/ComponentComponentType.cs similarity index 98% rename from src/Square/Types/ComponentComponentType.cs rename to src/Square/Default/Types/ComponentComponentType.cs index 96472558..a3771b1e 100644 --- a/src/Square/Types/ComponentComponentType.cs +++ b/src/Square/Default/Types/ComponentComponentType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/ConfirmationDecision.cs b/src/Square/Default/Types/ConfirmationDecision.cs similarity index 95% rename from src/Square/Types/ConfirmationDecision.cs rename to src/Square/Default/Types/ConfirmationDecision.cs index f2906df1..4c37c391 100644 --- a/src/Square/Types/ConfirmationDecision.cs +++ b/src/Square/Default/Types/ConfirmationDecision.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record ConfirmationDecision : IJsonOnDeserialized diff --git a/src/Square/Types/ConfirmationOptions.cs b/src/Square/Default/Types/ConfirmationOptions.cs similarity index 97% rename from src/Square/Types/ConfirmationOptions.cs rename to src/Square/Default/Types/ConfirmationOptions.cs index d7f8ca48..abc99bba 100644 --- a/src/Square/Types/ConfirmationOptions.cs +++ b/src/Square/Default/Types/ConfirmationOptions.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record ConfirmationOptions : IJsonOnDeserialized diff --git a/src/Square/Types/Coordinates.cs b/src/Square/Default/Types/Coordinates.cs similarity index 96% rename from src/Square/Types/Coordinates.cs rename to src/Square/Default/Types/Coordinates.cs index 815a6870..462614f7 100644 --- a/src/Square/Types/Coordinates.cs +++ b/src/Square/Default/Types/Coordinates.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Latitude and longitude coordinates. diff --git a/src/Square/Types/Country.cs b/src/Square/Default/Types/Country.cs similarity index 99% rename from src/Square/Types/Country.cs rename to src/Square/Default/Types/Country.cs index 9259fdde..3dd6327f 100644 --- a/src/Square/Types/Country.cs +++ b/src/Square/Default/Types/Country.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/CreateBankAccountResponse.cs b/src/Square/Default/Types/CreateBankAccountResponse.cs similarity index 96% rename from src/Square/Types/CreateBankAccountResponse.cs rename to src/Square/Default/Types/CreateBankAccountResponse.cs index 9f12ee25..e947d98b 100644 --- a/src/Square/Types/CreateBankAccountResponse.cs +++ b/src/Square/Default/Types/CreateBankAccountResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Response object returned by CreateBankAccount. diff --git a/src/Square/Types/CreateBookingCustomAttributeDefinitionResponse.cs b/src/Square/Default/Types/CreateBookingCustomAttributeDefinitionResponse.cs similarity index 97% rename from src/Square/Types/CreateBookingCustomAttributeDefinitionResponse.cs rename to src/Square/Default/Types/CreateBookingCustomAttributeDefinitionResponse.cs index f4361b7d..2bc1bc67 100644 --- a/src/Square/Types/CreateBookingCustomAttributeDefinitionResponse.cs +++ b/src/Square/Default/Types/CreateBookingCustomAttributeDefinitionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [CreateBookingCustomAttributeDefinition](api-endpoint:BookingCustomAttributes-CreateBookingCustomAttributeDefinition) response. diff --git a/src/Square/Types/CreateBookingResponse.cs b/src/Square/Default/Types/CreateBookingResponse.cs similarity index 96% rename from src/Square/Types/CreateBookingResponse.cs rename to src/Square/Default/Types/CreateBookingResponse.cs index 66601f22..9c20ac29 100644 --- a/src/Square/Types/CreateBookingResponse.cs +++ b/src/Square/Default/Types/CreateBookingResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CreateBookingResponse : IJsonOnDeserialized diff --git a/src/Square/Types/CreateBreakTypeResponse.cs b/src/Square/Default/Types/CreateBreakTypeResponse.cs similarity index 96% rename from src/Square/Types/CreateBreakTypeResponse.cs rename to src/Square/Default/Types/CreateBreakTypeResponse.cs index d578301e..6d6fd0cf 100644 --- a/src/Square/Types/CreateBreakTypeResponse.cs +++ b/src/Square/Default/Types/CreateBreakTypeResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The response to the request to create a `BreakType`. The response contains diff --git a/src/Square/Types/CreateCardResponse.cs b/src/Square/Default/Types/CreateCardResponse.cs similarity index 96% rename from src/Square/Types/CreateCardResponse.cs rename to src/Square/Default/Types/CreateCardResponse.cs index 3f25514e..1b88ee11 100644 --- a/src/Square/Types/CreateCardResponse.cs +++ b/src/Square/Default/Types/CreateCardResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/CreateCatalogImageRequest.cs b/src/Square/Default/Types/CreateCatalogImageRequest.cs similarity index 98% rename from src/Square/Types/CreateCatalogImageRequest.cs rename to src/Square/Default/Types/CreateCatalogImageRequest.cs index b0031865..e884f1b8 100644 --- a/src/Square/Types/CreateCatalogImageRequest.cs +++ b/src/Square/Default/Types/CreateCatalogImageRequest.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CreateCatalogImageRequest : IJsonOnDeserialized diff --git a/src/Square/Types/CreateCatalogImageResponse.cs b/src/Square/Default/Types/CreateCatalogImageResponse.cs similarity index 96% rename from src/Square/Types/CreateCatalogImageResponse.cs rename to src/Square/Default/Types/CreateCatalogImageResponse.cs index da637885..34c59a3f 100644 --- a/src/Square/Types/CreateCatalogImageResponse.cs +++ b/src/Square/Default/Types/CreateCatalogImageResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CreateCatalogImageResponse : IJsonOnDeserialized diff --git a/src/Square/Types/CreateCheckoutResponse.cs b/src/Square/Default/Types/CreateCheckoutResponse.cs similarity index 93% rename from src/Square/Types/CreateCheckoutResponse.cs rename to src/Square/Default/Types/CreateCheckoutResponse.cs index f4de3e79..db629829 100644 --- a/src/Square/Types/CreateCheckoutResponse.cs +++ b/src/Square/Default/Types/CreateCheckoutResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of @@ -19,7 +20,7 @@ public record CreateCheckoutResponse : IJsonOnDeserialized /// The newly created `checkout` object associated with the provided idempotency key. /// [JsonPropertyName("checkout")] - public Square.Checkout.Checkout? Checkout { get; set; } + public Checkout? Checkout { get; set; } /// /// Any errors that occurred during the request. diff --git a/src/Square/Types/CreateCustomerCardResponse.cs b/src/Square/Default/Types/CreateCustomerCardResponse.cs similarity index 96% rename from src/Square/Types/CreateCustomerCardResponse.cs rename to src/Square/Default/Types/CreateCustomerCardResponse.cs index dd38d1ec..5165610b 100644 --- a/src/Square/Types/CreateCustomerCardResponse.cs +++ b/src/Square/Default/Types/CreateCustomerCardResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/CreateCustomerCustomAttributeDefinitionResponse.cs b/src/Square/Default/Types/CreateCustomerCustomAttributeDefinitionResponse.cs similarity index 97% rename from src/Square/Types/CreateCustomerCustomAttributeDefinitionResponse.cs rename to src/Square/Default/Types/CreateCustomerCustomAttributeDefinitionResponse.cs index ba7c4776..9739b0ca 100644 --- a/src/Square/Types/CreateCustomerCustomAttributeDefinitionResponse.cs +++ b/src/Square/Default/Types/CreateCustomerCustomAttributeDefinitionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [CreateCustomerCustomAttributeDefinition](api-endpoint:CustomerCustomAttributes-CreateCustomerCustomAttributeDefinition) response. diff --git a/src/Square/Types/CreateCustomerGroupResponse.cs b/src/Square/Default/Types/CreateCustomerGroupResponse.cs similarity index 96% rename from src/Square/Types/CreateCustomerGroupResponse.cs rename to src/Square/Default/Types/CreateCustomerGroupResponse.cs index d1bbb653..9d6e1a2c 100644 --- a/src/Square/Types/CreateCustomerGroupResponse.cs +++ b/src/Square/Default/Types/CreateCustomerGroupResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/CreateCustomerResponse.cs b/src/Square/Default/Types/CreateCustomerResponse.cs similarity index 97% rename from src/Square/Types/CreateCustomerResponse.cs rename to src/Square/Default/Types/CreateCustomerResponse.cs index 5861ec71..3772ecfd 100644 --- a/src/Square/Types/CreateCustomerResponse.cs +++ b/src/Square/Default/Types/CreateCustomerResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/CreateDeviceCodeResponse.cs b/src/Square/Default/Types/CreateDeviceCodeResponse.cs similarity index 96% rename from src/Square/Types/CreateDeviceCodeResponse.cs rename to src/Square/Default/Types/CreateDeviceCodeResponse.cs index d1f8e344..2c9240f7 100644 --- a/src/Square/Types/CreateDeviceCodeResponse.cs +++ b/src/Square/Default/Types/CreateDeviceCodeResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CreateDeviceCodeResponse : IJsonOnDeserialized diff --git a/src/Square/Types/CreateDisputeEvidenceFileRequest.cs b/src/Square/Default/Types/CreateDisputeEvidenceFileRequest.cs similarity index 97% rename from src/Square/Types/CreateDisputeEvidenceFileRequest.cs rename to src/Square/Default/Types/CreateDisputeEvidenceFileRequest.cs index 7fb69686..f1b7774a 100644 --- a/src/Square/Types/CreateDisputeEvidenceFileRequest.cs +++ b/src/Square/Default/Types/CreateDisputeEvidenceFileRequest.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the parameters for a `CreateDisputeEvidenceFile` request. diff --git a/src/Square/Types/CreateDisputeEvidenceFileResponse.cs b/src/Square/Default/Types/CreateDisputeEvidenceFileResponse.cs similarity index 96% rename from src/Square/Types/CreateDisputeEvidenceFileResponse.cs rename to src/Square/Default/Types/CreateDisputeEvidenceFileResponse.cs index d0a6fabf..84aef7e9 100644 --- a/src/Square/Types/CreateDisputeEvidenceFileResponse.cs +++ b/src/Square/Default/Types/CreateDisputeEvidenceFileResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields in a `CreateDisputeEvidenceFile` response. diff --git a/src/Square/Types/CreateDisputeEvidenceTextResponse.cs b/src/Square/Default/Types/CreateDisputeEvidenceTextResponse.cs similarity index 96% rename from src/Square/Types/CreateDisputeEvidenceTextResponse.cs rename to src/Square/Default/Types/CreateDisputeEvidenceTextResponse.cs index 2fccf28b..9cd9b07d 100644 --- a/src/Square/Types/CreateDisputeEvidenceTextResponse.cs +++ b/src/Square/Default/Types/CreateDisputeEvidenceTextResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields in a `CreateDisputeEvidenceText` response. diff --git a/src/Square/Types/CreateGiftCardActivityResponse.cs b/src/Square/Default/Types/CreateGiftCardActivityResponse.cs similarity index 96% rename from src/Square/Types/CreateGiftCardActivityResponse.cs rename to src/Square/Default/Types/CreateGiftCardActivityResponse.cs index 50cf3f28..276f1159 100644 --- a/src/Square/Types/CreateGiftCardActivityResponse.cs +++ b/src/Square/Default/Types/CreateGiftCardActivityResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A response that contains a `GiftCardActivity` that was created. diff --git a/src/Square/Types/CreateGiftCardResponse.cs b/src/Square/Default/Types/CreateGiftCardResponse.cs similarity index 96% rename from src/Square/Types/CreateGiftCardResponse.cs rename to src/Square/Default/Types/CreateGiftCardResponse.cs index 920710c7..7a532c57 100644 --- a/src/Square/Types/CreateGiftCardResponse.cs +++ b/src/Square/Default/Types/CreateGiftCardResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A response that contains a `GiftCard`. The response might contain a set of `Error` objects if the request diff --git a/src/Square/Types/CreateInvoiceAttachmentRequestData.cs b/src/Square/Default/Types/CreateInvoiceAttachmentRequestData.cs similarity index 97% rename from src/Square/Types/CreateInvoiceAttachmentRequestData.cs rename to src/Square/Default/Types/CreateInvoiceAttachmentRequestData.cs index 6851e020..e38555b5 100644 --- a/src/Square/Types/CreateInvoiceAttachmentRequestData.cs +++ b/src/Square/Default/Types/CreateInvoiceAttachmentRequestData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [CreateInvoiceAttachment](api-endpoint:Invoices-CreateInvoiceAttachment) request. diff --git a/src/Square/Types/CreateInvoiceAttachmentResponse.cs b/src/Square/Default/Types/CreateInvoiceAttachmentResponse.cs similarity index 96% rename from src/Square/Types/CreateInvoiceAttachmentResponse.cs rename to src/Square/Default/Types/CreateInvoiceAttachmentResponse.cs index 88604d2c..aa61a1ed 100644 --- a/src/Square/Types/CreateInvoiceAttachmentResponse.cs +++ b/src/Square/Default/Types/CreateInvoiceAttachmentResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [CreateInvoiceAttachment](api-endpoint:Invoices-CreateInvoiceAttachment) response. diff --git a/src/Square/Types/CreateInvoiceResponse.cs b/src/Square/Default/Types/CreateInvoiceResponse.cs similarity index 96% rename from src/Square/Types/CreateInvoiceResponse.cs rename to src/Square/Default/Types/CreateInvoiceResponse.cs index f88e0c75..c691928a 100644 --- a/src/Square/Types/CreateInvoiceResponse.cs +++ b/src/Square/Default/Types/CreateInvoiceResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The response returned by the `CreateInvoice` request. diff --git a/src/Square/Types/CreateJobResponse.cs b/src/Square/Default/Types/CreateJobResponse.cs similarity index 96% rename from src/Square/Types/CreateJobResponse.cs rename to src/Square/Default/Types/CreateJobResponse.cs index ae4e2627..5760227e 100644 --- a/src/Square/Types/CreateJobResponse.cs +++ b/src/Square/Default/Types/CreateJobResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [CreateJob](api-endpoint:Team-CreateJob) response. Either `job` or `errors` diff --git a/src/Square/Types/CreateLocationCustomAttributeDefinitionResponse.cs b/src/Square/Default/Types/CreateLocationCustomAttributeDefinitionResponse.cs similarity index 97% rename from src/Square/Types/CreateLocationCustomAttributeDefinitionResponse.cs rename to src/Square/Default/Types/CreateLocationCustomAttributeDefinitionResponse.cs index ed73b38f..aef8e3e0 100644 --- a/src/Square/Types/CreateLocationCustomAttributeDefinitionResponse.cs +++ b/src/Square/Default/Types/CreateLocationCustomAttributeDefinitionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [CreateLocationCustomAttributeDefinition](api-endpoint:LocationCustomAttributes-CreateLocationCustomAttributeDefinition) response. diff --git a/src/Square/Types/CreateLocationResponse.cs b/src/Square/Default/Types/CreateLocationResponse.cs similarity index 96% rename from src/Square/Types/CreateLocationResponse.cs rename to src/Square/Default/Types/CreateLocationResponse.cs index 5a15e50d..d610dfc0 100644 --- a/src/Square/Types/CreateLocationResponse.cs +++ b/src/Square/Default/Types/CreateLocationResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The response object returned by the [CreateLocation](api-endpoint:Locations-CreateLocation) endpoint. diff --git a/src/Square/Types/CreateLoyaltyAccountResponse.cs b/src/Square/Default/Types/CreateLoyaltyAccountResponse.cs similarity index 96% rename from src/Square/Types/CreateLoyaltyAccountResponse.cs rename to src/Square/Default/Types/CreateLoyaltyAccountResponse.cs index 0a57e826..625f8b7b 100644 --- a/src/Square/Types/CreateLoyaltyAccountResponse.cs +++ b/src/Square/Default/Types/CreateLoyaltyAccountResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A response that includes loyalty account created. diff --git a/src/Square/Types/CreateLoyaltyPromotionResponse.cs b/src/Square/Default/Types/CreateLoyaltyPromotionResponse.cs similarity index 96% rename from src/Square/Types/CreateLoyaltyPromotionResponse.cs rename to src/Square/Default/Types/CreateLoyaltyPromotionResponse.cs index 5c0bf513..3c8dcc43 100644 --- a/src/Square/Types/CreateLoyaltyPromotionResponse.cs +++ b/src/Square/Default/Types/CreateLoyaltyPromotionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [CreateLoyaltyPromotion](api-endpoint:Loyalty-CreateLoyaltyPromotion) response. diff --git a/src/Square/Types/CreateLoyaltyRewardResponse.cs b/src/Square/Default/Types/CreateLoyaltyRewardResponse.cs similarity index 96% rename from src/Square/Types/CreateLoyaltyRewardResponse.cs rename to src/Square/Default/Types/CreateLoyaltyRewardResponse.cs index 1fd96d48..7044b3a3 100644 --- a/src/Square/Types/CreateLoyaltyRewardResponse.cs +++ b/src/Square/Default/Types/CreateLoyaltyRewardResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A response that includes the loyalty reward created. diff --git a/src/Square/Types/CreateMerchantCustomAttributeDefinitionResponse.cs b/src/Square/Default/Types/CreateMerchantCustomAttributeDefinitionResponse.cs similarity index 97% rename from src/Square/Types/CreateMerchantCustomAttributeDefinitionResponse.cs rename to src/Square/Default/Types/CreateMerchantCustomAttributeDefinitionResponse.cs index d7265cc9..50271ee5 100644 --- a/src/Square/Types/CreateMerchantCustomAttributeDefinitionResponse.cs +++ b/src/Square/Default/Types/CreateMerchantCustomAttributeDefinitionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [CreateMerchantCustomAttributeDefinition](api-endpoint:MerchantCustomAttributes-CreateMerchantCustomAttributeDefinition) response. diff --git a/src/Square/Types/CreateOrderCustomAttributeDefinitionResponse.cs b/src/Square/Default/Types/CreateOrderCustomAttributeDefinitionResponse.cs similarity index 96% rename from src/Square/Types/CreateOrderCustomAttributeDefinitionResponse.cs rename to src/Square/Default/Types/CreateOrderCustomAttributeDefinitionResponse.cs index 1fc8f465..cde6ba76 100644 --- a/src/Square/Types/CreateOrderCustomAttributeDefinitionResponse.cs +++ b/src/Square/Default/Types/CreateOrderCustomAttributeDefinitionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a response from creating an order custom attribute definition. diff --git a/src/Square/Types/CreateOrderRequest.cs b/src/Square/Default/Types/CreateOrderRequest.cs similarity index 97% rename from src/Square/Types/CreateOrderRequest.cs rename to src/Square/Default/Types/CreateOrderRequest.cs index e32411a4..59dc7100 100644 --- a/src/Square/Types/CreateOrderRequest.cs +++ b/src/Square/Default/Types/CreateOrderRequest.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CreateOrderRequest : IJsonOnDeserialized diff --git a/src/Square/Types/CreateOrderResponse.cs b/src/Square/Default/Types/CreateOrderResponse.cs similarity index 96% rename from src/Square/Types/CreateOrderResponse.cs rename to src/Square/Default/Types/CreateOrderResponse.cs index 2d985b08..ab14f00f 100644 --- a/src/Square/Types/CreateOrderResponse.cs +++ b/src/Square/Default/Types/CreateOrderResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/CreatePaymentLinkResponse.cs b/src/Square/Default/Types/CreatePaymentLinkResponse.cs similarity index 96% rename from src/Square/Types/CreatePaymentLinkResponse.cs rename to src/Square/Default/Types/CreatePaymentLinkResponse.cs index 6fb88361..410e48ac 100644 --- a/src/Square/Types/CreatePaymentLinkResponse.cs +++ b/src/Square/Default/Types/CreatePaymentLinkResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CreatePaymentLinkResponse : IJsonOnDeserialized diff --git a/src/Square/Types/CreatePaymentResponse.cs b/src/Square/Default/Types/CreatePaymentResponse.cs similarity index 96% rename from src/Square/Types/CreatePaymentResponse.cs rename to src/Square/Default/Types/CreatePaymentResponse.cs index cbd04e78..a1c845af 100644 --- a/src/Square/Types/CreatePaymentResponse.cs +++ b/src/Square/Default/Types/CreatePaymentResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the response returned by [CreatePayment](api-endpoint:Payments-CreatePayment). diff --git a/src/Square/Types/CreateScheduledShiftResponse.cs b/src/Square/Default/Types/CreateScheduledShiftResponse.cs similarity index 97% rename from src/Square/Types/CreateScheduledShiftResponse.cs rename to src/Square/Default/Types/CreateScheduledShiftResponse.cs index 5caccb9c..3bcd5aad 100644 --- a/src/Square/Types/CreateScheduledShiftResponse.cs +++ b/src/Square/Default/Types/CreateScheduledShiftResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [CreateScheduledShift](api-endpoint:Labor-CreateScheduledShift) response. diff --git a/src/Square/Types/CreateShiftResponse.cs b/src/Square/Default/Types/CreateShiftResponse.cs similarity index 96% rename from src/Square/Types/CreateShiftResponse.cs rename to src/Square/Default/Types/CreateShiftResponse.cs index f81528a3..cfea8c75 100644 --- a/src/Square/Types/CreateShiftResponse.cs +++ b/src/Square/Default/Types/CreateShiftResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The response to a request to create a `Shift`. The response contains diff --git a/src/Square/Types/CreateSubscriptionResponse.cs b/src/Square/Default/Types/CreateSubscriptionResponse.cs similarity index 97% rename from src/Square/Types/CreateSubscriptionResponse.cs rename to src/Square/Default/Types/CreateSubscriptionResponse.cs index c85b6cd5..c735c624 100644 --- a/src/Square/Types/CreateSubscriptionResponse.cs +++ b/src/Square/Default/Types/CreateSubscriptionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines output parameters in a response from the diff --git a/src/Square/Types/CreateTeamMemberRequest.cs b/src/Square/Default/Types/CreateTeamMemberRequest.cs similarity index 97% rename from src/Square/Types/CreateTeamMemberRequest.cs rename to src/Square/Default/Types/CreateTeamMemberRequest.cs index 8fac57d2..b43cfc8f 100644 --- a/src/Square/Types/CreateTeamMemberRequest.cs +++ b/src/Square/Default/Types/CreateTeamMemberRequest.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a create request for a `TeamMember` object. diff --git a/src/Square/Types/CreateTeamMemberResponse.cs b/src/Square/Default/Types/CreateTeamMemberResponse.cs similarity index 96% rename from src/Square/Types/CreateTeamMemberResponse.cs rename to src/Square/Default/Types/CreateTeamMemberResponse.cs index ea95bb58..b3685923 100644 --- a/src/Square/Types/CreateTeamMemberResponse.cs +++ b/src/Square/Default/Types/CreateTeamMemberResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a response from a create request containing the created `TeamMember` object or error messages. diff --git a/src/Square/Types/CreateTerminalActionResponse.cs b/src/Square/Default/Types/CreateTerminalActionResponse.cs similarity index 96% rename from src/Square/Types/CreateTerminalActionResponse.cs rename to src/Square/Default/Types/CreateTerminalActionResponse.cs index dc5c9cb4..db83a00e 100644 --- a/src/Square/Types/CreateTerminalActionResponse.cs +++ b/src/Square/Default/Types/CreateTerminalActionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CreateTerminalActionResponse : IJsonOnDeserialized diff --git a/src/Square/Types/CreateTerminalCheckoutResponse.cs b/src/Square/Default/Types/CreateTerminalCheckoutResponse.cs similarity index 96% rename from src/Square/Types/CreateTerminalCheckoutResponse.cs rename to src/Square/Default/Types/CreateTerminalCheckoutResponse.cs index 25bd055f..7b462a03 100644 --- a/src/Square/Types/CreateTerminalCheckoutResponse.cs +++ b/src/Square/Default/Types/CreateTerminalCheckoutResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CreateTerminalCheckoutResponse : IJsonOnDeserialized diff --git a/src/Square/Types/CreateTerminalRefundResponse.cs b/src/Square/Default/Types/CreateTerminalRefundResponse.cs similarity index 96% rename from src/Square/Types/CreateTerminalRefundResponse.cs rename to src/Square/Default/Types/CreateTerminalRefundResponse.cs index 29f4fe3d..418fcba4 100644 --- a/src/Square/Types/CreateTerminalRefundResponse.cs +++ b/src/Square/Default/Types/CreateTerminalRefundResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CreateTerminalRefundResponse : IJsonOnDeserialized diff --git a/src/Square/Types/CreateTimecardResponse.cs b/src/Square/Default/Types/CreateTimecardResponse.cs similarity index 96% rename from src/Square/Types/CreateTimecardResponse.cs rename to src/Square/Default/Types/CreateTimecardResponse.cs index 98db7b6e..0387b160 100644 --- a/src/Square/Types/CreateTimecardResponse.cs +++ b/src/Square/Default/Types/CreateTimecardResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The response to a request to create a `Timecard`. The response contains diff --git a/src/Square/Types/CreateTransferOrderData.cs b/src/Square/Default/Types/CreateTransferOrderData.cs similarity index 98% rename from src/Square/Types/CreateTransferOrderData.cs rename to src/Square/Default/Types/CreateTransferOrderData.cs index 69829704..3ee1a56e 100644 --- a/src/Square/Types/CreateTransferOrderData.cs +++ b/src/Square/Default/Types/CreateTransferOrderData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Data for creating a new transfer order to move [CatalogItemVariation](entity:CatalogItemVariation)s diff --git a/src/Square/Types/CreateTransferOrderLineData.cs b/src/Square/Default/Types/CreateTransferOrderLineData.cs similarity index 97% rename from src/Square/Types/CreateTransferOrderLineData.cs rename to src/Square/Default/Types/CreateTransferOrderLineData.cs index 89f55d52..8af5a6cd 100644 --- a/src/Square/Types/CreateTransferOrderLineData.cs +++ b/src/Square/Default/Types/CreateTransferOrderLineData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Data for creating a new transfer order line item. Each line item specifies a diff --git a/src/Square/Types/CreateTransferOrderResponse.cs b/src/Square/Default/Types/CreateTransferOrderResponse.cs similarity index 96% rename from src/Square/Types/CreateTransferOrderResponse.cs rename to src/Square/Default/Types/CreateTransferOrderResponse.cs index 97293a45..66b60151 100644 --- a/src/Square/Types/CreateTransferOrderResponse.cs +++ b/src/Square/Default/Types/CreateTransferOrderResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Response for creating a transfer order. diff --git a/src/Square/Types/CreateVendorResponse.cs b/src/Square/Default/Types/CreateVendorResponse.cs similarity index 96% rename from src/Square/Types/CreateVendorResponse.cs rename to src/Square/Default/Types/CreateVendorResponse.cs index cb8792be..bade55bf 100644 --- a/src/Square/Types/CreateVendorResponse.cs +++ b/src/Square/Default/Types/CreateVendorResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an output from a call to [CreateVendor](api-endpoint:Vendors-CreateVendor). diff --git a/src/Square/Types/CreateWebhookSubscriptionResponse.cs b/src/Square/Default/Types/CreateWebhookSubscriptionResponse.cs similarity index 97% rename from src/Square/Types/CreateWebhookSubscriptionResponse.cs rename to src/Square/Default/Types/CreateWebhookSubscriptionResponse.cs index 03158a18..864289a4 100644 --- a/src/Square/Types/CreateWebhookSubscriptionResponse.cs +++ b/src/Square/Default/Types/CreateWebhookSubscriptionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/Currency.cs b/src/Square/Default/Types/Currency.cs similarity index 99% rename from src/Square/Types/Currency.cs rename to src/Square/Default/Types/Currency.cs index a1f68552..f31c05fd 100644 --- a/src/Square/Types/Currency.cs +++ b/src/Square/Default/Types/Currency.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/CustomAttribute.cs b/src/Square/Default/Types/CustomAttribute.cs similarity index 99% rename from src/Square/Types/CustomAttribute.cs rename to src/Square/Default/Types/CustomAttribute.cs index 4ddc7817..6fce1a58 100644 --- a/src/Square/Types/CustomAttribute.cs +++ b/src/Square/Default/Types/CustomAttribute.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A custom attribute value. Each custom attribute value has a corresponding diff --git a/src/Square/Types/CustomAttributeDefinition.cs b/src/Square/Default/Types/CustomAttributeDefinition.cs similarity index 99% rename from src/Square/Types/CustomAttributeDefinition.cs rename to src/Square/Default/Types/CustomAttributeDefinition.cs index 81ff0c8a..b0e04f1a 100644 --- a/src/Square/Types/CustomAttributeDefinition.cs +++ b/src/Square/Default/Types/CustomAttributeDefinition.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a definition for custom attribute values. A custom attribute definition diff --git a/src/Square/Types/CustomAttributeDefinitionEventData.cs b/src/Square/Default/Types/CustomAttributeDefinitionEventData.cs similarity index 97% rename from src/Square/Types/CustomAttributeDefinitionEventData.cs rename to src/Square/Default/Types/CustomAttributeDefinitionEventData.cs index ffc8022a..a7976dcf 100644 --- a/src/Square/Types/CustomAttributeDefinitionEventData.cs +++ b/src/Square/Default/Types/CustomAttributeDefinitionEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an object in the CustomAttributeDefinition event notification diff --git a/src/Square/Types/CustomAttributeDefinitionEventDataObject.cs b/src/Square/Default/Types/CustomAttributeDefinitionEventDataObject.cs similarity index 95% rename from src/Square/Types/CustomAttributeDefinitionEventDataObject.cs rename to src/Square/Default/Types/CustomAttributeDefinitionEventDataObject.cs index 4d8505b5..8e2ef64d 100644 --- a/src/Square/Types/CustomAttributeDefinitionEventDataObject.cs +++ b/src/Square/Default/Types/CustomAttributeDefinitionEventDataObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CustomAttributeDefinitionEventDataObject : IJsonOnDeserialized diff --git a/src/Square/Types/CustomAttributeDefinitionVisibility.cs b/src/Square/Default/Types/CustomAttributeDefinitionVisibility.cs similarity index 98% rename from src/Square/Types/CustomAttributeDefinitionVisibility.cs rename to src/Square/Default/Types/CustomAttributeDefinitionVisibility.cs index 0ad8163a..be6fe636 100644 --- a/src/Square/Types/CustomAttributeDefinitionVisibility.cs +++ b/src/Square/Default/Types/CustomAttributeDefinitionVisibility.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/CustomAttributeEventData.cs b/src/Square/Default/Types/CustomAttributeEventData.cs similarity index 96% rename from src/Square/Types/CustomAttributeEventData.cs rename to src/Square/Default/Types/CustomAttributeEventData.cs index 4a79f138..2628ce43 100644 --- a/src/Square/Types/CustomAttributeEventData.cs +++ b/src/Square/Default/Types/CustomAttributeEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CustomAttributeEventData : IJsonOnDeserialized diff --git a/src/Square/Types/CustomAttributeEventDataObject.cs b/src/Square/Default/Types/CustomAttributeEventDataObject.cs similarity index 95% rename from src/Square/Types/CustomAttributeEventDataObject.cs rename to src/Square/Default/Types/CustomAttributeEventDataObject.cs index addd8c56..346bb610 100644 --- a/src/Square/Types/CustomAttributeEventDataObject.cs +++ b/src/Square/Default/Types/CustomAttributeEventDataObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record CustomAttributeEventDataObject : IJsonOnDeserialized diff --git a/src/Square/Types/CustomAttributeFilter.cs b/src/Square/Default/Types/CustomAttributeFilter.cs similarity index 98% rename from src/Square/Types/CustomAttributeFilter.cs rename to src/Square/Default/Types/CustomAttributeFilter.cs index bbb08923..58f68bc3 100644 --- a/src/Square/Types/CustomAttributeFilter.cs +++ b/src/Square/Default/Types/CustomAttributeFilter.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Supported custom attribute query expressions for calling the diff --git a/src/Square/Types/CustomField.cs b/src/Square/Default/Types/CustomField.cs similarity index 96% rename from src/Square/Types/CustomField.cs rename to src/Square/Default/Types/CustomField.cs index 5b2e2b3e..fdd7c152 100644 --- a/src/Square/Types/CustomField.cs +++ b/src/Square/Default/Types/CustomField.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Describes a custom form field to add to the checkout page to collect more information from buyers during checkout. diff --git a/src/Square/Types/Customer.cs b/src/Square/Default/Types/Customer.cs similarity index 99% rename from src/Square/Types/Customer.cs rename to src/Square/Default/Types/Customer.cs index 268bd5e6..605b6702 100644 --- a/src/Square/Types/Customer.cs +++ b/src/Square/Default/Types/Customer.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a Square customer profile in the Customer Directory of a Square seller. diff --git a/src/Square/Types/CustomerAddressFilter.cs b/src/Square/Default/Types/CustomerAddressFilter.cs similarity index 97% rename from src/Square/Types/CustomerAddressFilter.cs rename to src/Square/Default/Types/CustomerAddressFilter.cs index 99d31bea..cba97075 100644 --- a/src/Square/Types/CustomerAddressFilter.cs +++ b/src/Square/Default/Types/CustomerAddressFilter.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The customer address filter. This filter is used in a [CustomerCustomAttributeFilterValue](entity:CustomerCustomAttributeFilterValue) filter when diff --git a/src/Square/Types/CustomerCreatedEvent.cs b/src/Square/Default/Types/CustomerCreatedEvent.cs similarity index 98% rename from src/Square/Types/CustomerCreatedEvent.cs rename to src/Square/Default/Types/CustomerCreatedEvent.cs index 29a8cb69..f068feaa 100644 --- a/src/Square/Types/CustomerCreatedEvent.cs +++ b/src/Square/Default/Types/CustomerCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [customer](entity:Customer) is created. Subscribe to this event to track customer profiles affected by a merge operation. diff --git a/src/Square/Types/CustomerCreatedEventData.cs b/src/Square/Default/Types/CustomerCreatedEventData.cs similarity index 96% rename from src/Square/Types/CustomerCreatedEventData.cs rename to src/Square/Default/Types/CustomerCreatedEventData.cs index 0270a89f..c7ca710a 100644 --- a/src/Square/Types/CustomerCreatedEventData.cs +++ b/src/Square/Default/Types/CustomerCreatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The data associated with the event. diff --git a/src/Square/Types/CustomerCreatedEventEventContext.cs b/src/Square/Default/Types/CustomerCreatedEventEventContext.cs similarity index 95% rename from src/Square/Types/CustomerCreatedEventEventContext.cs rename to src/Square/Default/Types/CustomerCreatedEventEventContext.cs index dde1e442..6608b90f 100644 --- a/src/Square/Types/CustomerCreatedEventEventContext.cs +++ b/src/Square/Default/Types/CustomerCreatedEventEventContext.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Information about the change that triggered the event. diff --git a/src/Square/Types/CustomerCreatedEventEventContextMerge.cs b/src/Square/Default/Types/CustomerCreatedEventEventContextMerge.cs similarity index 96% rename from src/Square/Types/CustomerCreatedEventEventContextMerge.cs rename to src/Square/Default/Types/CustomerCreatedEventEventContextMerge.cs index d9d6859d..c765288b 100644 --- a/src/Square/Types/CustomerCreatedEventEventContextMerge.cs +++ b/src/Square/Default/Types/CustomerCreatedEventEventContextMerge.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Information about a merge operation, which creates a new customer using aggregated properties from two or more existing customers. diff --git a/src/Square/Types/CustomerCreatedEventObject.cs b/src/Square/Default/Types/CustomerCreatedEventObject.cs similarity index 96% rename from src/Square/Types/CustomerCreatedEventObject.cs rename to src/Square/Default/Types/CustomerCreatedEventObject.cs index 506ac00a..92798993 100644 --- a/src/Square/Types/CustomerCreatedEventObject.cs +++ b/src/Square/Default/Types/CustomerCreatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// An object that contains the customer associated with the event. diff --git a/src/Square/Types/CustomerCreationSource.cs b/src/Square/Default/Types/CustomerCreationSource.cs similarity index 99% rename from src/Square/Types/CustomerCreationSource.cs rename to src/Square/Default/Types/CustomerCreationSource.cs index 3dcd9678..c8c9405f 100644 --- a/src/Square/Types/CustomerCreationSource.cs +++ b/src/Square/Default/Types/CustomerCreationSource.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/CustomerCreationSourceFilter.cs b/src/Square/Default/Types/CustomerCreationSourceFilter.cs similarity index 97% rename from src/Square/Types/CustomerCreationSourceFilter.cs rename to src/Square/Default/Types/CustomerCreationSourceFilter.cs index 6a37f3dd..27eb062d 100644 --- a/src/Square/Types/CustomerCreationSourceFilter.cs +++ b/src/Square/Default/Types/CustomerCreationSourceFilter.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The creation source filter. diff --git a/src/Square/Types/CustomerCustomAttributeDefinitionCreatedEvent.cs b/src/Square/Default/Types/CustomerCustomAttributeDefinitionCreatedEvent.cs similarity index 98% rename from src/Square/Types/CustomerCustomAttributeDefinitionCreatedEvent.cs rename to src/Square/Default/Types/CustomerCustomAttributeDefinitionCreatedEvent.cs index fee5f133..63337f41 100644 --- a/src/Square/Types/CustomerCustomAttributeDefinitionCreatedEvent.cs +++ b/src/Square/Default/Types/CustomerCustomAttributeDefinitionCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a customer [custom attribute definition](entity:CustomAttributeDefinition) diff --git a/src/Square/Types/CustomerCustomAttributeDefinitionCreatedPublicEvent.cs b/src/Square/Default/Types/CustomerCustomAttributeDefinitionCreatedPublicEvent.cs similarity index 98% rename from src/Square/Types/CustomerCustomAttributeDefinitionCreatedPublicEvent.cs rename to src/Square/Default/Types/CustomerCustomAttributeDefinitionCreatedPublicEvent.cs index c4b743ac..395b9d0b 100644 --- a/src/Square/Types/CustomerCustomAttributeDefinitionCreatedPublicEvent.cs +++ b/src/Square/Default/Types/CustomerCustomAttributeDefinitionCreatedPublicEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a customer [custom attribute definition](entity:CustomAttributeDefinition) diff --git a/src/Square/Types/CustomerCustomAttributeDefinitionDeletedEvent.cs b/src/Square/Default/Types/CustomerCustomAttributeDefinitionDeletedEvent.cs similarity index 98% rename from src/Square/Types/CustomerCustomAttributeDefinitionDeletedEvent.cs rename to src/Square/Default/Types/CustomerCustomAttributeDefinitionDeletedEvent.cs index b494c53b..1eed097f 100644 --- a/src/Square/Types/CustomerCustomAttributeDefinitionDeletedEvent.cs +++ b/src/Square/Default/Types/CustomerCustomAttributeDefinitionDeletedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a customer [custom attribute definition](entity:CustomAttributeDefinition) diff --git a/src/Square/Types/CustomerCustomAttributeDefinitionDeletedPublicEvent.cs b/src/Square/Default/Types/CustomerCustomAttributeDefinitionDeletedPublicEvent.cs similarity index 98% rename from src/Square/Types/CustomerCustomAttributeDefinitionDeletedPublicEvent.cs rename to src/Square/Default/Types/CustomerCustomAttributeDefinitionDeletedPublicEvent.cs index d847abbd..27f9acea 100644 --- a/src/Square/Types/CustomerCustomAttributeDefinitionDeletedPublicEvent.cs +++ b/src/Square/Default/Types/CustomerCustomAttributeDefinitionDeletedPublicEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a customer [custom attribute definition](entity:CustomAttributeDefinition) diff --git a/src/Square/Types/CustomerCustomAttributeDefinitionOwnedCreatedEvent.cs b/src/Square/Default/Types/CustomerCustomAttributeDefinitionOwnedCreatedEvent.cs similarity index 97% rename from src/Square/Types/CustomerCustomAttributeDefinitionOwnedCreatedEvent.cs rename to src/Square/Default/Types/CustomerCustomAttributeDefinitionOwnedCreatedEvent.cs index 41919216..eb9f72e2 100644 --- a/src/Square/Types/CustomerCustomAttributeDefinitionOwnedCreatedEvent.cs +++ b/src/Square/Default/Types/CustomerCustomAttributeDefinitionOwnedCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a customer [custom attribute definition](entity:CustomAttributeDefinition) diff --git a/src/Square/Types/CustomerCustomAttributeDefinitionOwnedDeletedEvent.cs b/src/Square/Default/Types/CustomerCustomAttributeDefinitionOwnedDeletedEvent.cs similarity index 98% rename from src/Square/Types/CustomerCustomAttributeDefinitionOwnedDeletedEvent.cs rename to src/Square/Default/Types/CustomerCustomAttributeDefinitionOwnedDeletedEvent.cs index 766b55eb..cebf7e20 100644 --- a/src/Square/Types/CustomerCustomAttributeDefinitionOwnedDeletedEvent.cs +++ b/src/Square/Default/Types/CustomerCustomAttributeDefinitionOwnedDeletedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a customer [custom attribute definition](entity:CustomAttributeDefinition) diff --git a/src/Square/Types/CustomerCustomAttributeDefinitionOwnedUpdatedEvent.cs b/src/Square/Default/Types/CustomerCustomAttributeDefinitionOwnedUpdatedEvent.cs similarity index 98% rename from src/Square/Types/CustomerCustomAttributeDefinitionOwnedUpdatedEvent.cs rename to src/Square/Default/Types/CustomerCustomAttributeDefinitionOwnedUpdatedEvent.cs index 554ab45c..7e92da29 100644 --- a/src/Square/Types/CustomerCustomAttributeDefinitionOwnedUpdatedEvent.cs +++ b/src/Square/Default/Types/CustomerCustomAttributeDefinitionOwnedUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a customer [custom attribute definition](entity:CustomAttributeDefinition) diff --git a/src/Square/Types/CustomerCustomAttributeDefinitionUpdatedEvent.cs b/src/Square/Default/Types/CustomerCustomAttributeDefinitionUpdatedEvent.cs similarity index 98% rename from src/Square/Types/CustomerCustomAttributeDefinitionUpdatedEvent.cs rename to src/Square/Default/Types/CustomerCustomAttributeDefinitionUpdatedEvent.cs index a3f4c385..fff3c030 100644 --- a/src/Square/Types/CustomerCustomAttributeDefinitionUpdatedEvent.cs +++ b/src/Square/Default/Types/CustomerCustomAttributeDefinitionUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a customer [custom attribute definition](entity:CustomAttributeDefinition) diff --git a/src/Square/Types/CustomerCustomAttributeDefinitionUpdatedPublicEvent.cs b/src/Square/Default/Types/CustomerCustomAttributeDefinitionUpdatedPublicEvent.cs similarity index 98% rename from src/Square/Types/CustomerCustomAttributeDefinitionUpdatedPublicEvent.cs rename to src/Square/Default/Types/CustomerCustomAttributeDefinitionUpdatedPublicEvent.cs index 08106977..9a39890f 100644 --- a/src/Square/Types/CustomerCustomAttributeDefinitionUpdatedPublicEvent.cs +++ b/src/Square/Default/Types/CustomerCustomAttributeDefinitionUpdatedPublicEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a customer [custom attribute definition](entity:CustomAttributeDefinition) diff --git a/src/Square/Types/CustomerCustomAttributeDefinitionVisibleCreatedEvent.cs b/src/Square/Default/Types/CustomerCustomAttributeDefinitionVisibleCreatedEvent.cs similarity index 98% rename from src/Square/Types/CustomerCustomAttributeDefinitionVisibleCreatedEvent.cs rename to src/Square/Default/Types/CustomerCustomAttributeDefinitionVisibleCreatedEvent.cs index a376d720..327b7c64 100644 --- a/src/Square/Types/CustomerCustomAttributeDefinitionVisibleCreatedEvent.cs +++ b/src/Square/Default/Types/CustomerCustomAttributeDefinitionVisibleCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a customer [custom attribute definition](entity:CustomAttributeDefinition) diff --git a/src/Square/Types/CustomerCustomAttributeDefinitionVisibleDeletedEvent.cs b/src/Square/Default/Types/CustomerCustomAttributeDefinitionVisibleDeletedEvent.cs similarity index 98% rename from src/Square/Types/CustomerCustomAttributeDefinitionVisibleDeletedEvent.cs rename to src/Square/Default/Types/CustomerCustomAttributeDefinitionVisibleDeletedEvent.cs index d45459ed..cc6f6347 100644 --- a/src/Square/Types/CustomerCustomAttributeDefinitionVisibleDeletedEvent.cs +++ b/src/Square/Default/Types/CustomerCustomAttributeDefinitionVisibleDeletedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a customer [custom attribute definition](entity:CustomAttributeDefinition) diff --git a/src/Square/Types/CustomerCustomAttributeDefinitionVisibleUpdatedEvent.cs b/src/Square/Default/Types/CustomerCustomAttributeDefinitionVisibleUpdatedEvent.cs similarity index 98% rename from src/Square/Types/CustomerCustomAttributeDefinitionVisibleUpdatedEvent.cs rename to src/Square/Default/Types/CustomerCustomAttributeDefinitionVisibleUpdatedEvent.cs index 316a6db1..32e61bce 100644 --- a/src/Square/Types/CustomerCustomAttributeDefinitionVisibleUpdatedEvent.cs +++ b/src/Square/Default/Types/CustomerCustomAttributeDefinitionVisibleUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a customer [custom attribute definition](entity:CustomAttributeDefinition) diff --git a/src/Square/Types/CustomerCustomAttributeDeletedEvent.cs b/src/Square/Default/Types/CustomerCustomAttributeDeletedEvent.cs similarity index 98% rename from src/Square/Types/CustomerCustomAttributeDeletedEvent.cs rename to src/Square/Default/Types/CustomerCustomAttributeDeletedEvent.cs index 4652cea9..c00a7bc8 100644 --- a/src/Square/Types/CustomerCustomAttributeDeletedEvent.cs +++ b/src/Square/Default/Types/CustomerCustomAttributeDeletedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a customer [custom attribute](entity:CustomAttribute) owned by the diff --git a/src/Square/Types/CustomerCustomAttributeDeletedPublicEvent.cs b/src/Square/Default/Types/CustomerCustomAttributeDeletedPublicEvent.cs similarity index 98% rename from src/Square/Types/CustomerCustomAttributeDeletedPublicEvent.cs rename to src/Square/Default/Types/CustomerCustomAttributeDeletedPublicEvent.cs index 32cdf369..7ab8e088 100644 --- a/src/Square/Types/CustomerCustomAttributeDeletedPublicEvent.cs +++ b/src/Square/Default/Types/CustomerCustomAttributeDeletedPublicEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a customer [custom attribute](entity:CustomAttribute) that is visible diff --git a/src/Square/Types/CustomerCustomAttributeFilter.cs b/src/Square/Default/Types/CustomerCustomAttributeFilter.cs similarity index 98% rename from src/Square/Types/CustomerCustomAttributeFilter.cs rename to src/Square/Default/Types/CustomerCustomAttributeFilter.cs index 89267b05..336fc23f 100644 --- a/src/Square/Types/CustomerCustomAttributeFilter.cs +++ b/src/Square/Default/Types/CustomerCustomAttributeFilter.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The custom attribute filter. Use this filter in a set of [custom attribute filters](entity:CustomerCustomAttributeFilters) to search diff --git a/src/Square/Types/CustomerCustomAttributeFilterValue.cs b/src/Square/Default/Types/CustomerCustomAttributeFilterValue.cs similarity index 99% rename from src/Square/Types/CustomerCustomAttributeFilterValue.cs rename to src/Square/Default/Types/CustomerCustomAttributeFilterValue.cs index 3fb32b43..763971e2 100644 --- a/src/Square/Types/CustomerCustomAttributeFilterValue.cs +++ b/src/Square/Default/Types/CustomerCustomAttributeFilterValue.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A type-specific filter used in a [custom attribute filter](entity:CustomerCustomAttributeFilter) to search based on the value diff --git a/src/Square/Types/CustomerCustomAttributeFilters.cs b/src/Square/Default/Types/CustomerCustomAttributeFilters.cs similarity index 97% rename from src/Square/Types/CustomerCustomAttributeFilters.cs rename to src/Square/Default/Types/CustomerCustomAttributeFilters.cs index cc468c03..f0e0792c 100644 --- a/src/Square/Types/CustomerCustomAttributeFilters.cs +++ b/src/Square/Default/Types/CustomerCustomAttributeFilters.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The custom attribute filters in a set of [customer filters](entity:CustomerFilter) used in a search query. Use this filter diff --git a/src/Square/Types/CustomerCustomAttributeOwnedDeletedEvent.cs b/src/Square/Default/Types/CustomerCustomAttributeOwnedDeletedEvent.cs similarity index 98% rename from src/Square/Types/CustomerCustomAttributeOwnedDeletedEvent.cs rename to src/Square/Default/Types/CustomerCustomAttributeOwnedDeletedEvent.cs index 06001c29..19781324 100644 --- a/src/Square/Types/CustomerCustomAttributeOwnedDeletedEvent.cs +++ b/src/Square/Default/Types/CustomerCustomAttributeOwnedDeletedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a customer [custom attribute](entity:CustomAttribute) owned by the diff --git a/src/Square/Types/CustomerCustomAttributeOwnedUpdatedEvent.cs b/src/Square/Default/Types/CustomerCustomAttributeOwnedUpdatedEvent.cs similarity index 98% rename from src/Square/Types/CustomerCustomAttributeOwnedUpdatedEvent.cs rename to src/Square/Default/Types/CustomerCustomAttributeOwnedUpdatedEvent.cs index 492a6183..5e8d6207 100644 --- a/src/Square/Types/CustomerCustomAttributeOwnedUpdatedEvent.cs +++ b/src/Square/Default/Types/CustomerCustomAttributeOwnedUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a customer [custom attribute](entity:CustomAttribute) owned by the diff --git a/src/Square/Types/CustomerCustomAttributeUpdatedEvent.cs b/src/Square/Default/Types/CustomerCustomAttributeUpdatedEvent.cs similarity index 98% rename from src/Square/Types/CustomerCustomAttributeUpdatedEvent.cs rename to src/Square/Default/Types/CustomerCustomAttributeUpdatedEvent.cs index 6315eb98..702d55c6 100644 --- a/src/Square/Types/CustomerCustomAttributeUpdatedEvent.cs +++ b/src/Square/Default/Types/CustomerCustomAttributeUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a customer [custom attribute](entity:CustomAttribute) owned by the diff --git a/src/Square/Types/CustomerCustomAttributeUpdatedPublicEvent.cs b/src/Square/Default/Types/CustomerCustomAttributeUpdatedPublicEvent.cs similarity index 98% rename from src/Square/Types/CustomerCustomAttributeUpdatedPublicEvent.cs rename to src/Square/Default/Types/CustomerCustomAttributeUpdatedPublicEvent.cs index e35ad125..08aa7c32 100644 --- a/src/Square/Types/CustomerCustomAttributeUpdatedPublicEvent.cs +++ b/src/Square/Default/Types/CustomerCustomAttributeUpdatedPublicEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a customer [custom attribute](entity:CustomAttribute) that is visible diff --git a/src/Square/Types/CustomerCustomAttributeVisibleDeletedEvent.cs b/src/Square/Default/Types/CustomerCustomAttributeVisibleDeletedEvent.cs similarity index 98% rename from src/Square/Types/CustomerCustomAttributeVisibleDeletedEvent.cs rename to src/Square/Default/Types/CustomerCustomAttributeVisibleDeletedEvent.cs index 5cdca63b..1a0d4d60 100644 --- a/src/Square/Types/CustomerCustomAttributeVisibleDeletedEvent.cs +++ b/src/Square/Default/Types/CustomerCustomAttributeVisibleDeletedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a customer [custom attribute](entity:CustomAttribute) that is visible to the diff --git a/src/Square/Types/CustomerCustomAttributeVisibleUpdatedEvent.cs b/src/Square/Default/Types/CustomerCustomAttributeVisibleUpdatedEvent.cs similarity index 98% rename from src/Square/Types/CustomerCustomAttributeVisibleUpdatedEvent.cs rename to src/Square/Default/Types/CustomerCustomAttributeVisibleUpdatedEvent.cs index 8fbf62a6..2ac64618 100644 --- a/src/Square/Types/CustomerCustomAttributeVisibleUpdatedEvent.cs +++ b/src/Square/Default/Types/CustomerCustomAttributeVisibleUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a customer [custom attribute](entity:CustomAttribute) that is visible to the diff --git a/src/Square/Types/CustomerDeletedEvent.cs b/src/Square/Default/Types/CustomerDeletedEvent.cs similarity index 98% rename from src/Square/Types/CustomerDeletedEvent.cs rename to src/Square/Default/Types/CustomerDeletedEvent.cs index 203bb141..8ebf6a02 100644 --- a/src/Square/Types/CustomerDeletedEvent.cs +++ b/src/Square/Default/Types/CustomerDeletedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [customer](entity:Customer) is deleted. For more information, see [Use Customer Webhooks](https://developer.squareup.com/docs/customers-api/use-the-api/customer-webhooks). diff --git a/src/Square/Types/CustomerDeletedEventData.cs b/src/Square/Default/Types/CustomerDeletedEventData.cs similarity index 96% rename from src/Square/Types/CustomerDeletedEventData.cs rename to src/Square/Default/Types/CustomerDeletedEventData.cs index 10534947..d4d359ff 100644 --- a/src/Square/Types/CustomerDeletedEventData.cs +++ b/src/Square/Default/Types/CustomerDeletedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The data associated with the event. diff --git a/src/Square/Types/CustomerDeletedEventEventContext.cs b/src/Square/Default/Types/CustomerDeletedEventEventContext.cs similarity index 95% rename from src/Square/Types/CustomerDeletedEventEventContext.cs rename to src/Square/Default/Types/CustomerDeletedEventEventContext.cs index 298aa492..098fac27 100644 --- a/src/Square/Types/CustomerDeletedEventEventContext.cs +++ b/src/Square/Default/Types/CustomerDeletedEventEventContext.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Information about the change that triggered the event. diff --git a/src/Square/Types/CustomerDeletedEventEventContextMerge.cs b/src/Square/Default/Types/CustomerDeletedEventEventContextMerge.cs similarity index 96% rename from src/Square/Types/CustomerDeletedEventEventContextMerge.cs rename to src/Square/Default/Types/CustomerDeletedEventEventContextMerge.cs index f481f50b..d9beedc0 100644 --- a/src/Square/Types/CustomerDeletedEventEventContextMerge.cs +++ b/src/Square/Default/Types/CustomerDeletedEventEventContextMerge.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Information about a merge operation, which creates a new customer using aggregated properties from two or more existing customers. diff --git a/src/Square/Types/CustomerDeletedEventObject.cs b/src/Square/Default/Types/CustomerDeletedEventObject.cs similarity index 96% rename from src/Square/Types/CustomerDeletedEventObject.cs rename to src/Square/Default/Types/CustomerDeletedEventObject.cs index 3eae2286..832c352c 100644 --- a/src/Square/Types/CustomerDeletedEventObject.cs +++ b/src/Square/Default/Types/CustomerDeletedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// An object that contains the customer associated with the event. diff --git a/src/Square/Types/CustomerDetails.cs b/src/Square/Default/Types/CustomerDetails.cs similarity index 96% rename from src/Square/Types/CustomerDetails.cs rename to src/Square/Default/Types/CustomerDetails.cs index 308ae509..3b2120e7 100644 --- a/src/Square/Types/CustomerDetails.cs +++ b/src/Square/Default/Types/CustomerDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Details about the customer making the payment. diff --git a/src/Square/Types/CustomerFilter.cs b/src/Square/Default/Types/CustomerFilter.cs similarity index 99% rename from src/Square/Types/CustomerFilter.cs rename to src/Square/Default/Types/CustomerFilter.cs index 10eebada..8c46a93c 100644 --- a/src/Square/Types/CustomerFilter.cs +++ b/src/Square/Default/Types/CustomerFilter.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents the filtering criteria in a [search query](entity:CustomerQuery) that defines how to filter diff --git a/src/Square/Types/CustomerGroup.cs b/src/Square/Default/Types/CustomerGroup.cs similarity index 97% rename from src/Square/Types/CustomerGroup.cs rename to src/Square/Default/Types/CustomerGroup.cs index eb9c246f..a737be7f 100644 --- a/src/Square/Types/CustomerGroup.cs +++ b/src/Square/Default/Types/CustomerGroup.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a group of customer profiles. diff --git a/src/Square/Types/CustomerInclusionExclusion.cs b/src/Square/Default/Types/CustomerInclusionExclusion.cs similarity index 98% rename from src/Square/Types/CustomerInclusionExclusion.cs rename to src/Square/Default/Types/CustomerInclusionExclusion.cs index 29eb791d..ddb2c37b 100644 --- a/src/Square/Types/CustomerInclusionExclusion.cs +++ b/src/Square/Default/Types/CustomerInclusionExclusion.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/CustomerPreferences.cs b/src/Square/Default/Types/CustomerPreferences.cs similarity index 96% rename from src/Square/Types/CustomerPreferences.cs rename to src/Square/Default/Types/CustomerPreferences.cs index f614e632..fce5691c 100644 --- a/src/Square/Types/CustomerPreferences.cs +++ b/src/Square/Default/Types/CustomerPreferences.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents communication preferences for the customer profile. diff --git a/src/Square/Types/CustomerQuery.cs b/src/Square/Default/Types/CustomerQuery.cs similarity index 97% rename from src/Square/Types/CustomerQuery.cs rename to src/Square/Default/Types/CustomerQuery.cs index 5746f640..00e69196 100644 --- a/src/Square/Types/CustomerQuery.cs +++ b/src/Square/Default/Types/CustomerQuery.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents filtering and sorting criteria for a [SearchCustomers](api-endpoint:Customers-SearchCustomers) request. diff --git a/src/Square/Types/CustomerSegment.cs b/src/Square/Default/Types/CustomerSegment.cs similarity index 97% rename from src/Square/Types/CustomerSegment.cs rename to src/Square/Default/Types/CustomerSegment.cs index 30e7e542..bf379fec 100644 --- a/src/Square/Types/CustomerSegment.cs +++ b/src/Square/Default/Types/CustomerSegment.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a group of customer profiles that match one or more predefined filter criteria. diff --git a/src/Square/Types/CustomerSort.cs b/src/Square/Default/Types/CustomerSort.cs similarity index 97% rename from src/Square/Types/CustomerSort.cs rename to src/Square/Default/Types/CustomerSort.cs index 23fa6ad2..ebffa1cd 100644 --- a/src/Square/Types/CustomerSort.cs +++ b/src/Square/Default/Types/CustomerSort.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents the sorting criteria in a [search query](entity:CustomerQuery) that defines how to sort diff --git a/src/Square/Types/CustomerSortField.cs b/src/Square/Default/Types/CustomerSortField.cs similarity index 98% rename from src/Square/Types/CustomerSortField.cs rename to src/Square/Default/Types/CustomerSortField.cs index 73bd1918..82ccadb4 100644 --- a/src/Square/Types/CustomerSortField.cs +++ b/src/Square/Default/Types/CustomerSortField.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/CustomerTaxIds.cs b/src/Square/Default/Types/CustomerTaxIds.cs similarity index 96% rename from src/Square/Types/CustomerTaxIds.cs rename to src/Square/Default/Types/CustomerTaxIds.cs index 06f184c4..dc43cf37 100644 --- a/src/Square/Types/CustomerTaxIds.cs +++ b/src/Square/Default/Types/CustomerTaxIds.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents the tax ID associated with a [customer profile](entity:Customer). The corresponding `tax_ids` field is available only for customers of sellers in EU countries or the United Kingdom. diff --git a/src/Square/Types/CustomerTextFilter.cs b/src/Square/Default/Types/CustomerTextFilter.cs similarity index 97% rename from src/Square/Types/CustomerTextFilter.cs rename to src/Square/Default/Types/CustomerTextFilter.cs index 71923f63..4d54b5e7 100644 --- a/src/Square/Types/CustomerTextFilter.cs +++ b/src/Square/Default/Types/CustomerTextFilter.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A filter to select customers based on exact or fuzzy matching of diff --git a/src/Square/Types/CustomerUpdatedEvent.cs b/src/Square/Default/Types/CustomerUpdatedEvent.cs similarity index 98% rename from src/Square/Types/CustomerUpdatedEvent.cs rename to src/Square/Default/Types/CustomerUpdatedEvent.cs index 88ba6d79..df73b61e 100644 --- a/src/Square/Types/CustomerUpdatedEvent.cs +++ b/src/Square/Default/Types/CustomerUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [customer](entity:Customer) is updated. For more information, see [Use Customer Webhooks](https://developer.squareup.com/docs/customers-api/use-the-api/customer-webhooks). diff --git a/src/Square/Types/CustomerUpdatedEventData.cs b/src/Square/Default/Types/CustomerUpdatedEventData.cs similarity index 96% rename from src/Square/Types/CustomerUpdatedEventData.cs rename to src/Square/Default/Types/CustomerUpdatedEventData.cs index 82226f47..68cd36c6 100644 --- a/src/Square/Types/CustomerUpdatedEventData.cs +++ b/src/Square/Default/Types/CustomerUpdatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The data associated with the event. diff --git a/src/Square/Types/CustomerUpdatedEventObject.cs b/src/Square/Default/Types/CustomerUpdatedEventObject.cs similarity index 95% rename from src/Square/Types/CustomerUpdatedEventObject.cs rename to src/Square/Default/Types/CustomerUpdatedEventObject.cs index 0f4052cd..6500eacf 100644 --- a/src/Square/Types/CustomerUpdatedEventObject.cs +++ b/src/Square/Default/Types/CustomerUpdatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// An object that contains the customer associated with the event. diff --git a/src/Square/Types/DataCollectionOptions.cs b/src/Square/Default/Types/DataCollectionOptions.cs similarity index 97% rename from src/Square/Types/DataCollectionOptions.cs rename to src/Square/Default/Types/DataCollectionOptions.cs index ba2d6a3e..794440b7 100644 --- a/src/Square/Types/DataCollectionOptions.cs +++ b/src/Square/Default/Types/DataCollectionOptions.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DataCollectionOptions : IJsonOnDeserialized diff --git a/src/Square/Types/DataCollectionOptionsInputType.cs b/src/Square/Default/Types/DataCollectionOptionsInputType.cs similarity index 98% rename from src/Square/Types/DataCollectionOptionsInputType.cs rename to src/Square/Default/Types/DataCollectionOptionsInputType.cs index 1efa10e4..c28b78b7 100644 --- a/src/Square/Types/DataCollectionOptionsInputType.cs +++ b/src/Square/Default/Types/DataCollectionOptionsInputType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/DateRange.cs b/src/Square/Default/Types/DateRange.cs similarity index 97% rename from src/Square/Types/DateRange.cs rename to src/Square/Default/Types/DateRange.cs index 991c7c2a..eb29a202 100644 --- a/src/Square/Types/DateRange.cs +++ b/src/Square/Default/Types/DateRange.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A range defined by two dates. Used for filtering a query for Connect v2 diff --git a/src/Square/Types/DayOfWeek.cs b/src/Square/Default/Types/DayOfWeek.cs similarity index 98% rename from src/Square/Types/DayOfWeek.cs rename to src/Square/Default/Types/DayOfWeek.cs index e40d48ca..a3d20e1d 100644 --- a/src/Square/Types/DayOfWeek.cs +++ b/src/Square/Default/Types/DayOfWeek.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/DeleteBookingCustomAttributeDefinitionResponse.cs b/src/Square/Default/Types/DeleteBookingCustomAttributeDefinitionResponse.cs similarity index 96% rename from src/Square/Types/DeleteBookingCustomAttributeDefinitionResponse.cs rename to src/Square/Default/Types/DeleteBookingCustomAttributeDefinitionResponse.cs index ee74c0ea..b3749f66 100644 --- a/src/Square/Types/DeleteBookingCustomAttributeDefinitionResponse.cs +++ b/src/Square/Default/Types/DeleteBookingCustomAttributeDefinitionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [DeleteBookingCustomAttributeDefinition](api-endpoint:BookingCustomAttributes-DeleteBookingCustomAttributeDefinition) response diff --git a/src/Square/Types/DeleteBookingCustomAttributeResponse.cs b/src/Square/Default/Types/DeleteBookingCustomAttributeResponse.cs similarity index 96% rename from src/Square/Types/DeleteBookingCustomAttributeResponse.cs rename to src/Square/Default/Types/DeleteBookingCustomAttributeResponse.cs index 8a3dc926..975a4e6a 100644 --- a/src/Square/Types/DeleteBookingCustomAttributeResponse.cs +++ b/src/Square/Default/Types/DeleteBookingCustomAttributeResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [DeleteBookingCustomAttribute](api-endpoint:BookingCustomAttributes-DeleteBookingCustomAttribute) response. diff --git a/src/Square/Types/DeleteBreakTypeResponse.cs b/src/Square/Default/Types/DeleteBreakTypeResponse.cs similarity index 96% rename from src/Square/Types/DeleteBreakTypeResponse.cs rename to src/Square/Default/Types/DeleteBreakTypeResponse.cs index 0aebc9f2..82c7283d 100644 --- a/src/Square/Types/DeleteBreakTypeResponse.cs +++ b/src/Square/Default/Types/DeleteBreakTypeResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The response to a request to delete a `BreakType`. The response might contain a set diff --git a/src/Square/Types/DeleteCatalogObjectResponse.cs b/src/Square/Default/Types/DeleteCatalogObjectResponse.cs similarity index 97% rename from src/Square/Types/DeleteCatalogObjectResponse.cs rename to src/Square/Default/Types/DeleteCatalogObjectResponse.cs index bf11ad88..492a206c 100644 --- a/src/Square/Types/DeleteCatalogObjectResponse.cs +++ b/src/Square/Default/Types/DeleteCatalogObjectResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DeleteCatalogObjectResponse : IJsonOnDeserialized diff --git a/src/Square/Types/DeleteCustomerCardResponse.cs b/src/Square/Default/Types/DeleteCustomerCardResponse.cs similarity index 96% rename from src/Square/Types/DeleteCustomerCardResponse.cs rename to src/Square/Default/Types/DeleteCustomerCardResponse.cs index ba6aa103..497b78ab 100644 --- a/src/Square/Types/DeleteCustomerCardResponse.cs +++ b/src/Square/Default/Types/DeleteCustomerCardResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/DeleteCustomerCustomAttributeDefinitionResponse.cs b/src/Square/Default/Types/DeleteCustomerCustomAttributeDefinitionResponse.cs similarity index 96% rename from src/Square/Types/DeleteCustomerCustomAttributeDefinitionResponse.cs rename to src/Square/Default/Types/DeleteCustomerCustomAttributeDefinitionResponse.cs index 09dc5698..7f093d50 100644 --- a/src/Square/Types/DeleteCustomerCustomAttributeDefinitionResponse.cs +++ b/src/Square/Default/Types/DeleteCustomerCustomAttributeDefinitionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a response from a delete request containing error messages if there are any. diff --git a/src/Square/Types/DeleteCustomerCustomAttributeResponse.cs b/src/Square/Default/Types/DeleteCustomerCustomAttributeResponse.cs similarity index 96% rename from src/Square/Types/DeleteCustomerCustomAttributeResponse.cs rename to src/Square/Default/Types/DeleteCustomerCustomAttributeResponse.cs index 041a073a..1cc80795 100644 --- a/src/Square/Types/DeleteCustomerCustomAttributeResponse.cs +++ b/src/Square/Default/Types/DeleteCustomerCustomAttributeResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [DeleteCustomerCustomAttribute](api-endpoint:CustomerCustomAttributes-DeleteCustomerCustomAttribute) response. diff --git a/src/Square/Types/DeleteCustomerGroupResponse.cs b/src/Square/Default/Types/DeleteCustomerGroupResponse.cs similarity index 96% rename from src/Square/Types/DeleteCustomerGroupResponse.cs rename to src/Square/Default/Types/DeleteCustomerGroupResponse.cs index d55472a7..97e289fc 100644 --- a/src/Square/Types/DeleteCustomerGroupResponse.cs +++ b/src/Square/Default/Types/DeleteCustomerGroupResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/DeleteCustomerResponse.cs b/src/Square/Default/Types/DeleteCustomerResponse.cs similarity index 96% rename from src/Square/Types/DeleteCustomerResponse.cs rename to src/Square/Default/Types/DeleteCustomerResponse.cs index 65afc479..04e26a3d 100644 --- a/src/Square/Types/DeleteCustomerResponse.cs +++ b/src/Square/Default/Types/DeleteCustomerResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/DeleteDisputeEvidenceResponse.cs b/src/Square/Default/Types/DeleteDisputeEvidenceResponse.cs similarity index 95% rename from src/Square/Types/DeleteDisputeEvidenceResponse.cs rename to src/Square/Default/Types/DeleteDisputeEvidenceResponse.cs index b68043b2..f07be69e 100644 --- a/src/Square/Types/DeleteDisputeEvidenceResponse.cs +++ b/src/Square/Default/Types/DeleteDisputeEvidenceResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields in a `DeleteDisputeEvidence` response. diff --git a/src/Square/Types/DeleteInvoiceAttachmentResponse.cs b/src/Square/Default/Types/DeleteInvoiceAttachmentResponse.cs similarity index 96% rename from src/Square/Types/DeleteInvoiceAttachmentResponse.cs rename to src/Square/Default/Types/DeleteInvoiceAttachmentResponse.cs index 65322274..ff160a6f 100644 --- a/src/Square/Types/DeleteInvoiceAttachmentResponse.cs +++ b/src/Square/Default/Types/DeleteInvoiceAttachmentResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [DeleteInvoiceAttachment](api-endpoint:Invoices-DeleteInvoiceAttachment) response. diff --git a/src/Square/Types/DeleteInvoiceResponse.cs b/src/Square/Default/Types/DeleteInvoiceResponse.cs similarity index 95% rename from src/Square/Types/DeleteInvoiceResponse.cs rename to src/Square/Default/Types/DeleteInvoiceResponse.cs index 51235613..29eef905 100644 --- a/src/Square/Types/DeleteInvoiceResponse.cs +++ b/src/Square/Default/Types/DeleteInvoiceResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Describes a `DeleteInvoice` response. diff --git a/src/Square/Types/DeleteLocationCustomAttributeDefinitionResponse.cs b/src/Square/Default/Types/DeleteLocationCustomAttributeDefinitionResponse.cs similarity index 96% rename from src/Square/Types/DeleteLocationCustomAttributeDefinitionResponse.cs rename to src/Square/Default/Types/DeleteLocationCustomAttributeDefinitionResponse.cs index 8598d8a5..339f0a95 100644 --- a/src/Square/Types/DeleteLocationCustomAttributeDefinitionResponse.cs +++ b/src/Square/Default/Types/DeleteLocationCustomAttributeDefinitionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a response from a delete request containing error messages if there are any. diff --git a/src/Square/Types/DeleteLocationCustomAttributeResponse.cs b/src/Square/Default/Types/DeleteLocationCustomAttributeResponse.cs similarity index 96% rename from src/Square/Types/DeleteLocationCustomAttributeResponse.cs rename to src/Square/Default/Types/DeleteLocationCustomAttributeResponse.cs index 59fe0b0d..5329be75 100644 --- a/src/Square/Types/DeleteLocationCustomAttributeResponse.cs +++ b/src/Square/Default/Types/DeleteLocationCustomAttributeResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [DeleteLocationCustomAttribute](api-endpoint:LocationCustomAttributes-DeleteLocationCustomAttribute) response. diff --git a/src/Square/Types/DeleteLoyaltyRewardResponse.cs b/src/Square/Default/Types/DeleteLoyaltyRewardResponse.cs similarity index 95% rename from src/Square/Types/DeleteLoyaltyRewardResponse.cs rename to src/Square/Default/Types/DeleteLoyaltyRewardResponse.cs index 18a42ac2..ef5ffeef 100644 --- a/src/Square/Types/DeleteLoyaltyRewardResponse.cs +++ b/src/Square/Default/Types/DeleteLoyaltyRewardResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A response returned by the API call. diff --git a/src/Square/Types/DeleteMerchantCustomAttributeDefinitionResponse.cs b/src/Square/Default/Types/DeleteMerchantCustomAttributeDefinitionResponse.cs similarity index 96% rename from src/Square/Types/DeleteMerchantCustomAttributeDefinitionResponse.cs rename to src/Square/Default/Types/DeleteMerchantCustomAttributeDefinitionResponse.cs index d764355e..2fdf83fc 100644 --- a/src/Square/Types/DeleteMerchantCustomAttributeDefinitionResponse.cs +++ b/src/Square/Default/Types/DeleteMerchantCustomAttributeDefinitionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a response from a delete request containing error messages if there are any. diff --git a/src/Square/Types/DeleteMerchantCustomAttributeResponse.cs b/src/Square/Default/Types/DeleteMerchantCustomAttributeResponse.cs similarity index 96% rename from src/Square/Types/DeleteMerchantCustomAttributeResponse.cs rename to src/Square/Default/Types/DeleteMerchantCustomAttributeResponse.cs index fe6f768c..2b64d62b 100644 --- a/src/Square/Types/DeleteMerchantCustomAttributeResponse.cs +++ b/src/Square/Default/Types/DeleteMerchantCustomAttributeResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [DeleteMerchantCustomAttribute](api-endpoint:MerchantCustomAttributes-DeleteMerchantCustomAttribute) response. diff --git a/src/Square/Types/DeleteOrderCustomAttributeDefinitionResponse.cs b/src/Square/Default/Types/DeleteOrderCustomAttributeDefinitionResponse.cs similarity index 95% rename from src/Square/Types/DeleteOrderCustomAttributeDefinitionResponse.cs rename to src/Square/Default/Types/DeleteOrderCustomAttributeDefinitionResponse.cs index e967ee75..19f19af2 100644 --- a/src/Square/Types/DeleteOrderCustomAttributeDefinitionResponse.cs +++ b/src/Square/Default/Types/DeleteOrderCustomAttributeDefinitionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a response from deleting an order custom attribute definition. diff --git a/src/Square/Types/DeleteOrderCustomAttributeResponse.cs b/src/Square/Default/Types/DeleteOrderCustomAttributeResponse.cs similarity index 95% rename from src/Square/Types/DeleteOrderCustomAttributeResponse.cs rename to src/Square/Default/Types/DeleteOrderCustomAttributeResponse.cs index a5c571c7..816efa3b 100644 --- a/src/Square/Types/DeleteOrderCustomAttributeResponse.cs +++ b/src/Square/Default/Types/DeleteOrderCustomAttributeResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a response from deleting an order custom attribute. diff --git a/src/Square/Types/DeletePaymentLinkResponse.cs b/src/Square/Default/Types/DeletePaymentLinkResponse.cs similarity index 96% rename from src/Square/Types/DeletePaymentLinkResponse.cs rename to src/Square/Default/Types/DeletePaymentLinkResponse.cs index 5b56b677..7e1d23d5 100644 --- a/src/Square/Types/DeletePaymentLinkResponse.cs +++ b/src/Square/Default/Types/DeletePaymentLinkResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DeletePaymentLinkResponse : IJsonOnDeserialized diff --git a/src/Square/Types/DeleteShiftResponse.cs b/src/Square/Default/Types/DeleteShiftResponse.cs similarity index 96% rename from src/Square/Types/DeleteShiftResponse.cs rename to src/Square/Default/Types/DeleteShiftResponse.cs index 2e21467f..1f5a0e99 100644 --- a/src/Square/Types/DeleteShiftResponse.cs +++ b/src/Square/Default/Types/DeleteShiftResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The response to a request to delete a `Shift`. The response might contain a set of diff --git a/src/Square/Types/DeleteSnippetResponse.cs b/src/Square/Default/Types/DeleteSnippetResponse.cs similarity index 95% rename from src/Square/Types/DeleteSnippetResponse.cs rename to src/Square/Default/Types/DeleteSnippetResponse.cs index 4906b491..0838ebc6 100644 --- a/src/Square/Types/DeleteSnippetResponse.cs +++ b/src/Square/Default/Types/DeleteSnippetResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a `DeleteSnippet` response. diff --git a/src/Square/Types/DeleteSubscriptionActionResponse.cs b/src/Square/Default/Types/DeleteSubscriptionActionResponse.cs similarity index 96% rename from src/Square/Types/DeleteSubscriptionActionResponse.cs rename to src/Square/Default/Types/DeleteSubscriptionActionResponse.cs index 12c60ad4..35cba864 100644 --- a/src/Square/Types/DeleteSubscriptionActionResponse.cs +++ b/src/Square/Default/Types/DeleteSubscriptionActionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines output parameters in a response of the [DeleteSubscriptionAction](api-endpoint:Subscriptions-DeleteSubscriptionAction) diff --git a/src/Square/Types/DeleteTimecardResponse.cs b/src/Square/Default/Types/DeleteTimecardResponse.cs similarity index 96% rename from src/Square/Types/DeleteTimecardResponse.cs rename to src/Square/Default/Types/DeleteTimecardResponse.cs index 9f78e4b2..af47b48d 100644 --- a/src/Square/Types/DeleteTimecardResponse.cs +++ b/src/Square/Default/Types/DeleteTimecardResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The response to a request to delete a `Timecard`. The response might contain a set of diff --git a/src/Square/Types/DeleteTransferOrderResponse.cs b/src/Square/Default/Types/DeleteTransferOrderResponse.cs similarity index 95% rename from src/Square/Types/DeleteTransferOrderResponse.cs rename to src/Square/Default/Types/DeleteTransferOrderResponse.cs index 56726241..498ce30e 100644 --- a/src/Square/Types/DeleteTransferOrderResponse.cs +++ b/src/Square/Default/Types/DeleteTransferOrderResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Response for deleting a transfer order diff --git a/src/Square/Types/DeleteWebhookSubscriptionResponse.cs b/src/Square/Default/Types/DeleteWebhookSubscriptionResponse.cs similarity index 96% rename from src/Square/Types/DeleteWebhookSubscriptionResponse.cs rename to src/Square/Default/Types/DeleteWebhookSubscriptionResponse.cs index ccbe55cd..e86cd4ab 100644 --- a/src/Square/Types/DeleteWebhookSubscriptionResponse.cs +++ b/src/Square/Default/Types/DeleteWebhookSubscriptionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/Destination.cs b/src/Square/Default/Types/Destination.cs similarity index 96% rename from src/Square/Types/Destination.cs rename to src/Square/Default/Types/Destination.cs index e2083820..20944ce4 100644 --- a/src/Square/Types/Destination.cs +++ b/src/Square/Default/Types/Destination.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Information about the destination against which the payout was made. diff --git a/src/Square/Types/DestinationDetails.cs b/src/Square/Default/Types/DestinationDetails.cs similarity index 97% rename from src/Square/Types/DestinationDetails.cs rename to src/Square/Default/Types/DestinationDetails.cs index 22ec3af2..9244f203 100644 --- a/src/Square/Types/DestinationDetails.cs +++ b/src/Square/Default/Types/DestinationDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Details about a refund's destination. diff --git a/src/Square/Types/DestinationDetailsCardRefundDetails.cs b/src/Square/Default/Types/DestinationDetailsCardRefundDetails.cs similarity index 96% rename from src/Square/Types/DestinationDetailsCardRefundDetails.cs rename to src/Square/Default/Types/DestinationDetailsCardRefundDetails.cs index 0b73e234..b080ad66 100644 --- a/src/Square/Types/DestinationDetailsCardRefundDetails.cs +++ b/src/Square/Default/Types/DestinationDetailsCardRefundDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DestinationDetailsCardRefundDetails : IJsonOnDeserialized diff --git a/src/Square/Types/DestinationDetailsCashRefundDetails.cs b/src/Square/Default/Types/DestinationDetailsCashRefundDetails.cs similarity index 96% rename from src/Square/Types/DestinationDetailsCashRefundDetails.cs rename to src/Square/Default/Types/DestinationDetailsCashRefundDetails.cs index eb35dc05..bf177f6d 100644 --- a/src/Square/Types/DestinationDetailsCashRefundDetails.cs +++ b/src/Square/Default/Types/DestinationDetailsCashRefundDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Stores details about a cash refund. Contains only non-confidential information. diff --git a/src/Square/Types/DestinationDetailsExternalRefundDetails.cs b/src/Square/Default/Types/DestinationDetailsExternalRefundDetails.cs similarity index 98% rename from src/Square/Types/DestinationDetailsExternalRefundDetails.cs rename to src/Square/Default/Types/DestinationDetailsExternalRefundDetails.cs index a6244864..5e833c2a 100644 --- a/src/Square/Types/DestinationDetailsExternalRefundDetails.cs +++ b/src/Square/Default/Types/DestinationDetailsExternalRefundDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Stores details about an external refund. Contains only non-confidential information. diff --git a/src/Square/Types/DestinationType.cs b/src/Square/Default/Types/DestinationType.cs similarity index 98% rename from src/Square/Types/DestinationType.cs rename to src/Square/Default/Types/DestinationType.cs index cdebe505..4e981e0d 100644 --- a/src/Square/Types/DestinationType.cs +++ b/src/Square/Default/Types/DestinationType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/Device.cs b/src/Square/Default/Types/Device.cs similarity index 97% rename from src/Square/Types/Device.cs rename to src/Square/Default/Types/Device.cs index 8ee51c5e..7360ec46 100644 --- a/src/Square/Types/Device.cs +++ b/src/Square/Default/Types/Device.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record Device : IJsonOnDeserialized diff --git a/src/Square/Types/DeviceAttributes.cs b/src/Square/Default/Types/DeviceAttributes.cs similarity index 98% rename from src/Square/Types/DeviceAttributes.cs rename to src/Square/Default/Types/DeviceAttributes.cs index c7d51350..997eaba1 100644 --- a/src/Square/Types/DeviceAttributes.cs +++ b/src/Square/Default/Types/DeviceAttributes.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DeviceAttributes : IJsonOnDeserialized diff --git a/src/Square/Types/DeviceAttributesDeviceType.cs b/src/Square/Default/Types/DeviceAttributesDeviceType.cs similarity index 98% rename from src/Square/Types/DeviceAttributesDeviceType.cs rename to src/Square/Default/Types/DeviceAttributesDeviceType.cs index 01c6c9e7..dc67c95a 100644 --- a/src/Square/Types/DeviceAttributesDeviceType.cs +++ b/src/Square/Default/Types/DeviceAttributesDeviceType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/DeviceCheckoutOptions.cs b/src/Square/Default/Types/DeviceCheckoutOptions.cs similarity index 98% rename from src/Square/Types/DeviceCheckoutOptions.cs rename to src/Square/Default/Types/DeviceCheckoutOptions.cs index 3605538f..c7ae08ff 100644 --- a/src/Square/Types/DeviceCheckoutOptions.cs +++ b/src/Square/Default/Types/DeviceCheckoutOptions.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DeviceCheckoutOptions : IJsonOnDeserialized diff --git a/src/Square/Types/DeviceCode.cs b/src/Square/Default/Types/DeviceCode.cs similarity index 98% rename from src/Square/Types/DeviceCode.cs rename to src/Square/Default/Types/DeviceCode.cs index 0a22c2ca..2899144e 100644 --- a/src/Square/Types/DeviceCode.cs +++ b/src/Square/Default/Types/DeviceCode.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DeviceCode : IJsonOnDeserialized diff --git a/src/Square/Types/DeviceCodePairedEvent.cs b/src/Square/Default/Types/DeviceCodePairedEvent.cs similarity index 97% rename from src/Square/Types/DeviceCodePairedEvent.cs rename to src/Square/Default/Types/DeviceCodePairedEvent.cs index 0f231e57..b01d4c5e 100644 --- a/src/Square/Types/DeviceCodePairedEvent.cs +++ b/src/Square/Default/Types/DeviceCodePairedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a Square Terminal has been paired with a diff --git a/src/Square/Types/DeviceCodePairedEventData.cs b/src/Square/Default/Types/DeviceCodePairedEventData.cs similarity index 96% rename from src/Square/Types/DeviceCodePairedEventData.cs rename to src/Square/Default/Types/DeviceCodePairedEventData.cs index 3ab164b0..c72bb038 100644 --- a/src/Square/Types/DeviceCodePairedEventData.cs +++ b/src/Square/Default/Types/DeviceCodePairedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DeviceCodePairedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/DeviceCodePairedEventObject.cs b/src/Square/Default/Types/DeviceCodePairedEventObject.cs similarity index 95% rename from src/Square/Types/DeviceCodePairedEventObject.cs rename to src/Square/Default/Types/DeviceCodePairedEventObject.cs index b225c85e..9880851a 100644 --- a/src/Square/Types/DeviceCodePairedEventObject.cs +++ b/src/Square/Default/Types/DeviceCodePairedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DeviceCodePairedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/DeviceCodeStatus.cs b/src/Square/Default/Types/DeviceCodeStatus.cs similarity index 98% rename from src/Square/Types/DeviceCodeStatus.cs rename to src/Square/Default/Types/DeviceCodeStatus.cs index 2f0c7a55..a2020342 100644 --- a/src/Square/Types/DeviceCodeStatus.cs +++ b/src/Square/Default/Types/DeviceCodeStatus.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/DeviceComponentDetailsApplicationDetails.cs b/src/Square/Default/Types/DeviceComponentDetailsApplicationDetails.cs similarity index 97% rename from src/Square/Types/DeviceComponentDetailsApplicationDetails.cs rename to src/Square/Default/Types/DeviceComponentDetailsApplicationDetails.cs index 7ef77909..28cc41e9 100644 --- a/src/Square/Types/DeviceComponentDetailsApplicationDetails.cs +++ b/src/Square/Default/Types/DeviceComponentDetailsApplicationDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DeviceComponentDetailsApplicationDetails : IJsonOnDeserialized diff --git a/src/Square/Types/DeviceComponentDetailsBatteryDetails.cs b/src/Square/Default/Types/DeviceComponentDetailsBatteryDetails.cs similarity index 96% rename from src/Square/Types/DeviceComponentDetailsBatteryDetails.cs rename to src/Square/Default/Types/DeviceComponentDetailsBatteryDetails.cs index d62507d0..fe3a3e4f 100644 --- a/src/Square/Types/DeviceComponentDetailsBatteryDetails.cs +++ b/src/Square/Default/Types/DeviceComponentDetailsBatteryDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DeviceComponentDetailsBatteryDetails : IJsonOnDeserialized diff --git a/src/Square/Types/DeviceComponentDetailsCardReaderDetails.cs b/src/Square/Default/Types/DeviceComponentDetailsCardReaderDetails.cs similarity index 95% rename from src/Square/Types/DeviceComponentDetailsCardReaderDetails.cs rename to src/Square/Default/Types/DeviceComponentDetailsCardReaderDetails.cs index 8aa53434..fb08a09a 100644 --- a/src/Square/Types/DeviceComponentDetailsCardReaderDetails.cs +++ b/src/Square/Default/Types/DeviceComponentDetailsCardReaderDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DeviceComponentDetailsCardReaderDetails : IJsonOnDeserialized diff --git a/src/Square/Types/DeviceComponentDetailsEthernetDetails.cs b/src/Square/Default/Types/DeviceComponentDetailsEthernetDetails.cs similarity index 96% rename from src/Square/Types/DeviceComponentDetailsEthernetDetails.cs rename to src/Square/Default/Types/DeviceComponentDetailsEthernetDetails.cs index 0bd8e2ed..2b8cd83f 100644 --- a/src/Square/Types/DeviceComponentDetailsEthernetDetails.cs +++ b/src/Square/Default/Types/DeviceComponentDetailsEthernetDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DeviceComponentDetailsEthernetDetails : IJsonOnDeserialized diff --git a/src/Square/Types/DeviceComponentDetailsExternalPower.cs b/src/Square/Default/Types/DeviceComponentDetailsExternalPower.cs similarity index 98% rename from src/Square/Types/DeviceComponentDetailsExternalPower.cs rename to src/Square/Default/Types/DeviceComponentDetailsExternalPower.cs index 022d741a..8c457839 100644 --- a/src/Square/Types/DeviceComponentDetailsExternalPower.cs +++ b/src/Square/Default/Types/DeviceComponentDetailsExternalPower.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/DeviceComponentDetailsMeasurement.cs b/src/Square/Default/Types/DeviceComponentDetailsMeasurement.cs similarity index 95% rename from src/Square/Types/DeviceComponentDetailsMeasurement.cs rename to src/Square/Default/Types/DeviceComponentDetailsMeasurement.cs index d7257d9a..85956834 100644 --- a/src/Square/Types/DeviceComponentDetailsMeasurement.cs +++ b/src/Square/Default/Types/DeviceComponentDetailsMeasurement.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A value qualified by unit of measure. diff --git a/src/Square/Types/DeviceComponentDetailsWiFiDetails.cs b/src/Square/Default/Types/DeviceComponentDetailsWiFiDetails.cs similarity index 97% rename from src/Square/Types/DeviceComponentDetailsWiFiDetails.cs rename to src/Square/Default/Types/DeviceComponentDetailsWiFiDetails.cs index 23930d4a..d13a5bb8 100644 --- a/src/Square/Types/DeviceComponentDetailsWiFiDetails.cs +++ b/src/Square/Default/Types/DeviceComponentDetailsWiFiDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DeviceComponentDetailsWiFiDetails : IJsonOnDeserialized diff --git a/src/Square/Types/DeviceCreatedEvent.cs b/src/Square/Default/Types/DeviceCreatedEvent.cs similarity index 97% rename from src/Square/Types/DeviceCreatedEvent.cs rename to src/Square/Default/Types/DeviceCreatedEvent.cs index dd1852d3..9d42732a 100644 --- a/src/Square/Types/DeviceCreatedEvent.cs +++ b/src/Square/Default/Types/DeviceCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a Device is created. diff --git a/src/Square/Types/DeviceCreatedEventData.cs b/src/Square/Default/Types/DeviceCreatedEventData.cs similarity index 96% rename from src/Square/Types/DeviceCreatedEventData.cs rename to src/Square/Default/Types/DeviceCreatedEventData.cs index bb1d19c5..979d545b 100644 --- a/src/Square/Types/DeviceCreatedEventData.cs +++ b/src/Square/Default/Types/DeviceCreatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DeviceCreatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/DeviceCreatedEventObject.cs b/src/Square/Default/Types/DeviceCreatedEventObject.cs similarity index 95% rename from src/Square/Types/DeviceCreatedEventObject.cs rename to src/Square/Default/Types/DeviceCreatedEventObject.cs index ddf0c36a..6e6d219b 100644 --- a/src/Square/Types/DeviceCreatedEventObject.cs +++ b/src/Square/Default/Types/DeviceCreatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DeviceCreatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/DeviceDetails.cs b/src/Square/Default/Types/DeviceDetails.cs similarity index 96% rename from src/Square/Types/DeviceDetails.cs rename to src/Square/Default/Types/DeviceDetails.cs index 0c7ae2ca..ea99be79 100644 --- a/src/Square/Types/DeviceDetails.cs +++ b/src/Square/Default/Types/DeviceDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Details about the device that took the payment. diff --git a/src/Square/Types/DeviceMetadata.cs b/src/Square/Default/Types/DeviceMetadata.cs similarity index 98% rename from src/Square/Types/DeviceMetadata.cs rename to src/Square/Default/Types/DeviceMetadata.cs index b9a4b9ec..0665557b 100644 --- a/src/Square/Types/DeviceMetadata.cs +++ b/src/Square/Default/Types/DeviceMetadata.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DeviceMetadata : IJsonOnDeserialized diff --git a/src/Square/Types/DeviceStatus.cs b/src/Square/Default/Types/DeviceStatus.cs similarity index 95% rename from src/Square/Types/DeviceStatus.cs rename to src/Square/Default/Types/DeviceStatus.cs index 45e27574..1581331e 100644 --- a/src/Square/Types/DeviceStatus.cs +++ b/src/Square/Default/Types/DeviceStatus.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DeviceStatus : IJsonOnDeserialized diff --git a/src/Square/Types/DeviceStatusCategory.cs b/src/Square/Default/Types/DeviceStatusCategory.cs similarity index 98% rename from src/Square/Types/DeviceStatusCategory.cs rename to src/Square/Default/Types/DeviceStatusCategory.cs index 027598b1..2501a980 100644 --- a/src/Square/Types/DeviceStatusCategory.cs +++ b/src/Square/Default/Types/DeviceStatusCategory.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/DigitalWalletDetails.cs b/src/Square/Default/Types/DigitalWalletDetails.cs similarity index 97% rename from src/Square/Types/DigitalWalletDetails.cs rename to src/Square/Default/Types/DigitalWalletDetails.cs index b6df31ba..7fc04ed7 100644 --- a/src/Square/Types/DigitalWalletDetails.cs +++ b/src/Square/Default/Types/DigitalWalletDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Additional details about `WALLET` type payments. Contains only non-confidential information. diff --git a/src/Square/Types/DisableBankAccountResponse.cs b/src/Square/Default/Types/DisableBankAccountResponse.cs similarity index 96% rename from src/Square/Types/DisableBankAccountResponse.cs rename to src/Square/Default/Types/DisableBankAccountResponse.cs index 5b36e705..1dd9668e 100644 --- a/src/Square/Types/DisableBankAccountResponse.cs +++ b/src/Square/Default/Types/DisableBankAccountResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Response object returned by `DisableBankAccount`. diff --git a/src/Square/Types/DisableCardResponse.cs b/src/Square/Default/Types/DisableCardResponse.cs similarity index 96% rename from src/Square/Types/DisableCardResponse.cs rename to src/Square/Default/Types/DisableCardResponse.cs index b43bf4f7..08e6b8d0 100644 --- a/src/Square/Types/DisableCardResponse.cs +++ b/src/Square/Default/Types/DisableCardResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/DisableEventsResponse.cs b/src/Square/Default/Types/DisableEventsResponse.cs similarity index 96% rename from src/Square/Types/DisableEventsResponse.cs rename to src/Square/Default/Types/DisableEventsResponse.cs index b2d1b2d1..92cf0d2f 100644 --- a/src/Square/Types/DisableEventsResponse.cs +++ b/src/Square/Default/Types/DisableEventsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/DismissTerminalActionResponse.cs b/src/Square/Default/Types/DismissTerminalActionResponse.cs similarity index 96% rename from src/Square/Types/DismissTerminalActionResponse.cs rename to src/Square/Default/Types/DismissTerminalActionResponse.cs index 6aaf1fdc..d51009e4 100644 --- a/src/Square/Types/DismissTerminalActionResponse.cs +++ b/src/Square/Default/Types/DismissTerminalActionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DismissTerminalActionResponse : IJsonOnDeserialized diff --git a/src/Square/Types/DismissTerminalCheckoutResponse.cs b/src/Square/Default/Types/DismissTerminalCheckoutResponse.cs similarity index 96% rename from src/Square/Types/DismissTerminalCheckoutResponse.cs rename to src/Square/Default/Types/DismissTerminalCheckoutResponse.cs index cd01277c..7bb76bd1 100644 --- a/src/Square/Types/DismissTerminalCheckoutResponse.cs +++ b/src/Square/Default/Types/DismissTerminalCheckoutResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DismissTerminalCheckoutResponse : IJsonOnDeserialized diff --git a/src/Square/Types/DismissTerminalRefundResponse.cs b/src/Square/Default/Types/DismissTerminalRefundResponse.cs similarity index 96% rename from src/Square/Types/DismissTerminalRefundResponse.cs rename to src/Square/Default/Types/DismissTerminalRefundResponse.cs index 50e51f36..95762431 100644 --- a/src/Square/Types/DismissTerminalRefundResponse.cs +++ b/src/Square/Default/Types/DismissTerminalRefundResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DismissTerminalRefundResponse : IJsonOnDeserialized diff --git a/src/Square/Types/Dispute.cs b/src/Square/Default/Types/Dispute.cs similarity index 99% rename from src/Square/Types/Dispute.cs rename to src/Square/Default/Types/Dispute.cs index 2756703b..9cd5b8df 100644 --- a/src/Square/Types/Dispute.cs +++ b/src/Square/Default/Types/Dispute.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [dispute](https://developer.squareup.com/docs/disputes-api/overview) a cardholder initiated with their bank. diff --git a/src/Square/Types/DisputeCreatedEvent.cs b/src/Square/Default/Types/DisputeCreatedEvent.cs similarity index 97% rename from src/Square/Types/DisputeCreatedEvent.cs rename to src/Square/Default/Types/DisputeCreatedEvent.cs index ce6c4697..45d82834 100644 --- a/src/Square/Types/DisputeCreatedEvent.cs +++ b/src/Square/Default/Types/DisputeCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [Dispute](entity:Dispute) is created. diff --git a/src/Square/Types/DisputeCreatedEventData.cs b/src/Square/Default/Types/DisputeCreatedEventData.cs similarity index 96% rename from src/Square/Types/DisputeCreatedEventData.cs rename to src/Square/Default/Types/DisputeCreatedEventData.cs index ef338ab5..1c200b11 100644 --- a/src/Square/Types/DisputeCreatedEventData.cs +++ b/src/Square/Default/Types/DisputeCreatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DisputeCreatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/DisputeCreatedEventObject.cs b/src/Square/Default/Types/DisputeCreatedEventObject.cs similarity index 95% rename from src/Square/Types/DisputeCreatedEventObject.cs rename to src/Square/Default/Types/DisputeCreatedEventObject.cs index c6f4d954..0e4e14a0 100644 --- a/src/Square/Types/DisputeCreatedEventObject.cs +++ b/src/Square/Default/Types/DisputeCreatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DisputeCreatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/DisputeEvidence.cs b/src/Square/Default/Types/DisputeEvidence.cs similarity index 97% rename from src/Square/Types/DisputeEvidence.cs rename to src/Square/Default/Types/DisputeEvidence.cs index 6bdbf98e..e1c99eda 100644 --- a/src/Square/Types/DisputeEvidence.cs +++ b/src/Square/Default/Types/DisputeEvidence.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DisputeEvidence : IJsonOnDeserialized diff --git a/src/Square/Types/DisputeEvidenceAddedEvent.cs b/src/Square/Default/Types/DisputeEvidenceAddedEvent.cs similarity index 98% rename from src/Square/Types/DisputeEvidenceAddedEvent.cs rename to src/Square/Default/Types/DisputeEvidenceAddedEvent.cs index 2650208e..d834b74d 100644 --- a/src/Square/Types/DisputeEvidenceAddedEvent.cs +++ b/src/Square/Default/Types/DisputeEvidenceAddedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when evidence is added to a [Dispute](entity:Dispute) diff --git a/src/Square/Types/DisputeEvidenceAddedEventData.cs b/src/Square/Default/Types/DisputeEvidenceAddedEventData.cs similarity index 96% rename from src/Square/Types/DisputeEvidenceAddedEventData.cs rename to src/Square/Default/Types/DisputeEvidenceAddedEventData.cs index 390ed4cf..14f953b7 100644 --- a/src/Square/Types/DisputeEvidenceAddedEventData.cs +++ b/src/Square/Default/Types/DisputeEvidenceAddedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DisputeEvidenceAddedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/DisputeEvidenceAddedEventObject.cs b/src/Square/Default/Types/DisputeEvidenceAddedEventObject.cs similarity index 95% rename from src/Square/Types/DisputeEvidenceAddedEventObject.cs rename to src/Square/Default/Types/DisputeEvidenceAddedEventObject.cs index 86391c46..92bb9d62 100644 --- a/src/Square/Types/DisputeEvidenceAddedEventObject.cs +++ b/src/Square/Default/Types/DisputeEvidenceAddedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DisputeEvidenceAddedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/DisputeEvidenceCreatedEvent.cs b/src/Square/Default/Types/DisputeEvidenceCreatedEvent.cs similarity index 98% rename from src/Square/Types/DisputeEvidenceCreatedEvent.cs rename to src/Square/Default/Types/DisputeEvidenceCreatedEvent.cs index 10f3315e..9308619c 100644 --- a/src/Square/Types/DisputeEvidenceCreatedEvent.cs +++ b/src/Square/Default/Types/DisputeEvidenceCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when evidence is added to a [Dispute](entity:Dispute) diff --git a/src/Square/Types/DisputeEvidenceCreatedEventData.cs b/src/Square/Default/Types/DisputeEvidenceCreatedEventData.cs similarity index 96% rename from src/Square/Types/DisputeEvidenceCreatedEventData.cs rename to src/Square/Default/Types/DisputeEvidenceCreatedEventData.cs index 765e6289..58965364 100644 --- a/src/Square/Types/DisputeEvidenceCreatedEventData.cs +++ b/src/Square/Default/Types/DisputeEvidenceCreatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DisputeEvidenceCreatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/DisputeEvidenceCreatedEventObject.cs b/src/Square/Default/Types/DisputeEvidenceCreatedEventObject.cs similarity index 95% rename from src/Square/Types/DisputeEvidenceCreatedEventObject.cs rename to src/Square/Default/Types/DisputeEvidenceCreatedEventObject.cs index f118d4e5..7ff71260 100644 --- a/src/Square/Types/DisputeEvidenceCreatedEventObject.cs +++ b/src/Square/Default/Types/DisputeEvidenceCreatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DisputeEvidenceCreatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/DisputeEvidenceDeletedEvent.cs b/src/Square/Default/Types/DisputeEvidenceDeletedEvent.cs similarity index 98% rename from src/Square/Types/DisputeEvidenceDeletedEvent.cs rename to src/Square/Default/Types/DisputeEvidenceDeletedEvent.cs index ed3a6f6e..4e1e8261 100644 --- a/src/Square/Types/DisputeEvidenceDeletedEvent.cs +++ b/src/Square/Default/Types/DisputeEvidenceDeletedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when evidence is removed from a [Dispute](entity:Dispute) diff --git a/src/Square/Types/DisputeEvidenceDeletedEventData.cs b/src/Square/Default/Types/DisputeEvidenceDeletedEventData.cs similarity index 96% rename from src/Square/Types/DisputeEvidenceDeletedEventData.cs rename to src/Square/Default/Types/DisputeEvidenceDeletedEventData.cs index 7e359034..7e71e539 100644 --- a/src/Square/Types/DisputeEvidenceDeletedEventData.cs +++ b/src/Square/Default/Types/DisputeEvidenceDeletedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DisputeEvidenceDeletedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/DisputeEvidenceDeletedEventObject.cs b/src/Square/Default/Types/DisputeEvidenceDeletedEventObject.cs similarity index 95% rename from src/Square/Types/DisputeEvidenceDeletedEventObject.cs rename to src/Square/Default/Types/DisputeEvidenceDeletedEventObject.cs index 509fcbb5..0cd47f96 100644 --- a/src/Square/Types/DisputeEvidenceDeletedEventObject.cs +++ b/src/Square/Default/Types/DisputeEvidenceDeletedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DisputeEvidenceDeletedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/DisputeEvidenceFile.cs b/src/Square/Default/Types/DisputeEvidenceFile.cs similarity index 96% rename from src/Square/Types/DisputeEvidenceFile.cs rename to src/Square/Default/Types/DisputeEvidenceFile.cs index 634d0206..f2081799 100644 --- a/src/Square/Types/DisputeEvidenceFile.cs +++ b/src/Square/Default/Types/DisputeEvidenceFile.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A file to be uploaded as dispute evidence. diff --git a/src/Square/Types/DisputeEvidenceRemovedEvent.cs b/src/Square/Default/Types/DisputeEvidenceRemovedEvent.cs similarity index 98% rename from src/Square/Types/DisputeEvidenceRemovedEvent.cs rename to src/Square/Default/Types/DisputeEvidenceRemovedEvent.cs index 3431e49b..5e64d854 100644 --- a/src/Square/Types/DisputeEvidenceRemovedEvent.cs +++ b/src/Square/Default/Types/DisputeEvidenceRemovedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when evidence is removed from a [Dispute](entity:Dispute) diff --git a/src/Square/Types/DisputeEvidenceRemovedEventData.cs b/src/Square/Default/Types/DisputeEvidenceRemovedEventData.cs similarity index 96% rename from src/Square/Types/DisputeEvidenceRemovedEventData.cs rename to src/Square/Default/Types/DisputeEvidenceRemovedEventData.cs index 333c1a7b..cd840544 100644 --- a/src/Square/Types/DisputeEvidenceRemovedEventData.cs +++ b/src/Square/Default/Types/DisputeEvidenceRemovedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DisputeEvidenceRemovedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/DisputeEvidenceRemovedEventObject.cs b/src/Square/Default/Types/DisputeEvidenceRemovedEventObject.cs similarity index 95% rename from src/Square/Types/DisputeEvidenceRemovedEventObject.cs rename to src/Square/Default/Types/DisputeEvidenceRemovedEventObject.cs index a6bc800d..725a4106 100644 --- a/src/Square/Types/DisputeEvidenceRemovedEventObject.cs +++ b/src/Square/Default/Types/DisputeEvidenceRemovedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DisputeEvidenceRemovedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/DisputeEvidenceType.cs b/src/Square/Default/Types/DisputeEvidenceType.cs similarity index 99% rename from src/Square/Types/DisputeEvidenceType.cs rename to src/Square/Default/Types/DisputeEvidenceType.cs index 75bb2fb9..b9e9f499 100644 --- a/src/Square/Types/DisputeEvidenceType.cs +++ b/src/Square/Default/Types/DisputeEvidenceType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/DisputeReason.cs b/src/Square/Default/Types/DisputeReason.cs similarity index 99% rename from src/Square/Types/DisputeReason.cs rename to src/Square/Default/Types/DisputeReason.cs index abb3dbac..512484d5 100644 --- a/src/Square/Types/DisputeReason.cs +++ b/src/Square/Default/Types/DisputeReason.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/DisputeState.cs b/src/Square/Default/Types/DisputeState.cs similarity index 98% rename from src/Square/Types/DisputeState.cs rename to src/Square/Default/Types/DisputeState.cs index 659659f7..f792ae82 100644 --- a/src/Square/Types/DisputeState.cs +++ b/src/Square/Default/Types/DisputeState.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/DisputeStateChangedEvent.cs b/src/Square/Default/Types/DisputeStateChangedEvent.cs similarity index 97% rename from src/Square/Types/DisputeStateChangedEvent.cs rename to src/Square/Default/Types/DisputeStateChangedEvent.cs index 66f60ba4..a56a5f79 100644 --- a/src/Square/Types/DisputeStateChangedEvent.cs +++ b/src/Square/Default/Types/DisputeStateChangedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when the state of a [Dispute](entity:Dispute) changes. diff --git a/src/Square/Types/DisputeStateChangedEventData.cs b/src/Square/Default/Types/DisputeStateChangedEventData.cs similarity index 96% rename from src/Square/Types/DisputeStateChangedEventData.cs rename to src/Square/Default/Types/DisputeStateChangedEventData.cs index d4f272c0..8a386cd3 100644 --- a/src/Square/Types/DisputeStateChangedEventData.cs +++ b/src/Square/Default/Types/DisputeStateChangedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DisputeStateChangedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/DisputeStateChangedEventObject.cs b/src/Square/Default/Types/DisputeStateChangedEventObject.cs similarity index 95% rename from src/Square/Types/DisputeStateChangedEventObject.cs rename to src/Square/Default/Types/DisputeStateChangedEventObject.cs index fc4ac03b..2dcad704 100644 --- a/src/Square/Types/DisputeStateChangedEventObject.cs +++ b/src/Square/Default/Types/DisputeStateChangedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DisputeStateChangedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/DisputeStateUpdatedEvent.cs b/src/Square/Default/Types/DisputeStateUpdatedEvent.cs similarity index 97% rename from src/Square/Types/DisputeStateUpdatedEvent.cs rename to src/Square/Default/Types/DisputeStateUpdatedEvent.cs index c0581c3d..d3363da3 100644 --- a/src/Square/Types/DisputeStateUpdatedEvent.cs +++ b/src/Square/Default/Types/DisputeStateUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when the state of a [Dispute](entity:Dispute) changes. diff --git a/src/Square/Types/DisputeStateUpdatedEventData.cs b/src/Square/Default/Types/DisputeStateUpdatedEventData.cs similarity index 96% rename from src/Square/Types/DisputeStateUpdatedEventData.cs rename to src/Square/Default/Types/DisputeStateUpdatedEventData.cs index ac527648..9deedffc 100644 --- a/src/Square/Types/DisputeStateUpdatedEventData.cs +++ b/src/Square/Default/Types/DisputeStateUpdatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DisputeStateUpdatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/DisputeStateUpdatedEventObject.cs b/src/Square/Default/Types/DisputeStateUpdatedEventObject.cs similarity index 95% rename from src/Square/Types/DisputeStateUpdatedEventObject.cs rename to src/Square/Default/Types/DisputeStateUpdatedEventObject.cs index 41108e6e..b671ba69 100644 --- a/src/Square/Types/DisputeStateUpdatedEventObject.cs +++ b/src/Square/Default/Types/DisputeStateUpdatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record DisputeStateUpdatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/DisputedPayment.cs b/src/Square/Default/Types/DisputedPayment.cs similarity index 95% rename from src/Square/Types/DisputedPayment.cs rename to src/Square/Default/Types/DisputedPayment.cs index 9186eafa..7093279c 100644 --- a/src/Square/Types/DisputedPayment.cs +++ b/src/Square/Default/Types/DisputedPayment.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The payment the cardholder disputed. diff --git a/src/Square/Types/EcomVisibility.cs b/src/Square/Default/Types/EcomVisibility.cs similarity index 98% rename from src/Square/Types/EcomVisibility.cs rename to src/Square/Default/Types/EcomVisibility.cs index 806a4c32..af6c7f2a 100644 --- a/src/Square/Types/EcomVisibility.cs +++ b/src/Square/Default/Types/EcomVisibility.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/Employee.cs b/src/Square/Default/Types/Employee.cs similarity index 98% rename from src/Square/Types/Employee.cs rename to src/Square/Default/Types/Employee.cs index 3a884592..174a01c6 100644 --- a/src/Square/Types/Employee.cs +++ b/src/Square/Default/Types/Employee.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// An employee object that is used by the external API. diff --git a/src/Square/Types/EmployeeStatus.cs b/src/Square/Default/Types/EmployeeStatus.cs similarity index 98% rename from src/Square/Types/EmployeeStatus.cs rename to src/Square/Default/Types/EmployeeStatus.cs index 0f621626..a6a664d8 100644 --- a/src/Square/Types/EmployeeStatus.cs +++ b/src/Square/Default/Types/EmployeeStatus.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/EmployeeWage.cs b/src/Square/Default/Types/EmployeeWage.cs similarity index 97% rename from src/Square/Types/EmployeeWage.cs rename to src/Square/Default/Types/EmployeeWage.cs index eec58f86..44b797d5 100644 --- a/src/Square/Types/EmployeeWage.cs +++ b/src/Square/Default/Types/EmployeeWage.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The hourly wage rate that an employee earns on a `Shift` for doing the job specified by the `title` property of this object. Deprecated at version 2020-08-26. Use [TeamMemberWage](entity:TeamMemberWage). diff --git a/src/Square/Types/EnableEventsResponse.cs b/src/Square/Default/Types/EnableEventsResponse.cs similarity index 96% rename from src/Square/Types/EnableEventsResponse.cs rename to src/Square/Default/Types/EnableEventsResponse.cs index 361568da..b3d19abd 100644 --- a/src/Square/Types/EnableEventsResponse.cs +++ b/src/Square/Default/Types/EnableEventsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/Error.cs b/src/Square/Default/Types/Error.cs similarity index 97% rename from src/Square/Types/Error.cs rename to src/Square/Default/Types/Error.cs index 9d124d01..5d578b32 100644 --- a/src/Square/Types/Error.cs +++ b/src/Square/Default/Types/Error.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an error encountered during a request to the Connect API. diff --git a/src/Square/Types/ErrorCategory.cs b/src/Square/Default/Types/ErrorCategory.cs similarity index 99% rename from src/Square/Types/ErrorCategory.cs rename to src/Square/Default/Types/ErrorCategory.cs index d5725ece..d7d59f29 100644 --- a/src/Square/Types/ErrorCategory.cs +++ b/src/Square/Default/Types/ErrorCategory.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/ErrorCode.cs b/src/Square/Default/Types/ErrorCode.cs similarity index 99% rename from src/Square/Types/ErrorCode.cs rename to src/Square/Default/Types/ErrorCode.cs index 21078710..c57c33dd 100644 --- a/src/Square/Types/ErrorCode.cs +++ b/src/Square/Default/Types/ErrorCode.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/Event.cs b/src/Square/Default/Types/Event.cs similarity index 97% rename from src/Square/Types/Event.cs rename to src/Square/Default/Types/Event.cs index 6998df95..28bddc97 100644 --- a/src/Square/Types/Event.cs +++ b/src/Square/Default/Types/Event.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record Event : IJsonOnDeserialized diff --git a/src/Square/Types/EventData.cs b/src/Square/Default/Types/EventData.cs similarity index 97% rename from src/Square/Types/EventData.cs rename to src/Square/Default/Types/EventData.cs index 5ed1d2b1..16077012 100644 --- a/src/Square/Types/EventData.cs +++ b/src/Square/Default/Types/EventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record EventData : IJsonOnDeserialized diff --git a/src/Square/Types/EventMetadata.cs b/src/Square/Default/Types/EventMetadata.cs similarity index 96% rename from src/Square/Types/EventMetadata.cs rename to src/Square/Default/Types/EventMetadata.cs index 1a1e5ad9..69e83782 100644 --- a/src/Square/Types/EventMetadata.cs +++ b/src/Square/Default/Types/EventMetadata.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Contains metadata about a particular [Event](entity:Event). diff --git a/src/Square/Types/EventTypeMetadata.cs b/src/Square/Default/Types/EventTypeMetadata.cs similarity index 97% rename from src/Square/Types/EventTypeMetadata.cs rename to src/Square/Default/Types/EventTypeMetadata.cs index 542e8ad5..d8459411 100644 --- a/src/Square/Types/EventTypeMetadata.cs +++ b/src/Square/Default/Types/EventTypeMetadata.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Contains the metadata of a webhook event type. diff --git a/src/Square/Types/ExcludeStrategy.cs b/src/Square/Default/Types/ExcludeStrategy.cs similarity index 98% rename from src/Square/Types/ExcludeStrategy.cs rename to src/Square/Default/Types/ExcludeStrategy.cs index f0af61e9..0e3e00bb 100644 --- a/src/Square/Types/ExcludeStrategy.cs +++ b/src/Square/Default/Types/ExcludeStrategy.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/ExternalPaymentDetails.cs b/src/Square/Default/Types/ExternalPaymentDetails.cs similarity index 98% rename from src/Square/Types/ExternalPaymentDetails.cs rename to src/Square/Default/Types/ExternalPaymentDetails.cs index b527822e..7450664c 100644 --- a/src/Square/Types/ExternalPaymentDetails.cs +++ b/src/Square/Default/Types/ExternalPaymentDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Stores details about an external payment. Contains only non-confidential information. diff --git a/src/Square/Types/FilterValue.cs b/src/Square/Default/Types/FilterValue.cs similarity index 97% rename from src/Square/Types/FilterValue.cs rename to src/Square/Default/Types/FilterValue.cs index 6548ca66..263f8cdf 100644 --- a/src/Square/Types/FilterValue.cs +++ b/src/Square/Default/Types/FilterValue.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A filter to select resources based on an exact field value. For any given diff --git a/src/Square/Types/FloatNumberRange.cs b/src/Square/Default/Types/FloatNumberRange.cs similarity index 96% rename from src/Square/Types/FloatNumberRange.cs rename to src/Square/Default/Types/FloatNumberRange.cs index 680ffd0b..93b093ac 100644 --- a/src/Square/Types/FloatNumberRange.cs +++ b/src/Square/Default/Types/FloatNumberRange.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Specifies a decimal number range. diff --git a/src/Square/Types/Fulfillment.cs b/src/Square/Default/Types/Fulfillment.cs similarity index 99% rename from src/Square/Types/Fulfillment.cs rename to src/Square/Default/Types/Fulfillment.cs index b0f8d1a3..a5857da0 100644 --- a/src/Square/Types/Fulfillment.cs +++ b/src/Square/Default/Types/Fulfillment.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Contains details about how to fulfill this order. diff --git a/src/Square/Types/FulfillmentDeliveryDetails.cs b/src/Square/Default/Types/FulfillmentDeliveryDetails.cs similarity index 99% rename from src/Square/Types/FulfillmentDeliveryDetails.cs rename to src/Square/Default/Types/FulfillmentDeliveryDetails.cs index 30f7e534..de95b5d7 100644 --- a/src/Square/Types/FulfillmentDeliveryDetails.cs +++ b/src/Square/Default/Types/FulfillmentDeliveryDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Describes delivery details of an order fulfillment. diff --git a/src/Square/Types/FulfillmentDeliveryDetailsOrderFulfillmentDeliveryDetailsScheduleType.cs b/src/Square/Default/Types/FulfillmentDeliveryDetailsOrderFulfillmentDeliveryDetailsScheduleType.cs similarity index 98% rename from src/Square/Types/FulfillmentDeliveryDetailsOrderFulfillmentDeliveryDetailsScheduleType.cs rename to src/Square/Default/Types/FulfillmentDeliveryDetailsOrderFulfillmentDeliveryDetailsScheduleType.cs index 4d16e9a9..b79540ea 100644 --- a/src/Square/Types/FulfillmentDeliveryDetailsOrderFulfillmentDeliveryDetailsScheduleType.cs +++ b/src/Square/Default/Types/FulfillmentDeliveryDetailsOrderFulfillmentDeliveryDetailsScheduleType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter( typeof(StringEnumSerializer) diff --git a/src/Square/Types/FulfillmentFulfillmentEntry.cs b/src/Square/Default/Types/FulfillmentFulfillmentEntry.cs similarity index 98% rename from src/Square/Types/FulfillmentFulfillmentEntry.cs rename to src/Square/Default/Types/FulfillmentFulfillmentEntry.cs index 1f251bec..b6de9c13 100644 --- a/src/Square/Types/FulfillmentFulfillmentEntry.cs +++ b/src/Square/Default/Types/FulfillmentFulfillmentEntry.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Links an order line item to a fulfillment. Each entry must reference diff --git a/src/Square/Types/FulfillmentFulfillmentLineItemApplication.cs b/src/Square/Default/Types/FulfillmentFulfillmentLineItemApplication.cs similarity index 98% rename from src/Square/Types/FulfillmentFulfillmentLineItemApplication.cs rename to src/Square/Default/Types/FulfillmentFulfillmentLineItemApplication.cs index 549a1724..93392a37 100644 --- a/src/Square/Types/FulfillmentFulfillmentLineItemApplication.cs +++ b/src/Square/Default/Types/FulfillmentFulfillmentLineItemApplication.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/FulfillmentPickupDetails.cs b/src/Square/Default/Types/FulfillmentPickupDetails.cs similarity index 99% rename from src/Square/Types/FulfillmentPickupDetails.cs rename to src/Square/Default/Types/FulfillmentPickupDetails.cs index 836b6b9a..60462e74 100644 --- a/src/Square/Types/FulfillmentPickupDetails.cs +++ b/src/Square/Default/Types/FulfillmentPickupDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Contains details necessary to fulfill a pickup order. diff --git a/src/Square/Types/FulfillmentPickupDetailsCurbsidePickupDetails.cs b/src/Square/Default/Types/FulfillmentPickupDetailsCurbsidePickupDetails.cs similarity index 97% rename from src/Square/Types/FulfillmentPickupDetailsCurbsidePickupDetails.cs rename to src/Square/Default/Types/FulfillmentPickupDetailsCurbsidePickupDetails.cs index cf100f7f..cd12bf96 100644 --- a/src/Square/Types/FulfillmentPickupDetailsCurbsidePickupDetails.cs +++ b/src/Square/Default/Types/FulfillmentPickupDetailsCurbsidePickupDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Specific details for curbside pickup. diff --git a/src/Square/Types/FulfillmentPickupDetailsScheduleType.cs b/src/Square/Default/Types/FulfillmentPickupDetailsScheduleType.cs similarity index 98% rename from src/Square/Types/FulfillmentPickupDetailsScheduleType.cs rename to src/Square/Default/Types/FulfillmentPickupDetailsScheduleType.cs index ca2bfa1a..a4793f96 100644 --- a/src/Square/Types/FulfillmentPickupDetailsScheduleType.cs +++ b/src/Square/Default/Types/FulfillmentPickupDetailsScheduleType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/FulfillmentRecipient.cs b/src/Square/Default/Types/FulfillmentRecipient.cs similarity index 98% rename from src/Square/Types/FulfillmentRecipient.cs rename to src/Square/Default/Types/FulfillmentRecipient.cs index 415c6c97..41c23581 100644 --- a/src/Square/Types/FulfillmentRecipient.cs +++ b/src/Square/Default/Types/FulfillmentRecipient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Information about the fulfillment recipient. diff --git a/src/Square/Types/FulfillmentShipmentDetails.cs b/src/Square/Default/Types/FulfillmentShipmentDetails.cs similarity index 99% rename from src/Square/Types/FulfillmentShipmentDetails.cs rename to src/Square/Default/Types/FulfillmentShipmentDetails.cs index efd02108..34d93699 100644 --- a/src/Square/Types/FulfillmentShipmentDetails.cs +++ b/src/Square/Default/Types/FulfillmentShipmentDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Contains the details necessary to fulfill a shipment order. diff --git a/src/Square/Types/FulfillmentState.cs b/src/Square/Default/Types/FulfillmentState.cs similarity index 98% rename from src/Square/Types/FulfillmentState.cs rename to src/Square/Default/Types/FulfillmentState.cs index d326af58..4b0c1ea3 100644 --- a/src/Square/Types/FulfillmentState.cs +++ b/src/Square/Default/Types/FulfillmentState.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/FulfillmentType.cs b/src/Square/Default/Types/FulfillmentType.cs similarity index 98% rename from src/Square/Types/FulfillmentType.cs rename to src/Square/Default/Types/FulfillmentType.cs index ae50cb0c..0ef13cbf 100644 --- a/src/Square/Types/FulfillmentType.cs +++ b/src/Square/Default/Types/FulfillmentType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/GetBankAccountByV1IdResponse.cs b/src/Square/Default/Types/GetBankAccountByV1IdResponse.cs similarity index 96% rename from src/Square/Types/GetBankAccountByV1IdResponse.cs rename to src/Square/Default/Types/GetBankAccountByV1IdResponse.cs index f5b06ef9..4c808606 100644 --- a/src/Square/Types/GetBankAccountByV1IdResponse.cs +++ b/src/Square/Default/Types/GetBankAccountByV1IdResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Response object returned by GetBankAccountByV1Id. diff --git a/src/Square/Types/GetBankAccountResponse.cs b/src/Square/Default/Types/GetBankAccountResponse.cs similarity index 96% rename from src/Square/Types/GetBankAccountResponse.cs rename to src/Square/Default/Types/GetBankAccountResponse.cs index f28ae729..85dcf08b 100644 --- a/src/Square/Types/GetBankAccountResponse.cs +++ b/src/Square/Default/Types/GetBankAccountResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Response object returned by `GetBankAccount`. diff --git a/src/Square/Types/GetBookingResponse.cs b/src/Square/Default/Types/GetBookingResponse.cs similarity index 96% rename from src/Square/Types/GetBookingResponse.cs rename to src/Square/Default/Types/GetBookingResponse.cs index f1d8f823..0c74f1f0 100644 --- a/src/Square/Types/GetBookingResponse.cs +++ b/src/Square/Default/Types/GetBookingResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record GetBookingResponse : IJsonOnDeserialized diff --git a/src/Square/Types/GetBreakTypeResponse.cs b/src/Square/Default/Types/GetBreakTypeResponse.cs similarity index 96% rename from src/Square/Types/GetBreakTypeResponse.cs rename to src/Square/Default/Types/GetBreakTypeResponse.cs index 1a00ca6b..0483dac2 100644 --- a/src/Square/Types/GetBreakTypeResponse.cs +++ b/src/Square/Default/Types/GetBreakTypeResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The response to a request to get a `BreakType`. The response contains diff --git a/src/Square/Types/GetBusinessBookingProfileResponse.cs b/src/Square/Default/Types/GetBusinessBookingProfileResponse.cs similarity index 96% rename from src/Square/Types/GetBusinessBookingProfileResponse.cs rename to src/Square/Default/Types/GetBusinessBookingProfileResponse.cs index 6c6d2c55..0c6cc3f3 100644 --- a/src/Square/Types/GetBusinessBookingProfileResponse.cs +++ b/src/Square/Default/Types/GetBusinessBookingProfileResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record GetBusinessBookingProfileResponse : IJsonOnDeserialized diff --git a/src/Square/Types/GetCardResponse.cs b/src/Square/Default/Types/GetCardResponse.cs similarity index 96% rename from src/Square/Types/GetCardResponse.cs rename to src/Square/Default/Types/GetCardResponse.cs index e362cd0e..6a0019c2 100644 --- a/src/Square/Types/GetCardResponse.cs +++ b/src/Square/Default/Types/GetCardResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/GetCashDrawerShiftResponse.cs b/src/Square/Default/Types/GetCashDrawerShiftResponse.cs similarity index 96% rename from src/Square/Types/GetCashDrawerShiftResponse.cs rename to src/Square/Default/Types/GetCashDrawerShiftResponse.cs index 66110ad2..86d013bf 100644 --- a/src/Square/Types/GetCashDrawerShiftResponse.cs +++ b/src/Square/Default/Types/GetCashDrawerShiftResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record GetCashDrawerShiftResponse : IJsonOnDeserialized diff --git a/src/Square/Types/GetCatalogObjectResponse.cs b/src/Square/Default/Types/GetCatalogObjectResponse.cs similarity index 96% rename from src/Square/Types/GetCatalogObjectResponse.cs rename to src/Square/Default/Types/GetCatalogObjectResponse.cs index 09f55611..ef71d4e7 100644 --- a/src/Square/Types/GetCatalogObjectResponse.cs +++ b/src/Square/Default/Types/GetCatalogObjectResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record GetCatalogObjectResponse : IJsonOnDeserialized diff --git a/src/Square/Types/GetCustomerCustomAttributeDefinitionResponse.cs b/src/Square/Default/Types/GetCustomerCustomAttributeDefinitionResponse.cs similarity index 97% rename from src/Square/Types/GetCustomerCustomAttributeDefinitionResponse.cs rename to src/Square/Default/Types/GetCustomerCustomAttributeDefinitionResponse.cs index 9518662b..bdb529fb 100644 --- a/src/Square/Types/GetCustomerCustomAttributeDefinitionResponse.cs +++ b/src/Square/Default/Types/GetCustomerCustomAttributeDefinitionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [RetrieveCustomerCustomAttributeDefinition](api-endpoint:CustomerCustomAttributes-RetrieveCustomerCustomAttributeDefinition) response. diff --git a/src/Square/Types/GetCustomerCustomAttributeResponse.cs b/src/Square/Default/Types/GetCustomerCustomAttributeResponse.cs similarity index 97% rename from src/Square/Types/GetCustomerCustomAttributeResponse.cs rename to src/Square/Default/Types/GetCustomerCustomAttributeResponse.cs index 4f624ad9..c06685db 100644 --- a/src/Square/Types/GetCustomerCustomAttributeResponse.cs +++ b/src/Square/Default/Types/GetCustomerCustomAttributeResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [RetrieveCustomerCustomAttribute](api-endpoint:CustomerCustomAttributes-RetrieveCustomerCustomAttribute) response. diff --git a/src/Square/Types/GetCustomerGroupResponse.cs b/src/Square/Default/Types/GetCustomerGroupResponse.cs similarity index 96% rename from src/Square/Types/GetCustomerGroupResponse.cs rename to src/Square/Default/Types/GetCustomerGroupResponse.cs index 1179d365..7db48720 100644 --- a/src/Square/Types/GetCustomerGroupResponse.cs +++ b/src/Square/Default/Types/GetCustomerGroupResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/GetCustomerResponse.cs b/src/Square/Default/Types/GetCustomerResponse.cs similarity index 96% rename from src/Square/Types/GetCustomerResponse.cs rename to src/Square/Default/Types/GetCustomerResponse.cs index 9f2030a7..0281d072 100644 --- a/src/Square/Types/GetCustomerResponse.cs +++ b/src/Square/Default/Types/GetCustomerResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/GetCustomerSegmentResponse.cs b/src/Square/Default/Types/GetCustomerSegmentResponse.cs similarity index 96% rename from src/Square/Types/GetCustomerSegmentResponse.cs rename to src/Square/Default/Types/GetCustomerSegmentResponse.cs index b93c2311..552578df 100644 --- a/src/Square/Types/GetCustomerSegmentResponse.cs +++ b/src/Square/Default/Types/GetCustomerSegmentResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body for requests to the `RetrieveCustomerSegment` endpoint. diff --git a/src/Square/Types/GetDeviceCodeResponse.cs b/src/Square/Default/Types/GetDeviceCodeResponse.cs similarity index 96% rename from src/Square/Types/GetDeviceCodeResponse.cs rename to src/Square/Default/Types/GetDeviceCodeResponse.cs index 5e221818..2e57cd1c 100644 --- a/src/Square/Types/GetDeviceCodeResponse.cs +++ b/src/Square/Default/Types/GetDeviceCodeResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record GetDeviceCodeResponse : IJsonOnDeserialized diff --git a/src/Square/Types/GetDeviceResponse.cs b/src/Square/Default/Types/GetDeviceResponse.cs similarity index 96% rename from src/Square/Types/GetDeviceResponse.cs rename to src/Square/Default/Types/GetDeviceResponse.cs index 91cdcb6e..68ddc8ca 100644 --- a/src/Square/Types/GetDeviceResponse.cs +++ b/src/Square/Default/Types/GetDeviceResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record GetDeviceResponse : IJsonOnDeserialized diff --git a/src/Square/Types/GetDisputeEvidenceResponse.cs b/src/Square/Default/Types/GetDisputeEvidenceResponse.cs similarity index 96% rename from src/Square/Types/GetDisputeEvidenceResponse.cs rename to src/Square/Default/Types/GetDisputeEvidenceResponse.cs index 9f5a4c83..7cda9317 100644 --- a/src/Square/Types/GetDisputeEvidenceResponse.cs +++ b/src/Square/Default/Types/GetDisputeEvidenceResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields in a `RetrieveDisputeEvidence` response. diff --git a/src/Square/Types/GetDisputeResponse.cs b/src/Square/Default/Types/GetDisputeResponse.cs similarity index 96% rename from src/Square/Types/GetDisputeResponse.cs rename to src/Square/Default/Types/GetDisputeResponse.cs index 5dd5f1ca..45243e01 100644 --- a/src/Square/Types/GetDisputeResponse.cs +++ b/src/Square/Default/Types/GetDisputeResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines fields in a `RetrieveDispute` response. diff --git a/src/Square/Types/GetEmployeeResponse.cs b/src/Square/Default/Types/GetEmployeeResponse.cs similarity index 95% rename from src/Square/Types/GetEmployeeResponse.cs rename to src/Square/Default/Types/GetEmployeeResponse.cs index c6c29bd9..9653cf4d 100644 --- a/src/Square/Types/GetEmployeeResponse.cs +++ b/src/Square/Default/Types/GetEmployeeResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record GetEmployeeResponse : IJsonOnDeserialized diff --git a/src/Square/Types/GetEmployeeWageResponse.cs b/src/Square/Default/Types/GetEmployeeWageResponse.cs similarity index 96% rename from src/Square/Types/GetEmployeeWageResponse.cs rename to src/Square/Default/Types/GetEmployeeWageResponse.cs index b3852963..a3d795e0 100644 --- a/src/Square/Types/GetEmployeeWageResponse.cs +++ b/src/Square/Default/Types/GetEmployeeWageResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A response to a request to get an `EmployeeWage`. The response contains diff --git a/src/Square/Types/GetGiftCardFromGanResponse.cs b/src/Square/Default/Types/GetGiftCardFromGanResponse.cs similarity index 96% rename from src/Square/Types/GetGiftCardFromGanResponse.cs rename to src/Square/Default/Types/GetGiftCardFromGanResponse.cs index d3a1b431..5e63457f 100644 --- a/src/Square/Types/GetGiftCardFromGanResponse.cs +++ b/src/Square/Default/Types/GetGiftCardFromGanResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A response that contains a `GiftCard`. This response might contain a set of `Error` objects diff --git a/src/Square/Types/GetGiftCardFromNonceResponse.cs b/src/Square/Default/Types/GetGiftCardFromNonceResponse.cs similarity index 96% rename from src/Square/Types/GetGiftCardFromNonceResponse.cs rename to src/Square/Default/Types/GetGiftCardFromNonceResponse.cs index c587953f..580b6ee1 100644 --- a/src/Square/Types/GetGiftCardFromNonceResponse.cs +++ b/src/Square/Default/Types/GetGiftCardFromNonceResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A response that contains a `GiftCard` object. If the request resulted in errors, diff --git a/src/Square/Types/GetGiftCardResponse.cs b/src/Square/Default/Types/GetGiftCardResponse.cs similarity index 96% rename from src/Square/Types/GetGiftCardResponse.cs rename to src/Square/Default/Types/GetGiftCardResponse.cs index 0572dacb..763925e6 100644 --- a/src/Square/Types/GetGiftCardResponse.cs +++ b/src/Square/Default/Types/GetGiftCardResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A response that contains a `GiftCard`. The response might contain a set of `Error` objects diff --git a/src/Square/Types/GetInventoryAdjustmentResponse.cs b/src/Square/Default/Types/GetInventoryAdjustmentResponse.cs similarity index 96% rename from src/Square/Types/GetInventoryAdjustmentResponse.cs rename to src/Square/Default/Types/GetInventoryAdjustmentResponse.cs index 95034a62..a37aa78d 100644 --- a/src/Square/Types/GetInventoryAdjustmentResponse.cs +++ b/src/Square/Default/Types/GetInventoryAdjustmentResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record GetInventoryAdjustmentResponse : IJsonOnDeserialized diff --git a/src/Square/Types/GetInventoryChangesResponse.cs b/src/Square/Default/Types/GetInventoryChangesResponse.cs similarity index 97% rename from src/Square/Types/GetInventoryChangesResponse.cs rename to src/Square/Default/Types/GetInventoryChangesResponse.cs index 6dd283e4..84d37a10 100644 --- a/src/Square/Types/GetInventoryChangesResponse.cs +++ b/src/Square/Default/Types/GetInventoryChangesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record GetInventoryChangesResponse : IJsonOnDeserialized diff --git a/src/Square/Types/GetInventoryCountResponse.cs b/src/Square/Default/Types/GetInventoryCountResponse.cs similarity index 97% rename from src/Square/Types/GetInventoryCountResponse.cs rename to src/Square/Default/Types/GetInventoryCountResponse.cs index f54f38ee..8ed43769 100644 --- a/src/Square/Types/GetInventoryCountResponse.cs +++ b/src/Square/Default/Types/GetInventoryCountResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record GetInventoryCountResponse : IJsonOnDeserialized diff --git a/src/Square/Types/GetInventoryPhysicalCountResponse.cs b/src/Square/Default/Types/GetInventoryPhysicalCountResponse.cs similarity index 96% rename from src/Square/Types/GetInventoryPhysicalCountResponse.cs rename to src/Square/Default/Types/GetInventoryPhysicalCountResponse.cs index 8e3ca309..5f244908 100644 --- a/src/Square/Types/GetInventoryPhysicalCountResponse.cs +++ b/src/Square/Default/Types/GetInventoryPhysicalCountResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record GetInventoryPhysicalCountResponse : IJsonOnDeserialized diff --git a/src/Square/Types/GetInventoryTransferResponse.cs b/src/Square/Default/Types/GetInventoryTransferResponse.cs similarity index 96% rename from src/Square/Types/GetInventoryTransferResponse.cs rename to src/Square/Default/Types/GetInventoryTransferResponse.cs index f049a3cc..2d78453e 100644 --- a/src/Square/Types/GetInventoryTransferResponse.cs +++ b/src/Square/Default/Types/GetInventoryTransferResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record GetInventoryTransferResponse : IJsonOnDeserialized diff --git a/src/Square/Types/GetInvoiceResponse.cs b/src/Square/Default/Types/GetInvoiceResponse.cs similarity index 96% rename from src/Square/Types/GetInvoiceResponse.cs rename to src/Square/Default/Types/GetInvoiceResponse.cs index 70dd39df..79d2d845 100644 --- a/src/Square/Types/GetInvoiceResponse.cs +++ b/src/Square/Default/Types/GetInvoiceResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Describes a `GetInvoice` response. diff --git a/src/Square/Types/GetLocationResponse.cs b/src/Square/Default/Types/GetLocationResponse.cs similarity index 96% rename from src/Square/Types/GetLocationResponse.cs rename to src/Square/Default/Types/GetLocationResponse.cs index 1f21c652..63d35ee3 100644 --- a/src/Square/Types/GetLocationResponse.cs +++ b/src/Square/Default/Types/GetLocationResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that the [RetrieveLocation](api-endpoint:Locations-RetrieveLocation) diff --git a/src/Square/Types/GetLoyaltyAccountResponse.cs b/src/Square/Default/Types/GetLoyaltyAccountResponse.cs similarity index 96% rename from src/Square/Types/GetLoyaltyAccountResponse.cs rename to src/Square/Default/Types/GetLoyaltyAccountResponse.cs index 0c55f58e..a09187df 100644 --- a/src/Square/Types/GetLoyaltyAccountResponse.cs +++ b/src/Square/Default/Types/GetLoyaltyAccountResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A response that includes the loyalty account. diff --git a/src/Square/Types/GetLoyaltyProgramResponse.cs b/src/Square/Default/Types/GetLoyaltyProgramResponse.cs similarity index 96% rename from src/Square/Types/GetLoyaltyProgramResponse.cs rename to src/Square/Default/Types/GetLoyaltyProgramResponse.cs index 5fa2b08f..099e0b01 100644 --- a/src/Square/Types/GetLoyaltyProgramResponse.cs +++ b/src/Square/Default/Types/GetLoyaltyProgramResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A response that contains the loyalty program. diff --git a/src/Square/Types/GetLoyaltyPromotionResponse.cs b/src/Square/Default/Types/GetLoyaltyPromotionResponse.cs similarity index 96% rename from src/Square/Types/GetLoyaltyPromotionResponse.cs rename to src/Square/Default/Types/GetLoyaltyPromotionResponse.cs index dae0720a..5ee92b9a 100644 --- a/src/Square/Types/GetLoyaltyPromotionResponse.cs +++ b/src/Square/Default/Types/GetLoyaltyPromotionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [RetrieveLoyaltyPromotionPromotions](api-endpoint:Loyalty-RetrieveLoyaltyPromotion) response. diff --git a/src/Square/Types/GetLoyaltyRewardResponse.cs b/src/Square/Default/Types/GetLoyaltyRewardResponse.cs similarity index 96% rename from src/Square/Types/GetLoyaltyRewardResponse.cs rename to src/Square/Default/Types/GetLoyaltyRewardResponse.cs index b8a994bd..73138437 100644 --- a/src/Square/Types/GetLoyaltyRewardResponse.cs +++ b/src/Square/Default/Types/GetLoyaltyRewardResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A response that includes the loyalty reward. diff --git a/src/Square/Types/GetMerchantResponse.cs b/src/Square/Default/Types/GetMerchantResponse.cs similarity index 96% rename from src/Square/Types/GetMerchantResponse.cs rename to src/Square/Default/Types/GetMerchantResponse.cs index feb40305..00d70a11 100644 --- a/src/Square/Types/GetMerchantResponse.cs +++ b/src/Square/Default/Types/GetMerchantResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The response object returned by the [RetrieveMerchant](api-endpoint:Merchants-RetrieveMerchant) endpoint. diff --git a/src/Square/Types/GetOrderResponse.cs b/src/Square/Default/Types/GetOrderResponse.cs similarity index 95% rename from src/Square/Types/GetOrderResponse.cs rename to src/Square/Default/Types/GetOrderResponse.cs index 6d8a2372..259202e5 100644 --- a/src/Square/Types/GetOrderResponse.cs +++ b/src/Square/Default/Types/GetOrderResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record GetOrderResponse : IJsonOnDeserialized diff --git a/src/Square/Types/GetPaymentLinkResponse.cs b/src/Square/Default/Types/GetPaymentLinkResponse.cs similarity index 96% rename from src/Square/Types/GetPaymentLinkResponse.cs rename to src/Square/Default/Types/GetPaymentLinkResponse.cs index 57138bbb..bf44e60c 100644 --- a/src/Square/Types/GetPaymentLinkResponse.cs +++ b/src/Square/Default/Types/GetPaymentLinkResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record GetPaymentLinkResponse : IJsonOnDeserialized diff --git a/src/Square/Types/GetPaymentRefundResponse.cs b/src/Square/Default/Types/GetPaymentRefundResponse.cs similarity index 96% rename from src/Square/Types/GetPaymentRefundResponse.cs rename to src/Square/Default/Types/GetPaymentRefundResponse.cs index 8557c6c5..705df690 100644 --- a/src/Square/Types/GetPaymentRefundResponse.cs +++ b/src/Square/Default/Types/GetPaymentRefundResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the response returned by [GetRefund](api-endpoint:Refunds-GetPaymentRefund). diff --git a/src/Square/Types/GetPaymentResponse.cs b/src/Square/Default/Types/GetPaymentResponse.cs similarity index 96% rename from src/Square/Types/GetPaymentResponse.cs rename to src/Square/Default/Types/GetPaymentResponse.cs index 6de234b1..d6a17369 100644 --- a/src/Square/Types/GetPaymentResponse.cs +++ b/src/Square/Default/Types/GetPaymentResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the response returned by [GetPayment](api-endpoint:Payments-GetPayment). diff --git a/src/Square/Types/GetPayoutResponse.cs b/src/Square/Default/Types/GetPayoutResponse.cs similarity index 96% rename from src/Square/Types/GetPayoutResponse.cs rename to src/Square/Default/Types/GetPayoutResponse.cs index e84fd7b3..9a7bec92 100644 --- a/src/Square/Types/GetPayoutResponse.cs +++ b/src/Square/Default/Types/GetPayoutResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record GetPayoutResponse : IJsonOnDeserialized diff --git a/src/Square/Types/GetShiftResponse.cs b/src/Square/Default/Types/GetShiftResponse.cs similarity index 96% rename from src/Square/Types/GetShiftResponse.cs rename to src/Square/Default/Types/GetShiftResponse.cs index 5f30c389..d277f5a0 100644 --- a/src/Square/Types/GetShiftResponse.cs +++ b/src/Square/Default/Types/GetShiftResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A response to a request to get a `Shift`. The response contains diff --git a/src/Square/Types/GetSnippetResponse.cs b/src/Square/Default/Types/GetSnippetResponse.cs similarity index 96% rename from src/Square/Types/GetSnippetResponse.cs rename to src/Square/Default/Types/GetSnippetResponse.cs index ab429329..09e3795c 100644 --- a/src/Square/Types/GetSnippetResponse.cs +++ b/src/Square/Default/Types/GetSnippetResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a `RetrieveSnippet` response. The response can include either `snippet` or `errors`. diff --git a/src/Square/Types/GetSubscriptionResponse.cs b/src/Square/Default/Types/GetSubscriptionResponse.cs similarity index 96% rename from src/Square/Types/GetSubscriptionResponse.cs rename to src/Square/Default/Types/GetSubscriptionResponse.cs index c49c77fc..9d01e2e9 100644 --- a/src/Square/Types/GetSubscriptionResponse.cs +++ b/src/Square/Default/Types/GetSubscriptionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines output parameters in a response from the diff --git a/src/Square/Types/GetTeamMemberBookingProfileResponse.cs b/src/Square/Default/Types/GetTeamMemberBookingProfileResponse.cs similarity index 96% rename from src/Square/Types/GetTeamMemberBookingProfileResponse.cs rename to src/Square/Default/Types/GetTeamMemberBookingProfileResponse.cs index 63724f63..c03172d0 100644 --- a/src/Square/Types/GetTeamMemberBookingProfileResponse.cs +++ b/src/Square/Default/Types/GetTeamMemberBookingProfileResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record GetTeamMemberBookingProfileResponse : IJsonOnDeserialized diff --git a/src/Square/Types/GetTeamMemberResponse.cs b/src/Square/Default/Types/GetTeamMemberResponse.cs similarity index 96% rename from src/Square/Types/GetTeamMemberResponse.cs rename to src/Square/Default/Types/GetTeamMemberResponse.cs index 766671ca..9ebda96e 100644 --- a/src/Square/Types/GetTeamMemberResponse.cs +++ b/src/Square/Default/Types/GetTeamMemberResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a response from a retrieve request containing a `TeamMember` object or error messages. diff --git a/src/Square/Types/GetTeamMemberWageResponse.cs b/src/Square/Default/Types/GetTeamMemberWageResponse.cs similarity index 96% rename from src/Square/Types/GetTeamMemberWageResponse.cs rename to src/Square/Default/Types/GetTeamMemberWageResponse.cs index 28518116..80ec2c7b 100644 --- a/src/Square/Types/GetTeamMemberWageResponse.cs +++ b/src/Square/Default/Types/GetTeamMemberWageResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A response to a request to get a `TeamMemberWage`. The response contains diff --git a/src/Square/Types/GetTerminalActionResponse.cs b/src/Square/Default/Types/GetTerminalActionResponse.cs similarity index 96% rename from src/Square/Types/GetTerminalActionResponse.cs rename to src/Square/Default/Types/GetTerminalActionResponse.cs index 8fd1260d..f215d486 100644 --- a/src/Square/Types/GetTerminalActionResponse.cs +++ b/src/Square/Default/Types/GetTerminalActionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record GetTerminalActionResponse : IJsonOnDeserialized diff --git a/src/Square/Types/GetTerminalCheckoutResponse.cs b/src/Square/Default/Types/GetTerminalCheckoutResponse.cs similarity index 96% rename from src/Square/Types/GetTerminalCheckoutResponse.cs rename to src/Square/Default/Types/GetTerminalCheckoutResponse.cs index 94bd7a1b..a5d9fc96 100644 --- a/src/Square/Types/GetTerminalCheckoutResponse.cs +++ b/src/Square/Default/Types/GetTerminalCheckoutResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record GetTerminalCheckoutResponse : IJsonOnDeserialized diff --git a/src/Square/Types/GetTerminalRefundResponse.cs b/src/Square/Default/Types/GetTerminalRefundResponse.cs similarity index 96% rename from src/Square/Types/GetTerminalRefundResponse.cs rename to src/Square/Default/Types/GetTerminalRefundResponse.cs index 7c06703e..c00190e4 100644 --- a/src/Square/Types/GetTerminalRefundResponse.cs +++ b/src/Square/Default/Types/GetTerminalRefundResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record GetTerminalRefundResponse : IJsonOnDeserialized diff --git a/src/Square/Types/GetTransactionResponse.cs b/src/Square/Default/Types/GetTransactionResponse.cs similarity index 96% rename from src/Square/Types/GetTransactionResponse.cs rename to src/Square/Default/Types/GetTransactionResponse.cs index 60b197dd..5d8c8730 100644 --- a/src/Square/Types/GetTransactionResponse.cs +++ b/src/Square/Default/Types/GetTransactionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/GetVendorResponse.cs b/src/Square/Default/Types/GetVendorResponse.cs similarity index 96% rename from src/Square/Types/GetVendorResponse.cs rename to src/Square/Default/Types/GetVendorResponse.cs index b730530c..e0b6ca55 100644 --- a/src/Square/Types/GetVendorResponse.cs +++ b/src/Square/Default/Types/GetVendorResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an output from a call to [RetrieveVendor](api-endpoint:Vendors-RetrieveVendor). diff --git a/src/Square/Types/GetWageSettingResponse.cs b/src/Square/Default/Types/GetWageSettingResponse.cs similarity index 96% rename from src/Square/Types/GetWageSettingResponse.cs rename to src/Square/Default/Types/GetWageSettingResponse.cs index c0cd74e6..67916d95 100644 --- a/src/Square/Types/GetWageSettingResponse.cs +++ b/src/Square/Default/Types/GetWageSettingResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a response from a retrieve request containing the specified `WageSetting` object or error messages. diff --git a/src/Square/Types/GetWebhookSubscriptionResponse.cs b/src/Square/Default/Types/GetWebhookSubscriptionResponse.cs similarity index 97% rename from src/Square/Types/GetWebhookSubscriptionResponse.cs rename to src/Square/Default/Types/GetWebhookSubscriptionResponse.cs index ebc9864e..56d5f23a 100644 --- a/src/Square/Types/GetWebhookSubscriptionResponse.cs +++ b/src/Square/Default/Types/GetWebhookSubscriptionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/GiftCard.cs b/src/Square/Default/Types/GiftCard.cs similarity index 98% rename from src/Square/Types/GiftCard.cs rename to src/Square/Default/Types/GiftCard.cs index a748bc64..f1876d3d 100644 --- a/src/Square/Types/GiftCard.cs +++ b/src/Square/Default/Types/GiftCard.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a Square gift card. diff --git a/src/Square/Types/GiftCardActivity.cs b/src/Square/Default/Types/GiftCardActivity.cs similarity index 99% rename from src/Square/Types/GiftCardActivity.cs rename to src/Square/Default/Types/GiftCardActivity.cs index 2560e0e5..25e6eaab 100644 --- a/src/Square/Types/GiftCardActivity.cs +++ b/src/Square/Default/Types/GiftCardActivity.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an action performed on a [gift card](entity:GiftCard) that affects its state or balance. diff --git a/src/Square/Types/GiftCardActivityActivate.cs b/src/Square/Default/Types/GiftCardActivityActivate.cs similarity index 98% rename from src/Square/Types/GiftCardActivityActivate.cs rename to src/Square/Default/Types/GiftCardActivityActivate.cs index 8cd38d61..f18f5ac5 100644 --- a/src/Square/Types/GiftCardActivityActivate.cs +++ b/src/Square/Default/Types/GiftCardActivityActivate.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents details about an `ACTIVATE` [gift card activity type](entity:GiftCardActivityType). diff --git a/src/Square/Types/GiftCardActivityAdjustDecrement.cs b/src/Square/Default/Types/GiftCardActivityAdjustDecrement.cs similarity index 96% rename from src/Square/Types/GiftCardActivityAdjustDecrement.cs rename to src/Square/Default/Types/GiftCardActivityAdjustDecrement.cs index c2a4ae6f..9f27c1da 100644 --- a/src/Square/Types/GiftCardActivityAdjustDecrement.cs +++ b/src/Square/Default/Types/GiftCardActivityAdjustDecrement.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents details about an `ADJUST_DECREMENT` [gift card activity type](entity:GiftCardActivityType). diff --git a/src/Square/Types/GiftCardActivityAdjustDecrementReason.cs b/src/Square/Default/Types/GiftCardActivityAdjustDecrementReason.cs similarity index 98% rename from src/Square/Types/GiftCardActivityAdjustDecrementReason.cs rename to src/Square/Default/Types/GiftCardActivityAdjustDecrementReason.cs index 33b3bcc0..f7b39678 100644 --- a/src/Square/Types/GiftCardActivityAdjustDecrementReason.cs +++ b/src/Square/Default/Types/GiftCardActivityAdjustDecrementReason.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/GiftCardActivityAdjustIncrement.cs b/src/Square/Default/Types/GiftCardActivityAdjustIncrement.cs similarity index 96% rename from src/Square/Types/GiftCardActivityAdjustIncrement.cs rename to src/Square/Default/Types/GiftCardActivityAdjustIncrement.cs index 6ed57480..6dc7ff22 100644 --- a/src/Square/Types/GiftCardActivityAdjustIncrement.cs +++ b/src/Square/Default/Types/GiftCardActivityAdjustIncrement.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents details about an `ADJUST_INCREMENT` [gift card activity type](entity:GiftCardActivityType). diff --git a/src/Square/Types/GiftCardActivityAdjustIncrementReason.cs b/src/Square/Default/Types/GiftCardActivityAdjustIncrementReason.cs similarity index 98% rename from src/Square/Types/GiftCardActivityAdjustIncrementReason.cs rename to src/Square/Default/Types/GiftCardActivityAdjustIncrementReason.cs index f9d4991e..f25023a6 100644 --- a/src/Square/Types/GiftCardActivityAdjustIncrementReason.cs +++ b/src/Square/Default/Types/GiftCardActivityAdjustIncrementReason.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/GiftCardActivityBlock.cs b/src/Square/Default/Types/GiftCardActivityBlock.cs similarity index 96% rename from src/Square/Types/GiftCardActivityBlock.cs rename to src/Square/Default/Types/GiftCardActivityBlock.cs index 04d6de85..3d9d23c9 100644 --- a/src/Square/Types/GiftCardActivityBlock.cs +++ b/src/Square/Default/Types/GiftCardActivityBlock.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents details about a `BLOCK` [gift card activity type](entity:GiftCardActivityType). diff --git a/src/Square/Types/GiftCardActivityClearBalance.cs b/src/Square/Default/Types/GiftCardActivityClearBalance.cs similarity index 96% rename from src/Square/Types/GiftCardActivityClearBalance.cs rename to src/Square/Default/Types/GiftCardActivityClearBalance.cs index 519a9d1c..9e5c8589 100644 --- a/src/Square/Types/GiftCardActivityClearBalance.cs +++ b/src/Square/Default/Types/GiftCardActivityClearBalance.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents details about a `CLEAR_BALANCE` [gift card activity type](entity:GiftCardActivityType). diff --git a/src/Square/Types/GiftCardActivityClearBalanceReason.cs b/src/Square/Default/Types/GiftCardActivityClearBalanceReason.cs similarity index 98% rename from src/Square/Types/GiftCardActivityClearBalanceReason.cs rename to src/Square/Default/Types/GiftCardActivityClearBalanceReason.cs index 1c7d1645..ade569e2 100644 --- a/src/Square/Types/GiftCardActivityClearBalanceReason.cs +++ b/src/Square/Default/Types/GiftCardActivityClearBalanceReason.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/GiftCardActivityCreatedEvent.cs b/src/Square/Default/Types/GiftCardActivityCreatedEvent.cs similarity index 97% rename from src/Square/Types/GiftCardActivityCreatedEvent.cs rename to src/Square/Default/Types/GiftCardActivityCreatedEvent.cs index c2cbae51..b4f35ab9 100644 --- a/src/Square/Types/GiftCardActivityCreatedEvent.cs +++ b/src/Square/Default/Types/GiftCardActivityCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [gift card activity](entity:GiftCardActivity) is created. diff --git a/src/Square/Types/GiftCardActivityCreatedEventData.cs b/src/Square/Default/Types/GiftCardActivityCreatedEventData.cs similarity index 97% rename from src/Square/Types/GiftCardActivityCreatedEventData.cs rename to src/Square/Default/Types/GiftCardActivityCreatedEventData.cs index c8fdd422..23024969 100644 --- a/src/Square/Types/GiftCardActivityCreatedEventData.cs +++ b/src/Square/Default/Types/GiftCardActivityCreatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents the data associated with a `gift_card.activity.created` event. diff --git a/src/Square/Types/GiftCardActivityCreatedEventObject.cs b/src/Square/Default/Types/GiftCardActivityCreatedEventObject.cs similarity index 96% rename from src/Square/Types/GiftCardActivityCreatedEventObject.cs rename to src/Square/Default/Types/GiftCardActivityCreatedEventObject.cs index 3909d4e1..8c5971fb 100644 --- a/src/Square/Types/GiftCardActivityCreatedEventObject.cs +++ b/src/Square/Default/Types/GiftCardActivityCreatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// An object that contains the gift card activity associated with a diff --git a/src/Square/Types/GiftCardActivityDeactivate.cs b/src/Square/Default/Types/GiftCardActivityDeactivate.cs similarity index 96% rename from src/Square/Types/GiftCardActivityDeactivate.cs rename to src/Square/Default/Types/GiftCardActivityDeactivate.cs index 0f028c8a..49d1d836 100644 --- a/src/Square/Types/GiftCardActivityDeactivate.cs +++ b/src/Square/Default/Types/GiftCardActivityDeactivate.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents details about a `DEACTIVATE` [gift card activity type](entity:GiftCardActivityType). diff --git a/src/Square/Types/GiftCardActivityDeactivateReason.cs b/src/Square/Default/Types/GiftCardActivityDeactivateReason.cs similarity index 98% rename from src/Square/Types/GiftCardActivityDeactivateReason.cs rename to src/Square/Default/Types/GiftCardActivityDeactivateReason.cs index 845eeb35..a68ce1be 100644 --- a/src/Square/Types/GiftCardActivityDeactivateReason.cs +++ b/src/Square/Default/Types/GiftCardActivityDeactivateReason.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/GiftCardActivityImport.cs b/src/Square/Default/Types/GiftCardActivityImport.cs similarity index 96% rename from src/Square/Types/GiftCardActivityImport.cs rename to src/Square/Default/Types/GiftCardActivityImport.cs index 97c42352..c4221572 100644 --- a/src/Square/Types/GiftCardActivityImport.cs +++ b/src/Square/Default/Types/GiftCardActivityImport.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents details about an `IMPORT` [gift card activity type](entity:GiftCardActivityType). diff --git a/src/Square/Types/GiftCardActivityImportReversal.cs b/src/Square/Default/Types/GiftCardActivityImportReversal.cs similarity index 96% rename from src/Square/Types/GiftCardActivityImportReversal.cs rename to src/Square/Default/Types/GiftCardActivityImportReversal.cs index b5191f43..cc31ef23 100644 --- a/src/Square/Types/GiftCardActivityImportReversal.cs +++ b/src/Square/Default/Types/GiftCardActivityImportReversal.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents details about an `IMPORT_REVERSAL` [gift card activity type](entity:GiftCardActivityType). diff --git a/src/Square/Types/GiftCardActivityLoad.cs b/src/Square/Default/Types/GiftCardActivityLoad.cs similarity index 98% rename from src/Square/Types/GiftCardActivityLoad.cs rename to src/Square/Default/Types/GiftCardActivityLoad.cs index 94e27973..f2c9b5d6 100644 --- a/src/Square/Types/GiftCardActivityLoad.cs +++ b/src/Square/Default/Types/GiftCardActivityLoad.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents details about a `LOAD` [gift card activity type](entity:GiftCardActivityType). diff --git a/src/Square/Types/GiftCardActivityRedeem.cs b/src/Square/Default/Types/GiftCardActivityRedeem.cs similarity index 98% rename from src/Square/Types/GiftCardActivityRedeem.cs rename to src/Square/Default/Types/GiftCardActivityRedeem.cs index 7057dd1d..19dff0d5 100644 --- a/src/Square/Types/GiftCardActivityRedeem.cs +++ b/src/Square/Default/Types/GiftCardActivityRedeem.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents details about a `REDEEM` [gift card activity type](entity:GiftCardActivityType). diff --git a/src/Square/Types/GiftCardActivityRedeemStatus.cs b/src/Square/Default/Types/GiftCardActivityRedeemStatus.cs similarity index 98% rename from src/Square/Types/GiftCardActivityRedeemStatus.cs rename to src/Square/Default/Types/GiftCardActivityRedeemStatus.cs index 2f845812..976d8a8f 100644 --- a/src/Square/Types/GiftCardActivityRedeemStatus.cs +++ b/src/Square/Default/Types/GiftCardActivityRedeemStatus.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/GiftCardActivityRefund.cs b/src/Square/Default/Types/GiftCardActivityRefund.cs similarity index 98% rename from src/Square/Types/GiftCardActivityRefund.cs rename to src/Square/Default/Types/GiftCardActivityRefund.cs index c10a9646..5f86125b 100644 --- a/src/Square/Types/GiftCardActivityRefund.cs +++ b/src/Square/Default/Types/GiftCardActivityRefund.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents details about a `REFUND` [gift card activity type](entity:GiftCardActivityType). diff --git a/src/Square/Types/GiftCardActivityTransferBalanceFrom.cs b/src/Square/Default/Types/GiftCardActivityTransferBalanceFrom.cs similarity index 96% rename from src/Square/Types/GiftCardActivityTransferBalanceFrom.cs rename to src/Square/Default/Types/GiftCardActivityTransferBalanceFrom.cs index 68ea1912..9dca5fcf 100644 --- a/src/Square/Types/GiftCardActivityTransferBalanceFrom.cs +++ b/src/Square/Default/Types/GiftCardActivityTransferBalanceFrom.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents details about a `TRANSFER_BALANCE_FROM` [gift card activity type](entity:GiftCardActivityType). diff --git a/src/Square/Types/GiftCardActivityTransferBalanceTo.cs b/src/Square/Default/Types/GiftCardActivityTransferBalanceTo.cs similarity index 96% rename from src/Square/Types/GiftCardActivityTransferBalanceTo.cs rename to src/Square/Default/Types/GiftCardActivityTransferBalanceTo.cs index a7c5d4a3..d1b18b15 100644 --- a/src/Square/Types/GiftCardActivityTransferBalanceTo.cs +++ b/src/Square/Default/Types/GiftCardActivityTransferBalanceTo.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents details about a `TRANSFER_BALANCE_TO` [gift card activity type](entity:GiftCardActivityType). diff --git a/src/Square/Types/GiftCardActivityType.cs b/src/Square/Default/Types/GiftCardActivityType.cs similarity index 99% rename from src/Square/Types/GiftCardActivityType.cs rename to src/Square/Default/Types/GiftCardActivityType.cs index b0e27f92..db90079f 100644 --- a/src/Square/Types/GiftCardActivityType.cs +++ b/src/Square/Default/Types/GiftCardActivityType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/GiftCardActivityUnblock.cs b/src/Square/Default/Types/GiftCardActivityUnblock.cs similarity index 96% rename from src/Square/Types/GiftCardActivityUnblock.cs rename to src/Square/Default/Types/GiftCardActivityUnblock.cs index e31da83d..5fb06232 100644 --- a/src/Square/Types/GiftCardActivityUnblock.cs +++ b/src/Square/Default/Types/GiftCardActivityUnblock.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents details about an `UNBLOCK` [gift card activity type](entity:GiftCardActivityType). diff --git a/src/Square/Types/GiftCardActivityUnlinkedActivityRefund.cs b/src/Square/Default/Types/GiftCardActivityUnlinkedActivityRefund.cs similarity index 97% rename from src/Square/Types/GiftCardActivityUnlinkedActivityRefund.cs rename to src/Square/Default/Types/GiftCardActivityUnlinkedActivityRefund.cs index a0cf025c..a491d6ac 100644 --- a/src/Square/Types/GiftCardActivityUnlinkedActivityRefund.cs +++ b/src/Square/Default/Types/GiftCardActivityUnlinkedActivityRefund.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents details about an `UNLINKED_ACTIVITY_REFUND` [gift card activity type](entity:GiftCardActivityType). diff --git a/src/Square/Types/GiftCardActivityUpdatedEvent.cs b/src/Square/Default/Types/GiftCardActivityUpdatedEvent.cs similarity index 98% rename from src/Square/Types/GiftCardActivityUpdatedEvent.cs rename to src/Square/Default/Types/GiftCardActivityUpdatedEvent.cs index 1296b354..a503ee97 100644 --- a/src/Square/Types/GiftCardActivityUpdatedEvent.cs +++ b/src/Square/Default/Types/GiftCardActivityUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [gift card activity](entity:GiftCardActivity) is updated. diff --git a/src/Square/Types/GiftCardActivityUpdatedEventData.cs b/src/Square/Default/Types/GiftCardActivityUpdatedEventData.cs similarity index 97% rename from src/Square/Types/GiftCardActivityUpdatedEventData.cs rename to src/Square/Default/Types/GiftCardActivityUpdatedEventData.cs index cf5123ee..53ffc7df 100644 --- a/src/Square/Types/GiftCardActivityUpdatedEventData.cs +++ b/src/Square/Default/Types/GiftCardActivityUpdatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The data associated with a `gift_card.activity.updated` event. diff --git a/src/Square/Types/GiftCardActivityUpdatedEventObject.cs b/src/Square/Default/Types/GiftCardActivityUpdatedEventObject.cs similarity index 96% rename from src/Square/Types/GiftCardActivityUpdatedEventObject.cs rename to src/Square/Default/Types/GiftCardActivityUpdatedEventObject.cs index 03f27de8..0221f579 100644 --- a/src/Square/Types/GiftCardActivityUpdatedEventObject.cs +++ b/src/Square/Default/Types/GiftCardActivityUpdatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// An object that contains the gift card activity associated with a diff --git a/src/Square/Types/GiftCardCreatedEvent.cs b/src/Square/Default/Types/GiftCardCreatedEvent.cs similarity index 97% rename from src/Square/Types/GiftCardCreatedEvent.cs rename to src/Square/Default/Types/GiftCardCreatedEvent.cs index 94af165e..a7f150f0 100644 --- a/src/Square/Types/GiftCardCreatedEvent.cs +++ b/src/Square/Default/Types/GiftCardCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [gift card](entity:GiftCard) is created. diff --git a/src/Square/Types/GiftCardCreatedEventData.cs b/src/Square/Default/Types/GiftCardCreatedEventData.cs similarity index 96% rename from src/Square/Types/GiftCardCreatedEventData.cs rename to src/Square/Default/Types/GiftCardCreatedEventData.cs index 8e7756a8..f90441fa 100644 --- a/src/Square/Types/GiftCardCreatedEventData.cs +++ b/src/Square/Default/Types/GiftCardCreatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The data associated with a `gift_card.created` event. diff --git a/src/Square/Types/GiftCardCreatedEventObject.cs b/src/Square/Default/Types/GiftCardCreatedEventObject.cs similarity index 95% rename from src/Square/Types/GiftCardCreatedEventObject.cs rename to src/Square/Default/Types/GiftCardCreatedEventObject.cs index c40d413a..89799239 100644 --- a/src/Square/Types/GiftCardCreatedEventObject.cs +++ b/src/Square/Default/Types/GiftCardCreatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// An object that contains the gift card associated with a `gift_card.created` event. diff --git a/src/Square/Types/GiftCardCustomerLinkedEvent.cs b/src/Square/Default/Types/GiftCardCustomerLinkedEvent.cs similarity index 97% rename from src/Square/Types/GiftCardCustomerLinkedEvent.cs rename to src/Square/Default/Types/GiftCardCustomerLinkedEvent.cs index 468ca0a9..588af861 100644 --- a/src/Square/Types/GiftCardCustomerLinkedEvent.cs +++ b/src/Square/Default/Types/GiftCardCustomerLinkedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [customer](entity:Customer) is linked to a [gift card](entity:GiftCard). diff --git a/src/Square/Types/GiftCardCustomerLinkedEventData.cs b/src/Square/Default/Types/GiftCardCustomerLinkedEventData.cs similarity index 97% rename from src/Square/Types/GiftCardCustomerLinkedEventData.cs rename to src/Square/Default/Types/GiftCardCustomerLinkedEventData.cs index 4c604c7d..1fa96a70 100644 --- a/src/Square/Types/GiftCardCustomerLinkedEventData.cs +++ b/src/Square/Default/Types/GiftCardCustomerLinkedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The data associated with a `gift_card.customer_linked` event. diff --git a/src/Square/Types/GiftCardCustomerLinkedEventObject.cs b/src/Square/Default/Types/GiftCardCustomerLinkedEventObject.cs similarity index 96% rename from src/Square/Types/GiftCardCustomerLinkedEventObject.cs rename to src/Square/Default/Types/GiftCardCustomerLinkedEventObject.cs index cb3488c1..32cfb618 100644 --- a/src/Square/Types/GiftCardCustomerLinkedEventObject.cs +++ b/src/Square/Default/Types/GiftCardCustomerLinkedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// An object that contains the gift card and customer ID associated with a diff --git a/src/Square/Types/GiftCardCustomerUnlinkedEvent.cs b/src/Square/Default/Types/GiftCardCustomerUnlinkedEvent.cs similarity index 97% rename from src/Square/Types/GiftCardCustomerUnlinkedEvent.cs rename to src/Square/Default/Types/GiftCardCustomerUnlinkedEvent.cs index 340943a5..965c2b00 100644 --- a/src/Square/Types/GiftCardCustomerUnlinkedEvent.cs +++ b/src/Square/Default/Types/GiftCardCustomerUnlinkedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [customer](entity:Customer) is unlinked from a [gift card](entity:GiftCard). diff --git a/src/Square/Types/GiftCardCustomerUnlinkedEventData.cs b/src/Square/Default/Types/GiftCardCustomerUnlinkedEventData.cs similarity index 97% rename from src/Square/Types/GiftCardCustomerUnlinkedEventData.cs rename to src/Square/Default/Types/GiftCardCustomerUnlinkedEventData.cs index 7c677134..93b30815 100644 --- a/src/Square/Types/GiftCardCustomerUnlinkedEventData.cs +++ b/src/Square/Default/Types/GiftCardCustomerUnlinkedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The data associated with a `gift_card.customer_unlinked` event. diff --git a/src/Square/Types/GiftCardCustomerUnlinkedEventObject.cs b/src/Square/Default/Types/GiftCardCustomerUnlinkedEventObject.cs similarity index 96% rename from src/Square/Types/GiftCardCustomerUnlinkedEventObject.cs rename to src/Square/Default/Types/GiftCardCustomerUnlinkedEventObject.cs index 406a84a0..00cc9bf7 100644 --- a/src/Square/Types/GiftCardCustomerUnlinkedEventObject.cs +++ b/src/Square/Default/Types/GiftCardCustomerUnlinkedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// An object that contains the gift card and the customer ID associated with a diff --git a/src/Square/Types/GiftCardGanSource.cs b/src/Square/Default/Types/GiftCardGanSource.cs similarity index 98% rename from src/Square/Types/GiftCardGanSource.cs rename to src/Square/Default/Types/GiftCardGanSource.cs index 636f9311..8a944929 100644 --- a/src/Square/Types/GiftCardGanSource.cs +++ b/src/Square/Default/Types/GiftCardGanSource.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/GiftCardStatus.cs b/src/Square/Default/Types/GiftCardStatus.cs similarity index 98% rename from src/Square/Types/GiftCardStatus.cs rename to src/Square/Default/Types/GiftCardStatus.cs index afaec101..4f32376b 100644 --- a/src/Square/Types/GiftCardStatus.cs +++ b/src/Square/Default/Types/GiftCardStatus.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/GiftCardType.cs b/src/Square/Default/Types/GiftCardType.cs similarity index 98% rename from src/Square/Types/GiftCardType.cs rename to src/Square/Default/Types/GiftCardType.cs index 162c36f6..d14847df 100644 --- a/src/Square/Types/GiftCardType.cs +++ b/src/Square/Default/Types/GiftCardType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/GiftCardUpdatedEvent.cs b/src/Square/Default/Types/GiftCardUpdatedEvent.cs similarity index 97% rename from src/Square/Types/GiftCardUpdatedEvent.cs rename to src/Square/Default/Types/GiftCardUpdatedEvent.cs index 64153b64..7fe33c3b 100644 --- a/src/Square/Types/GiftCardUpdatedEvent.cs +++ b/src/Square/Default/Types/GiftCardUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [gift card](entity:GiftCard) is updated. This includes diff --git a/src/Square/Types/GiftCardUpdatedEventData.cs b/src/Square/Default/Types/GiftCardUpdatedEventData.cs similarity index 96% rename from src/Square/Types/GiftCardUpdatedEventData.cs rename to src/Square/Default/Types/GiftCardUpdatedEventData.cs index 4e93e43f..38672a48 100644 --- a/src/Square/Types/GiftCardUpdatedEventData.cs +++ b/src/Square/Default/Types/GiftCardUpdatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The data associated with a `gift_card.updated` event. diff --git a/src/Square/Types/GiftCardUpdatedEventObject.cs b/src/Square/Default/Types/GiftCardUpdatedEventObject.cs similarity index 96% rename from src/Square/Types/GiftCardUpdatedEventObject.cs rename to src/Square/Default/Types/GiftCardUpdatedEventObject.cs index 543f6f27..60e9097e 100644 --- a/src/Square/Types/GiftCardUpdatedEventObject.cs +++ b/src/Square/Default/Types/GiftCardUpdatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// An object that contains the gift card associated with a `gift_card.updated` event. diff --git a/src/Square/Types/InventoryAdjustment.cs b/src/Square/Default/Types/InventoryAdjustment.cs similarity index 99% rename from src/Square/Types/InventoryAdjustment.cs rename to src/Square/Default/Types/InventoryAdjustment.cs index 95219985..aba3687d 100644 --- a/src/Square/Types/InventoryAdjustment.cs +++ b/src/Square/Default/Types/InventoryAdjustment.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a change in state or quantity of product inventory at a diff --git a/src/Square/Types/InventoryAdjustmentGroup.cs b/src/Square/Default/Types/InventoryAdjustmentGroup.cs similarity index 98% rename from src/Square/Types/InventoryAdjustmentGroup.cs rename to src/Square/Default/Types/InventoryAdjustmentGroup.cs index 071935b7..28463fc9 100644 --- a/src/Square/Types/InventoryAdjustmentGroup.cs +++ b/src/Square/Default/Types/InventoryAdjustmentGroup.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record InventoryAdjustmentGroup : IJsonOnDeserialized diff --git a/src/Square/Types/InventoryAlertType.cs b/src/Square/Default/Types/InventoryAlertType.cs similarity index 98% rename from src/Square/Types/InventoryAlertType.cs rename to src/Square/Default/Types/InventoryAlertType.cs index 8ac9fe41..290e1613 100644 --- a/src/Square/Types/InventoryAlertType.cs +++ b/src/Square/Default/Types/InventoryAlertType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/InventoryChange.cs b/src/Square/Default/Types/InventoryChange.cs similarity index 98% rename from src/Square/Types/InventoryChange.cs rename to src/Square/Default/Types/InventoryChange.cs index 676e8965..9a54e5a5 100644 --- a/src/Square/Types/InventoryChange.cs +++ b/src/Square/Default/Types/InventoryChange.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a single physical count, inventory, adjustment, or transfer diff --git a/src/Square/Types/InventoryChangeType.cs b/src/Square/Default/Types/InventoryChangeType.cs similarity index 98% rename from src/Square/Types/InventoryChangeType.cs rename to src/Square/Default/Types/InventoryChangeType.cs index 0abf0524..758925f0 100644 --- a/src/Square/Types/InventoryChangeType.cs +++ b/src/Square/Default/Types/InventoryChangeType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/InventoryCount.cs b/src/Square/Default/Types/InventoryCount.cs similarity index 98% rename from src/Square/Types/InventoryCount.cs rename to src/Square/Default/Types/InventoryCount.cs index 145b782c..c8367665 100644 --- a/src/Square/Types/InventoryCount.cs +++ b/src/Square/Default/Types/InventoryCount.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents Square-estimated quantity of items in a particular state at a diff --git a/src/Square/Types/InventoryCountUpdatedEvent.cs b/src/Square/Default/Types/InventoryCountUpdatedEvent.cs similarity index 97% rename from src/Square/Types/InventoryCountUpdatedEvent.cs rename to src/Square/Default/Types/InventoryCountUpdatedEvent.cs index 97611b36..627ba730 100644 --- a/src/Square/Types/InventoryCountUpdatedEvent.cs +++ b/src/Square/Default/Types/InventoryCountUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when the quantity is updated for a diff --git a/src/Square/Types/InventoryCountUpdatedEventData.cs b/src/Square/Default/Types/InventoryCountUpdatedEventData.cs similarity index 96% rename from src/Square/Types/InventoryCountUpdatedEventData.cs rename to src/Square/Default/Types/InventoryCountUpdatedEventData.cs index 8dca1fb9..a9f7b2f3 100644 --- a/src/Square/Types/InventoryCountUpdatedEventData.cs +++ b/src/Square/Default/Types/InventoryCountUpdatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record InventoryCountUpdatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/InventoryCountUpdatedEventObject.cs b/src/Square/Default/Types/InventoryCountUpdatedEventObject.cs similarity index 95% rename from src/Square/Types/InventoryCountUpdatedEventObject.cs rename to src/Square/Default/Types/InventoryCountUpdatedEventObject.cs index 52f5270f..dee030e9 100644 --- a/src/Square/Types/InventoryCountUpdatedEventObject.cs +++ b/src/Square/Default/Types/InventoryCountUpdatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record InventoryCountUpdatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/InventoryPhysicalCount.cs b/src/Square/Default/Types/InventoryPhysicalCount.cs similarity index 99% rename from src/Square/Types/InventoryPhysicalCount.cs rename to src/Square/Default/Types/InventoryPhysicalCount.cs index ba180166..24d10a25 100644 --- a/src/Square/Types/InventoryPhysicalCount.cs +++ b/src/Square/Default/Types/InventoryPhysicalCount.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents the quantity of an item variation that is physically present diff --git a/src/Square/Types/InventoryState.cs b/src/Square/Default/Types/InventoryState.cs similarity index 99% rename from src/Square/Types/InventoryState.cs rename to src/Square/Default/Types/InventoryState.cs index eca6a383..ebef27a6 100644 --- a/src/Square/Types/InventoryState.cs +++ b/src/Square/Default/Types/InventoryState.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/InventoryTransfer.cs b/src/Square/Default/Types/InventoryTransfer.cs similarity index 99% rename from src/Square/Types/InventoryTransfer.cs rename to src/Square/Default/Types/InventoryTransfer.cs index bc8231b7..183e2ca7 100644 --- a/src/Square/Types/InventoryTransfer.cs +++ b/src/Square/Default/Types/InventoryTransfer.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents the transfer of a quantity of product inventory at a diff --git a/src/Square/Types/Invoice.cs b/src/Square/Default/Types/Invoice.cs similarity index 99% rename from src/Square/Types/Invoice.cs rename to src/Square/Default/Types/Invoice.cs index 0c313b3b..dcede954 100644 --- a/src/Square/Types/Invoice.cs +++ b/src/Square/Default/Types/Invoice.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Stores information about an invoice. You use the Invoices API to create and manage diff --git a/src/Square/Types/InvoiceAcceptedPaymentMethods.cs b/src/Square/Default/Types/InvoiceAcceptedPaymentMethods.cs similarity index 98% rename from src/Square/Types/InvoiceAcceptedPaymentMethods.cs rename to src/Square/Default/Types/InvoiceAcceptedPaymentMethods.cs index 11548ff1..d8029baf 100644 --- a/src/Square/Types/InvoiceAcceptedPaymentMethods.cs +++ b/src/Square/Default/Types/InvoiceAcceptedPaymentMethods.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The payment methods that customers can use to pay an [invoice](entity:Invoice) on the Square-hosted invoice payment page. diff --git a/src/Square/Types/InvoiceAttachment.cs b/src/Square/Default/Types/InvoiceAttachment.cs similarity index 98% rename from src/Square/Types/InvoiceAttachment.cs rename to src/Square/Default/Types/InvoiceAttachment.cs index 291a1d3a..bb06e856 100644 --- a/src/Square/Types/InvoiceAttachment.cs +++ b/src/Square/Default/Types/InvoiceAttachment.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a file attached to an [invoice](entity:Invoice). diff --git a/src/Square/Types/InvoiceAutomaticPaymentSource.cs b/src/Square/Default/Types/InvoiceAutomaticPaymentSource.cs similarity index 98% rename from src/Square/Types/InvoiceAutomaticPaymentSource.cs rename to src/Square/Default/Types/InvoiceAutomaticPaymentSource.cs index bafed9f5..ed19e690 100644 --- a/src/Square/Types/InvoiceAutomaticPaymentSource.cs +++ b/src/Square/Default/Types/InvoiceAutomaticPaymentSource.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/InvoiceCanceledEvent.cs b/src/Square/Default/Types/InvoiceCanceledEvent.cs similarity index 97% rename from src/Square/Types/InvoiceCanceledEvent.cs rename to src/Square/Default/Types/InvoiceCanceledEvent.cs index 152cef52..c8dcae26 100644 --- a/src/Square/Types/InvoiceCanceledEvent.cs +++ b/src/Square/Default/Types/InvoiceCanceledEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when an [Invoice](entity:Invoice) is canceled. diff --git a/src/Square/Types/InvoiceCanceledEventData.cs b/src/Square/Default/Types/InvoiceCanceledEventData.cs similarity index 96% rename from src/Square/Types/InvoiceCanceledEventData.cs rename to src/Square/Default/Types/InvoiceCanceledEventData.cs index ecf1c1a2..1107e804 100644 --- a/src/Square/Types/InvoiceCanceledEventData.cs +++ b/src/Square/Default/Types/InvoiceCanceledEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record InvoiceCanceledEventData : IJsonOnDeserialized diff --git a/src/Square/Types/InvoiceCanceledEventObject.cs b/src/Square/Default/Types/InvoiceCanceledEventObject.cs similarity index 95% rename from src/Square/Types/InvoiceCanceledEventObject.cs rename to src/Square/Default/Types/InvoiceCanceledEventObject.cs index 5c4f38fa..106cce6c 100644 --- a/src/Square/Types/InvoiceCanceledEventObject.cs +++ b/src/Square/Default/Types/InvoiceCanceledEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record InvoiceCanceledEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/InvoiceCreatedEvent.cs b/src/Square/Default/Types/InvoiceCreatedEvent.cs similarity index 97% rename from src/Square/Types/InvoiceCreatedEvent.cs rename to src/Square/Default/Types/InvoiceCreatedEvent.cs index 23af9ea5..a6b80030 100644 --- a/src/Square/Types/InvoiceCreatedEvent.cs +++ b/src/Square/Default/Types/InvoiceCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when an [Invoice](entity:Invoice) is created. diff --git a/src/Square/Types/InvoiceCreatedEventData.cs b/src/Square/Default/Types/InvoiceCreatedEventData.cs similarity index 96% rename from src/Square/Types/InvoiceCreatedEventData.cs rename to src/Square/Default/Types/InvoiceCreatedEventData.cs index 93cf018e..c5d1ec29 100644 --- a/src/Square/Types/InvoiceCreatedEventData.cs +++ b/src/Square/Default/Types/InvoiceCreatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record InvoiceCreatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/InvoiceCreatedEventObject.cs b/src/Square/Default/Types/InvoiceCreatedEventObject.cs similarity index 95% rename from src/Square/Types/InvoiceCreatedEventObject.cs rename to src/Square/Default/Types/InvoiceCreatedEventObject.cs index de3856a4..008d1ef9 100644 --- a/src/Square/Types/InvoiceCreatedEventObject.cs +++ b/src/Square/Default/Types/InvoiceCreatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record InvoiceCreatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/InvoiceCustomField.cs b/src/Square/Default/Types/InvoiceCustomField.cs similarity index 97% rename from src/Square/Types/InvoiceCustomField.cs rename to src/Square/Default/Types/InvoiceCustomField.cs index 571bcff0..9d29eb47 100644 --- a/src/Square/Types/InvoiceCustomField.cs +++ b/src/Square/Default/Types/InvoiceCustomField.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// An additional seller-defined and customer-facing field to include on the invoice. For more information, diff --git a/src/Square/Types/InvoiceCustomFieldPlacement.cs b/src/Square/Default/Types/InvoiceCustomFieldPlacement.cs similarity index 98% rename from src/Square/Types/InvoiceCustomFieldPlacement.cs rename to src/Square/Default/Types/InvoiceCustomFieldPlacement.cs index 7c430289..f43672c9 100644 --- a/src/Square/Types/InvoiceCustomFieldPlacement.cs +++ b/src/Square/Default/Types/InvoiceCustomFieldPlacement.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/InvoiceDeletedEvent.cs b/src/Square/Default/Types/InvoiceDeletedEvent.cs similarity index 97% rename from src/Square/Types/InvoiceDeletedEvent.cs rename to src/Square/Default/Types/InvoiceDeletedEvent.cs index 1c65475b..563e715e 100644 --- a/src/Square/Types/InvoiceDeletedEvent.cs +++ b/src/Square/Default/Types/InvoiceDeletedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a draft [Invoice](entity:Invoice) is deleted. diff --git a/src/Square/Types/InvoiceDeletedEventData.cs b/src/Square/Default/Types/InvoiceDeletedEventData.cs similarity index 96% rename from src/Square/Types/InvoiceDeletedEventData.cs rename to src/Square/Default/Types/InvoiceDeletedEventData.cs index 6defb432..ac3990d3 100644 --- a/src/Square/Types/InvoiceDeletedEventData.cs +++ b/src/Square/Default/Types/InvoiceDeletedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record InvoiceDeletedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/InvoiceDeliveryMethod.cs b/src/Square/Default/Types/InvoiceDeliveryMethod.cs similarity index 98% rename from src/Square/Types/InvoiceDeliveryMethod.cs rename to src/Square/Default/Types/InvoiceDeliveryMethod.cs index e6325cd8..1ab8ccd7 100644 --- a/src/Square/Types/InvoiceDeliveryMethod.cs +++ b/src/Square/Default/Types/InvoiceDeliveryMethod.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/InvoiceFilter.cs b/src/Square/Default/Types/InvoiceFilter.cs similarity index 97% rename from src/Square/Types/InvoiceFilter.cs rename to src/Square/Default/Types/InvoiceFilter.cs index 550d7205..1b102f0f 100644 --- a/src/Square/Types/InvoiceFilter.cs +++ b/src/Square/Default/Types/InvoiceFilter.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Describes query filters to apply. diff --git a/src/Square/Types/InvoicePaymentMadeEvent.cs b/src/Square/Default/Types/InvoicePaymentMadeEvent.cs similarity index 97% rename from src/Square/Types/InvoicePaymentMadeEvent.cs rename to src/Square/Default/Types/InvoicePaymentMadeEvent.cs index f0e2a8c5..43f42884 100644 --- a/src/Square/Types/InvoicePaymentMadeEvent.cs +++ b/src/Square/Default/Types/InvoicePaymentMadeEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a payment that is associated with an [invoice](entity:Invoice) is completed. diff --git a/src/Square/Types/InvoicePaymentMadeEventData.cs b/src/Square/Default/Types/InvoicePaymentMadeEventData.cs similarity index 96% rename from src/Square/Types/InvoicePaymentMadeEventData.cs rename to src/Square/Default/Types/InvoicePaymentMadeEventData.cs index 4907b33a..59f1dd26 100644 --- a/src/Square/Types/InvoicePaymentMadeEventData.cs +++ b/src/Square/Default/Types/InvoicePaymentMadeEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record InvoicePaymentMadeEventData : IJsonOnDeserialized diff --git a/src/Square/Types/InvoicePaymentMadeEventObject.cs b/src/Square/Default/Types/InvoicePaymentMadeEventObject.cs similarity index 95% rename from src/Square/Types/InvoicePaymentMadeEventObject.cs rename to src/Square/Default/Types/InvoicePaymentMadeEventObject.cs index 91ca443b..59dba625 100644 --- a/src/Square/Types/InvoicePaymentMadeEventObject.cs +++ b/src/Square/Default/Types/InvoicePaymentMadeEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record InvoicePaymentMadeEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/InvoicePaymentReminder.cs b/src/Square/Default/Types/InvoicePaymentReminder.cs similarity index 98% rename from src/Square/Types/InvoicePaymentReminder.cs rename to src/Square/Default/Types/InvoicePaymentReminder.cs index 57ca8d99..a2eae0c8 100644 --- a/src/Square/Types/InvoicePaymentReminder.cs +++ b/src/Square/Default/Types/InvoicePaymentReminder.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Describes a payment request reminder (automatic notification) that Square sends diff --git a/src/Square/Types/InvoicePaymentReminderStatus.cs b/src/Square/Default/Types/InvoicePaymentReminderStatus.cs similarity index 98% rename from src/Square/Types/InvoicePaymentReminderStatus.cs rename to src/Square/Default/Types/InvoicePaymentReminderStatus.cs index 508e57b4..e4d70a6e 100644 --- a/src/Square/Types/InvoicePaymentReminderStatus.cs +++ b/src/Square/Default/Types/InvoicePaymentReminderStatus.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/InvoicePaymentRequest.cs b/src/Square/Default/Types/InvoicePaymentRequest.cs similarity index 99% rename from src/Square/Types/InvoicePaymentRequest.cs rename to src/Square/Default/Types/InvoicePaymentRequest.cs index ace828ea..4f0c7d84 100644 --- a/src/Square/Types/InvoicePaymentRequest.cs +++ b/src/Square/Default/Types/InvoicePaymentRequest.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a payment request for an [invoice](entity:Invoice). Invoices can specify a maximum diff --git a/src/Square/Types/InvoicePublishedEvent.cs b/src/Square/Default/Types/InvoicePublishedEvent.cs similarity index 97% rename from src/Square/Types/InvoicePublishedEvent.cs rename to src/Square/Default/Types/InvoicePublishedEvent.cs index 68028be8..5a1ec276 100644 --- a/src/Square/Types/InvoicePublishedEvent.cs +++ b/src/Square/Default/Types/InvoicePublishedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when an [Invoice](entity:Invoice) transitions from a draft to a non-draft status. diff --git a/src/Square/Types/InvoicePublishedEventData.cs b/src/Square/Default/Types/InvoicePublishedEventData.cs similarity index 96% rename from src/Square/Types/InvoicePublishedEventData.cs rename to src/Square/Default/Types/InvoicePublishedEventData.cs index 20b96304..87633128 100644 --- a/src/Square/Types/InvoicePublishedEventData.cs +++ b/src/Square/Default/Types/InvoicePublishedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record InvoicePublishedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/InvoicePublishedEventObject.cs b/src/Square/Default/Types/InvoicePublishedEventObject.cs similarity index 95% rename from src/Square/Types/InvoicePublishedEventObject.cs rename to src/Square/Default/Types/InvoicePublishedEventObject.cs index d0509c3a..94c9b00c 100644 --- a/src/Square/Types/InvoicePublishedEventObject.cs +++ b/src/Square/Default/Types/InvoicePublishedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record InvoicePublishedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/InvoiceQuery.cs b/src/Square/Default/Types/InvoiceQuery.cs similarity index 96% rename from src/Square/Types/InvoiceQuery.cs rename to src/Square/Default/Types/InvoiceQuery.cs index 98ff3e1e..f039af87 100644 --- a/src/Square/Types/InvoiceQuery.cs +++ b/src/Square/Default/Types/InvoiceQuery.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Describes query criteria for searching invoices. diff --git a/src/Square/Types/InvoiceRecipient.cs b/src/Square/Default/Types/InvoiceRecipient.cs similarity index 98% rename from src/Square/Types/InvoiceRecipient.cs rename to src/Square/Default/Types/InvoiceRecipient.cs index 69992507..5b8c775e 100644 --- a/src/Square/Types/InvoiceRecipient.cs +++ b/src/Square/Default/Types/InvoiceRecipient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a snapshot of customer data. This object stores customer data that is displayed on the invoice diff --git a/src/Square/Types/InvoiceRecipientTaxIds.cs b/src/Square/Default/Types/InvoiceRecipientTaxIds.cs similarity index 96% rename from src/Square/Types/InvoiceRecipientTaxIds.cs rename to src/Square/Default/Types/InvoiceRecipientTaxIds.cs index 256b177c..e2cd97e8 100644 --- a/src/Square/Types/InvoiceRecipientTaxIds.cs +++ b/src/Square/Default/Types/InvoiceRecipientTaxIds.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents the tax IDs for an invoice recipient. The country of the seller account determines diff --git a/src/Square/Types/InvoiceRefundedEvent.cs b/src/Square/Default/Types/InvoiceRefundedEvent.cs similarity index 97% rename from src/Square/Types/InvoiceRefundedEvent.cs rename to src/Square/Default/Types/InvoiceRefundedEvent.cs index 2e38c9b5..05c0eb25 100644 --- a/src/Square/Types/InvoiceRefundedEvent.cs +++ b/src/Square/Default/Types/InvoiceRefundedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a refund is applied toward a payment of an [invoice](entity:Invoice). diff --git a/src/Square/Types/InvoiceRefundedEventData.cs b/src/Square/Default/Types/InvoiceRefundedEventData.cs similarity index 96% rename from src/Square/Types/InvoiceRefundedEventData.cs rename to src/Square/Default/Types/InvoiceRefundedEventData.cs index 567d47e8..16b86e21 100644 --- a/src/Square/Types/InvoiceRefundedEventData.cs +++ b/src/Square/Default/Types/InvoiceRefundedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record InvoiceRefundedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/InvoiceRefundedEventObject.cs b/src/Square/Default/Types/InvoiceRefundedEventObject.cs similarity index 95% rename from src/Square/Types/InvoiceRefundedEventObject.cs rename to src/Square/Default/Types/InvoiceRefundedEventObject.cs index df403b69..595aa546 100644 --- a/src/Square/Types/InvoiceRefundedEventObject.cs +++ b/src/Square/Default/Types/InvoiceRefundedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record InvoiceRefundedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/InvoiceRequestMethod.cs b/src/Square/Default/Types/InvoiceRequestMethod.cs similarity index 98% rename from src/Square/Types/InvoiceRequestMethod.cs rename to src/Square/Default/Types/InvoiceRequestMethod.cs index f19725b4..ebb483f7 100644 --- a/src/Square/Types/InvoiceRequestMethod.cs +++ b/src/Square/Default/Types/InvoiceRequestMethod.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/InvoiceRequestType.cs b/src/Square/Default/Types/InvoiceRequestType.cs similarity index 98% rename from src/Square/Types/InvoiceRequestType.cs rename to src/Square/Default/Types/InvoiceRequestType.cs index 6e595309..870080f9 100644 --- a/src/Square/Types/InvoiceRequestType.cs +++ b/src/Square/Default/Types/InvoiceRequestType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/InvoiceScheduledChargeFailedEvent.cs b/src/Square/Default/Types/InvoiceScheduledChargeFailedEvent.cs similarity index 97% rename from src/Square/Types/InvoiceScheduledChargeFailedEvent.cs rename to src/Square/Default/Types/InvoiceScheduledChargeFailedEvent.cs index 45f071ad..6121f1b6 100644 --- a/src/Square/Types/InvoiceScheduledChargeFailedEvent.cs +++ b/src/Square/Default/Types/InvoiceScheduledChargeFailedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when an automatic scheduled payment for an [Invoice](entity:Invoice) has failed. diff --git a/src/Square/Types/InvoiceScheduledChargeFailedEventData.cs b/src/Square/Default/Types/InvoiceScheduledChargeFailedEventData.cs similarity index 96% rename from src/Square/Types/InvoiceScheduledChargeFailedEventData.cs rename to src/Square/Default/Types/InvoiceScheduledChargeFailedEventData.cs index f0463505..07adb6d1 100644 --- a/src/Square/Types/InvoiceScheduledChargeFailedEventData.cs +++ b/src/Square/Default/Types/InvoiceScheduledChargeFailedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record InvoiceScheduledChargeFailedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/InvoiceScheduledChargeFailedEventObject.cs b/src/Square/Default/Types/InvoiceScheduledChargeFailedEventObject.cs similarity index 95% rename from src/Square/Types/InvoiceScheduledChargeFailedEventObject.cs rename to src/Square/Default/Types/InvoiceScheduledChargeFailedEventObject.cs index 507ae782..3858d12f 100644 --- a/src/Square/Types/InvoiceScheduledChargeFailedEventObject.cs +++ b/src/Square/Default/Types/InvoiceScheduledChargeFailedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record InvoiceScheduledChargeFailedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/InvoiceSort.cs b/src/Square/Default/Types/InvoiceSort.cs similarity index 96% rename from src/Square/Types/InvoiceSort.cs rename to src/Square/Default/Types/InvoiceSort.cs index a3685753..991955eb 100644 --- a/src/Square/Types/InvoiceSort.cs +++ b/src/Square/Default/Types/InvoiceSort.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Identifies the sort field and sort order. diff --git a/src/Square/Types/InvoiceStatus.cs b/src/Square/Default/Types/InvoiceStatus.cs similarity index 99% rename from src/Square/Types/InvoiceStatus.cs rename to src/Square/Default/Types/InvoiceStatus.cs index 9bba448b..7d4be1a4 100644 --- a/src/Square/Types/InvoiceStatus.cs +++ b/src/Square/Default/Types/InvoiceStatus.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/InvoiceUpdatedEvent.cs b/src/Square/Default/Types/InvoiceUpdatedEvent.cs similarity index 97% rename from src/Square/Types/InvoiceUpdatedEvent.cs rename to src/Square/Default/Types/InvoiceUpdatedEvent.cs index 152a4ef4..a3b13a45 100644 --- a/src/Square/Types/InvoiceUpdatedEvent.cs +++ b/src/Square/Default/Types/InvoiceUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when an [Invoice](entity:Invoice) is updated. diff --git a/src/Square/Types/InvoiceUpdatedEventData.cs b/src/Square/Default/Types/InvoiceUpdatedEventData.cs similarity index 96% rename from src/Square/Types/InvoiceUpdatedEventData.cs rename to src/Square/Default/Types/InvoiceUpdatedEventData.cs index bd8de488..d441026a 100644 --- a/src/Square/Types/InvoiceUpdatedEventData.cs +++ b/src/Square/Default/Types/InvoiceUpdatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record InvoiceUpdatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/InvoiceUpdatedEventObject.cs b/src/Square/Default/Types/InvoiceUpdatedEventObject.cs similarity index 95% rename from src/Square/Types/InvoiceUpdatedEventObject.cs rename to src/Square/Default/Types/InvoiceUpdatedEventObject.cs index 5052a775..0a0d701f 100644 --- a/src/Square/Types/InvoiceUpdatedEventObject.cs +++ b/src/Square/Default/Types/InvoiceUpdatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record InvoiceUpdatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/ItemVariationLocationOverrides.cs b/src/Square/Default/Types/ItemVariationLocationOverrides.cs similarity index 98% rename from src/Square/Types/ItemVariationLocationOverrides.cs rename to src/Square/Default/Types/ItemVariationLocationOverrides.cs index ee3a2cb4..c4bd1d9b 100644 --- a/src/Square/Types/ItemVariationLocationOverrides.cs +++ b/src/Square/Default/Types/ItemVariationLocationOverrides.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Price and inventory alerting overrides for a `CatalogItemVariation` at a specific `Location`. diff --git a/src/Square/Types/Job.cs b/src/Square/Default/Types/Job.cs similarity index 98% rename from src/Square/Types/Job.cs rename to src/Square/Default/Types/Job.cs index b2537958..27483901 100644 --- a/src/Square/Types/Job.cs +++ b/src/Square/Default/Types/Job.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a job that can be assigned to [team members](entity:TeamMember). This object defines the diff --git a/src/Square/Types/JobAssignment.cs b/src/Square/Default/Types/JobAssignment.cs similarity index 98% rename from src/Square/Types/JobAssignment.cs rename to src/Square/Default/Types/JobAssignment.cs index b2b96e36..d86683c6 100644 --- a/src/Square/Types/JobAssignment.cs +++ b/src/Square/Default/Types/JobAssignment.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a job assigned to a [team member](entity:TeamMember), including the compensation the team diff --git a/src/Square/Types/JobAssignmentPayType.cs b/src/Square/Default/Types/JobAssignmentPayType.cs similarity index 98% rename from src/Square/Types/JobAssignmentPayType.cs rename to src/Square/Default/Types/JobAssignmentPayType.cs index 2fe1225b..7e587975 100644 --- a/src/Square/Types/JobAssignmentPayType.cs +++ b/src/Square/Default/Types/JobAssignmentPayType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/JobCreatedEvent.cs b/src/Square/Default/Types/JobCreatedEvent.cs similarity index 97% rename from src/Square/Types/JobCreatedEvent.cs rename to src/Square/Default/Types/JobCreatedEvent.cs index 92072c0d..9982db17 100644 --- a/src/Square/Types/JobCreatedEvent.cs +++ b/src/Square/Default/Types/JobCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a Job is created. diff --git a/src/Square/Types/JobCreatedEventData.cs b/src/Square/Default/Types/JobCreatedEventData.cs similarity index 96% rename from src/Square/Types/JobCreatedEventData.cs rename to src/Square/Default/Types/JobCreatedEventData.cs index a716ebe7..7a26c652 100644 --- a/src/Square/Types/JobCreatedEventData.cs +++ b/src/Square/Default/Types/JobCreatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record JobCreatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/JobCreatedEventObject.cs b/src/Square/Default/Types/JobCreatedEventObject.cs similarity index 95% rename from src/Square/Types/JobCreatedEventObject.cs rename to src/Square/Default/Types/JobCreatedEventObject.cs index efe6c15a..fc0b26b5 100644 --- a/src/Square/Types/JobCreatedEventObject.cs +++ b/src/Square/Default/Types/JobCreatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record JobCreatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/JobUpdatedEvent.cs b/src/Square/Default/Types/JobUpdatedEvent.cs similarity index 97% rename from src/Square/Types/JobUpdatedEvent.cs rename to src/Square/Default/Types/JobUpdatedEvent.cs index 2d8b8a70..1f92b767 100644 --- a/src/Square/Types/JobUpdatedEvent.cs +++ b/src/Square/Default/Types/JobUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a Job is updated. diff --git a/src/Square/Types/JobUpdatedEventData.cs b/src/Square/Default/Types/JobUpdatedEventData.cs similarity index 96% rename from src/Square/Types/JobUpdatedEventData.cs rename to src/Square/Default/Types/JobUpdatedEventData.cs index caa3931b..b26491e7 100644 --- a/src/Square/Types/JobUpdatedEventData.cs +++ b/src/Square/Default/Types/JobUpdatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record JobUpdatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/JobUpdatedEventObject.cs b/src/Square/Default/Types/JobUpdatedEventObject.cs similarity index 95% rename from src/Square/Types/JobUpdatedEventObject.cs rename to src/Square/Default/Types/JobUpdatedEventObject.cs index 1cbd659d..1ab83d11 100644 --- a/src/Square/Types/JobUpdatedEventObject.cs +++ b/src/Square/Default/Types/JobUpdatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record JobUpdatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/LaborScheduledShiftCreatedEvent.cs b/src/Square/Default/Types/LaborScheduledShiftCreatedEvent.cs similarity index 97% rename from src/Square/Types/LaborScheduledShiftCreatedEvent.cs rename to src/Square/Default/Types/LaborScheduledShiftCreatedEvent.cs index 3bed5dcb..bc2b1af9 100644 --- a/src/Square/Types/LaborScheduledShiftCreatedEvent.cs +++ b/src/Square/Default/Types/LaborScheduledShiftCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [ScheduledShift](entity:ScheduledShift) is created. diff --git a/src/Square/Types/LaborScheduledShiftCreatedEventData.cs b/src/Square/Default/Types/LaborScheduledShiftCreatedEventData.cs similarity index 96% rename from src/Square/Types/LaborScheduledShiftCreatedEventData.cs rename to src/Square/Default/Types/LaborScheduledShiftCreatedEventData.cs index a073fe28..63d5aae3 100644 --- a/src/Square/Types/LaborScheduledShiftCreatedEventData.cs +++ b/src/Square/Default/Types/LaborScheduledShiftCreatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record LaborScheduledShiftCreatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/LaborScheduledShiftCreatedEventObject.cs b/src/Square/Default/Types/LaborScheduledShiftCreatedEventObject.cs similarity index 95% rename from src/Square/Types/LaborScheduledShiftCreatedEventObject.cs rename to src/Square/Default/Types/LaborScheduledShiftCreatedEventObject.cs index d79f80ad..4547807d 100644 --- a/src/Square/Types/LaborScheduledShiftCreatedEventObject.cs +++ b/src/Square/Default/Types/LaborScheduledShiftCreatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record LaborScheduledShiftCreatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/LaborScheduledShiftDeletedEvent.cs b/src/Square/Default/Types/LaborScheduledShiftDeletedEvent.cs similarity index 97% rename from src/Square/Types/LaborScheduledShiftDeletedEvent.cs rename to src/Square/Default/Types/LaborScheduledShiftDeletedEvent.cs index 0e39d421..1d609b67 100644 --- a/src/Square/Types/LaborScheduledShiftDeletedEvent.cs +++ b/src/Square/Default/Types/LaborScheduledShiftDeletedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [ScheduledShift](entity:ScheduledShift) is deleted. diff --git a/src/Square/Types/LaborScheduledShiftDeletedEventData.cs b/src/Square/Default/Types/LaborScheduledShiftDeletedEventData.cs similarity index 96% rename from src/Square/Types/LaborScheduledShiftDeletedEventData.cs rename to src/Square/Default/Types/LaborScheduledShiftDeletedEventData.cs index 0cad5c88..5b30f7ca 100644 --- a/src/Square/Types/LaborScheduledShiftDeletedEventData.cs +++ b/src/Square/Default/Types/LaborScheduledShiftDeletedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record LaborScheduledShiftDeletedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/LaborScheduledShiftPublishedEvent.cs b/src/Square/Default/Types/LaborScheduledShiftPublishedEvent.cs similarity index 97% rename from src/Square/Types/LaborScheduledShiftPublishedEvent.cs rename to src/Square/Default/Types/LaborScheduledShiftPublishedEvent.cs index 6b88f1c9..a1cf766e 100644 --- a/src/Square/Types/LaborScheduledShiftPublishedEvent.cs +++ b/src/Square/Default/Types/LaborScheduledShiftPublishedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [ScheduledShift](entity:ScheduledShift) is published. diff --git a/src/Square/Types/LaborScheduledShiftPublishedEventData.cs b/src/Square/Default/Types/LaborScheduledShiftPublishedEventData.cs similarity index 96% rename from src/Square/Types/LaborScheduledShiftPublishedEventData.cs rename to src/Square/Default/Types/LaborScheduledShiftPublishedEventData.cs index 8448737a..88967f78 100644 --- a/src/Square/Types/LaborScheduledShiftPublishedEventData.cs +++ b/src/Square/Default/Types/LaborScheduledShiftPublishedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record LaborScheduledShiftPublishedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/LaborScheduledShiftPublishedEventObject.cs b/src/Square/Default/Types/LaborScheduledShiftPublishedEventObject.cs similarity index 95% rename from src/Square/Types/LaborScheduledShiftPublishedEventObject.cs rename to src/Square/Default/Types/LaborScheduledShiftPublishedEventObject.cs index 75727d09..33e8194d 100644 --- a/src/Square/Types/LaborScheduledShiftPublishedEventObject.cs +++ b/src/Square/Default/Types/LaborScheduledShiftPublishedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record LaborScheduledShiftPublishedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/LaborScheduledShiftUpdatedEvent.cs b/src/Square/Default/Types/LaborScheduledShiftUpdatedEvent.cs similarity index 97% rename from src/Square/Types/LaborScheduledShiftUpdatedEvent.cs rename to src/Square/Default/Types/LaborScheduledShiftUpdatedEvent.cs index fa62679a..c3082841 100644 --- a/src/Square/Types/LaborScheduledShiftUpdatedEvent.cs +++ b/src/Square/Default/Types/LaborScheduledShiftUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [ScheduledShift](entity:ScheduledShift) is updated. diff --git a/src/Square/Types/LaborScheduledShiftUpdatedEventData.cs b/src/Square/Default/Types/LaborScheduledShiftUpdatedEventData.cs similarity index 96% rename from src/Square/Types/LaborScheduledShiftUpdatedEventData.cs rename to src/Square/Default/Types/LaborScheduledShiftUpdatedEventData.cs index 95fd6b17..8adbec58 100644 --- a/src/Square/Types/LaborScheduledShiftUpdatedEventData.cs +++ b/src/Square/Default/Types/LaborScheduledShiftUpdatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record LaborScheduledShiftUpdatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/LaborScheduledShiftUpdatedEventObject.cs b/src/Square/Default/Types/LaborScheduledShiftUpdatedEventObject.cs similarity index 95% rename from src/Square/Types/LaborScheduledShiftUpdatedEventObject.cs rename to src/Square/Default/Types/LaborScheduledShiftUpdatedEventObject.cs index da368f52..006a06d4 100644 --- a/src/Square/Types/LaborScheduledShiftUpdatedEventObject.cs +++ b/src/Square/Default/Types/LaborScheduledShiftUpdatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record LaborScheduledShiftUpdatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/LaborShiftCreatedEvent.cs b/src/Square/Default/Types/LaborShiftCreatedEvent.cs similarity index 97% rename from src/Square/Types/LaborShiftCreatedEvent.cs rename to src/Square/Default/Types/LaborShiftCreatedEvent.cs index 4362e3f8..f92596c3 100644 --- a/src/Square/Types/LaborShiftCreatedEvent.cs +++ b/src/Square/Default/Types/LaborShiftCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a worker starts a [Shift](entity:Shift). diff --git a/src/Square/Types/LaborShiftCreatedEventData.cs b/src/Square/Default/Types/LaborShiftCreatedEventData.cs similarity index 96% rename from src/Square/Types/LaborShiftCreatedEventData.cs rename to src/Square/Default/Types/LaborShiftCreatedEventData.cs index bd913f01..52ceb3ba 100644 --- a/src/Square/Types/LaborShiftCreatedEventData.cs +++ b/src/Square/Default/Types/LaborShiftCreatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record LaborShiftCreatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/LaborShiftCreatedEventObject.cs b/src/Square/Default/Types/LaborShiftCreatedEventObject.cs similarity index 95% rename from src/Square/Types/LaborShiftCreatedEventObject.cs rename to src/Square/Default/Types/LaborShiftCreatedEventObject.cs index 4f6f7542..67a5994b 100644 --- a/src/Square/Types/LaborShiftCreatedEventObject.cs +++ b/src/Square/Default/Types/LaborShiftCreatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record LaborShiftCreatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/LaborShiftDeletedEvent.cs b/src/Square/Default/Types/LaborShiftDeletedEvent.cs similarity index 97% rename from src/Square/Types/LaborShiftDeletedEvent.cs rename to src/Square/Default/Types/LaborShiftDeletedEvent.cs index fc405fb4..b73bf244 100644 --- a/src/Square/Types/LaborShiftDeletedEvent.cs +++ b/src/Square/Default/Types/LaborShiftDeletedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [Shift](entity:Shift) is deleted. diff --git a/src/Square/Types/LaborShiftDeletedEventData.cs b/src/Square/Default/Types/LaborShiftDeletedEventData.cs similarity index 96% rename from src/Square/Types/LaborShiftDeletedEventData.cs rename to src/Square/Default/Types/LaborShiftDeletedEventData.cs index e0fe4d47..4947a3d2 100644 --- a/src/Square/Types/LaborShiftDeletedEventData.cs +++ b/src/Square/Default/Types/LaborShiftDeletedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record LaborShiftDeletedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/LaborShiftUpdatedEvent.cs b/src/Square/Default/Types/LaborShiftUpdatedEvent.cs similarity index 97% rename from src/Square/Types/LaborShiftUpdatedEvent.cs rename to src/Square/Default/Types/LaborShiftUpdatedEvent.cs index 3c5f2426..092b7fe5 100644 --- a/src/Square/Types/LaborShiftUpdatedEvent.cs +++ b/src/Square/Default/Types/LaborShiftUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [Shift](entity:Shift) is updated. diff --git a/src/Square/Types/LaborShiftUpdatedEventData.cs b/src/Square/Default/Types/LaborShiftUpdatedEventData.cs similarity index 96% rename from src/Square/Types/LaborShiftUpdatedEventData.cs rename to src/Square/Default/Types/LaborShiftUpdatedEventData.cs index aab234b5..c1f0fc07 100644 --- a/src/Square/Types/LaborShiftUpdatedEventData.cs +++ b/src/Square/Default/Types/LaborShiftUpdatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record LaborShiftUpdatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/LaborShiftUpdatedEventObject.cs b/src/Square/Default/Types/LaborShiftUpdatedEventObject.cs similarity index 95% rename from src/Square/Types/LaborShiftUpdatedEventObject.cs rename to src/Square/Default/Types/LaborShiftUpdatedEventObject.cs index 5fd44a55..bd3b3316 100644 --- a/src/Square/Types/LaborShiftUpdatedEventObject.cs +++ b/src/Square/Default/Types/LaborShiftUpdatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record LaborShiftUpdatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/LaborTimecardCreatedEvent.cs b/src/Square/Default/Types/LaborTimecardCreatedEvent.cs similarity index 97% rename from src/Square/Types/LaborTimecardCreatedEvent.cs rename to src/Square/Default/Types/LaborTimecardCreatedEvent.cs index e52e3ec0..b1543ef0 100644 --- a/src/Square/Types/LaborTimecardCreatedEvent.cs +++ b/src/Square/Default/Types/LaborTimecardCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a worker starts a [Timecard](entity:Timecard). diff --git a/src/Square/Types/LaborTimecardCreatedEventData.cs b/src/Square/Default/Types/LaborTimecardCreatedEventData.cs similarity index 96% rename from src/Square/Types/LaborTimecardCreatedEventData.cs rename to src/Square/Default/Types/LaborTimecardCreatedEventData.cs index 68ff72ec..d3478bc9 100644 --- a/src/Square/Types/LaborTimecardCreatedEventData.cs +++ b/src/Square/Default/Types/LaborTimecardCreatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record LaborTimecardCreatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/LaborTimecardCreatedEventObject.cs b/src/Square/Default/Types/LaborTimecardCreatedEventObject.cs similarity index 95% rename from src/Square/Types/LaborTimecardCreatedEventObject.cs rename to src/Square/Default/Types/LaborTimecardCreatedEventObject.cs index f6c48776..b30384cf 100644 --- a/src/Square/Types/LaborTimecardCreatedEventObject.cs +++ b/src/Square/Default/Types/LaborTimecardCreatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record LaborTimecardCreatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/LaborTimecardDeletedEvent.cs b/src/Square/Default/Types/LaborTimecardDeletedEvent.cs similarity index 97% rename from src/Square/Types/LaborTimecardDeletedEvent.cs rename to src/Square/Default/Types/LaborTimecardDeletedEvent.cs index ac6a8809..275e0429 100644 --- a/src/Square/Types/LaborTimecardDeletedEvent.cs +++ b/src/Square/Default/Types/LaborTimecardDeletedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [Timecard](entity:Timecard) is deleted. diff --git a/src/Square/Types/LaborTimecardDeletedEventData.cs b/src/Square/Default/Types/LaborTimecardDeletedEventData.cs similarity index 96% rename from src/Square/Types/LaborTimecardDeletedEventData.cs rename to src/Square/Default/Types/LaborTimecardDeletedEventData.cs index d0141034..672795fd 100644 --- a/src/Square/Types/LaborTimecardDeletedEventData.cs +++ b/src/Square/Default/Types/LaborTimecardDeletedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record LaborTimecardDeletedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/LaborTimecardUpdatedEvent.cs b/src/Square/Default/Types/LaborTimecardUpdatedEvent.cs similarity index 97% rename from src/Square/Types/LaborTimecardUpdatedEvent.cs rename to src/Square/Default/Types/LaborTimecardUpdatedEvent.cs index 8a72574f..ba1624a7 100644 --- a/src/Square/Types/LaborTimecardUpdatedEvent.cs +++ b/src/Square/Default/Types/LaborTimecardUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [Timecard](entity:Timecard) is updated. diff --git a/src/Square/Types/LaborTimecardUpdatedEventData.cs b/src/Square/Default/Types/LaborTimecardUpdatedEventData.cs similarity index 96% rename from src/Square/Types/LaborTimecardUpdatedEventData.cs rename to src/Square/Default/Types/LaborTimecardUpdatedEventData.cs index c1461736..e380c7e9 100644 --- a/src/Square/Types/LaborTimecardUpdatedEventData.cs +++ b/src/Square/Default/Types/LaborTimecardUpdatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record LaborTimecardUpdatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/LaborTimecardUpdatedEventObject.cs b/src/Square/Default/Types/LaborTimecardUpdatedEventObject.cs similarity index 95% rename from src/Square/Types/LaborTimecardUpdatedEventObject.cs rename to src/Square/Default/Types/LaborTimecardUpdatedEventObject.cs index 3858937e..9f67d5f1 100644 --- a/src/Square/Types/LaborTimecardUpdatedEventObject.cs +++ b/src/Square/Default/Types/LaborTimecardUpdatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record LaborTimecardUpdatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/LinkCustomerToGiftCardResponse.cs b/src/Square/Default/Types/LinkCustomerToGiftCardResponse.cs similarity index 96% rename from src/Square/Types/LinkCustomerToGiftCardResponse.cs rename to src/Square/Default/Types/LinkCustomerToGiftCardResponse.cs index 504a4554..8e685bc6 100644 --- a/src/Square/Types/LinkCustomerToGiftCardResponse.cs +++ b/src/Square/Default/Types/LinkCustomerToGiftCardResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A response that contains the linked `GiftCard` object. If the request resulted in errors, diff --git a/src/Square/Types/ListBankAccountsResponse.cs b/src/Square/Default/Types/ListBankAccountsResponse.cs similarity index 97% rename from src/Square/Types/ListBankAccountsResponse.cs rename to src/Square/Default/Types/ListBankAccountsResponse.cs index 7c394ade..f88f0201 100644 --- a/src/Square/Types/ListBankAccountsResponse.cs +++ b/src/Square/Default/Types/ListBankAccountsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Response object returned by ListBankAccounts. diff --git a/src/Square/Types/ListBookingCustomAttributeDefinitionsResponse.cs b/src/Square/Default/Types/ListBookingCustomAttributeDefinitionsResponse.cs similarity index 98% rename from src/Square/Types/ListBookingCustomAttributeDefinitionsResponse.cs rename to src/Square/Default/Types/ListBookingCustomAttributeDefinitionsResponse.cs index e54889a8..21c2c41c 100644 --- a/src/Square/Types/ListBookingCustomAttributeDefinitionsResponse.cs +++ b/src/Square/Default/Types/ListBookingCustomAttributeDefinitionsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [ListBookingCustomAttributeDefinitions](api-endpoint:BookingCustomAttributes-ListBookingCustomAttributeDefinitions) response. diff --git a/src/Square/Types/ListBookingCustomAttributesResponse.cs b/src/Square/Default/Types/ListBookingCustomAttributesResponse.cs similarity index 98% rename from src/Square/Types/ListBookingCustomAttributesResponse.cs rename to src/Square/Default/Types/ListBookingCustomAttributesResponse.cs index 02a777cd..545cc18c 100644 --- a/src/Square/Types/ListBookingCustomAttributesResponse.cs +++ b/src/Square/Default/Types/ListBookingCustomAttributesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [ListBookingCustomAttributes](api-endpoint:BookingCustomAttributes-ListBookingCustomAttributes) response. diff --git a/src/Square/Types/ListBookingsResponse.cs b/src/Square/Default/Types/ListBookingsResponse.cs similarity index 96% rename from src/Square/Types/ListBookingsResponse.cs rename to src/Square/Default/Types/ListBookingsResponse.cs index aa3824e3..0808a871 100644 --- a/src/Square/Types/ListBookingsResponse.cs +++ b/src/Square/Default/Types/ListBookingsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record ListBookingsResponse : IJsonOnDeserialized diff --git a/src/Square/Types/ListBreakTypesResponse.cs b/src/Square/Default/Types/ListBreakTypesResponse.cs similarity index 97% rename from src/Square/Types/ListBreakTypesResponse.cs rename to src/Square/Default/Types/ListBreakTypesResponse.cs index 7396c702..80280bc0 100644 --- a/src/Square/Types/ListBreakTypesResponse.cs +++ b/src/Square/Default/Types/ListBreakTypesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The response to a request for a set of `BreakType` objects. The response contains diff --git a/src/Square/Types/ListCardsResponse.cs b/src/Square/Default/Types/ListCardsResponse.cs similarity index 97% rename from src/Square/Types/ListCardsResponse.cs rename to src/Square/Default/Types/ListCardsResponse.cs index 9c074c48..7ebf40c5 100644 --- a/src/Square/Types/ListCardsResponse.cs +++ b/src/Square/Default/Types/ListCardsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/ListCashDrawerShiftEventsResponse.cs b/src/Square/Default/Types/ListCashDrawerShiftEventsResponse.cs similarity index 97% rename from src/Square/Types/ListCashDrawerShiftEventsResponse.cs rename to src/Square/Default/Types/ListCashDrawerShiftEventsResponse.cs index ece44d55..fc035eff 100644 --- a/src/Square/Types/ListCashDrawerShiftEventsResponse.cs +++ b/src/Square/Default/Types/ListCashDrawerShiftEventsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record ListCashDrawerShiftEventsResponse : IJsonOnDeserialized diff --git a/src/Square/Types/ListCashDrawerShiftsResponse.cs b/src/Square/Default/Types/ListCashDrawerShiftsResponse.cs similarity index 97% rename from src/Square/Types/ListCashDrawerShiftsResponse.cs rename to src/Square/Default/Types/ListCashDrawerShiftsResponse.cs index aeb94c5f..64d0eb0a 100644 --- a/src/Square/Types/ListCashDrawerShiftsResponse.cs +++ b/src/Square/Default/Types/ListCashDrawerShiftsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record ListCashDrawerShiftsResponse : IJsonOnDeserialized diff --git a/src/Square/Types/ListCatalogResponse.cs b/src/Square/Default/Types/ListCatalogResponse.cs similarity index 97% rename from src/Square/Types/ListCatalogResponse.cs rename to src/Square/Default/Types/ListCatalogResponse.cs index 593047f5..ca7941bb 100644 --- a/src/Square/Types/ListCatalogResponse.cs +++ b/src/Square/Default/Types/ListCatalogResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record ListCatalogResponse : IJsonOnDeserialized diff --git a/src/Square/Types/ListChannelsResponse.cs b/src/Square/Default/Types/ListChannelsResponse.cs similarity index 96% rename from src/Square/Types/ListChannelsResponse.cs rename to src/Square/Default/Types/ListChannelsResponse.cs index d9b024ab..ba053e35 100644 --- a/src/Square/Types/ListChannelsResponse.cs +++ b/src/Square/Default/Types/ListChannelsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record ListChannelsResponse : IJsonOnDeserialized diff --git a/src/Square/Types/ListCustomerCustomAttributeDefinitionsResponse.cs b/src/Square/Default/Types/ListCustomerCustomAttributeDefinitionsResponse.cs similarity index 98% rename from src/Square/Types/ListCustomerCustomAttributeDefinitionsResponse.cs rename to src/Square/Default/Types/ListCustomerCustomAttributeDefinitionsResponse.cs index db672183..06ebb37c 100644 --- a/src/Square/Types/ListCustomerCustomAttributeDefinitionsResponse.cs +++ b/src/Square/Default/Types/ListCustomerCustomAttributeDefinitionsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [ListCustomerCustomAttributeDefinitions](api-endpoint:CustomerCustomAttributes-ListCustomerCustomAttributeDefinitions) response. diff --git a/src/Square/Types/ListCustomerCustomAttributesResponse.cs b/src/Square/Default/Types/ListCustomerCustomAttributesResponse.cs similarity index 98% rename from src/Square/Types/ListCustomerCustomAttributesResponse.cs rename to src/Square/Default/Types/ListCustomerCustomAttributesResponse.cs index 5e6920db..0fab77ad 100644 --- a/src/Square/Types/ListCustomerCustomAttributesResponse.cs +++ b/src/Square/Default/Types/ListCustomerCustomAttributesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [ListCustomerCustomAttributes](api-endpoint:CustomerCustomAttributes-ListCustomerCustomAttributes) response. diff --git a/src/Square/Types/ListCustomerGroupsResponse.cs b/src/Square/Default/Types/ListCustomerGroupsResponse.cs similarity index 97% rename from src/Square/Types/ListCustomerGroupsResponse.cs rename to src/Square/Default/Types/ListCustomerGroupsResponse.cs index d661cbc3..132cd3a8 100644 --- a/src/Square/Types/ListCustomerGroupsResponse.cs +++ b/src/Square/Default/Types/ListCustomerGroupsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/ListCustomerSegmentsResponse.cs b/src/Square/Default/Types/ListCustomerSegmentsResponse.cs similarity index 97% rename from src/Square/Types/ListCustomerSegmentsResponse.cs rename to src/Square/Default/Types/ListCustomerSegmentsResponse.cs index 2d330c7e..130e2817 100644 --- a/src/Square/Types/ListCustomerSegmentsResponse.cs +++ b/src/Square/Default/Types/ListCustomerSegmentsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body for requests to the `ListCustomerSegments` endpoint. diff --git a/src/Square/Types/ListCustomersResponse.cs b/src/Square/Default/Types/ListCustomersResponse.cs similarity index 98% rename from src/Square/Types/ListCustomersResponse.cs rename to src/Square/Default/Types/ListCustomersResponse.cs index 2d76da7f..2c23f8c0 100644 --- a/src/Square/Types/ListCustomersResponse.cs +++ b/src/Square/Default/Types/ListCustomersResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/ListDeviceCodesResponse.cs b/src/Square/Default/Types/ListDeviceCodesResponse.cs similarity index 97% rename from src/Square/Types/ListDeviceCodesResponse.cs rename to src/Square/Default/Types/ListDeviceCodesResponse.cs index 7712fba8..e6d2bd21 100644 --- a/src/Square/Types/ListDeviceCodesResponse.cs +++ b/src/Square/Default/Types/ListDeviceCodesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record ListDeviceCodesResponse : IJsonOnDeserialized diff --git a/src/Square/Types/ListDevicesResponse.cs b/src/Square/Default/Types/ListDevicesResponse.cs similarity index 97% rename from src/Square/Types/ListDevicesResponse.cs rename to src/Square/Default/Types/ListDevicesResponse.cs index 13a8951f..dac0d5b5 100644 --- a/src/Square/Types/ListDevicesResponse.cs +++ b/src/Square/Default/Types/ListDevicesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record ListDevicesResponse : IJsonOnDeserialized diff --git a/src/Square/Types/ListDisputeEvidenceResponse.cs b/src/Square/Default/Types/ListDisputeEvidenceResponse.cs similarity index 97% rename from src/Square/Types/ListDisputeEvidenceResponse.cs rename to src/Square/Default/Types/ListDisputeEvidenceResponse.cs index b7380c19..4c26ab3a 100644 --- a/src/Square/Types/ListDisputeEvidenceResponse.cs +++ b/src/Square/Default/Types/ListDisputeEvidenceResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields in a `ListDisputeEvidence` response. diff --git a/src/Square/Types/ListDisputesResponse.cs b/src/Square/Default/Types/ListDisputesResponse.cs similarity index 97% rename from src/Square/Types/ListDisputesResponse.cs rename to src/Square/Default/Types/ListDisputesResponse.cs index b19abcd9..bb898c2a 100644 --- a/src/Square/Types/ListDisputesResponse.cs +++ b/src/Square/Default/Types/ListDisputesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines fields in a `ListDisputes` response. diff --git a/src/Square/Types/ListEmployeeWagesResponse.cs b/src/Square/Default/Types/ListEmployeeWagesResponse.cs similarity index 97% rename from src/Square/Types/ListEmployeeWagesResponse.cs rename to src/Square/Default/Types/ListEmployeeWagesResponse.cs index 8570c34d..fa327b5b 100644 --- a/src/Square/Types/ListEmployeeWagesResponse.cs +++ b/src/Square/Default/Types/ListEmployeeWagesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The response to a request for a set of `EmployeeWage` objects. The response contains diff --git a/src/Square/Types/ListEmployeesResponse.cs b/src/Square/Default/Types/ListEmployeesResponse.cs similarity index 96% rename from src/Square/Types/ListEmployeesResponse.cs rename to src/Square/Default/Types/ListEmployeesResponse.cs index da2375ae..fc26bb11 100644 --- a/src/Square/Types/ListEmployeesResponse.cs +++ b/src/Square/Default/Types/ListEmployeesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record ListEmployeesResponse : IJsonOnDeserialized diff --git a/src/Square/Types/ListEventTypesResponse.cs b/src/Square/Default/Types/ListEventTypesResponse.cs similarity index 97% rename from src/Square/Types/ListEventTypesResponse.cs rename to src/Square/Default/Types/ListEventTypesResponse.cs index fd96a7e8..d9fae4ad 100644 --- a/src/Square/Types/ListEventTypesResponse.cs +++ b/src/Square/Default/Types/ListEventTypesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/ListGiftCardActivitiesResponse.cs b/src/Square/Default/Types/ListGiftCardActivitiesResponse.cs similarity index 97% rename from src/Square/Types/ListGiftCardActivitiesResponse.cs rename to src/Square/Default/Types/ListGiftCardActivitiesResponse.cs index d7a5c9f9..0cf9ad40 100644 --- a/src/Square/Types/ListGiftCardActivitiesResponse.cs +++ b/src/Square/Default/Types/ListGiftCardActivitiesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A response that contains a list of `GiftCardActivity` objects. If the request resulted in errors, diff --git a/src/Square/Types/ListGiftCardsResponse.cs b/src/Square/Default/Types/ListGiftCardsResponse.cs similarity index 97% rename from src/Square/Types/ListGiftCardsResponse.cs rename to src/Square/Default/Types/ListGiftCardsResponse.cs index 2d82954a..e90809d4 100644 --- a/src/Square/Types/ListGiftCardsResponse.cs +++ b/src/Square/Default/Types/ListGiftCardsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A response that contains a list of `GiftCard` objects. If the request resulted in errors, diff --git a/src/Square/Types/ListInvoicesResponse.cs b/src/Square/Default/Types/ListInvoicesResponse.cs similarity index 97% rename from src/Square/Types/ListInvoicesResponse.cs rename to src/Square/Default/Types/ListInvoicesResponse.cs index 5e307b48..94f72c03 100644 --- a/src/Square/Types/ListInvoicesResponse.cs +++ b/src/Square/Default/Types/ListInvoicesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Describes a `ListInvoice` response. diff --git a/src/Square/Types/ListJobsResponse.cs b/src/Square/Default/Types/ListJobsResponse.cs similarity index 97% rename from src/Square/Types/ListJobsResponse.cs rename to src/Square/Default/Types/ListJobsResponse.cs index 19c29f96..23554768 100644 --- a/src/Square/Types/ListJobsResponse.cs +++ b/src/Square/Default/Types/ListJobsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [ListJobs](api-endpoint:Team-ListJobs) response. Either `jobs` or `errors` diff --git a/src/Square/Types/ListLocationBookingProfilesResponse.cs b/src/Square/Default/Types/ListLocationBookingProfilesResponse.cs similarity index 97% rename from src/Square/Types/ListLocationBookingProfilesResponse.cs rename to src/Square/Default/Types/ListLocationBookingProfilesResponse.cs index 2613ab35..2be2f18d 100644 --- a/src/Square/Types/ListLocationBookingProfilesResponse.cs +++ b/src/Square/Default/Types/ListLocationBookingProfilesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record ListLocationBookingProfilesResponse : IJsonOnDeserialized diff --git a/src/Square/Types/ListLocationCustomAttributeDefinitionsResponse.cs b/src/Square/Default/Types/ListLocationCustomAttributeDefinitionsResponse.cs similarity index 98% rename from src/Square/Types/ListLocationCustomAttributeDefinitionsResponse.cs rename to src/Square/Default/Types/ListLocationCustomAttributeDefinitionsResponse.cs index 97809358..2436a162 100644 --- a/src/Square/Types/ListLocationCustomAttributeDefinitionsResponse.cs +++ b/src/Square/Default/Types/ListLocationCustomAttributeDefinitionsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [ListLocationCustomAttributeDefinitions](api-endpoint:LocationCustomAttributes-ListLocationCustomAttributeDefinitions) response. diff --git a/src/Square/Types/ListLocationCustomAttributesResponse.cs b/src/Square/Default/Types/ListLocationCustomAttributesResponse.cs similarity index 98% rename from src/Square/Types/ListLocationCustomAttributesResponse.cs rename to src/Square/Default/Types/ListLocationCustomAttributesResponse.cs index a20e804e..f77ceead 100644 --- a/src/Square/Types/ListLocationCustomAttributesResponse.cs +++ b/src/Square/Default/Types/ListLocationCustomAttributesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [ListLocationCustomAttributes](api-endpoint:LocationCustomAttributes-ListLocationCustomAttributes) response. diff --git a/src/Square/Types/ListLocationsResponse.cs b/src/Square/Default/Types/ListLocationsResponse.cs similarity index 96% rename from src/Square/Types/ListLocationsResponse.cs rename to src/Square/Default/Types/ListLocationsResponse.cs index 6189cecc..00fec05c 100644 --- a/src/Square/Types/ListLocationsResponse.cs +++ b/src/Square/Default/Types/ListLocationsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of a request diff --git a/src/Square/Types/ListLoyaltyProgramsResponse.cs b/src/Square/Default/Types/ListLoyaltyProgramsResponse.cs similarity index 96% rename from src/Square/Types/ListLoyaltyProgramsResponse.cs rename to src/Square/Default/Types/ListLoyaltyProgramsResponse.cs index c514533c..e8e119fe 100644 --- a/src/Square/Types/ListLoyaltyProgramsResponse.cs +++ b/src/Square/Default/Types/ListLoyaltyProgramsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A response that contains all loyalty programs. diff --git a/src/Square/Types/ListLoyaltyPromotionsResponse.cs b/src/Square/Default/Types/ListLoyaltyPromotionsResponse.cs similarity index 97% rename from src/Square/Types/ListLoyaltyPromotionsResponse.cs rename to src/Square/Default/Types/ListLoyaltyPromotionsResponse.cs index 75fdf8c1..dbae32fb 100644 --- a/src/Square/Types/ListLoyaltyPromotionsResponse.cs +++ b/src/Square/Default/Types/ListLoyaltyPromotionsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [ListLoyaltyPromotions](api-endpoint:Loyalty-ListLoyaltyPromotions) response. diff --git a/src/Square/Types/ListMerchantCustomAttributeDefinitionsResponse.cs b/src/Square/Default/Types/ListMerchantCustomAttributeDefinitionsResponse.cs similarity index 98% rename from src/Square/Types/ListMerchantCustomAttributeDefinitionsResponse.cs rename to src/Square/Default/Types/ListMerchantCustomAttributeDefinitionsResponse.cs index 69c86d37..2434f606 100644 --- a/src/Square/Types/ListMerchantCustomAttributeDefinitionsResponse.cs +++ b/src/Square/Default/Types/ListMerchantCustomAttributeDefinitionsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [ListMerchantCustomAttributeDefinitions](api-endpoint:MerchantCustomAttributes-ListMerchantCustomAttributeDefinitions) response. diff --git a/src/Square/Types/ListMerchantCustomAttributesResponse.cs b/src/Square/Default/Types/ListMerchantCustomAttributesResponse.cs similarity index 98% rename from src/Square/Types/ListMerchantCustomAttributesResponse.cs rename to src/Square/Default/Types/ListMerchantCustomAttributesResponse.cs index 3349fcb3..9c281462 100644 --- a/src/Square/Types/ListMerchantCustomAttributesResponse.cs +++ b/src/Square/Default/Types/ListMerchantCustomAttributesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [ListMerchantCustomAttributes](api-endpoint:MerchantCustomAttributes-ListMerchantCustomAttributes) response. diff --git a/src/Square/Types/ListMerchantsResponse.cs b/src/Square/Default/Types/ListMerchantsResponse.cs similarity index 97% rename from src/Square/Types/ListMerchantsResponse.cs rename to src/Square/Default/Types/ListMerchantsResponse.cs index abaf696e..96fe73fb 100644 --- a/src/Square/Types/ListMerchantsResponse.cs +++ b/src/Square/Default/Types/ListMerchantsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The response object returned by the [ListMerchant](api-endpoint:Merchants-ListMerchants) endpoint. diff --git a/src/Square/Types/ListOrderCustomAttributeDefinitionsResponse.cs b/src/Square/Default/Types/ListOrderCustomAttributeDefinitionsResponse.cs similarity index 97% rename from src/Square/Types/ListOrderCustomAttributeDefinitionsResponse.cs rename to src/Square/Default/Types/ListOrderCustomAttributeDefinitionsResponse.cs index c4c36539..733e1ae7 100644 --- a/src/Square/Types/ListOrderCustomAttributeDefinitionsResponse.cs +++ b/src/Square/Default/Types/ListOrderCustomAttributeDefinitionsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a response from listing order custom attribute definitions. diff --git a/src/Square/Types/ListOrderCustomAttributesResponse.cs b/src/Square/Default/Types/ListOrderCustomAttributesResponse.cs similarity index 97% rename from src/Square/Types/ListOrderCustomAttributesResponse.cs rename to src/Square/Default/Types/ListOrderCustomAttributesResponse.cs index 074a715f..3ba269ae 100644 --- a/src/Square/Types/ListOrderCustomAttributesResponse.cs +++ b/src/Square/Default/Types/ListOrderCustomAttributesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a response from listing order custom attributes. diff --git a/src/Square/Types/ListPaymentLinksResponse.cs b/src/Square/Default/Types/ListPaymentLinksResponse.cs similarity index 97% rename from src/Square/Types/ListPaymentLinksResponse.cs rename to src/Square/Default/Types/ListPaymentLinksResponse.cs index 77ad39ed..0f680c88 100644 --- a/src/Square/Types/ListPaymentLinksResponse.cs +++ b/src/Square/Default/Types/ListPaymentLinksResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record ListPaymentLinksResponse : IJsonOnDeserialized diff --git a/src/Square/Types/ListPaymentRefundsRequestSortField.cs b/src/Square/Default/Types/ListPaymentRefundsRequestSortField.cs similarity index 98% rename from src/Square/Types/ListPaymentRefundsRequestSortField.cs rename to src/Square/Default/Types/ListPaymentRefundsRequestSortField.cs index b1be15d9..c5ae6b79 100644 --- a/src/Square/Types/ListPaymentRefundsRequestSortField.cs +++ b/src/Square/Default/Types/ListPaymentRefundsRequestSortField.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/ListPaymentRefundsResponse.cs b/src/Square/Default/Types/ListPaymentRefundsResponse.cs similarity index 97% rename from src/Square/Types/ListPaymentRefundsResponse.cs rename to src/Square/Default/Types/ListPaymentRefundsResponse.cs index 012515c3..4aa6b2ae 100644 --- a/src/Square/Types/ListPaymentRefundsResponse.cs +++ b/src/Square/Default/Types/ListPaymentRefundsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the response returned by [ListPaymentRefunds](api-endpoint:Refunds-ListPaymentRefunds). diff --git a/src/Square/Types/ListPaymentsRequestSortField.cs b/src/Square/Default/Types/ListPaymentsRequestSortField.cs similarity index 98% rename from src/Square/Types/ListPaymentsRequestSortField.cs rename to src/Square/Default/Types/ListPaymentsRequestSortField.cs index bd4a5580..9ce0e5b7 100644 --- a/src/Square/Types/ListPaymentsRequestSortField.cs +++ b/src/Square/Default/Types/ListPaymentsRequestSortField.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/ListPaymentsResponse.cs b/src/Square/Default/Types/ListPaymentsResponse.cs similarity index 97% rename from src/Square/Types/ListPaymentsResponse.cs rename to src/Square/Default/Types/ListPaymentsResponse.cs index d53d1788..bea46eec 100644 --- a/src/Square/Types/ListPaymentsResponse.cs +++ b/src/Square/Default/Types/ListPaymentsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the response returned by [ListPayments](api-endpoint:Payments-ListPayments). diff --git a/src/Square/Types/ListPayoutEntriesResponse.cs b/src/Square/Default/Types/ListPayoutEntriesResponse.cs similarity index 97% rename from src/Square/Types/ListPayoutEntriesResponse.cs rename to src/Square/Default/Types/ListPayoutEntriesResponse.cs index f2912dc9..f03ad88f 100644 --- a/src/Square/Types/ListPayoutEntriesResponse.cs +++ b/src/Square/Default/Types/ListPayoutEntriesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The response to retrieve payout records entries. diff --git a/src/Square/Types/ListPayoutsResponse.cs b/src/Square/Default/Types/ListPayoutsResponse.cs similarity index 97% rename from src/Square/Types/ListPayoutsResponse.cs rename to src/Square/Default/Types/ListPayoutsResponse.cs index 1b1b348f..d2a9dd42 100644 --- a/src/Square/Types/ListPayoutsResponse.cs +++ b/src/Square/Default/Types/ListPayoutsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The response to retrieve payout records entries. diff --git a/src/Square/Types/ListSitesResponse.cs b/src/Square/Default/Types/ListSitesResponse.cs similarity index 96% rename from src/Square/Types/ListSitesResponse.cs rename to src/Square/Default/Types/ListSitesResponse.cs index adbce503..cd2d6aa7 100644 --- a/src/Square/Types/ListSitesResponse.cs +++ b/src/Square/Default/Types/ListSitesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a `ListSites` response. The response can include either `sites` or `errors`. diff --git a/src/Square/Types/ListSubscriptionEventsResponse.cs b/src/Square/Default/Types/ListSubscriptionEventsResponse.cs similarity index 97% rename from src/Square/Types/ListSubscriptionEventsResponse.cs rename to src/Square/Default/Types/ListSubscriptionEventsResponse.cs index ccd259f9..ce3ded8a 100644 --- a/src/Square/Types/ListSubscriptionEventsResponse.cs +++ b/src/Square/Default/Types/ListSubscriptionEventsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines output parameters in a response from the diff --git a/src/Square/Types/ListTeamMemberBookingProfilesResponse.cs b/src/Square/Default/Types/ListTeamMemberBookingProfilesResponse.cs similarity index 97% rename from src/Square/Types/ListTeamMemberBookingProfilesResponse.cs rename to src/Square/Default/Types/ListTeamMemberBookingProfilesResponse.cs index 4a536aad..c8cf9d0d 100644 --- a/src/Square/Types/ListTeamMemberBookingProfilesResponse.cs +++ b/src/Square/Default/Types/ListTeamMemberBookingProfilesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record ListTeamMemberBookingProfilesResponse : IJsonOnDeserialized diff --git a/src/Square/Types/ListTeamMemberWagesResponse.cs b/src/Square/Default/Types/ListTeamMemberWagesResponse.cs similarity index 97% rename from src/Square/Types/ListTeamMemberWagesResponse.cs rename to src/Square/Default/Types/ListTeamMemberWagesResponse.cs index a2ad076a..d86766a2 100644 --- a/src/Square/Types/ListTeamMemberWagesResponse.cs +++ b/src/Square/Default/Types/ListTeamMemberWagesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The response to a request for a set of `TeamMemberWage` objects. The response contains diff --git a/src/Square/Types/ListTransactionsResponse.cs b/src/Square/Default/Types/ListTransactionsResponse.cs similarity index 97% rename from src/Square/Types/ListTransactionsResponse.cs rename to src/Square/Default/Types/ListTransactionsResponse.cs index c6fd3f91..4c26e1ba 100644 --- a/src/Square/Types/ListTransactionsResponse.cs +++ b/src/Square/Default/Types/ListTransactionsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/ListWebhookEventTypesResponse.cs b/src/Square/Default/Types/ListWebhookEventTypesResponse.cs similarity index 97% rename from src/Square/Types/ListWebhookEventTypesResponse.cs rename to src/Square/Default/Types/ListWebhookEventTypesResponse.cs index 6df9dba3..04cf7275 100644 --- a/src/Square/Types/ListWebhookEventTypesResponse.cs +++ b/src/Square/Default/Types/ListWebhookEventTypesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/ListWebhookSubscriptionsResponse.cs b/src/Square/Default/Types/ListWebhookSubscriptionsResponse.cs similarity index 97% rename from src/Square/Types/ListWebhookSubscriptionsResponse.cs rename to src/Square/Default/Types/ListWebhookSubscriptionsResponse.cs index d366718c..1a1ca49e 100644 --- a/src/Square/Types/ListWebhookSubscriptionsResponse.cs +++ b/src/Square/Default/Types/ListWebhookSubscriptionsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/ListWorkweekConfigsResponse.cs b/src/Square/Default/Types/ListWorkweekConfigsResponse.cs similarity index 97% rename from src/Square/Types/ListWorkweekConfigsResponse.cs rename to src/Square/Default/Types/ListWorkweekConfigsResponse.cs index af99fda9..3a044d2e 100644 --- a/src/Square/Types/ListWorkweekConfigsResponse.cs +++ b/src/Square/Default/Types/ListWorkweekConfigsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The response to a request for a set of `WorkweekConfig` objects. The response contains diff --git a/src/Square/Types/Location.cs b/src/Square/Default/Types/Location.cs similarity index 99% rename from src/Square/Types/Location.cs rename to src/Square/Default/Types/Location.cs index 71b965a4..1fd4c66d 100644 --- a/src/Square/Types/Location.cs +++ b/src/Square/Default/Types/Location.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents one of a business' [locations](https://developer.squareup.com/docs/locations-api). diff --git a/src/Square/Types/LocationBookingProfile.cs b/src/Square/Default/Types/LocationBookingProfile.cs similarity index 97% rename from src/Square/Types/LocationBookingProfile.cs rename to src/Square/Default/Types/LocationBookingProfile.cs index e94db815..43958ed2 100644 --- a/src/Square/Types/LocationBookingProfile.cs +++ b/src/Square/Default/Types/LocationBookingProfile.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The booking profile of a seller's location, including the location's ID and whether the location is enabled for online booking. diff --git a/src/Square/Types/LocationCapability.cs b/src/Square/Default/Types/LocationCapability.cs similarity index 98% rename from src/Square/Types/LocationCapability.cs rename to src/Square/Default/Types/LocationCapability.cs index 69bb20b2..cbb7000b 100644 --- a/src/Square/Types/LocationCapability.cs +++ b/src/Square/Default/Types/LocationCapability.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/LocationCreatedEvent.cs b/src/Square/Default/Types/LocationCreatedEvent.cs similarity index 97% rename from src/Square/Types/LocationCreatedEvent.cs rename to src/Square/Default/Types/LocationCreatedEvent.cs index 2cd0dd8e..fc4cc5e1 100644 --- a/src/Square/Types/LocationCreatedEvent.cs +++ b/src/Square/Default/Types/LocationCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [Location](entity:Location) is created. diff --git a/src/Square/Types/LocationCreatedEventData.cs b/src/Square/Default/Types/LocationCreatedEventData.cs similarity index 96% rename from src/Square/Types/LocationCreatedEventData.cs rename to src/Square/Default/Types/LocationCreatedEventData.cs index a56203e7..a09d73d4 100644 --- a/src/Square/Types/LocationCreatedEventData.cs +++ b/src/Square/Default/Types/LocationCreatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record LocationCreatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/LocationCustomAttributeDefinitionOwnedCreatedEvent.cs b/src/Square/Default/Types/LocationCustomAttributeDefinitionOwnedCreatedEvent.cs similarity index 97% rename from src/Square/Types/LocationCustomAttributeDefinitionOwnedCreatedEvent.cs rename to src/Square/Default/Types/LocationCustomAttributeDefinitionOwnedCreatedEvent.cs index 8b7a1a29..7ec31722 100644 --- a/src/Square/Types/LocationCustomAttributeDefinitionOwnedCreatedEvent.cs +++ b/src/Square/Default/Types/LocationCustomAttributeDefinitionOwnedCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a location [custom attribute definition](entity:CustomAttributeDefinition) diff --git a/src/Square/Types/LocationCustomAttributeDefinitionOwnedDeletedEvent.cs b/src/Square/Default/Types/LocationCustomAttributeDefinitionOwnedDeletedEvent.cs similarity index 98% rename from src/Square/Types/LocationCustomAttributeDefinitionOwnedDeletedEvent.cs rename to src/Square/Default/Types/LocationCustomAttributeDefinitionOwnedDeletedEvent.cs index 3f4a5fed..68ca8081 100644 --- a/src/Square/Types/LocationCustomAttributeDefinitionOwnedDeletedEvent.cs +++ b/src/Square/Default/Types/LocationCustomAttributeDefinitionOwnedDeletedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a location [custom attribute definition](entity:CustomAttributeDefinition) diff --git a/src/Square/Types/LocationCustomAttributeDefinitionOwnedUpdatedEvent.cs b/src/Square/Default/Types/LocationCustomAttributeDefinitionOwnedUpdatedEvent.cs similarity index 98% rename from src/Square/Types/LocationCustomAttributeDefinitionOwnedUpdatedEvent.cs rename to src/Square/Default/Types/LocationCustomAttributeDefinitionOwnedUpdatedEvent.cs index 06b62e55..a05a61d2 100644 --- a/src/Square/Types/LocationCustomAttributeDefinitionOwnedUpdatedEvent.cs +++ b/src/Square/Default/Types/LocationCustomAttributeDefinitionOwnedUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a location [custom attribute definition](entity:CustomAttributeDefinition) diff --git a/src/Square/Types/LocationCustomAttributeDefinitionVisibleCreatedEvent.cs b/src/Square/Default/Types/LocationCustomAttributeDefinitionVisibleCreatedEvent.cs similarity index 98% rename from src/Square/Types/LocationCustomAttributeDefinitionVisibleCreatedEvent.cs rename to src/Square/Default/Types/LocationCustomAttributeDefinitionVisibleCreatedEvent.cs index 325bccc2..a6452df0 100644 --- a/src/Square/Types/LocationCustomAttributeDefinitionVisibleCreatedEvent.cs +++ b/src/Square/Default/Types/LocationCustomAttributeDefinitionVisibleCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a location [custom attribute definition](entity:CustomAttributeDefinition) diff --git a/src/Square/Types/LocationCustomAttributeDefinitionVisibleDeletedEvent.cs b/src/Square/Default/Types/LocationCustomAttributeDefinitionVisibleDeletedEvent.cs similarity index 98% rename from src/Square/Types/LocationCustomAttributeDefinitionVisibleDeletedEvent.cs rename to src/Square/Default/Types/LocationCustomAttributeDefinitionVisibleDeletedEvent.cs index c0bdacfb..75c0713e 100644 --- a/src/Square/Types/LocationCustomAttributeDefinitionVisibleDeletedEvent.cs +++ b/src/Square/Default/Types/LocationCustomAttributeDefinitionVisibleDeletedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a location [custom attribute definition](entity:CustomAttributeDefinition) diff --git a/src/Square/Types/LocationCustomAttributeDefinitionVisibleUpdatedEvent.cs b/src/Square/Default/Types/LocationCustomAttributeDefinitionVisibleUpdatedEvent.cs similarity index 98% rename from src/Square/Types/LocationCustomAttributeDefinitionVisibleUpdatedEvent.cs rename to src/Square/Default/Types/LocationCustomAttributeDefinitionVisibleUpdatedEvent.cs index 2ea37699..7ef1757c 100644 --- a/src/Square/Types/LocationCustomAttributeDefinitionVisibleUpdatedEvent.cs +++ b/src/Square/Default/Types/LocationCustomAttributeDefinitionVisibleUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a location [custom attribute definition](entity:CustomAttributeDefinition) diff --git a/src/Square/Types/LocationCustomAttributeOwnedDeletedEvent.cs b/src/Square/Default/Types/LocationCustomAttributeOwnedDeletedEvent.cs similarity index 98% rename from src/Square/Types/LocationCustomAttributeOwnedDeletedEvent.cs rename to src/Square/Default/Types/LocationCustomAttributeOwnedDeletedEvent.cs index 8e6806a3..1ce9d2fe 100644 --- a/src/Square/Types/LocationCustomAttributeOwnedDeletedEvent.cs +++ b/src/Square/Default/Types/LocationCustomAttributeOwnedDeletedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a location [custom attribute](entity:CustomAttribute) diff --git a/src/Square/Types/LocationCustomAttributeOwnedUpdatedEvent.cs b/src/Square/Default/Types/LocationCustomAttributeOwnedUpdatedEvent.cs similarity index 98% rename from src/Square/Types/LocationCustomAttributeOwnedUpdatedEvent.cs rename to src/Square/Default/Types/LocationCustomAttributeOwnedUpdatedEvent.cs index 8855bd6e..5b693f89 100644 --- a/src/Square/Types/LocationCustomAttributeOwnedUpdatedEvent.cs +++ b/src/Square/Default/Types/LocationCustomAttributeOwnedUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a location [custom attribute](entity:CustomAttribute) owned by the diff --git a/src/Square/Types/LocationCustomAttributeVisibleDeletedEvent.cs b/src/Square/Default/Types/LocationCustomAttributeVisibleDeletedEvent.cs similarity index 98% rename from src/Square/Types/LocationCustomAttributeVisibleDeletedEvent.cs rename to src/Square/Default/Types/LocationCustomAttributeVisibleDeletedEvent.cs index 0ad73917..348f0bcf 100644 --- a/src/Square/Types/LocationCustomAttributeVisibleDeletedEvent.cs +++ b/src/Square/Default/Types/LocationCustomAttributeVisibleDeletedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a location [custom attribute](entity:CustomAttribute) that is visible to the diff --git a/src/Square/Types/LocationCustomAttributeVisibleUpdatedEvent.cs b/src/Square/Default/Types/LocationCustomAttributeVisibleUpdatedEvent.cs similarity index 98% rename from src/Square/Types/LocationCustomAttributeVisibleUpdatedEvent.cs rename to src/Square/Default/Types/LocationCustomAttributeVisibleUpdatedEvent.cs index 7d395fad..ffab7a4c 100644 --- a/src/Square/Types/LocationCustomAttributeVisibleUpdatedEvent.cs +++ b/src/Square/Default/Types/LocationCustomAttributeVisibleUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a location [custom attribute](entity:CustomAttribute) that is visible diff --git a/src/Square/Types/LocationSettingsUpdatedEvent.cs b/src/Square/Default/Types/LocationSettingsUpdatedEvent.cs similarity index 97% rename from src/Square/Types/LocationSettingsUpdatedEvent.cs rename to src/Square/Default/Types/LocationSettingsUpdatedEvent.cs index cccd6411..46c9bb56 100644 --- a/src/Square/Types/LocationSettingsUpdatedEvent.cs +++ b/src/Square/Default/Types/LocationSettingsUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when online checkout location settings are updated diff --git a/src/Square/Types/LocationSettingsUpdatedEventData.cs b/src/Square/Default/Types/LocationSettingsUpdatedEventData.cs similarity index 96% rename from src/Square/Types/LocationSettingsUpdatedEventData.cs rename to src/Square/Default/Types/LocationSettingsUpdatedEventData.cs index 13d70065..1ba12e27 100644 --- a/src/Square/Types/LocationSettingsUpdatedEventData.cs +++ b/src/Square/Default/Types/LocationSettingsUpdatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record LocationSettingsUpdatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/LocationSettingsUpdatedEventObject.cs b/src/Square/Default/Types/LocationSettingsUpdatedEventObject.cs similarity index 95% rename from src/Square/Types/LocationSettingsUpdatedEventObject.cs rename to src/Square/Default/Types/LocationSettingsUpdatedEventObject.cs index a86d1f55..ee01cc90 100644 --- a/src/Square/Types/LocationSettingsUpdatedEventObject.cs +++ b/src/Square/Default/Types/LocationSettingsUpdatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record LocationSettingsUpdatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/LocationStatus.cs b/src/Square/Default/Types/LocationStatus.cs similarity index 98% rename from src/Square/Types/LocationStatus.cs rename to src/Square/Default/Types/LocationStatus.cs index be10e036..8c458692 100644 --- a/src/Square/Types/LocationStatus.cs +++ b/src/Square/Default/Types/LocationStatus.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/LocationType.cs b/src/Square/Default/Types/LocationType.cs similarity index 98% rename from src/Square/Types/LocationType.cs rename to src/Square/Default/Types/LocationType.cs index 607eec75..e85e60d5 100644 --- a/src/Square/Types/LocationType.cs +++ b/src/Square/Default/Types/LocationType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/LocationUpdatedEvent.cs b/src/Square/Default/Types/LocationUpdatedEvent.cs similarity index 97% rename from src/Square/Types/LocationUpdatedEvent.cs rename to src/Square/Default/Types/LocationUpdatedEvent.cs index 08292d24..9dfda765 100644 --- a/src/Square/Types/LocationUpdatedEvent.cs +++ b/src/Square/Default/Types/LocationUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [Location](entity:Location) is updated. diff --git a/src/Square/Types/LocationUpdatedEventData.cs b/src/Square/Default/Types/LocationUpdatedEventData.cs similarity index 96% rename from src/Square/Types/LocationUpdatedEventData.cs rename to src/Square/Default/Types/LocationUpdatedEventData.cs index 9e93f5ae..282fe8d7 100644 --- a/src/Square/Types/LocationUpdatedEventData.cs +++ b/src/Square/Default/Types/LocationUpdatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record LocationUpdatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/LoyaltyAccount.cs b/src/Square/Default/Types/LoyaltyAccount.cs similarity index 99% rename from src/Square/Types/LoyaltyAccount.cs rename to src/Square/Default/Types/LoyaltyAccount.cs index 1559a76f..e458825e 100644 --- a/src/Square/Types/LoyaltyAccount.cs +++ b/src/Square/Default/Types/LoyaltyAccount.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Describes a loyalty account in a [loyalty program](entity:LoyaltyProgram). For more information, see diff --git a/src/Square/Types/LoyaltyAccountCreatedEvent.cs b/src/Square/Default/Types/LoyaltyAccountCreatedEvent.cs similarity index 97% rename from src/Square/Types/LoyaltyAccountCreatedEvent.cs rename to src/Square/Default/Types/LoyaltyAccountCreatedEvent.cs index 7864a7ac..b5acdcde 100644 --- a/src/Square/Types/LoyaltyAccountCreatedEvent.cs +++ b/src/Square/Default/Types/LoyaltyAccountCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [loyalty account](entity:LoyaltyAccount) is created. diff --git a/src/Square/Types/LoyaltyAccountCreatedEventData.cs b/src/Square/Default/Types/LoyaltyAccountCreatedEventData.cs similarity index 97% rename from src/Square/Types/LoyaltyAccountCreatedEventData.cs rename to src/Square/Default/Types/LoyaltyAccountCreatedEventData.cs index 40331694..9a968fbc 100644 --- a/src/Square/Types/LoyaltyAccountCreatedEventData.cs +++ b/src/Square/Default/Types/LoyaltyAccountCreatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The data associated with a `loyalty.account.created` event. diff --git a/src/Square/Types/LoyaltyAccountCreatedEventObject.cs b/src/Square/Default/Types/LoyaltyAccountCreatedEventObject.cs similarity index 95% rename from src/Square/Types/LoyaltyAccountCreatedEventObject.cs rename to src/Square/Default/Types/LoyaltyAccountCreatedEventObject.cs index 39e41009..fbd83a5f 100644 --- a/src/Square/Types/LoyaltyAccountCreatedEventObject.cs +++ b/src/Square/Default/Types/LoyaltyAccountCreatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record LoyaltyAccountCreatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/LoyaltyAccountDeletedEvent.cs b/src/Square/Default/Types/LoyaltyAccountDeletedEvent.cs similarity index 97% rename from src/Square/Types/LoyaltyAccountDeletedEvent.cs rename to src/Square/Default/Types/LoyaltyAccountDeletedEvent.cs index dd11bedb..64432472 100644 --- a/src/Square/Types/LoyaltyAccountDeletedEvent.cs +++ b/src/Square/Default/Types/LoyaltyAccountDeletedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [loyalty account](entity:LoyaltyAccount) is deleted. diff --git a/src/Square/Types/LoyaltyAccountDeletedEventData.cs b/src/Square/Default/Types/LoyaltyAccountDeletedEventData.cs similarity index 97% rename from src/Square/Types/LoyaltyAccountDeletedEventData.cs rename to src/Square/Default/Types/LoyaltyAccountDeletedEventData.cs index 001a7c5c..3e2276be 100644 --- a/src/Square/Types/LoyaltyAccountDeletedEventData.cs +++ b/src/Square/Default/Types/LoyaltyAccountDeletedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The data associated with a `loyalty.account.deleted` event. diff --git a/src/Square/Types/LoyaltyAccountDeletedEventObject.cs b/src/Square/Default/Types/LoyaltyAccountDeletedEventObject.cs similarity index 95% rename from src/Square/Types/LoyaltyAccountDeletedEventObject.cs rename to src/Square/Default/Types/LoyaltyAccountDeletedEventObject.cs index 221a24e5..766156db 100644 --- a/src/Square/Types/LoyaltyAccountDeletedEventObject.cs +++ b/src/Square/Default/Types/LoyaltyAccountDeletedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record LoyaltyAccountDeletedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/LoyaltyAccountExpiringPointDeadline.cs b/src/Square/Default/Types/LoyaltyAccountExpiringPointDeadline.cs similarity index 96% rename from src/Square/Types/LoyaltyAccountExpiringPointDeadline.cs rename to src/Square/Default/Types/LoyaltyAccountExpiringPointDeadline.cs index 7c2bfe05..0edc0114 100644 --- a/src/Square/Types/LoyaltyAccountExpiringPointDeadline.cs +++ b/src/Square/Default/Types/LoyaltyAccountExpiringPointDeadline.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a set of points for a loyalty account that are scheduled to expire on a specific date. diff --git a/src/Square/Types/LoyaltyAccountMapping.cs b/src/Square/Default/Types/LoyaltyAccountMapping.cs similarity index 97% rename from src/Square/Types/LoyaltyAccountMapping.cs rename to src/Square/Default/Types/LoyaltyAccountMapping.cs index 306cee7e..90b4e247 100644 --- a/src/Square/Types/LoyaltyAccountMapping.cs +++ b/src/Square/Default/Types/LoyaltyAccountMapping.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents the mapping that associates a loyalty account with a buyer. diff --git a/src/Square/Types/LoyaltyAccountUpdatedEvent.cs b/src/Square/Default/Types/LoyaltyAccountUpdatedEvent.cs similarity index 97% rename from src/Square/Types/LoyaltyAccountUpdatedEvent.cs rename to src/Square/Default/Types/LoyaltyAccountUpdatedEvent.cs index e148b225..bf5037a1 100644 --- a/src/Square/Types/LoyaltyAccountUpdatedEvent.cs +++ b/src/Square/Default/Types/LoyaltyAccountUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [loyalty account](entity:LoyaltyAccount) is updated. diff --git a/src/Square/Types/LoyaltyAccountUpdatedEventData.cs b/src/Square/Default/Types/LoyaltyAccountUpdatedEventData.cs similarity index 97% rename from src/Square/Types/LoyaltyAccountUpdatedEventData.cs rename to src/Square/Default/Types/LoyaltyAccountUpdatedEventData.cs index 6944ba87..dab29ecf 100644 --- a/src/Square/Types/LoyaltyAccountUpdatedEventData.cs +++ b/src/Square/Default/Types/LoyaltyAccountUpdatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The data associated with a `loyalty.account.updated` event. diff --git a/src/Square/Types/LoyaltyAccountUpdatedEventObject.cs b/src/Square/Default/Types/LoyaltyAccountUpdatedEventObject.cs similarity index 95% rename from src/Square/Types/LoyaltyAccountUpdatedEventObject.cs rename to src/Square/Default/Types/LoyaltyAccountUpdatedEventObject.cs index f520ddb2..eb0ab14c 100644 --- a/src/Square/Types/LoyaltyAccountUpdatedEventObject.cs +++ b/src/Square/Default/Types/LoyaltyAccountUpdatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record LoyaltyAccountUpdatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/LoyaltyEvent.cs b/src/Square/Default/Types/LoyaltyEvent.cs similarity index 99% rename from src/Square/Types/LoyaltyEvent.cs rename to src/Square/Default/Types/LoyaltyEvent.cs index 440d5630..d0ac108b 100644 --- a/src/Square/Types/LoyaltyEvent.cs +++ b/src/Square/Default/Types/LoyaltyEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Provides information about a loyalty event. diff --git a/src/Square/Types/LoyaltyEventAccumulatePoints.cs b/src/Square/Default/Types/LoyaltyEventAccumulatePoints.cs similarity index 97% rename from src/Square/Types/LoyaltyEventAccumulatePoints.cs rename to src/Square/Default/Types/LoyaltyEventAccumulatePoints.cs index d1e9751c..0ce5bab9 100644 --- a/src/Square/Types/LoyaltyEventAccumulatePoints.cs +++ b/src/Square/Default/Types/LoyaltyEventAccumulatePoints.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Provides metadata when the event `type` is `ACCUMULATE_POINTS`. diff --git a/src/Square/Types/LoyaltyEventAccumulatePromotionPoints.cs b/src/Square/Default/Types/LoyaltyEventAccumulatePromotionPoints.cs similarity index 97% rename from src/Square/Types/LoyaltyEventAccumulatePromotionPoints.cs rename to src/Square/Default/Types/LoyaltyEventAccumulatePromotionPoints.cs index 3136ca0f..b8dc2a0e 100644 --- a/src/Square/Types/LoyaltyEventAccumulatePromotionPoints.cs +++ b/src/Square/Default/Types/LoyaltyEventAccumulatePromotionPoints.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Provides metadata when the event `type` is `ACCUMULATE_PROMOTION_POINTS`. diff --git a/src/Square/Types/LoyaltyEventAdjustPoints.cs b/src/Square/Default/Types/LoyaltyEventAdjustPoints.cs similarity index 97% rename from src/Square/Types/LoyaltyEventAdjustPoints.cs rename to src/Square/Default/Types/LoyaltyEventAdjustPoints.cs index cb0bb670..1ee3e643 100644 --- a/src/Square/Types/LoyaltyEventAdjustPoints.cs +++ b/src/Square/Default/Types/LoyaltyEventAdjustPoints.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Provides metadata when the event `type` is `ADJUST_POINTS`. diff --git a/src/Square/Types/LoyaltyEventCreateReward.cs b/src/Square/Default/Types/LoyaltyEventCreateReward.cs similarity index 97% rename from src/Square/Types/LoyaltyEventCreateReward.cs rename to src/Square/Default/Types/LoyaltyEventCreateReward.cs index 9ddc851a..86bacfe2 100644 --- a/src/Square/Types/LoyaltyEventCreateReward.cs +++ b/src/Square/Default/Types/LoyaltyEventCreateReward.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Provides metadata when the event `type` is `CREATE_REWARD`. diff --git a/src/Square/Types/LoyaltyEventCreatedEvent.cs b/src/Square/Default/Types/LoyaltyEventCreatedEvent.cs similarity index 97% rename from src/Square/Types/LoyaltyEventCreatedEvent.cs rename to src/Square/Default/Types/LoyaltyEventCreatedEvent.cs index 850b9d57..712401ea 100644 --- a/src/Square/Types/LoyaltyEventCreatedEvent.cs +++ b/src/Square/Default/Types/LoyaltyEventCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [loyalty event](entity:LoyaltyEvent) is created. diff --git a/src/Square/Types/LoyaltyEventCreatedEventData.cs b/src/Square/Default/Types/LoyaltyEventCreatedEventData.cs similarity index 96% rename from src/Square/Types/LoyaltyEventCreatedEventData.cs rename to src/Square/Default/Types/LoyaltyEventCreatedEventData.cs index 9b3f082e..241739de 100644 --- a/src/Square/Types/LoyaltyEventCreatedEventData.cs +++ b/src/Square/Default/Types/LoyaltyEventCreatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The data associated with a `loyalty.event.created` event. diff --git a/src/Square/Types/LoyaltyEventCreatedEventObject.cs b/src/Square/Default/Types/LoyaltyEventCreatedEventObject.cs similarity index 95% rename from src/Square/Types/LoyaltyEventCreatedEventObject.cs rename to src/Square/Default/Types/LoyaltyEventCreatedEventObject.cs index 2f1fa9f8..8b182234 100644 --- a/src/Square/Types/LoyaltyEventCreatedEventObject.cs +++ b/src/Square/Default/Types/LoyaltyEventCreatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record LoyaltyEventCreatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/LoyaltyEventDateTimeFilter.cs b/src/Square/Default/Types/LoyaltyEventDateTimeFilter.cs similarity index 95% rename from src/Square/Types/LoyaltyEventDateTimeFilter.cs rename to src/Square/Default/Types/LoyaltyEventDateTimeFilter.cs index 80d51cc8..e449912a 100644 --- a/src/Square/Types/LoyaltyEventDateTimeFilter.cs +++ b/src/Square/Default/Types/LoyaltyEventDateTimeFilter.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Filter events by date time range. diff --git a/src/Square/Types/LoyaltyEventDeleteReward.cs b/src/Square/Default/Types/LoyaltyEventDeleteReward.cs similarity index 97% rename from src/Square/Types/LoyaltyEventDeleteReward.cs rename to src/Square/Default/Types/LoyaltyEventDeleteReward.cs index b729d16a..c356871c 100644 --- a/src/Square/Types/LoyaltyEventDeleteReward.cs +++ b/src/Square/Default/Types/LoyaltyEventDeleteReward.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Provides metadata when the event `type` is `DELETE_REWARD`. diff --git a/src/Square/Types/LoyaltyEventExpirePoints.cs b/src/Square/Default/Types/LoyaltyEventExpirePoints.cs similarity index 96% rename from src/Square/Types/LoyaltyEventExpirePoints.cs rename to src/Square/Default/Types/LoyaltyEventExpirePoints.cs index 8a2fe27c..5e7ded3d 100644 --- a/src/Square/Types/LoyaltyEventExpirePoints.cs +++ b/src/Square/Default/Types/LoyaltyEventExpirePoints.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Provides metadata when the event `type` is `EXPIRE_POINTS`. diff --git a/src/Square/Types/LoyaltyEventFilter.cs b/src/Square/Default/Types/LoyaltyEventFilter.cs similarity index 97% rename from src/Square/Types/LoyaltyEventFilter.cs rename to src/Square/Default/Types/LoyaltyEventFilter.cs index e9baf89c..f865ec21 100644 --- a/src/Square/Types/LoyaltyEventFilter.cs +++ b/src/Square/Default/Types/LoyaltyEventFilter.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The filtering criteria. If the request specifies multiple filters, diff --git a/src/Square/Types/LoyaltyEventLocationFilter.cs b/src/Square/Default/Types/LoyaltyEventLocationFilter.cs similarity index 96% rename from src/Square/Types/LoyaltyEventLocationFilter.cs rename to src/Square/Default/Types/LoyaltyEventLocationFilter.cs index 10d80884..ca83cce5 100644 --- a/src/Square/Types/LoyaltyEventLocationFilter.cs +++ b/src/Square/Default/Types/LoyaltyEventLocationFilter.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Filter events by location. diff --git a/src/Square/Types/LoyaltyEventLoyaltyAccountFilter.cs b/src/Square/Default/Types/LoyaltyEventLoyaltyAccountFilter.cs similarity index 96% rename from src/Square/Types/LoyaltyEventLoyaltyAccountFilter.cs rename to src/Square/Default/Types/LoyaltyEventLoyaltyAccountFilter.cs index d9d0c8d5..cc7d1988 100644 --- a/src/Square/Types/LoyaltyEventLoyaltyAccountFilter.cs +++ b/src/Square/Default/Types/LoyaltyEventLoyaltyAccountFilter.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Filter events by loyalty account. diff --git a/src/Square/Types/LoyaltyEventOrderFilter.cs b/src/Square/Default/Types/LoyaltyEventOrderFilter.cs similarity index 95% rename from src/Square/Types/LoyaltyEventOrderFilter.cs rename to src/Square/Default/Types/LoyaltyEventOrderFilter.cs index dd71a32c..1b597c9c 100644 --- a/src/Square/Types/LoyaltyEventOrderFilter.cs +++ b/src/Square/Default/Types/LoyaltyEventOrderFilter.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Filter events by the order associated with the event. diff --git a/src/Square/Types/LoyaltyEventOther.cs b/src/Square/Default/Types/LoyaltyEventOther.cs similarity index 96% rename from src/Square/Types/LoyaltyEventOther.cs rename to src/Square/Default/Types/LoyaltyEventOther.cs index e11d2e54..eb3c1a08 100644 --- a/src/Square/Types/LoyaltyEventOther.cs +++ b/src/Square/Default/Types/LoyaltyEventOther.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Provides metadata when the event `type` is `OTHER`. diff --git a/src/Square/Types/LoyaltyEventQuery.cs b/src/Square/Default/Types/LoyaltyEventQuery.cs similarity index 95% rename from src/Square/Types/LoyaltyEventQuery.cs rename to src/Square/Default/Types/LoyaltyEventQuery.cs index 55c50c44..6a7370f3 100644 --- a/src/Square/Types/LoyaltyEventQuery.cs +++ b/src/Square/Default/Types/LoyaltyEventQuery.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a query used to search for loyalty events. diff --git a/src/Square/Types/LoyaltyEventRedeemReward.cs b/src/Square/Default/Types/LoyaltyEventRedeemReward.cs similarity index 97% rename from src/Square/Types/LoyaltyEventRedeemReward.cs rename to src/Square/Default/Types/LoyaltyEventRedeemReward.cs index e103f221..07e6f770 100644 --- a/src/Square/Types/LoyaltyEventRedeemReward.cs +++ b/src/Square/Default/Types/LoyaltyEventRedeemReward.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Provides metadata when the event `type` is `REDEEM_REWARD`. diff --git a/src/Square/Types/LoyaltyEventSource.cs b/src/Square/Default/Types/LoyaltyEventSource.cs similarity index 98% rename from src/Square/Types/LoyaltyEventSource.cs rename to src/Square/Default/Types/LoyaltyEventSource.cs index b8adadb9..5c7b0094 100644 --- a/src/Square/Types/LoyaltyEventSource.cs +++ b/src/Square/Default/Types/LoyaltyEventSource.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/LoyaltyEventType.cs b/src/Square/Default/Types/LoyaltyEventType.cs similarity index 99% rename from src/Square/Types/LoyaltyEventType.cs rename to src/Square/Default/Types/LoyaltyEventType.cs index 369be680..53935d57 100644 --- a/src/Square/Types/LoyaltyEventType.cs +++ b/src/Square/Default/Types/LoyaltyEventType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/LoyaltyEventTypeFilter.cs b/src/Square/Default/Types/LoyaltyEventTypeFilter.cs similarity index 96% rename from src/Square/Types/LoyaltyEventTypeFilter.cs rename to src/Square/Default/Types/LoyaltyEventTypeFilter.cs index 5e24df71..68e8577e 100644 --- a/src/Square/Types/LoyaltyEventTypeFilter.cs +++ b/src/Square/Default/Types/LoyaltyEventTypeFilter.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Filter events by event type. diff --git a/src/Square/Types/LoyaltyProgram.cs b/src/Square/Default/Types/LoyaltyProgram.cs similarity index 98% rename from src/Square/Types/LoyaltyProgram.cs rename to src/Square/Default/Types/LoyaltyProgram.cs index e2278a25..c6ed5379 100644 --- a/src/Square/Types/LoyaltyProgram.cs +++ b/src/Square/Default/Types/LoyaltyProgram.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a Square loyalty program. Loyalty programs define how buyers can earn points and redeem points for rewards. diff --git a/src/Square/Types/LoyaltyProgramAccrualRule.cs b/src/Square/Default/Types/LoyaltyProgramAccrualRule.cs similarity index 98% rename from src/Square/Types/LoyaltyProgramAccrualRule.cs rename to src/Square/Default/Types/LoyaltyProgramAccrualRule.cs index 6017105d..39c24c67 100644 --- a/src/Square/Types/LoyaltyProgramAccrualRule.cs +++ b/src/Square/Default/Types/LoyaltyProgramAccrualRule.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an accrual rule, which defines how buyers can earn points from the base [loyalty program](entity:LoyaltyProgram). diff --git a/src/Square/Types/LoyaltyProgramAccrualRuleCategoryData.cs b/src/Square/Default/Types/LoyaltyProgramAccrualRuleCategoryData.cs similarity index 96% rename from src/Square/Types/LoyaltyProgramAccrualRuleCategoryData.cs rename to src/Square/Default/Types/LoyaltyProgramAccrualRuleCategoryData.cs index 65a14473..6469e1cb 100644 --- a/src/Square/Types/LoyaltyProgramAccrualRuleCategoryData.cs +++ b/src/Square/Default/Types/LoyaltyProgramAccrualRuleCategoryData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents additional data for rules with the `CATEGORY` accrual type. diff --git a/src/Square/Types/LoyaltyProgramAccrualRuleItemVariationData.cs b/src/Square/Default/Types/LoyaltyProgramAccrualRuleItemVariationData.cs similarity index 96% rename from src/Square/Types/LoyaltyProgramAccrualRuleItemVariationData.cs rename to src/Square/Default/Types/LoyaltyProgramAccrualRuleItemVariationData.cs index f6f48fb2..9d6b8d81 100644 --- a/src/Square/Types/LoyaltyProgramAccrualRuleItemVariationData.cs +++ b/src/Square/Default/Types/LoyaltyProgramAccrualRuleItemVariationData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents additional data for rules with the `ITEM_VARIATION` accrual type. diff --git a/src/Square/Types/LoyaltyProgramAccrualRuleSpendData.cs b/src/Square/Default/Types/LoyaltyProgramAccrualRuleSpendData.cs similarity index 98% rename from src/Square/Types/LoyaltyProgramAccrualRuleSpendData.cs rename to src/Square/Default/Types/LoyaltyProgramAccrualRuleSpendData.cs index 865bd534..35ada13d 100644 --- a/src/Square/Types/LoyaltyProgramAccrualRuleSpendData.cs +++ b/src/Square/Default/Types/LoyaltyProgramAccrualRuleSpendData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents additional data for rules with the `SPEND` accrual type. diff --git a/src/Square/Types/LoyaltyProgramAccrualRuleTaxMode.cs b/src/Square/Default/Types/LoyaltyProgramAccrualRuleTaxMode.cs similarity index 98% rename from src/Square/Types/LoyaltyProgramAccrualRuleTaxMode.cs rename to src/Square/Default/Types/LoyaltyProgramAccrualRuleTaxMode.cs index a972dfd6..74b3bafe 100644 --- a/src/Square/Types/LoyaltyProgramAccrualRuleTaxMode.cs +++ b/src/Square/Default/Types/LoyaltyProgramAccrualRuleTaxMode.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/LoyaltyProgramAccrualRuleType.cs b/src/Square/Default/Types/LoyaltyProgramAccrualRuleType.cs similarity index 98% rename from src/Square/Types/LoyaltyProgramAccrualRuleType.cs rename to src/Square/Default/Types/LoyaltyProgramAccrualRuleType.cs index f55e1a37..a9449d9e 100644 --- a/src/Square/Types/LoyaltyProgramAccrualRuleType.cs +++ b/src/Square/Default/Types/LoyaltyProgramAccrualRuleType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/LoyaltyProgramAccrualRuleVisitData.cs b/src/Square/Default/Types/LoyaltyProgramAccrualRuleVisitData.cs similarity index 97% rename from src/Square/Types/LoyaltyProgramAccrualRuleVisitData.cs rename to src/Square/Default/Types/LoyaltyProgramAccrualRuleVisitData.cs index 5b961b31..73af49a0 100644 --- a/src/Square/Types/LoyaltyProgramAccrualRuleVisitData.cs +++ b/src/Square/Default/Types/LoyaltyProgramAccrualRuleVisitData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents additional data for rules with the `VISIT` accrual type. diff --git a/src/Square/Types/LoyaltyProgramCreatedEvent.cs b/src/Square/Default/Types/LoyaltyProgramCreatedEvent.cs similarity index 97% rename from src/Square/Types/LoyaltyProgramCreatedEvent.cs rename to src/Square/Default/Types/LoyaltyProgramCreatedEvent.cs index 1de74dd7..e1610788 100644 --- a/src/Square/Types/LoyaltyProgramCreatedEvent.cs +++ b/src/Square/Default/Types/LoyaltyProgramCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [loyalty program](entity:LoyaltyProgram) is created. diff --git a/src/Square/Types/LoyaltyProgramCreatedEventData.cs b/src/Square/Default/Types/LoyaltyProgramCreatedEventData.cs similarity index 97% rename from src/Square/Types/LoyaltyProgramCreatedEventData.cs rename to src/Square/Default/Types/LoyaltyProgramCreatedEventData.cs index 25948639..8d9f9be1 100644 --- a/src/Square/Types/LoyaltyProgramCreatedEventData.cs +++ b/src/Square/Default/Types/LoyaltyProgramCreatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The data associated with a `loyalty.program.created` event. diff --git a/src/Square/Types/LoyaltyProgramCreatedEventObject.cs b/src/Square/Default/Types/LoyaltyProgramCreatedEventObject.cs similarity index 96% rename from src/Square/Types/LoyaltyProgramCreatedEventObject.cs rename to src/Square/Default/Types/LoyaltyProgramCreatedEventObject.cs index b309cc51..730ee04a 100644 --- a/src/Square/Types/LoyaltyProgramCreatedEventObject.cs +++ b/src/Square/Default/Types/LoyaltyProgramCreatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// An object that contains the loyalty program associated with a `loyalty.program.created` event. diff --git a/src/Square/Types/LoyaltyProgramExpirationPolicy.cs b/src/Square/Default/Types/LoyaltyProgramExpirationPolicy.cs similarity index 96% rename from src/Square/Types/LoyaltyProgramExpirationPolicy.cs rename to src/Square/Default/Types/LoyaltyProgramExpirationPolicy.cs index eae0dfa0..d1bc506d 100644 --- a/src/Square/Types/LoyaltyProgramExpirationPolicy.cs +++ b/src/Square/Default/Types/LoyaltyProgramExpirationPolicy.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Describes when the loyalty program expires. diff --git a/src/Square/Types/LoyaltyProgramRewardTier.cs b/src/Square/Default/Types/LoyaltyProgramRewardTier.cs similarity index 98% rename from src/Square/Types/LoyaltyProgramRewardTier.cs rename to src/Square/Default/Types/LoyaltyProgramRewardTier.cs index d626b6cc..b95de6d7 100644 --- a/src/Square/Types/LoyaltyProgramRewardTier.cs +++ b/src/Square/Default/Types/LoyaltyProgramRewardTier.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a reward tier in a loyalty program. A reward tier defines how buyers can redeem points for a reward, such as the number of points required and the value and scope of the discount. A loyalty program can offer multiple reward tiers. diff --git a/src/Square/Types/LoyaltyProgramStatus.cs b/src/Square/Default/Types/LoyaltyProgramStatus.cs similarity index 98% rename from src/Square/Types/LoyaltyProgramStatus.cs rename to src/Square/Default/Types/LoyaltyProgramStatus.cs index e4d55051..466efe01 100644 --- a/src/Square/Types/LoyaltyProgramStatus.cs +++ b/src/Square/Default/Types/LoyaltyProgramStatus.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/LoyaltyProgramTerminology.cs b/src/Square/Default/Types/LoyaltyProgramTerminology.cs similarity index 96% rename from src/Square/Types/LoyaltyProgramTerminology.cs rename to src/Square/Default/Types/LoyaltyProgramTerminology.cs index 3bb809bb..48c37812 100644 --- a/src/Square/Types/LoyaltyProgramTerminology.cs +++ b/src/Square/Default/Types/LoyaltyProgramTerminology.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents the naming used for loyalty points. diff --git a/src/Square/Types/LoyaltyProgramUpdatedEvent.cs b/src/Square/Default/Types/LoyaltyProgramUpdatedEvent.cs similarity index 97% rename from src/Square/Types/LoyaltyProgramUpdatedEvent.cs rename to src/Square/Default/Types/LoyaltyProgramUpdatedEvent.cs index 82735553..6596f7f9 100644 --- a/src/Square/Types/LoyaltyProgramUpdatedEvent.cs +++ b/src/Square/Default/Types/LoyaltyProgramUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [loyalty program](entity:LoyaltyProgram) is updated. diff --git a/src/Square/Types/LoyaltyProgramUpdatedEventData.cs b/src/Square/Default/Types/LoyaltyProgramUpdatedEventData.cs similarity index 97% rename from src/Square/Types/LoyaltyProgramUpdatedEventData.cs rename to src/Square/Default/Types/LoyaltyProgramUpdatedEventData.cs index 54ccd328..20cd9294 100644 --- a/src/Square/Types/LoyaltyProgramUpdatedEventData.cs +++ b/src/Square/Default/Types/LoyaltyProgramUpdatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The data associated with a `loyalty.program.updated` event. diff --git a/src/Square/Types/LoyaltyProgramUpdatedEventObject.cs b/src/Square/Default/Types/LoyaltyProgramUpdatedEventObject.cs similarity index 96% rename from src/Square/Types/LoyaltyProgramUpdatedEventObject.cs rename to src/Square/Default/Types/LoyaltyProgramUpdatedEventObject.cs index 145b61f2..d2c63698 100644 --- a/src/Square/Types/LoyaltyProgramUpdatedEventObject.cs +++ b/src/Square/Default/Types/LoyaltyProgramUpdatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// An object that contains the loyalty program associated with a `loyalty.program.updated` event. diff --git a/src/Square/Types/LoyaltyPromotion.cs b/src/Square/Default/Types/LoyaltyPromotion.cs similarity index 99% rename from src/Square/Types/LoyaltyPromotion.cs rename to src/Square/Default/Types/LoyaltyPromotion.cs index 99d92621..69753edd 100644 --- a/src/Square/Types/LoyaltyPromotion.cs +++ b/src/Square/Default/Types/LoyaltyPromotion.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a promotion for a [loyalty program](entity:LoyaltyProgram). Loyalty promotions enable buyers diff --git a/src/Square/Types/LoyaltyPromotionAvailableTimeData.cs b/src/Square/Default/Types/LoyaltyPromotionAvailableTimeData.cs similarity index 98% rename from src/Square/Types/LoyaltyPromotionAvailableTimeData.cs rename to src/Square/Default/Types/LoyaltyPromotionAvailableTimeData.cs index 050197c7..beb26290 100644 --- a/src/Square/Types/LoyaltyPromotionAvailableTimeData.cs +++ b/src/Square/Default/Types/LoyaltyPromotionAvailableTimeData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents scheduling information that determines when purchases can qualify to earn points diff --git a/src/Square/Types/LoyaltyPromotionCreatedEvent.cs b/src/Square/Default/Types/LoyaltyPromotionCreatedEvent.cs similarity index 97% rename from src/Square/Types/LoyaltyPromotionCreatedEvent.cs rename to src/Square/Default/Types/LoyaltyPromotionCreatedEvent.cs index e08e1951..aea1f7e4 100644 --- a/src/Square/Types/LoyaltyPromotionCreatedEvent.cs +++ b/src/Square/Default/Types/LoyaltyPromotionCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [loyalty promotion](entity:LoyaltyPromotion) is created. diff --git a/src/Square/Types/LoyaltyPromotionCreatedEventData.cs b/src/Square/Default/Types/LoyaltyPromotionCreatedEventData.cs similarity index 97% rename from src/Square/Types/LoyaltyPromotionCreatedEventData.cs rename to src/Square/Default/Types/LoyaltyPromotionCreatedEventData.cs index 757c0060..4f0bceb2 100644 --- a/src/Square/Types/LoyaltyPromotionCreatedEventData.cs +++ b/src/Square/Default/Types/LoyaltyPromotionCreatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The data associated with a `loyalty.promotion.created` event. diff --git a/src/Square/Types/LoyaltyPromotionCreatedEventObject.cs b/src/Square/Default/Types/LoyaltyPromotionCreatedEventObject.cs similarity index 96% rename from src/Square/Types/LoyaltyPromotionCreatedEventObject.cs rename to src/Square/Default/Types/LoyaltyPromotionCreatedEventObject.cs index 7d866224..493d5fdc 100644 --- a/src/Square/Types/LoyaltyPromotionCreatedEventObject.cs +++ b/src/Square/Default/Types/LoyaltyPromotionCreatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// An object that contains the loyalty promotion associated with a `loyalty.promotion.created` event. diff --git a/src/Square/Types/LoyaltyPromotionIncentive.cs b/src/Square/Default/Types/LoyaltyPromotionIncentive.cs similarity index 97% rename from src/Square/Types/LoyaltyPromotionIncentive.cs rename to src/Square/Default/Types/LoyaltyPromotionIncentive.cs index 6a61847a..769280fb 100644 --- a/src/Square/Types/LoyaltyPromotionIncentive.cs +++ b/src/Square/Default/Types/LoyaltyPromotionIncentive.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents how points for a [loyalty promotion](entity:LoyaltyPromotion) are calculated, diff --git a/src/Square/Types/LoyaltyPromotionIncentivePointsAdditionData.cs b/src/Square/Default/Types/LoyaltyPromotionIncentivePointsAdditionData.cs similarity index 97% rename from src/Square/Types/LoyaltyPromotionIncentivePointsAdditionData.cs rename to src/Square/Default/Types/LoyaltyPromotionIncentivePointsAdditionData.cs index 23124b69..885b3466 100644 --- a/src/Square/Types/LoyaltyPromotionIncentivePointsAdditionData.cs +++ b/src/Square/Default/Types/LoyaltyPromotionIncentivePointsAdditionData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents the metadata for a `POINTS_ADDITION` type of [loyalty promotion incentive](entity:LoyaltyPromotionIncentive). diff --git a/src/Square/Types/LoyaltyPromotionIncentivePointsMultiplierData.cs b/src/Square/Default/Types/LoyaltyPromotionIncentivePointsMultiplierData.cs similarity index 98% rename from src/Square/Types/LoyaltyPromotionIncentivePointsMultiplierData.cs rename to src/Square/Default/Types/LoyaltyPromotionIncentivePointsMultiplierData.cs index ba7a5e9b..4209e73f 100644 --- a/src/Square/Types/LoyaltyPromotionIncentivePointsMultiplierData.cs +++ b/src/Square/Default/Types/LoyaltyPromotionIncentivePointsMultiplierData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents the metadata for a `POINTS_MULTIPLIER` type of [loyalty promotion incentive](entity:LoyaltyPromotionIncentive). diff --git a/src/Square/Types/LoyaltyPromotionIncentiveType.cs b/src/Square/Default/Types/LoyaltyPromotionIncentiveType.cs similarity index 98% rename from src/Square/Types/LoyaltyPromotionIncentiveType.cs rename to src/Square/Default/Types/LoyaltyPromotionIncentiveType.cs index 76d6efa7..5e1a5167 100644 --- a/src/Square/Types/LoyaltyPromotionIncentiveType.cs +++ b/src/Square/Default/Types/LoyaltyPromotionIncentiveType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/LoyaltyPromotionStatus.cs b/src/Square/Default/Types/LoyaltyPromotionStatus.cs similarity index 98% rename from src/Square/Types/LoyaltyPromotionStatus.cs rename to src/Square/Default/Types/LoyaltyPromotionStatus.cs index ca59abcc..daa6a5e5 100644 --- a/src/Square/Types/LoyaltyPromotionStatus.cs +++ b/src/Square/Default/Types/LoyaltyPromotionStatus.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/LoyaltyPromotionTriggerLimit.cs b/src/Square/Default/Types/LoyaltyPromotionTriggerLimit.cs similarity index 97% rename from src/Square/Types/LoyaltyPromotionTriggerLimit.cs rename to src/Square/Default/Types/LoyaltyPromotionTriggerLimit.cs index 35fe7e21..b13bfc0e 100644 --- a/src/Square/Types/LoyaltyPromotionTriggerLimit.cs +++ b/src/Square/Default/Types/LoyaltyPromotionTriggerLimit.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents the number of times a buyer can earn points during a [loyalty promotion](entity:LoyaltyPromotion). diff --git a/src/Square/Types/LoyaltyPromotionTriggerLimitInterval.cs b/src/Square/Default/Types/LoyaltyPromotionTriggerLimitInterval.cs similarity index 98% rename from src/Square/Types/LoyaltyPromotionTriggerLimitInterval.cs rename to src/Square/Default/Types/LoyaltyPromotionTriggerLimitInterval.cs index 83b3bfa8..8556655d 100644 --- a/src/Square/Types/LoyaltyPromotionTriggerLimitInterval.cs +++ b/src/Square/Default/Types/LoyaltyPromotionTriggerLimitInterval.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/LoyaltyPromotionUpdatedEvent.cs b/src/Square/Default/Types/LoyaltyPromotionUpdatedEvent.cs similarity index 97% rename from src/Square/Types/LoyaltyPromotionUpdatedEvent.cs rename to src/Square/Default/Types/LoyaltyPromotionUpdatedEvent.cs index 06f05855..87e58035 100644 --- a/src/Square/Types/LoyaltyPromotionUpdatedEvent.cs +++ b/src/Square/Default/Types/LoyaltyPromotionUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [loyalty promotion](entity:LoyaltyPromotion) is updated. This event is diff --git a/src/Square/Types/LoyaltyPromotionUpdatedEventData.cs b/src/Square/Default/Types/LoyaltyPromotionUpdatedEventData.cs similarity index 97% rename from src/Square/Types/LoyaltyPromotionUpdatedEventData.cs rename to src/Square/Default/Types/LoyaltyPromotionUpdatedEventData.cs index 62eaafc3..cda340ae 100644 --- a/src/Square/Types/LoyaltyPromotionUpdatedEventData.cs +++ b/src/Square/Default/Types/LoyaltyPromotionUpdatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The data associated with a `loyalty.promotion.updated` event. diff --git a/src/Square/Types/LoyaltyPromotionUpdatedEventObject.cs b/src/Square/Default/Types/LoyaltyPromotionUpdatedEventObject.cs similarity index 96% rename from src/Square/Types/LoyaltyPromotionUpdatedEventObject.cs rename to src/Square/Default/Types/LoyaltyPromotionUpdatedEventObject.cs index 1224d94a..907193f7 100644 --- a/src/Square/Types/LoyaltyPromotionUpdatedEventObject.cs +++ b/src/Square/Default/Types/LoyaltyPromotionUpdatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// An object that contains the loyalty promotion associated with a `loyalty.promotion.updated` event. diff --git a/src/Square/Types/LoyaltyReward.cs b/src/Square/Default/Types/LoyaltyReward.cs similarity index 98% rename from src/Square/Types/LoyaltyReward.cs rename to src/Square/Default/Types/LoyaltyReward.cs index 86d3eb33..c3293759 100644 --- a/src/Square/Types/LoyaltyReward.cs +++ b/src/Square/Default/Types/LoyaltyReward.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a contract to redeem loyalty points for a [reward tier](entity:LoyaltyProgramRewardTier) discount. Loyalty rewards can be in an ISSUED, REDEEMED, or DELETED state. diff --git a/src/Square/Types/LoyaltyRewardStatus.cs b/src/Square/Default/Types/LoyaltyRewardStatus.cs similarity index 98% rename from src/Square/Types/LoyaltyRewardStatus.cs rename to src/Square/Default/Types/LoyaltyRewardStatus.cs index d39f4eb8..31613261 100644 --- a/src/Square/Types/LoyaltyRewardStatus.cs +++ b/src/Square/Default/Types/LoyaltyRewardStatus.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/MeasurementUnit.cs b/src/Square/Default/Types/MeasurementUnit.cs similarity index 98% rename from src/Square/Types/MeasurementUnit.cs rename to src/Square/Default/Types/MeasurementUnit.cs index fdbe922c..5c166bec 100644 --- a/src/Square/Types/MeasurementUnit.cs +++ b/src/Square/Default/Types/MeasurementUnit.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a unit of measurement to use with a quantity, such as ounces diff --git a/src/Square/Types/MeasurementUnitArea.cs b/src/Square/Default/Types/MeasurementUnitArea.cs similarity index 99% rename from src/Square/Types/MeasurementUnitArea.cs rename to src/Square/Default/Types/MeasurementUnitArea.cs index 0bab53a5..7580dddf 100644 --- a/src/Square/Types/MeasurementUnitArea.cs +++ b/src/Square/Default/Types/MeasurementUnitArea.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/MeasurementUnitCustom.cs b/src/Square/Default/Types/MeasurementUnitCustom.cs similarity index 96% rename from src/Square/Types/MeasurementUnitCustom.cs rename to src/Square/Default/Types/MeasurementUnitCustom.cs index bfde4180..324f9d4b 100644 --- a/src/Square/Types/MeasurementUnitCustom.cs +++ b/src/Square/Default/Types/MeasurementUnitCustom.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The information needed to define a custom unit, provided by the seller. diff --git a/src/Square/Types/MeasurementUnitLength.cs b/src/Square/Default/Types/MeasurementUnitLength.cs similarity index 99% rename from src/Square/Types/MeasurementUnitLength.cs rename to src/Square/Default/Types/MeasurementUnitLength.cs index 9d761b0c..fc287a9a 100644 --- a/src/Square/Types/MeasurementUnitLength.cs +++ b/src/Square/Default/Types/MeasurementUnitLength.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/MeasurementUnitTime.cs b/src/Square/Default/Types/MeasurementUnitTime.cs similarity index 98% rename from src/Square/Types/MeasurementUnitTime.cs rename to src/Square/Default/Types/MeasurementUnitTime.cs index e424ef37..20d7df69 100644 --- a/src/Square/Types/MeasurementUnitTime.cs +++ b/src/Square/Default/Types/MeasurementUnitTime.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/MeasurementUnitUnitType.cs b/src/Square/Default/Types/MeasurementUnitUnitType.cs similarity index 98% rename from src/Square/Types/MeasurementUnitUnitType.cs rename to src/Square/Default/Types/MeasurementUnitUnitType.cs index e93612ff..8581fc8d 100644 --- a/src/Square/Types/MeasurementUnitUnitType.cs +++ b/src/Square/Default/Types/MeasurementUnitUnitType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/MeasurementUnitVolume.cs b/src/Square/Default/Types/MeasurementUnitVolume.cs similarity index 99% rename from src/Square/Types/MeasurementUnitVolume.cs rename to src/Square/Default/Types/MeasurementUnitVolume.cs index 8d8a8fe8..17212cca 100644 --- a/src/Square/Types/MeasurementUnitVolume.cs +++ b/src/Square/Default/Types/MeasurementUnitVolume.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/MeasurementUnitWeight.cs b/src/Square/Default/Types/MeasurementUnitWeight.cs similarity index 98% rename from src/Square/Types/MeasurementUnitWeight.cs rename to src/Square/Default/Types/MeasurementUnitWeight.cs index 6e04b79a..421218b2 100644 --- a/src/Square/Types/MeasurementUnitWeight.cs +++ b/src/Square/Default/Types/MeasurementUnitWeight.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/Merchant.cs b/src/Square/Default/Types/Merchant.cs similarity index 98% rename from src/Square/Types/Merchant.cs rename to src/Square/Default/Types/Merchant.cs index 168d6eca..5dfccb7f 100644 --- a/src/Square/Types/Merchant.cs +++ b/src/Square/Default/Types/Merchant.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a business that sells with Square. diff --git a/src/Square/Types/MerchantCustomAttributeDefinitionOwnedCreatedEvent.cs b/src/Square/Default/Types/MerchantCustomAttributeDefinitionOwnedCreatedEvent.cs similarity index 98% rename from src/Square/Types/MerchantCustomAttributeDefinitionOwnedCreatedEvent.cs rename to src/Square/Default/Types/MerchantCustomAttributeDefinitionOwnedCreatedEvent.cs index 6513485f..90564c78 100644 --- a/src/Square/Types/MerchantCustomAttributeDefinitionOwnedCreatedEvent.cs +++ b/src/Square/Default/Types/MerchantCustomAttributeDefinitionOwnedCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a merchant [custom attribute definition](entity:CustomAttributeDefinition) diff --git a/src/Square/Types/MerchantCustomAttributeDefinitionOwnedDeletedEvent.cs b/src/Square/Default/Types/MerchantCustomAttributeDefinitionOwnedDeletedEvent.cs similarity index 98% rename from src/Square/Types/MerchantCustomAttributeDefinitionOwnedDeletedEvent.cs rename to src/Square/Default/Types/MerchantCustomAttributeDefinitionOwnedDeletedEvent.cs index 712d6d69..0c49d698 100644 --- a/src/Square/Types/MerchantCustomAttributeDefinitionOwnedDeletedEvent.cs +++ b/src/Square/Default/Types/MerchantCustomAttributeDefinitionOwnedDeletedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a merchant [custom attribute definition](entity:CustomAttributeDefinition) diff --git a/src/Square/Types/MerchantCustomAttributeDefinitionOwnedUpdatedEvent.cs b/src/Square/Default/Types/MerchantCustomAttributeDefinitionOwnedUpdatedEvent.cs similarity index 98% rename from src/Square/Types/MerchantCustomAttributeDefinitionOwnedUpdatedEvent.cs rename to src/Square/Default/Types/MerchantCustomAttributeDefinitionOwnedUpdatedEvent.cs index 9a0cfe3c..b3a1c8c7 100644 --- a/src/Square/Types/MerchantCustomAttributeDefinitionOwnedUpdatedEvent.cs +++ b/src/Square/Default/Types/MerchantCustomAttributeDefinitionOwnedUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a merchant [custom attribute definition](entity:CustomAttributeDefinition) diff --git a/src/Square/Types/MerchantCustomAttributeDefinitionVisibleCreatedEvent.cs b/src/Square/Default/Types/MerchantCustomAttributeDefinitionVisibleCreatedEvent.cs similarity index 98% rename from src/Square/Types/MerchantCustomAttributeDefinitionVisibleCreatedEvent.cs rename to src/Square/Default/Types/MerchantCustomAttributeDefinitionVisibleCreatedEvent.cs index f5462ede..bd5cc9a3 100644 --- a/src/Square/Types/MerchantCustomAttributeDefinitionVisibleCreatedEvent.cs +++ b/src/Square/Default/Types/MerchantCustomAttributeDefinitionVisibleCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a merchant [custom attribute definition](entity:CustomAttributeDefinition) diff --git a/src/Square/Types/MerchantCustomAttributeDefinitionVisibleDeletedEvent.cs b/src/Square/Default/Types/MerchantCustomAttributeDefinitionVisibleDeletedEvent.cs similarity index 98% rename from src/Square/Types/MerchantCustomAttributeDefinitionVisibleDeletedEvent.cs rename to src/Square/Default/Types/MerchantCustomAttributeDefinitionVisibleDeletedEvent.cs index 4bbd3c92..f2332d4e 100644 --- a/src/Square/Types/MerchantCustomAttributeDefinitionVisibleDeletedEvent.cs +++ b/src/Square/Default/Types/MerchantCustomAttributeDefinitionVisibleDeletedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a merchant [custom attribute definition](entity:CustomAttributeDefinition) diff --git a/src/Square/Types/MerchantCustomAttributeDefinitionVisibleUpdatedEvent.cs b/src/Square/Default/Types/MerchantCustomAttributeDefinitionVisibleUpdatedEvent.cs similarity index 98% rename from src/Square/Types/MerchantCustomAttributeDefinitionVisibleUpdatedEvent.cs rename to src/Square/Default/Types/MerchantCustomAttributeDefinitionVisibleUpdatedEvent.cs index 69def6e6..c73ae307 100644 --- a/src/Square/Types/MerchantCustomAttributeDefinitionVisibleUpdatedEvent.cs +++ b/src/Square/Default/Types/MerchantCustomAttributeDefinitionVisibleUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a merchant [custom attribute definition](entity:CustomAttributeDefinition) diff --git a/src/Square/Types/MerchantCustomAttributeOwnedDeletedEvent.cs b/src/Square/Default/Types/MerchantCustomAttributeOwnedDeletedEvent.cs similarity index 98% rename from src/Square/Types/MerchantCustomAttributeOwnedDeletedEvent.cs rename to src/Square/Default/Types/MerchantCustomAttributeOwnedDeletedEvent.cs index 4adb83ad..ae6a1a19 100644 --- a/src/Square/Types/MerchantCustomAttributeOwnedDeletedEvent.cs +++ b/src/Square/Default/Types/MerchantCustomAttributeOwnedDeletedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a merchant [custom attribute](entity:CustomAttribute) diff --git a/src/Square/Types/MerchantCustomAttributeOwnedUpdatedEvent.cs b/src/Square/Default/Types/MerchantCustomAttributeOwnedUpdatedEvent.cs similarity index 98% rename from src/Square/Types/MerchantCustomAttributeOwnedUpdatedEvent.cs rename to src/Square/Default/Types/MerchantCustomAttributeOwnedUpdatedEvent.cs index ef3ef2fc..16990776 100644 --- a/src/Square/Types/MerchantCustomAttributeOwnedUpdatedEvent.cs +++ b/src/Square/Default/Types/MerchantCustomAttributeOwnedUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a merchant [custom attribute](entity:CustomAttribute) diff --git a/src/Square/Types/MerchantCustomAttributeVisibleDeletedEvent.cs b/src/Square/Default/Types/MerchantCustomAttributeVisibleDeletedEvent.cs similarity index 98% rename from src/Square/Types/MerchantCustomAttributeVisibleDeletedEvent.cs rename to src/Square/Default/Types/MerchantCustomAttributeVisibleDeletedEvent.cs index 983b873a..5b6be865 100644 --- a/src/Square/Types/MerchantCustomAttributeVisibleDeletedEvent.cs +++ b/src/Square/Default/Types/MerchantCustomAttributeVisibleDeletedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a merchant [custom attribute](entity:CustomAttribute) with diff --git a/src/Square/Types/MerchantCustomAttributeVisibleUpdatedEvent.cs b/src/Square/Default/Types/MerchantCustomAttributeVisibleUpdatedEvent.cs similarity index 98% rename from src/Square/Types/MerchantCustomAttributeVisibleUpdatedEvent.cs rename to src/Square/Default/Types/MerchantCustomAttributeVisibleUpdatedEvent.cs index 527fa938..1c058252 100644 --- a/src/Square/Types/MerchantCustomAttributeVisibleUpdatedEvent.cs +++ b/src/Square/Default/Types/MerchantCustomAttributeVisibleUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a merchant [custom attribute](entity:CustomAttribute) with diff --git a/src/Square/Types/MerchantSettingsUpdatedEvent.cs b/src/Square/Default/Types/MerchantSettingsUpdatedEvent.cs similarity index 97% rename from src/Square/Types/MerchantSettingsUpdatedEvent.cs rename to src/Square/Default/Types/MerchantSettingsUpdatedEvent.cs index 8cb39dde..a6291177 100644 --- a/src/Square/Types/MerchantSettingsUpdatedEvent.cs +++ b/src/Square/Default/Types/MerchantSettingsUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when online checkout merchant settings are updated diff --git a/src/Square/Types/MerchantSettingsUpdatedEventData.cs b/src/Square/Default/Types/MerchantSettingsUpdatedEventData.cs similarity index 96% rename from src/Square/Types/MerchantSettingsUpdatedEventData.cs rename to src/Square/Default/Types/MerchantSettingsUpdatedEventData.cs index ee8f20a3..696c1951 100644 --- a/src/Square/Types/MerchantSettingsUpdatedEventData.cs +++ b/src/Square/Default/Types/MerchantSettingsUpdatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record MerchantSettingsUpdatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/MerchantSettingsUpdatedEventObject.cs b/src/Square/Default/Types/MerchantSettingsUpdatedEventObject.cs similarity index 95% rename from src/Square/Types/MerchantSettingsUpdatedEventObject.cs rename to src/Square/Default/Types/MerchantSettingsUpdatedEventObject.cs index 6984af6c..d8bb4214 100644 --- a/src/Square/Types/MerchantSettingsUpdatedEventObject.cs +++ b/src/Square/Default/Types/MerchantSettingsUpdatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record MerchantSettingsUpdatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/MerchantStatus.cs b/src/Square/Default/Types/MerchantStatus.cs similarity index 98% rename from src/Square/Types/MerchantStatus.cs rename to src/Square/Default/Types/MerchantStatus.cs index b7bf52f5..cc9a801c 100644 --- a/src/Square/Types/MerchantStatus.cs +++ b/src/Square/Default/Types/MerchantStatus.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/ModifierLocationOverrides.cs b/src/Square/Default/Types/ModifierLocationOverrides.cs similarity index 97% rename from src/Square/Types/ModifierLocationOverrides.cs rename to src/Square/Default/Types/ModifierLocationOverrides.cs index 1a15f8bb..445558ab 100644 --- a/src/Square/Types/ModifierLocationOverrides.cs +++ b/src/Square/Default/Types/ModifierLocationOverrides.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Location-specific overrides for specified properties of a `CatalogModifier` object. diff --git a/src/Square/Types/Money.cs b/src/Square/Default/Types/Money.cs similarity index 97% rename from src/Square/Types/Money.cs rename to src/Square/Default/Types/Money.cs index 81940642..eca530ab 100644 --- a/src/Square/Types/Money.cs +++ b/src/Square/Default/Types/Money.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an amount of money. `Money` fields can be signed or unsigned. diff --git a/src/Square/Types/OauthAuthorizationRevokedEvent.cs b/src/Square/Default/Types/OauthAuthorizationRevokedEvent.cs similarity index 97% rename from src/Square/Types/OauthAuthorizationRevokedEvent.cs rename to src/Square/Default/Types/OauthAuthorizationRevokedEvent.cs index cabb0c78..ba7637da 100644 --- a/src/Square/Types/OauthAuthorizationRevokedEvent.cs +++ b/src/Square/Default/Types/OauthAuthorizationRevokedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a merchant/application revokes all access tokens and refresh tokens granted to an application. diff --git a/src/Square/Types/OauthAuthorizationRevokedEventData.cs b/src/Square/Default/Types/OauthAuthorizationRevokedEventData.cs similarity index 96% rename from src/Square/Types/OauthAuthorizationRevokedEventData.cs rename to src/Square/Default/Types/OauthAuthorizationRevokedEventData.cs index 54ead834..8ae840ef 100644 --- a/src/Square/Types/OauthAuthorizationRevokedEventData.cs +++ b/src/Square/Default/Types/OauthAuthorizationRevokedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record OauthAuthorizationRevokedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/OauthAuthorizationRevokedEventObject.cs b/src/Square/Default/Types/OauthAuthorizationRevokedEventObject.cs similarity index 95% rename from src/Square/Types/OauthAuthorizationRevokedEventObject.cs rename to src/Square/Default/Types/OauthAuthorizationRevokedEventObject.cs index 5696b5d5..489c7a73 100644 --- a/src/Square/Types/OauthAuthorizationRevokedEventObject.cs +++ b/src/Square/Default/Types/OauthAuthorizationRevokedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record OauthAuthorizationRevokedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/OauthAuthorizationRevokedEventRevocationObject.cs b/src/Square/Default/Types/OauthAuthorizationRevokedEventRevocationObject.cs similarity index 96% rename from src/Square/Types/OauthAuthorizationRevokedEventRevocationObject.cs rename to src/Square/Default/Types/OauthAuthorizationRevokedEventRevocationObject.cs index 11738f84..12d8d9c8 100644 --- a/src/Square/Types/OauthAuthorizationRevokedEventRevocationObject.cs +++ b/src/Square/Default/Types/OauthAuthorizationRevokedEventRevocationObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record OauthAuthorizationRevokedEventRevocationObject : IJsonOnDeserialized diff --git a/src/Square/Types/OauthAuthorizationRevokedEventRevokerType.cs b/src/Square/Default/Types/OauthAuthorizationRevokedEventRevokerType.cs similarity index 98% rename from src/Square/Types/OauthAuthorizationRevokedEventRevokerType.cs rename to src/Square/Default/Types/OauthAuthorizationRevokedEventRevokerType.cs index edc6b384..c9b9e8cc 100644 --- a/src/Square/Types/OauthAuthorizationRevokedEventRevokerType.cs +++ b/src/Square/Default/Types/OauthAuthorizationRevokedEventRevokerType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/ObtainTokenResponse.cs b/src/Square/Default/Types/ObtainTokenResponse.cs similarity index 99% rename from src/Square/Types/ObtainTokenResponse.cs rename to src/Square/Default/Types/ObtainTokenResponse.cs index 78adc115..85549779 100644 --- a/src/Square/Types/ObtainTokenResponse.cs +++ b/src/Square/Default/Types/ObtainTokenResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an [ObtainToken](api-endpoint:OAuth-ObtainToken) response. diff --git a/src/Square/Types/OfflinePaymentDetails.cs b/src/Square/Default/Types/OfflinePaymentDetails.cs similarity index 96% rename from src/Square/Types/OfflinePaymentDetails.cs rename to src/Square/Default/Types/OfflinePaymentDetails.cs index 321866cf..dba4c1da 100644 --- a/src/Square/Types/OfflinePaymentDetails.cs +++ b/src/Square/Default/Types/OfflinePaymentDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Details specific to offline payments. diff --git a/src/Square/Types/Order.cs b/src/Square/Default/Types/Order.cs similarity index 99% rename from src/Square/Types/Order.cs rename to src/Square/Default/Types/Order.cs index c9273f9f..c3574722 100644 --- a/src/Square/Types/Order.cs +++ b/src/Square/Default/Types/Order.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Contains all information related to a single order to process with Square, diff --git a/src/Square/Types/OrderCardSurchargeTreatmentType.cs b/src/Square/Default/Types/OrderCardSurchargeTreatmentType.cs similarity index 98% rename from src/Square/Types/OrderCardSurchargeTreatmentType.cs rename to src/Square/Default/Types/OrderCardSurchargeTreatmentType.cs index 6ca5e3f5..5399a118 100644 --- a/src/Square/Types/OrderCardSurchargeTreatmentType.cs +++ b/src/Square/Default/Types/OrderCardSurchargeTreatmentType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/OrderCreated.cs b/src/Square/Default/Types/OrderCreated.cs similarity index 97% rename from src/Square/Types/OrderCreated.cs rename to src/Square/Default/Types/OrderCreated.cs index 396abbff..dd2ec651 100644 --- a/src/Square/Types/OrderCreated.cs +++ b/src/Square/Default/Types/OrderCreated.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record OrderCreated : IJsonOnDeserialized diff --git a/src/Square/Types/OrderCreatedEvent.cs b/src/Square/Default/Types/OrderCreatedEvent.cs similarity index 97% rename from src/Square/Types/OrderCreatedEvent.cs rename to src/Square/Default/Types/OrderCreatedEvent.cs index 0d3420f8..1128f6f9 100644 --- a/src/Square/Types/OrderCreatedEvent.cs +++ b/src/Square/Default/Types/OrderCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when an [Order](entity:Order) is created. This event is diff --git a/src/Square/Types/OrderCreatedEventData.cs b/src/Square/Default/Types/OrderCreatedEventData.cs similarity index 96% rename from src/Square/Types/OrderCreatedEventData.cs rename to src/Square/Default/Types/OrderCreatedEventData.cs index 842f2907..853d0ac5 100644 --- a/src/Square/Types/OrderCreatedEventData.cs +++ b/src/Square/Default/Types/OrderCreatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record OrderCreatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/OrderCreatedObject.cs b/src/Square/Default/Types/OrderCreatedObject.cs similarity index 95% rename from src/Square/Types/OrderCreatedObject.cs rename to src/Square/Default/Types/OrderCreatedObject.cs index 62219ef0..8c8f0733 100644 --- a/src/Square/Types/OrderCreatedObject.cs +++ b/src/Square/Default/Types/OrderCreatedObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record OrderCreatedObject : IJsonOnDeserialized diff --git a/src/Square/Types/OrderCustomAttributeDefinitionOwnedCreatedEvent.cs b/src/Square/Default/Types/OrderCustomAttributeDefinitionOwnedCreatedEvent.cs similarity index 97% rename from src/Square/Types/OrderCustomAttributeDefinitionOwnedCreatedEvent.cs rename to src/Square/Default/Types/OrderCustomAttributeDefinitionOwnedCreatedEvent.cs index 2725897c..a89805a9 100644 --- a/src/Square/Types/OrderCustomAttributeDefinitionOwnedCreatedEvent.cs +++ b/src/Square/Default/Types/OrderCustomAttributeDefinitionOwnedCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when an order [custom attribute definition](entity:CustomAttributeDefinition) that is owned by the subscribing app is created. diff --git a/src/Square/Types/OrderCustomAttributeDefinitionOwnedDeletedEvent.cs b/src/Square/Default/Types/OrderCustomAttributeDefinitionOwnedDeletedEvent.cs similarity index 97% rename from src/Square/Types/OrderCustomAttributeDefinitionOwnedDeletedEvent.cs rename to src/Square/Default/Types/OrderCustomAttributeDefinitionOwnedDeletedEvent.cs index a51e5acb..efbfb07a 100644 --- a/src/Square/Types/OrderCustomAttributeDefinitionOwnedDeletedEvent.cs +++ b/src/Square/Default/Types/OrderCustomAttributeDefinitionOwnedDeletedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when an order [custom attribute definition](entity:CustomAttributeDefinition) that is owned by the subscribing app is deleted. diff --git a/src/Square/Types/OrderCustomAttributeDefinitionOwnedUpdatedEvent.cs b/src/Square/Default/Types/OrderCustomAttributeDefinitionOwnedUpdatedEvent.cs similarity index 97% rename from src/Square/Types/OrderCustomAttributeDefinitionOwnedUpdatedEvent.cs rename to src/Square/Default/Types/OrderCustomAttributeDefinitionOwnedUpdatedEvent.cs index c351de33..43d12cf8 100644 --- a/src/Square/Types/OrderCustomAttributeDefinitionOwnedUpdatedEvent.cs +++ b/src/Square/Default/Types/OrderCustomAttributeDefinitionOwnedUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when an order [custom attribute definition](entity:CustomAttributeDefinition) that is owned by the subscribing app is updated. diff --git a/src/Square/Types/OrderCustomAttributeDefinitionVisibleCreatedEvent.cs b/src/Square/Default/Types/OrderCustomAttributeDefinitionVisibleCreatedEvent.cs similarity index 97% rename from src/Square/Types/OrderCustomAttributeDefinitionVisibleCreatedEvent.cs rename to src/Square/Default/Types/OrderCustomAttributeDefinitionVisibleCreatedEvent.cs index 4ee5cce4..81c4b486 100644 --- a/src/Square/Types/OrderCustomAttributeDefinitionVisibleCreatedEvent.cs +++ b/src/Square/Default/Types/OrderCustomAttributeDefinitionVisibleCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when an order [custom attribute definition](entity:CustomAttributeDefinition) that is visible to the subscribing app is created. diff --git a/src/Square/Types/OrderCustomAttributeDefinitionVisibleDeletedEvent.cs b/src/Square/Default/Types/OrderCustomAttributeDefinitionVisibleDeletedEvent.cs similarity index 97% rename from src/Square/Types/OrderCustomAttributeDefinitionVisibleDeletedEvent.cs rename to src/Square/Default/Types/OrderCustomAttributeDefinitionVisibleDeletedEvent.cs index 1ef4c047..79e7babf 100644 --- a/src/Square/Types/OrderCustomAttributeDefinitionVisibleDeletedEvent.cs +++ b/src/Square/Default/Types/OrderCustomAttributeDefinitionVisibleDeletedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when an order [custom attribute definition](entity:CustomAttributeDefinition) that is visible to the subscribing app is deleted. diff --git a/src/Square/Types/OrderCustomAttributeDefinitionVisibleUpdatedEvent.cs b/src/Square/Default/Types/OrderCustomAttributeDefinitionVisibleUpdatedEvent.cs similarity index 97% rename from src/Square/Types/OrderCustomAttributeDefinitionVisibleUpdatedEvent.cs rename to src/Square/Default/Types/OrderCustomAttributeDefinitionVisibleUpdatedEvent.cs index a19ed448..d1561db2 100644 --- a/src/Square/Types/OrderCustomAttributeDefinitionVisibleUpdatedEvent.cs +++ b/src/Square/Default/Types/OrderCustomAttributeDefinitionVisibleUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when an order [custom attribute definition](entity:CustomAttributeDefinition) that is visible to the subscribing app is updated. diff --git a/src/Square/Types/OrderCustomAttributeOwnedDeletedEvent.cs b/src/Square/Default/Types/OrderCustomAttributeOwnedDeletedEvent.cs similarity index 97% rename from src/Square/Types/OrderCustomAttributeOwnedDeletedEvent.cs rename to src/Square/Default/Types/OrderCustomAttributeOwnedDeletedEvent.cs index 024ec04b..cbd3babd 100644 --- a/src/Square/Types/OrderCustomAttributeOwnedDeletedEvent.cs +++ b/src/Square/Default/Types/OrderCustomAttributeOwnedDeletedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when an order [custom attribute](entity:CustomAttribute) associated with a [custom attribute definition](entity:CustomAttributeDefinition) that is owned by the subscribing app is deleted. diff --git a/src/Square/Types/OrderCustomAttributeOwnedUpdatedEvent.cs b/src/Square/Default/Types/OrderCustomAttributeOwnedUpdatedEvent.cs similarity index 97% rename from src/Square/Types/OrderCustomAttributeOwnedUpdatedEvent.cs rename to src/Square/Default/Types/OrderCustomAttributeOwnedUpdatedEvent.cs index 65e247ab..7393e793 100644 --- a/src/Square/Types/OrderCustomAttributeOwnedUpdatedEvent.cs +++ b/src/Square/Default/Types/OrderCustomAttributeOwnedUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when an order [custom attribute](entity:CustomAttribute) associated with a [custom attribute definition](entity:CustomAttributeDefinition) that is owned by the subscribing app is updated. diff --git a/src/Square/Types/OrderCustomAttributeVisibleDeletedEvent.cs b/src/Square/Default/Types/OrderCustomAttributeVisibleDeletedEvent.cs similarity index 97% rename from src/Square/Types/OrderCustomAttributeVisibleDeletedEvent.cs rename to src/Square/Default/Types/OrderCustomAttributeVisibleDeletedEvent.cs index a892c10d..70a06989 100644 --- a/src/Square/Types/OrderCustomAttributeVisibleDeletedEvent.cs +++ b/src/Square/Default/Types/OrderCustomAttributeVisibleDeletedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when an order [custom attribute](entity:CustomAttribute) that is visible to the subscribing app is deleted. diff --git a/src/Square/Types/OrderCustomAttributeVisibleUpdatedEvent.cs b/src/Square/Default/Types/OrderCustomAttributeVisibleUpdatedEvent.cs similarity index 97% rename from src/Square/Types/OrderCustomAttributeVisibleUpdatedEvent.cs rename to src/Square/Default/Types/OrderCustomAttributeVisibleUpdatedEvent.cs index 29a76b57..9df35587 100644 --- a/src/Square/Types/OrderCustomAttributeVisibleUpdatedEvent.cs +++ b/src/Square/Default/Types/OrderCustomAttributeVisibleUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when an order [custom attribute](entity:CustomAttribute) that is visible to the subscribing app is updated. diff --git a/src/Square/Types/OrderEntry.cs b/src/Square/Default/Types/OrderEntry.cs similarity index 97% rename from src/Square/Types/OrderEntry.cs rename to src/Square/Default/Types/OrderEntry.cs index 9d063d9a..1f3648cb 100644 --- a/src/Square/Types/OrderEntry.cs +++ b/src/Square/Default/Types/OrderEntry.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A lightweight description of an [order](entity:Order) that is returned when diff --git a/src/Square/Types/OrderFulfillmentDeliveryDetailsScheduleType.cs b/src/Square/Default/Types/OrderFulfillmentDeliveryDetailsScheduleType.cs similarity index 98% rename from src/Square/Types/OrderFulfillmentDeliveryDetailsScheduleType.cs rename to src/Square/Default/Types/OrderFulfillmentDeliveryDetailsScheduleType.cs index 2a93955a..e2b67e4b 100644 --- a/src/Square/Types/OrderFulfillmentDeliveryDetailsScheduleType.cs +++ b/src/Square/Default/Types/OrderFulfillmentDeliveryDetailsScheduleType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/OrderFulfillmentFulfillmentLineItemApplication.cs b/src/Square/Default/Types/OrderFulfillmentFulfillmentLineItemApplication.cs similarity index 98% rename from src/Square/Types/OrderFulfillmentFulfillmentLineItemApplication.cs rename to src/Square/Default/Types/OrderFulfillmentFulfillmentLineItemApplication.cs index 5c0f60e9..151c0b83 100644 --- a/src/Square/Types/OrderFulfillmentFulfillmentLineItemApplication.cs +++ b/src/Square/Default/Types/OrderFulfillmentFulfillmentLineItemApplication.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/OrderFulfillmentPickupDetailsScheduleType.cs b/src/Square/Default/Types/OrderFulfillmentPickupDetailsScheduleType.cs similarity index 98% rename from src/Square/Types/OrderFulfillmentPickupDetailsScheduleType.cs rename to src/Square/Default/Types/OrderFulfillmentPickupDetailsScheduleType.cs index 3e15bf95..7b2cec01 100644 --- a/src/Square/Types/OrderFulfillmentPickupDetailsScheduleType.cs +++ b/src/Square/Default/Types/OrderFulfillmentPickupDetailsScheduleType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/OrderFulfillmentState.cs b/src/Square/Default/Types/OrderFulfillmentState.cs similarity index 98% rename from src/Square/Types/OrderFulfillmentState.cs rename to src/Square/Default/Types/OrderFulfillmentState.cs index 95b773a8..4ecdf10a 100644 --- a/src/Square/Types/OrderFulfillmentState.cs +++ b/src/Square/Default/Types/OrderFulfillmentState.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/OrderFulfillmentType.cs b/src/Square/Default/Types/OrderFulfillmentType.cs similarity index 98% rename from src/Square/Types/OrderFulfillmentType.cs rename to src/Square/Default/Types/OrderFulfillmentType.cs index bec5d4ca..3c7974d6 100644 --- a/src/Square/Types/OrderFulfillmentType.cs +++ b/src/Square/Default/Types/OrderFulfillmentType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/OrderFulfillmentUpdated.cs b/src/Square/Default/Types/OrderFulfillmentUpdated.cs similarity index 98% rename from src/Square/Types/OrderFulfillmentUpdated.cs rename to src/Square/Default/Types/OrderFulfillmentUpdated.cs index 1d7647b7..fa705d5a 100644 --- a/src/Square/Types/OrderFulfillmentUpdated.cs +++ b/src/Square/Default/Types/OrderFulfillmentUpdated.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record OrderFulfillmentUpdated : IJsonOnDeserialized diff --git a/src/Square/Types/OrderFulfillmentUpdatedEvent.cs b/src/Square/Default/Types/OrderFulfillmentUpdatedEvent.cs similarity index 97% rename from src/Square/Types/OrderFulfillmentUpdatedEvent.cs rename to src/Square/Default/Types/OrderFulfillmentUpdatedEvent.cs index ab8f387a..fd25a1b0 100644 --- a/src/Square/Types/OrderFulfillmentUpdatedEvent.cs +++ b/src/Square/Default/Types/OrderFulfillmentUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when an [OrderFulfillment](entity:OrderFulfillment) diff --git a/src/Square/Types/OrderFulfillmentUpdatedEventData.cs b/src/Square/Default/Types/OrderFulfillmentUpdatedEventData.cs similarity index 96% rename from src/Square/Types/OrderFulfillmentUpdatedEventData.cs rename to src/Square/Default/Types/OrderFulfillmentUpdatedEventData.cs index 9bbb1830..f23c64ca 100644 --- a/src/Square/Types/OrderFulfillmentUpdatedEventData.cs +++ b/src/Square/Default/Types/OrderFulfillmentUpdatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record OrderFulfillmentUpdatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/OrderFulfillmentUpdatedObject.cs b/src/Square/Default/Types/OrderFulfillmentUpdatedObject.cs similarity index 95% rename from src/Square/Types/OrderFulfillmentUpdatedObject.cs rename to src/Square/Default/Types/OrderFulfillmentUpdatedObject.cs index 37f88e66..5b418f78 100644 --- a/src/Square/Types/OrderFulfillmentUpdatedObject.cs +++ b/src/Square/Default/Types/OrderFulfillmentUpdatedObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record OrderFulfillmentUpdatedObject : IJsonOnDeserialized diff --git a/src/Square/Types/OrderFulfillmentUpdatedUpdate.cs b/src/Square/Default/Types/OrderFulfillmentUpdatedUpdate.cs similarity index 97% rename from src/Square/Types/OrderFulfillmentUpdatedUpdate.cs rename to src/Square/Default/Types/OrderFulfillmentUpdatedUpdate.cs index fd8b9a3b..a1e88872 100644 --- a/src/Square/Types/OrderFulfillmentUpdatedUpdate.cs +++ b/src/Square/Default/Types/OrderFulfillmentUpdatedUpdate.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Information about fulfillment updates. diff --git a/src/Square/Types/OrderLineItem.cs b/src/Square/Default/Types/OrderLineItem.cs similarity index 99% rename from src/Square/Types/OrderLineItem.cs rename to src/Square/Default/Types/OrderLineItem.cs index 318bf94a..5de15d4e 100644 --- a/src/Square/Types/OrderLineItem.cs +++ b/src/Square/Default/Types/OrderLineItem.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a line item in an order. Each line item describes a different diff --git a/src/Square/Types/OrderLineItemAppliedDiscount.cs b/src/Square/Default/Types/OrderLineItemAppliedDiscount.cs similarity index 97% rename from src/Square/Types/OrderLineItemAppliedDiscount.cs rename to src/Square/Default/Types/OrderLineItemAppliedDiscount.cs index 095e0991..b1769c8b 100644 --- a/src/Square/Types/OrderLineItemAppliedDiscount.cs +++ b/src/Square/Default/Types/OrderLineItemAppliedDiscount.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an applied portion of a discount to a line item in an order. diff --git a/src/Square/Types/OrderLineItemAppliedServiceCharge.cs b/src/Square/Default/Types/OrderLineItemAppliedServiceCharge.cs similarity index 97% rename from src/Square/Types/OrderLineItemAppliedServiceCharge.cs rename to src/Square/Default/Types/OrderLineItemAppliedServiceCharge.cs index d27cd7d5..fcb2f3af 100644 --- a/src/Square/Types/OrderLineItemAppliedServiceCharge.cs +++ b/src/Square/Default/Types/OrderLineItemAppliedServiceCharge.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record OrderLineItemAppliedServiceCharge : IJsonOnDeserialized diff --git a/src/Square/Types/OrderLineItemAppliedTax.cs b/src/Square/Default/Types/OrderLineItemAppliedTax.cs similarity index 98% rename from src/Square/Types/OrderLineItemAppliedTax.cs rename to src/Square/Default/Types/OrderLineItemAppliedTax.cs index fc8f077c..5b1e3650 100644 --- a/src/Square/Types/OrderLineItemAppliedTax.cs +++ b/src/Square/Default/Types/OrderLineItemAppliedTax.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an applied portion of a tax to a line item in an order. diff --git a/src/Square/Types/OrderLineItemDiscount.cs b/src/Square/Default/Types/OrderLineItemDiscount.cs similarity index 99% rename from src/Square/Types/OrderLineItemDiscount.cs rename to src/Square/Default/Types/OrderLineItemDiscount.cs index 7bad5cb6..3696a052 100644 --- a/src/Square/Types/OrderLineItemDiscount.cs +++ b/src/Square/Default/Types/OrderLineItemDiscount.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a discount that applies to one or more line items in an diff --git a/src/Square/Types/OrderLineItemDiscountScope.cs b/src/Square/Default/Types/OrderLineItemDiscountScope.cs similarity index 98% rename from src/Square/Types/OrderLineItemDiscountScope.cs rename to src/Square/Default/Types/OrderLineItemDiscountScope.cs index 2dc4bc17..d74252d7 100644 --- a/src/Square/Types/OrderLineItemDiscountScope.cs +++ b/src/Square/Default/Types/OrderLineItemDiscountScope.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/OrderLineItemDiscountType.cs b/src/Square/Default/Types/OrderLineItemDiscountType.cs similarity index 98% rename from src/Square/Types/OrderLineItemDiscountType.cs rename to src/Square/Default/Types/OrderLineItemDiscountType.cs index 949bbf68..1020bb8e 100644 --- a/src/Square/Types/OrderLineItemDiscountType.cs +++ b/src/Square/Default/Types/OrderLineItemDiscountType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/OrderLineItemItemType.cs b/src/Square/Default/Types/OrderLineItemItemType.cs similarity index 98% rename from src/Square/Types/OrderLineItemItemType.cs rename to src/Square/Default/Types/OrderLineItemItemType.cs index d873f190..0271d6e0 100644 --- a/src/Square/Types/OrderLineItemItemType.cs +++ b/src/Square/Default/Types/OrderLineItemItemType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/OrderLineItemModifier.cs b/src/Square/Default/Types/OrderLineItemModifier.cs similarity index 99% rename from src/Square/Types/OrderLineItemModifier.cs rename to src/Square/Default/Types/OrderLineItemModifier.cs index ac35e6b1..b939b5d9 100644 --- a/src/Square/Types/OrderLineItemModifier.cs +++ b/src/Square/Default/Types/OrderLineItemModifier.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A [CatalogModifier](entity:CatalogModifier). diff --git a/src/Square/Types/OrderLineItemPricingBlocklists.cs b/src/Square/Default/Types/OrderLineItemPricingBlocklists.cs similarity index 98% rename from src/Square/Types/OrderLineItemPricingBlocklists.cs rename to src/Square/Default/Types/OrderLineItemPricingBlocklists.cs index 04ee6fb6..c9f38c29 100644 --- a/src/Square/Types/OrderLineItemPricingBlocklists.cs +++ b/src/Square/Default/Types/OrderLineItemPricingBlocklists.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Describes pricing adjustments that are blocked from automatic diff --git a/src/Square/Types/OrderLineItemPricingBlocklistsBlockedDiscount.cs b/src/Square/Default/Types/OrderLineItemPricingBlocklistsBlockedDiscount.cs similarity index 97% rename from src/Square/Types/OrderLineItemPricingBlocklistsBlockedDiscount.cs rename to src/Square/Default/Types/OrderLineItemPricingBlocklistsBlockedDiscount.cs index 9a1c1d4f..a0143f51 100644 --- a/src/Square/Types/OrderLineItemPricingBlocklistsBlockedDiscount.cs +++ b/src/Square/Default/Types/OrderLineItemPricingBlocklistsBlockedDiscount.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A discount to block from applying to a line item. The discount must be diff --git a/src/Square/Types/OrderLineItemPricingBlocklistsBlockedServiceCharge.cs b/src/Square/Default/Types/OrderLineItemPricingBlocklistsBlockedServiceCharge.cs similarity index 97% rename from src/Square/Types/OrderLineItemPricingBlocklistsBlockedServiceCharge.cs rename to src/Square/Default/Types/OrderLineItemPricingBlocklistsBlockedServiceCharge.cs index c6ec0b8c..b8d3478f 100644 --- a/src/Square/Types/OrderLineItemPricingBlocklistsBlockedServiceCharge.cs +++ b/src/Square/Default/Types/OrderLineItemPricingBlocklistsBlockedServiceCharge.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A service charge to block from applying to a line item. The service charge diff --git a/src/Square/Types/OrderLineItemPricingBlocklistsBlockedTax.cs b/src/Square/Default/Types/OrderLineItemPricingBlocklistsBlockedTax.cs similarity index 97% rename from src/Square/Types/OrderLineItemPricingBlocklistsBlockedTax.cs rename to src/Square/Default/Types/OrderLineItemPricingBlocklistsBlockedTax.cs index 9dfe2f33..935a1589 100644 --- a/src/Square/Types/OrderLineItemPricingBlocklistsBlockedTax.cs +++ b/src/Square/Default/Types/OrderLineItemPricingBlocklistsBlockedTax.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A tax to block from applying to a line item. The tax must be diff --git a/src/Square/Types/OrderLineItemTax.cs b/src/Square/Default/Types/OrderLineItemTax.cs similarity index 99% rename from src/Square/Types/OrderLineItemTax.cs rename to src/Square/Default/Types/OrderLineItemTax.cs index 5dcbc243..22f4f071 100644 --- a/src/Square/Types/OrderLineItemTax.cs +++ b/src/Square/Default/Types/OrderLineItemTax.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a tax that applies to one or more line item in the order. diff --git a/src/Square/Types/OrderLineItemTaxScope.cs b/src/Square/Default/Types/OrderLineItemTaxScope.cs similarity index 98% rename from src/Square/Types/OrderLineItemTaxScope.cs rename to src/Square/Default/Types/OrderLineItemTaxScope.cs index d9b0ed22..cff0cdc1 100644 --- a/src/Square/Types/OrderLineItemTaxScope.cs +++ b/src/Square/Default/Types/OrderLineItemTaxScope.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/OrderLineItemTaxType.cs b/src/Square/Default/Types/OrderLineItemTaxType.cs similarity index 98% rename from src/Square/Types/OrderLineItemTaxType.cs rename to src/Square/Default/Types/OrderLineItemTaxType.cs index 2b530e6d..4d1399ad 100644 --- a/src/Square/Types/OrderLineItemTaxType.cs +++ b/src/Square/Default/Types/OrderLineItemTaxType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/OrderMoneyAmounts.cs b/src/Square/Default/Types/OrderMoneyAmounts.cs similarity index 97% rename from src/Square/Types/OrderMoneyAmounts.cs rename to src/Square/Default/Types/OrderMoneyAmounts.cs index 4da15f3f..72924c00 100644 --- a/src/Square/Types/OrderMoneyAmounts.cs +++ b/src/Square/Default/Types/OrderMoneyAmounts.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A collection of various money amounts. diff --git a/src/Square/Types/OrderPricingOptions.cs b/src/Square/Default/Types/OrderPricingOptions.cs similarity index 97% rename from src/Square/Types/OrderPricingOptions.cs rename to src/Square/Default/Types/OrderPricingOptions.cs index ceb165ed..fffadbf5 100644 --- a/src/Square/Types/OrderPricingOptions.cs +++ b/src/Square/Default/Types/OrderPricingOptions.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Pricing options for an order. The options affect how the order's price is calculated. diff --git a/src/Square/Types/OrderQuantityUnit.cs b/src/Square/Default/Types/OrderQuantityUnit.cs similarity index 98% rename from src/Square/Types/OrderQuantityUnit.cs rename to src/Square/Default/Types/OrderQuantityUnit.cs index 8a2a02ee..85df0f4d 100644 --- a/src/Square/Types/OrderQuantityUnit.cs +++ b/src/Square/Default/Types/OrderQuantityUnit.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Contains the measurement unit for a quantity and a precision that diff --git a/src/Square/Types/OrderReturn.cs b/src/Square/Default/Types/OrderReturn.cs similarity index 98% rename from src/Square/Types/OrderReturn.cs rename to src/Square/Default/Types/OrderReturn.cs index 91a50ca0..a561af79 100644 --- a/src/Square/Types/OrderReturn.cs +++ b/src/Square/Default/Types/OrderReturn.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The set of line items, service charges, taxes, discounts, tips, and other items being returned in an order. diff --git a/src/Square/Types/OrderReturnDiscount.cs b/src/Square/Default/Types/OrderReturnDiscount.cs similarity index 99% rename from src/Square/Types/OrderReturnDiscount.cs rename to src/Square/Default/Types/OrderReturnDiscount.cs index 1cdfbd87..388f114b 100644 --- a/src/Square/Types/OrderReturnDiscount.cs +++ b/src/Square/Default/Types/OrderReturnDiscount.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a discount being returned that applies to one or more return line items in an diff --git a/src/Square/Types/OrderReturnLineItem.cs b/src/Square/Default/Types/OrderReturnLineItem.cs similarity index 99% rename from src/Square/Types/OrderReturnLineItem.cs rename to src/Square/Default/Types/OrderReturnLineItem.cs index eb52939b..275998a0 100644 --- a/src/Square/Types/OrderReturnLineItem.cs +++ b/src/Square/Default/Types/OrderReturnLineItem.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The line item being returned in an order. diff --git a/src/Square/Types/OrderReturnLineItemModifier.cs b/src/Square/Default/Types/OrderReturnLineItemModifier.cs similarity index 98% rename from src/Square/Types/OrderReturnLineItemModifier.cs rename to src/Square/Default/Types/OrderReturnLineItemModifier.cs index d1ab6c2a..43014a67 100644 --- a/src/Square/Types/OrderReturnLineItemModifier.cs +++ b/src/Square/Default/Types/OrderReturnLineItemModifier.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A line item modifier being returned. diff --git a/src/Square/Types/OrderReturnServiceCharge.cs b/src/Square/Default/Types/OrderReturnServiceCharge.cs similarity index 99% rename from src/Square/Types/OrderReturnServiceCharge.cs rename to src/Square/Default/Types/OrderReturnServiceCharge.cs index e729ebb0..33ed1888 100644 --- a/src/Square/Types/OrderReturnServiceCharge.cs +++ b/src/Square/Default/Types/OrderReturnServiceCharge.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents the service charge applied to the original order. diff --git a/src/Square/Types/OrderReturnTax.cs b/src/Square/Default/Types/OrderReturnTax.cs similarity index 98% rename from src/Square/Types/OrderReturnTax.cs rename to src/Square/Default/Types/OrderReturnTax.cs index 8acd24fa..103b0bff 100644 --- a/src/Square/Types/OrderReturnTax.cs +++ b/src/Square/Default/Types/OrderReturnTax.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a tax being returned that applies to one or more return line items in an order. diff --git a/src/Square/Types/OrderReturnTip.cs b/src/Square/Default/Types/OrderReturnTip.cs similarity index 97% rename from src/Square/Types/OrderReturnTip.cs rename to src/Square/Default/Types/OrderReturnTip.cs index e672e322..b6ea7d2d 100644 --- a/src/Square/Types/OrderReturnTip.cs +++ b/src/Square/Default/Types/OrderReturnTip.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A tip being returned. diff --git a/src/Square/Types/OrderReward.cs b/src/Square/Default/Types/OrderReward.cs similarity index 96% rename from src/Square/Types/OrderReward.cs rename to src/Square/Default/Types/OrderReward.cs index d1a65129..7bd4558f 100644 --- a/src/Square/Types/OrderReward.cs +++ b/src/Square/Default/Types/OrderReward.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a reward that can be applied to an order if the necessary diff --git a/src/Square/Types/OrderRoundingAdjustment.cs b/src/Square/Default/Types/OrderRoundingAdjustment.cs similarity index 97% rename from src/Square/Types/OrderRoundingAdjustment.cs rename to src/Square/Default/Types/OrderRoundingAdjustment.cs index 198d97e8..efde540e 100644 --- a/src/Square/Types/OrderRoundingAdjustment.cs +++ b/src/Square/Default/Types/OrderRoundingAdjustment.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A rounding adjustment of the money being returned. Commonly used to apply cash rounding diff --git a/src/Square/Types/OrderServiceCharge.cs b/src/Square/Default/Types/OrderServiceCharge.cs similarity index 99% rename from src/Square/Types/OrderServiceCharge.cs rename to src/Square/Default/Types/OrderServiceCharge.cs index 3ec54cc6..0ca45d54 100644 --- a/src/Square/Types/OrderServiceCharge.cs +++ b/src/Square/Default/Types/OrderServiceCharge.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a service charge applied to an order. diff --git a/src/Square/Types/OrderServiceChargeCalculationPhase.cs b/src/Square/Default/Types/OrderServiceChargeCalculationPhase.cs similarity index 98% rename from src/Square/Types/OrderServiceChargeCalculationPhase.cs rename to src/Square/Default/Types/OrderServiceChargeCalculationPhase.cs index d8087eb1..a4a32dd5 100644 --- a/src/Square/Types/OrderServiceChargeCalculationPhase.cs +++ b/src/Square/Default/Types/OrderServiceChargeCalculationPhase.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/OrderServiceChargeScope.cs b/src/Square/Default/Types/OrderServiceChargeScope.cs similarity index 98% rename from src/Square/Types/OrderServiceChargeScope.cs rename to src/Square/Default/Types/OrderServiceChargeScope.cs index 16042943..c98f2d6b 100644 --- a/src/Square/Types/OrderServiceChargeScope.cs +++ b/src/Square/Default/Types/OrderServiceChargeScope.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/OrderServiceChargeTreatmentType.cs b/src/Square/Default/Types/OrderServiceChargeTreatmentType.cs similarity index 98% rename from src/Square/Types/OrderServiceChargeTreatmentType.cs rename to src/Square/Default/Types/OrderServiceChargeTreatmentType.cs index 63e99dac..078462e7 100644 --- a/src/Square/Types/OrderServiceChargeTreatmentType.cs +++ b/src/Square/Default/Types/OrderServiceChargeTreatmentType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/OrderServiceChargeType.cs b/src/Square/Default/Types/OrderServiceChargeType.cs similarity index 98% rename from src/Square/Types/OrderServiceChargeType.cs rename to src/Square/Default/Types/OrderServiceChargeType.cs index d18a8397..b8adf9cf 100644 --- a/src/Square/Types/OrderServiceChargeType.cs +++ b/src/Square/Default/Types/OrderServiceChargeType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/OrderSource.cs b/src/Square/Default/Types/OrderSource.cs similarity index 96% rename from src/Square/Types/OrderSource.cs rename to src/Square/Default/Types/OrderSource.cs index 93b8dc5f..8e6c3148 100644 --- a/src/Square/Types/OrderSource.cs +++ b/src/Square/Default/Types/OrderSource.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents the origination details of an order. diff --git a/src/Square/Types/OrderState.cs b/src/Square/Default/Types/OrderState.cs similarity index 98% rename from src/Square/Types/OrderState.cs rename to src/Square/Default/Types/OrderState.cs index 0cc84556..3bd87540 100644 --- a/src/Square/Types/OrderState.cs +++ b/src/Square/Default/Types/OrderState.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/OrderUpdated.cs b/src/Square/Default/Types/OrderUpdated.cs similarity index 98% rename from src/Square/Types/OrderUpdated.cs rename to src/Square/Default/Types/OrderUpdated.cs index bf9629a2..b6d62ec7 100644 --- a/src/Square/Types/OrderUpdated.cs +++ b/src/Square/Default/Types/OrderUpdated.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record OrderUpdated : IJsonOnDeserialized diff --git a/src/Square/Types/OrderUpdatedEvent.cs b/src/Square/Default/Types/OrderUpdatedEvent.cs similarity index 97% rename from src/Square/Types/OrderUpdatedEvent.cs rename to src/Square/Default/Types/OrderUpdatedEvent.cs index 7e51f436..a0993e0a 100644 --- a/src/Square/Types/OrderUpdatedEvent.cs +++ b/src/Square/Default/Types/OrderUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when an [Order](entity:Order) is updated. This diff --git a/src/Square/Types/OrderUpdatedEventData.cs b/src/Square/Default/Types/OrderUpdatedEventData.cs similarity index 96% rename from src/Square/Types/OrderUpdatedEventData.cs rename to src/Square/Default/Types/OrderUpdatedEventData.cs index 8ba1ae7b..5ef0448a 100644 --- a/src/Square/Types/OrderUpdatedEventData.cs +++ b/src/Square/Default/Types/OrderUpdatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record OrderUpdatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/OrderUpdatedObject.cs b/src/Square/Default/Types/OrderUpdatedObject.cs similarity index 95% rename from src/Square/Types/OrderUpdatedObject.cs rename to src/Square/Default/Types/OrderUpdatedObject.cs index 705d113e..be6b73c2 100644 --- a/src/Square/Types/OrderUpdatedObject.cs +++ b/src/Square/Default/Types/OrderUpdatedObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record OrderUpdatedObject : IJsonOnDeserialized diff --git a/src/Square/Types/PauseSubscriptionResponse.cs b/src/Square/Default/Types/PauseSubscriptionResponse.cs similarity index 97% rename from src/Square/Types/PauseSubscriptionResponse.cs rename to src/Square/Default/Types/PauseSubscriptionResponse.cs index 222142f3..f9acaf45 100644 --- a/src/Square/Types/PauseSubscriptionResponse.cs +++ b/src/Square/Default/Types/PauseSubscriptionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines output parameters in a response from the diff --git a/src/Square/Types/PayOrderResponse.cs b/src/Square/Default/Types/PayOrderResponse.cs similarity index 96% rename from src/Square/Types/PayOrderResponse.cs rename to src/Square/Default/Types/PayOrderResponse.cs index d876b8c4..546e327b 100644 --- a/src/Square/Types/PayOrderResponse.cs +++ b/src/Square/Default/Types/PayOrderResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of a request to the diff --git a/src/Square/Types/Payment.cs b/src/Square/Default/Types/Payment.cs similarity index 99% rename from src/Square/Types/Payment.cs rename to src/Square/Default/Types/Payment.cs index dfd57ee7..60ff9502 100644 --- a/src/Square/Types/Payment.cs +++ b/src/Square/Default/Types/Payment.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a payment processed by the Square API. diff --git a/src/Square/Types/PaymentBalanceActivityAppFeeRefundDetail.cs b/src/Square/Default/Types/PaymentBalanceActivityAppFeeRefundDetail.cs similarity index 96% rename from src/Square/Types/PaymentBalanceActivityAppFeeRefundDetail.cs rename to src/Square/Default/Types/PaymentBalanceActivityAppFeeRefundDetail.cs index 8e639225..8292ef6a 100644 --- a/src/Square/Types/PaymentBalanceActivityAppFeeRefundDetail.cs +++ b/src/Square/Default/Types/PaymentBalanceActivityAppFeeRefundDetail.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PaymentBalanceActivityAppFeeRefundDetail : IJsonOnDeserialized diff --git a/src/Square/Types/PaymentBalanceActivityAppFeeRevenueDetail.cs b/src/Square/Default/Types/PaymentBalanceActivityAppFeeRevenueDetail.cs similarity index 96% rename from src/Square/Types/PaymentBalanceActivityAppFeeRevenueDetail.cs rename to src/Square/Default/Types/PaymentBalanceActivityAppFeeRevenueDetail.cs index 7f4f4e42..27247d47 100644 --- a/src/Square/Types/PaymentBalanceActivityAppFeeRevenueDetail.cs +++ b/src/Square/Default/Types/PaymentBalanceActivityAppFeeRevenueDetail.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PaymentBalanceActivityAppFeeRevenueDetail : IJsonOnDeserialized diff --git a/src/Square/Types/PaymentBalanceActivityAutomaticSavingsDetail.cs b/src/Square/Default/Types/PaymentBalanceActivityAutomaticSavingsDetail.cs similarity index 96% rename from src/Square/Types/PaymentBalanceActivityAutomaticSavingsDetail.cs rename to src/Square/Default/Types/PaymentBalanceActivityAutomaticSavingsDetail.cs index db0d7d78..1bca097a 100644 --- a/src/Square/Types/PaymentBalanceActivityAutomaticSavingsDetail.cs +++ b/src/Square/Default/Types/PaymentBalanceActivityAutomaticSavingsDetail.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PaymentBalanceActivityAutomaticSavingsDetail : IJsonOnDeserialized diff --git a/src/Square/Types/PaymentBalanceActivityAutomaticSavingsReversedDetail.cs b/src/Square/Default/Types/PaymentBalanceActivityAutomaticSavingsReversedDetail.cs similarity index 96% rename from src/Square/Types/PaymentBalanceActivityAutomaticSavingsReversedDetail.cs rename to src/Square/Default/Types/PaymentBalanceActivityAutomaticSavingsReversedDetail.cs index b2b56619..cda10248 100644 --- a/src/Square/Types/PaymentBalanceActivityAutomaticSavingsReversedDetail.cs +++ b/src/Square/Default/Types/PaymentBalanceActivityAutomaticSavingsReversedDetail.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PaymentBalanceActivityAutomaticSavingsReversedDetail : IJsonOnDeserialized diff --git a/src/Square/Types/PaymentBalanceActivityChargeDetail.cs b/src/Square/Default/Types/PaymentBalanceActivityChargeDetail.cs similarity index 95% rename from src/Square/Types/PaymentBalanceActivityChargeDetail.cs rename to src/Square/Default/Types/PaymentBalanceActivityChargeDetail.cs index 8646de13..a93750e1 100644 --- a/src/Square/Types/PaymentBalanceActivityChargeDetail.cs +++ b/src/Square/Default/Types/PaymentBalanceActivityChargeDetail.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PaymentBalanceActivityChargeDetail : IJsonOnDeserialized diff --git a/src/Square/Types/PaymentBalanceActivityDepositFeeDetail.cs b/src/Square/Default/Types/PaymentBalanceActivityDepositFeeDetail.cs similarity index 95% rename from src/Square/Types/PaymentBalanceActivityDepositFeeDetail.cs rename to src/Square/Default/Types/PaymentBalanceActivityDepositFeeDetail.cs index 6e516cb7..3a2fe990 100644 --- a/src/Square/Types/PaymentBalanceActivityDepositFeeDetail.cs +++ b/src/Square/Default/Types/PaymentBalanceActivityDepositFeeDetail.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PaymentBalanceActivityDepositFeeDetail : IJsonOnDeserialized diff --git a/src/Square/Types/PaymentBalanceActivityDepositFeeReversedDetail.cs b/src/Square/Default/Types/PaymentBalanceActivityDepositFeeReversedDetail.cs similarity index 95% rename from src/Square/Types/PaymentBalanceActivityDepositFeeReversedDetail.cs rename to src/Square/Default/Types/PaymentBalanceActivityDepositFeeReversedDetail.cs index 63a84be6..79a538f1 100644 --- a/src/Square/Types/PaymentBalanceActivityDepositFeeReversedDetail.cs +++ b/src/Square/Default/Types/PaymentBalanceActivityDepositFeeReversedDetail.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PaymentBalanceActivityDepositFeeReversedDetail : IJsonOnDeserialized diff --git a/src/Square/Types/PaymentBalanceActivityDisputeDetail.cs b/src/Square/Default/Types/PaymentBalanceActivityDisputeDetail.cs similarity index 96% rename from src/Square/Types/PaymentBalanceActivityDisputeDetail.cs rename to src/Square/Default/Types/PaymentBalanceActivityDisputeDetail.cs index a1bd56b0..3dc37b89 100644 --- a/src/Square/Types/PaymentBalanceActivityDisputeDetail.cs +++ b/src/Square/Default/Types/PaymentBalanceActivityDisputeDetail.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PaymentBalanceActivityDisputeDetail : IJsonOnDeserialized diff --git a/src/Square/Types/PaymentBalanceActivityFeeDetail.cs b/src/Square/Default/Types/PaymentBalanceActivityFeeDetail.cs similarity index 96% rename from src/Square/Types/PaymentBalanceActivityFeeDetail.cs rename to src/Square/Default/Types/PaymentBalanceActivityFeeDetail.cs index 7b6e416d..133eb8f7 100644 --- a/src/Square/Types/PaymentBalanceActivityFeeDetail.cs +++ b/src/Square/Default/Types/PaymentBalanceActivityFeeDetail.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PaymentBalanceActivityFeeDetail : IJsonOnDeserialized diff --git a/src/Square/Types/PaymentBalanceActivityFreeProcessingDetail.cs b/src/Square/Default/Types/PaymentBalanceActivityFreeProcessingDetail.cs similarity index 95% rename from src/Square/Types/PaymentBalanceActivityFreeProcessingDetail.cs rename to src/Square/Default/Types/PaymentBalanceActivityFreeProcessingDetail.cs index 45e42a26..3afa5a0e 100644 --- a/src/Square/Types/PaymentBalanceActivityFreeProcessingDetail.cs +++ b/src/Square/Default/Types/PaymentBalanceActivityFreeProcessingDetail.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PaymentBalanceActivityFreeProcessingDetail : IJsonOnDeserialized diff --git a/src/Square/Types/PaymentBalanceActivityHoldAdjustmentDetail.cs b/src/Square/Default/Types/PaymentBalanceActivityHoldAdjustmentDetail.cs similarity index 95% rename from src/Square/Types/PaymentBalanceActivityHoldAdjustmentDetail.cs rename to src/Square/Default/Types/PaymentBalanceActivityHoldAdjustmentDetail.cs index ee0c1ad3..770bc453 100644 --- a/src/Square/Types/PaymentBalanceActivityHoldAdjustmentDetail.cs +++ b/src/Square/Default/Types/PaymentBalanceActivityHoldAdjustmentDetail.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PaymentBalanceActivityHoldAdjustmentDetail : IJsonOnDeserialized diff --git a/src/Square/Types/PaymentBalanceActivityOpenDisputeDetail.cs b/src/Square/Default/Types/PaymentBalanceActivityOpenDisputeDetail.cs similarity index 96% rename from src/Square/Types/PaymentBalanceActivityOpenDisputeDetail.cs rename to src/Square/Default/Types/PaymentBalanceActivityOpenDisputeDetail.cs index fe96f44e..8fe1a125 100644 --- a/src/Square/Types/PaymentBalanceActivityOpenDisputeDetail.cs +++ b/src/Square/Default/Types/PaymentBalanceActivityOpenDisputeDetail.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PaymentBalanceActivityOpenDisputeDetail : IJsonOnDeserialized diff --git a/src/Square/Types/PaymentBalanceActivityOtherAdjustmentDetail.cs b/src/Square/Default/Types/PaymentBalanceActivityOtherAdjustmentDetail.cs similarity index 95% rename from src/Square/Types/PaymentBalanceActivityOtherAdjustmentDetail.cs rename to src/Square/Default/Types/PaymentBalanceActivityOtherAdjustmentDetail.cs index 5f449a16..4a234599 100644 --- a/src/Square/Types/PaymentBalanceActivityOtherAdjustmentDetail.cs +++ b/src/Square/Default/Types/PaymentBalanceActivityOtherAdjustmentDetail.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PaymentBalanceActivityOtherAdjustmentDetail : IJsonOnDeserialized diff --git a/src/Square/Types/PaymentBalanceActivityOtherDetail.cs b/src/Square/Default/Types/PaymentBalanceActivityOtherDetail.cs similarity index 95% rename from src/Square/Types/PaymentBalanceActivityOtherDetail.cs rename to src/Square/Default/Types/PaymentBalanceActivityOtherDetail.cs index f97bca00..9ad4c3d0 100644 --- a/src/Square/Types/PaymentBalanceActivityOtherDetail.cs +++ b/src/Square/Default/Types/PaymentBalanceActivityOtherDetail.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PaymentBalanceActivityOtherDetail : IJsonOnDeserialized diff --git a/src/Square/Types/PaymentBalanceActivityRefundDetail.cs b/src/Square/Default/Types/PaymentBalanceActivityRefundDetail.cs similarity index 96% rename from src/Square/Types/PaymentBalanceActivityRefundDetail.cs rename to src/Square/Default/Types/PaymentBalanceActivityRefundDetail.cs index a52f18d1..754210c6 100644 --- a/src/Square/Types/PaymentBalanceActivityRefundDetail.cs +++ b/src/Square/Default/Types/PaymentBalanceActivityRefundDetail.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PaymentBalanceActivityRefundDetail : IJsonOnDeserialized diff --git a/src/Square/Types/PaymentBalanceActivityReleaseAdjustmentDetail.cs b/src/Square/Default/Types/PaymentBalanceActivityReleaseAdjustmentDetail.cs similarity index 95% rename from src/Square/Types/PaymentBalanceActivityReleaseAdjustmentDetail.cs rename to src/Square/Default/Types/PaymentBalanceActivityReleaseAdjustmentDetail.cs index 8ac5a293..a2b3cdf6 100644 --- a/src/Square/Types/PaymentBalanceActivityReleaseAdjustmentDetail.cs +++ b/src/Square/Default/Types/PaymentBalanceActivityReleaseAdjustmentDetail.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PaymentBalanceActivityReleaseAdjustmentDetail : IJsonOnDeserialized diff --git a/src/Square/Types/PaymentBalanceActivityReserveHoldDetail.cs b/src/Square/Default/Types/PaymentBalanceActivityReserveHoldDetail.cs similarity index 95% rename from src/Square/Types/PaymentBalanceActivityReserveHoldDetail.cs rename to src/Square/Default/Types/PaymentBalanceActivityReserveHoldDetail.cs index 8dbfedba..d9e76dff 100644 --- a/src/Square/Types/PaymentBalanceActivityReserveHoldDetail.cs +++ b/src/Square/Default/Types/PaymentBalanceActivityReserveHoldDetail.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PaymentBalanceActivityReserveHoldDetail : IJsonOnDeserialized diff --git a/src/Square/Types/PaymentBalanceActivityReserveReleaseDetail.cs b/src/Square/Default/Types/PaymentBalanceActivityReserveReleaseDetail.cs similarity index 95% rename from src/Square/Types/PaymentBalanceActivityReserveReleaseDetail.cs rename to src/Square/Default/Types/PaymentBalanceActivityReserveReleaseDetail.cs index 909f20d4..b0a0fcdf 100644 --- a/src/Square/Types/PaymentBalanceActivityReserveReleaseDetail.cs +++ b/src/Square/Default/Types/PaymentBalanceActivityReserveReleaseDetail.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PaymentBalanceActivityReserveReleaseDetail : IJsonOnDeserialized diff --git a/src/Square/Types/PaymentBalanceActivitySquareCapitalPaymentDetail.cs b/src/Square/Default/Types/PaymentBalanceActivitySquareCapitalPaymentDetail.cs similarity index 95% rename from src/Square/Types/PaymentBalanceActivitySquareCapitalPaymentDetail.cs rename to src/Square/Default/Types/PaymentBalanceActivitySquareCapitalPaymentDetail.cs index 75db6771..e590b902 100644 --- a/src/Square/Types/PaymentBalanceActivitySquareCapitalPaymentDetail.cs +++ b/src/Square/Default/Types/PaymentBalanceActivitySquareCapitalPaymentDetail.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PaymentBalanceActivitySquareCapitalPaymentDetail : IJsonOnDeserialized diff --git a/src/Square/Types/PaymentBalanceActivitySquareCapitalReversedPaymentDetail.cs b/src/Square/Default/Types/PaymentBalanceActivitySquareCapitalReversedPaymentDetail.cs similarity index 95% rename from src/Square/Types/PaymentBalanceActivitySquareCapitalReversedPaymentDetail.cs rename to src/Square/Default/Types/PaymentBalanceActivitySquareCapitalReversedPaymentDetail.cs index 8e4cb331..8250295f 100644 --- a/src/Square/Types/PaymentBalanceActivitySquareCapitalReversedPaymentDetail.cs +++ b/src/Square/Default/Types/PaymentBalanceActivitySquareCapitalReversedPaymentDetail.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PaymentBalanceActivitySquareCapitalReversedPaymentDetail : IJsonOnDeserialized diff --git a/src/Square/Types/PaymentBalanceActivitySquarePayrollTransferDetail.cs b/src/Square/Default/Types/PaymentBalanceActivitySquarePayrollTransferDetail.cs similarity index 95% rename from src/Square/Types/PaymentBalanceActivitySquarePayrollTransferDetail.cs rename to src/Square/Default/Types/PaymentBalanceActivitySquarePayrollTransferDetail.cs index 069d4d43..b23ec194 100644 --- a/src/Square/Types/PaymentBalanceActivitySquarePayrollTransferDetail.cs +++ b/src/Square/Default/Types/PaymentBalanceActivitySquarePayrollTransferDetail.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PaymentBalanceActivitySquarePayrollTransferDetail : IJsonOnDeserialized diff --git a/src/Square/Types/PaymentBalanceActivitySquarePayrollTransferReversedDetail.cs b/src/Square/Default/Types/PaymentBalanceActivitySquarePayrollTransferReversedDetail.cs similarity index 95% rename from src/Square/Types/PaymentBalanceActivitySquarePayrollTransferReversedDetail.cs rename to src/Square/Default/Types/PaymentBalanceActivitySquarePayrollTransferReversedDetail.cs index 0f265630..457ce51e 100644 --- a/src/Square/Types/PaymentBalanceActivitySquarePayrollTransferReversedDetail.cs +++ b/src/Square/Default/Types/PaymentBalanceActivitySquarePayrollTransferReversedDetail.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PaymentBalanceActivitySquarePayrollTransferReversedDetail : IJsonOnDeserialized diff --git a/src/Square/Types/PaymentBalanceActivityTaxOnFeeDetail.cs b/src/Square/Default/Types/PaymentBalanceActivityTaxOnFeeDetail.cs similarity index 96% rename from src/Square/Types/PaymentBalanceActivityTaxOnFeeDetail.cs rename to src/Square/Default/Types/PaymentBalanceActivityTaxOnFeeDetail.cs index da5fa258..fdad8b9f 100644 --- a/src/Square/Types/PaymentBalanceActivityTaxOnFeeDetail.cs +++ b/src/Square/Default/Types/PaymentBalanceActivityTaxOnFeeDetail.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PaymentBalanceActivityTaxOnFeeDetail : IJsonOnDeserialized diff --git a/src/Square/Types/PaymentBalanceActivityThirdPartyFeeDetail.cs b/src/Square/Default/Types/PaymentBalanceActivityThirdPartyFeeDetail.cs similarity index 95% rename from src/Square/Types/PaymentBalanceActivityThirdPartyFeeDetail.cs rename to src/Square/Default/Types/PaymentBalanceActivityThirdPartyFeeDetail.cs index d29dfb4f..f6f41951 100644 --- a/src/Square/Types/PaymentBalanceActivityThirdPartyFeeDetail.cs +++ b/src/Square/Default/Types/PaymentBalanceActivityThirdPartyFeeDetail.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PaymentBalanceActivityThirdPartyFeeDetail : IJsonOnDeserialized diff --git a/src/Square/Types/PaymentBalanceActivityThirdPartyFeeRefundDetail.cs b/src/Square/Default/Types/PaymentBalanceActivityThirdPartyFeeRefundDetail.cs similarity index 96% rename from src/Square/Types/PaymentBalanceActivityThirdPartyFeeRefundDetail.cs rename to src/Square/Default/Types/PaymentBalanceActivityThirdPartyFeeRefundDetail.cs index 3e51af24..67362a09 100644 --- a/src/Square/Types/PaymentBalanceActivityThirdPartyFeeRefundDetail.cs +++ b/src/Square/Default/Types/PaymentBalanceActivityThirdPartyFeeRefundDetail.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PaymentBalanceActivityThirdPartyFeeRefundDetail : IJsonOnDeserialized diff --git a/src/Square/Types/PaymentCreatedEvent.cs b/src/Square/Default/Types/PaymentCreatedEvent.cs similarity index 97% rename from src/Square/Types/PaymentCreatedEvent.cs rename to src/Square/Default/Types/PaymentCreatedEvent.cs index f14ae1be..91df43a9 100644 --- a/src/Square/Types/PaymentCreatedEvent.cs +++ b/src/Square/Default/Types/PaymentCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [Payment](entity:Payment) is created. diff --git a/src/Square/Types/PaymentCreatedEventData.cs b/src/Square/Default/Types/PaymentCreatedEventData.cs similarity index 96% rename from src/Square/Types/PaymentCreatedEventData.cs rename to src/Square/Default/Types/PaymentCreatedEventData.cs index e1b145a9..fde38623 100644 --- a/src/Square/Types/PaymentCreatedEventData.cs +++ b/src/Square/Default/Types/PaymentCreatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PaymentCreatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/PaymentCreatedEventObject.cs b/src/Square/Default/Types/PaymentCreatedEventObject.cs similarity index 95% rename from src/Square/Types/PaymentCreatedEventObject.cs rename to src/Square/Default/Types/PaymentCreatedEventObject.cs index 4c76129b..da0bddf5 100644 --- a/src/Square/Types/PaymentCreatedEventObject.cs +++ b/src/Square/Default/Types/PaymentCreatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PaymentCreatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/PaymentLink.cs b/src/Square/Default/Types/PaymentLink.cs similarity index 98% rename from src/Square/Types/PaymentLink.cs rename to src/Square/Default/Types/PaymentLink.cs index e8546b4c..f0173e62 100644 --- a/src/Square/Types/PaymentLink.cs +++ b/src/Square/Default/Types/PaymentLink.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PaymentLink : IJsonOnDeserialized diff --git a/src/Square/Types/PaymentLinkRelatedResources.cs b/src/Square/Default/Types/PaymentLinkRelatedResources.cs similarity index 96% rename from src/Square/Types/PaymentLinkRelatedResources.cs rename to src/Square/Default/Types/PaymentLinkRelatedResources.cs index 501f56cd..30bf9c5c 100644 --- a/src/Square/Types/PaymentLinkRelatedResources.cs +++ b/src/Square/Default/Types/PaymentLinkRelatedResources.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PaymentLinkRelatedResources : IJsonOnDeserialized diff --git a/src/Square/Types/PaymentOptions.cs b/src/Square/Default/Types/PaymentOptions.cs similarity index 98% rename from src/Square/Types/PaymentOptions.cs rename to src/Square/Default/Types/PaymentOptions.cs index fe501041..5d472c94 100644 --- a/src/Square/Types/PaymentOptions.cs +++ b/src/Square/Default/Types/PaymentOptions.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PaymentOptions : IJsonOnDeserialized diff --git a/src/Square/Types/PaymentOptionsDelayAction.cs b/src/Square/Default/Types/PaymentOptionsDelayAction.cs similarity index 98% rename from src/Square/Types/PaymentOptionsDelayAction.cs rename to src/Square/Default/Types/PaymentOptionsDelayAction.cs index b62b1945..819f440b 100644 --- a/src/Square/Types/PaymentOptionsDelayAction.cs +++ b/src/Square/Default/Types/PaymentOptionsDelayAction.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/PaymentRefund.cs b/src/Square/Default/Types/PaymentRefund.cs similarity index 99% rename from src/Square/Types/PaymentRefund.cs rename to src/Square/Default/Types/PaymentRefund.cs index 150f3112..725ee64b 100644 --- a/src/Square/Types/PaymentRefund.cs +++ b/src/Square/Default/Types/PaymentRefund.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a refund of a payment made using Square. Contains information about diff --git a/src/Square/Types/PaymentUpdatedEvent.cs b/src/Square/Default/Types/PaymentUpdatedEvent.cs similarity index 97% rename from src/Square/Types/PaymentUpdatedEvent.cs rename to src/Square/Default/Types/PaymentUpdatedEvent.cs index 94e79e7e..41801dad 100644 --- a/src/Square/Types/PaymentUpdatedEvent.cs +++ b/src/Square/Default/Types/PaymentUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [Payment](entity:Payment) is updated. diff --git a/src/Square/Types/PaymentUpdatedEventData.cs b/src/Square/Default/Types/PaymentUpdatedEventData.cs similarity index 96% rename from src/Square/Types/PaymentUpdatedEventData.cs rename to src/Square/Default/Types/PaymentUpdatedEventData.cs index a0c4338e..08d442fa 100644 --- a/src/Square/Types/PaymentUpdatedEventData.cs +++ b/src/Square/Default/Types/PaymentUpdatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PaymentUpdatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/PaymentUpdatedEventObject.cs b/src/Square/Default/Types/PaymentUpdatedEventObject.cs similarity index 95% rename from src/Square/Types/PaymentUpdatedEventObject.cs rename to src/Square/Default/Types/PaymentUpdatedEventObject.cs index 1098e2d3..f29cb676 100644 --- a/src/Square/Types/PaymentUpdatedEventObject.cs +++ b/src/Square/Default/Types/PaymentUpdatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PaymentUpdatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/Payout.cs b/src/Square/Default/Types/Payout.cs similarity index 98% rename from src/Square/Types/Payout.cs rename to src/Square/Default/Types/Payout.cs index d73df8b2..d0fdda1f 100644 --- a/src/Square/Types/Payout.cs +++ b/src/Square/Default/Types/Payout.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// An accounting of the amount owed the seller and record of the actual transfer to their diff --git a/src/Square/Types/PayoutEntry.cs b/src/Square/Default/Types/PayoutEntry.cs similarity index 99% rename from src/Square/Types/PayoutEntry.cs rename to src/Square/Default/Types/PayoutEntry.cs index 40fd01d8..006bd59a 100644 --- a/src/Square/Types/PayoutEntry.cs +++ b/src/Square/Default/Types/PayoutEntry.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// One or more PayoutEntries that make up a Payout. Each one has a date, amount, and type of activity. diff --git a/src/Square/Types/PayoutFailedEvent.cs b/src/Square/Default/Types/PayoutFailedEvent.cs similarity index 97% rename from src/Square/Types/PayoutFailedEvent.cs rename to src/Square/Default/Types/PayoutFailedEvent.cs index 096ba764..8ff1b213 100644 --- a/src/Square/Types/PayoutFailedEvent.cs +++ b/src/Square/Default/Types/PayoutFailedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [Payout](entity:Payout) has failed. diff --git a/src/Square/Types/PayoutFailedEventData.cs b/src/Square/Default/Types/PayoutFailedEventData.cs similarity index 96% rename from src/Square/Types/PayoutFailedEventData.cs rename to src/Square/Default/Types/PayoutFailedEventData.cs index 271d7d10..47784704 100644 --- a/src/Square/Types/PayoutFailedEventData.cs +++ b/src/Square/Default/Types/PayoutFailedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PayoutFailedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/PayoutFailedEventObject.cs b/src/Square/Default/Types/PayoutFailedEventObject.cs similarity index 95% rename from src/Square/Types/PayoutFailedEventObject.cs rename to src/Square/Default/Types/PayoutFailedEventObject.cs index 74c9b615..6be992eb 100644 --- a/src/Square/Types/PayoutFailedEventObject.cs +++ b/src/Square/Default/Types/PayoutFailedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PayoutFailedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/PayoutFee.cs b/src/Square/Default/Types/PayoutFee.cs similarity index 97% rename from src/Square/Types/PayoutFee.cs rename to src/Square/Default/Types/PayoutFee.cs index 77699a57..8adbbc6c 100644 --- a/src/Square/Types/PayoutFee.cs +++ b/src/Square/Default/Types/PayoutFee.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a payout fee that can incur as part of a payout. diff --git a/src/Square/Types/PayoutFeeType.cs b/src/Square/Default/Types/PayoutFeeType.cs similarity index 98% rename from src/Square/Types/PayoutFeeType.cs rename to src/Square/Default/Types/PayoutFeeType.cs index d3fe3c53..93f336fc 100644 --- a/src/Square/Types/PayoutFeeType.cs +++ b/src/Square/Default/Types/PayoutFeeType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/PayoutPaidEvent.cs b/src/Square/Default/Types/PayoutPaidEvent.cs similarity index 97% rename from src/Square/Types/PayoutPaidEvent.cs rename to src/Square/Default/Types/PayoutPaidEvent.cs index 81177484..b501f1bb 100644 --- a/src/Square/Types/PayoutPaidEvent.cs +++ b/src/Square/Default/Types/PayoutPaidEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [Payout](entity:Payout) is complete. diff --git a/src/Square/Types/PayoutPaidEventData.cs b/src/Square/Default/Types/PayoutPaidEventData.cs similarity index 96% rename from src/Square/Types/PayoutPaidEventData.cs rename to src/Square/Default/Types/PayoutPaidEventData.cs index afb8bf80..fbe6a18d 100644 --- a/src/Square/Types/PayoutPaidEventData.cs +++ b/src/Square/Default/Types/PayoutPaidEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PayoutPaidEventData : IJsonOnDeserialized diff --git a/src/Square/Types/PayoutPaidEventObject.cs b/src/Square/Default/Types/PayoutPaidEventObject.cs similarity index 95% rename from src/Square/Types/PayoutPaidEventObject.cs rename to src/Square/Default/Types/PayoutPaidEventObject.cs index dd9815ae..01b1bd92 100644 --- a/src/Square/Types/PayoutPaidEventObject.cs +++ b/src/Square/Default/Types/PayoutPaidEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PayoutPaidEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/PayoutSentEvent.cs b/src/Square/Default/Types/PayoutSentEvent.cs similarity index 97% rename from src/Square/Types/PayoutSentEvent.cs rename to src/Square/Default/Types/PayoutSentEvent.cs index f04c01f9..a8987ecb 100644 --- a/src/Square/Types/PayoutSentEvent.cs +++ b/src/Square/Default/Types/PayoutSentEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [Payout](entity:Payout) is sent. diff --git a/src/Square/Types/PayoutSentEventData.cs b/src/Square/Default/Types/PayoutSentEventData.cs similarity index 96% rename from src/Square/Types/PayoutSentEventData.cs rename to src/Square/Default/Types/PayoutSentEventData.cs index 3e0a6310..05bec95c 100644 --- a/src/Square/Types/PayoutSentEventData.cs +++ b/src/Square/Default/Types/PayoutSentEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PayoutSentEventData : IJsonOnDeserialized diff --git a/src/Square/Types/PayoutSentEventObject.cs b/src/Square/Default/Types/PayoutSentEventObject.cs similarity index 95% rename from src/Square/Types/PayoutSentEventObject.cs rename to src/Square/Default/Types/PayoutSentEventObject.cs index ce16a256..213e110e 100644 --- a/src/Square/Types/PayoutSentEventObject.cs +++ b/src/Square/Default/Types/PayoutSentEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record PayoutSentEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/PayoutStatus.cs b/src/Square/Default/Types/PayoutStatus.cs similarity index 98% rename from src/Square/Types/PayoutStatus.cs rename to src/Square/Default/Types/PayoutStatus.cs index f30f4c79..1be80b76 100644 --- a/src/Square/Types/PayoutStatus.cs +++ b/src/Square/Default/Types/PayoutStatus.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/PayoutType.cs b/src/Square/Default/Types/PayoutType.cs similarity index 98% rename from src/Square/Types/PayoutType.cs rename to src/Square/Default/Types/PayoutType.cs index 722ad179..493493be 100644 --- a/src/Square/Types/PayoutType.cs +++ b/src/Square/Default/Types/PayoutType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/Phase.cs b/src/Square/Default/Types/Phase.cs similarity index 97% rename from src/Square/Types/Phase.cs rename to src/Square/Default/Types/Phase.cs index 52cbd95d..93ef3a05 100644 --- a/src/Square/Types/Phase.cs +++ b/src/Square/Default/Types/Phase.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a phase, which can override subscription phases as defined by plan_id diff --git a/src/Square/Types/PhaseInput.cs b/src/Square/Default/Types/PhaseInput.cs similarity index 96% rename from src/Square/Types/PhaseInput.cs rename to src/Square/Default/Types/PhaseInput.cs index 63c4727a..6ad516d8 100644 --- a/src/Square/Types/PhaseInput.cs +++ b/src/Square/Default/Types/PhaseInput.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents the arguments used to construct a new phase. diff --git a/src/Square/Types/PrePopulatedData.cs b/src/Square/Default/Types/PrePopulatedData.cs similarity index 97% rename from src/Square/Types/PrePopulatedData.cs rename to src/Square/Default/Types/PrePopulatedData.cs index a42e4b79..e6aa5820 100644 --- a/src/Square/Types/PrePopulatedData.cs +++ b/src/Square/Default/Types/PrePopulatedData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Describes buyer data to prepopulate in the payment form. diff --git a/src/Square/Types/ProcessingFee.cs b/src/Square/Default/Types/ProcessingFee.cs similarity index 97% rename from src/Square/Types/ProcessingFee.cs rename to src/Square/Default/Types/ProcessingFee.cs index dae7103e..b3d94d87 100644 --- a/src/Square/Types/ProcessingFee.cs +++ b/src/Square/Default/Types/ProcessingFee.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents the Square processing fee. diff --git a/src/Square/Types/Product.cs b/src/Square/Default/Types/Product.cs similarity index 98% rename from src/Square/Types/Product.cs rename to src/Square/Default/Types/Product.cs index 78585e41..4da7dbd9 100644 --- a/src/Square/Types/Product.cs +++ b/src/Square/Default/Types/Product.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/PublishInvoiceResponse.cs b/src/Square/Default/Types/PublishInvoiceResponse.cs similarity index 96% rename from src/Square/Types/PublishInvoiceResponse.cs rename to src/Square/Default/Types/PublishInvoiceResponse.cs index 38728cb9..f733a902 100644 --- a/src/Square/Types/PublishInvoiceResponse.cs +++ b/src/Square/Default/Types/PublishInvoiceResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Describes a `PublishInvoice` response. diff --git a/src/Square/Types/PublishScheduledShiftResponse.cs b/src/Square/Default/Types/PublishScheduledShiftResponse.cs similarity index 96% rename from src/Square/Types/PublishScheduledShiftResponse.cs rename to src/Square/Default/Types/PublishScheduledShiftResponse.cs index a7a6ab5c..839aefb0 100644 --- a/src/Square/Types/PublishScheduledShiftResponse.cs +++ b/src/Square/Default/Types/PublishScheduledShiftResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [PublishScheduledShift](api-endpoint:Labor-PublishScheduledShift) response. diff --git a/src/Square/Types/QrCodeOptions.cs b/src/Square/Default/Types/QrCodeOptions.cs similarity index 97% rename from src/Square/Types/QrCodeOptions.cs rename to src/Square/Default/Types/QrCodeOptions.cs index 4a364cbb..9f949735 100644 --- a/src/Square/Types/QrCodeOptions.cs +++ b/src/Square/Default/Types/QrCodeOptions.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Fields to describe the action that displays QR-Codes. diff --git a/src/Square/Types/QuickPay.cs b/src/Square/Default/Types/QuickPay.cs similarity index 97% rename from src/Square/Types/QuickPay.cs rename to src/Square/Default/Types/QuickPay.cs index 458563cf..6778416e 100644 --- a/src/Square/Types/QuickPay.cs +++ b/src/Square/Default/Types/QuickPay.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Describes an ad hoc item and price to generate a quick pay checkout link. diff --git a/src/Square/Types/Range.cs b/src/Square/Default/Types/Range.cs similarity index 96% rename from src/Square/Types/Range.cs rename to src/Square/Default/Types/Range.cs index 07585983..0a084861 100644 --- a/src/Square/Types/Range.cs +++ b/src/Square/Default/Types/Range.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The range of a number value between the specified lower and upper bounds. diff --git a/src/Square/Types/ReceiptOptions.cs b/src/Square/Default/Types/ReceiptOptions.cs similarity index 97% rename from src/Square/Types/ReceiptOptions.cs rename to src/Square/Default/Types/ReceiptOptions.cs index 0d86a68d..0cf75aca 100644 --- a/src/Square/Types/ReceiptOptions.cs +++ b/src/Square/Default/Types/ReceiptOptions.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Describes receipt action fields. diff --git a/src/Square/Types/ReceiveTransferOrderResponse.cs b/src/Square/Default/Types/ReceiveTransferOrderResponse.cs similarity index 96% rename from src/Square/Types/ReceiveTransferOrderResponse.cs rename to src/Square/Default/Types/ReceiveTransferOrderResponse.cs index cf7938cc..b70f0a2f 100644 --- a/src/Square/Types/ReceiveTransferOrderResponse.cs +++ b/src/Square/Default/Types/ReceiveTransferOrderResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Response for receiving items for a transfer order diff --git a/src/Square/Types/RedeemLoyaltyRewardResponse.cs b/src/Square/Default/Types/RedeemLoyaltyRewardResponse.cs similarity index 96% rename from src/Square/Types/RedeemLoyaltyRewardResponse.cs rename to src/Square/Default/Types/RedeemLoyaltyRewardResponse.cs index 39a053f8..3d75f3e3 100644 --- a/src/Square/Types/RedeemLoyaltyRewardResponse.cs +++ b/src/Square/Default/Types/RedeemLoyaltyRewardResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A response that includes the `LoyaltyEvent` published for redeeming the reward. diff --git a/src/Square/Types/Reference.cs b/src/Square/Default/Types/Reference.cs similarity index 96% rename from src/Square/Types/Reference.cs rename to src/Square/Default/Types/Reference.cs index b7073ef9..d412e8b3 100644 --- a/src/Square/Types/Reference.cs +++ b/src/Square/Default/Types/Reference.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record Reference : IJsonOnDeserialized diff --git a/src/Square/Types/ReferenceType.cs b/src/Square/Default/Types/ReferenceType.cs similarity index 99% rename from src/Square/Types/ReferenceType.cs rename to src/Square/Default/Types/ReferenceType.cs index d3cf4920..585fef54 100644 --- a/src/Square/Types/ReferenceType.cs +++ b/src/Square/Default/Types/ReferenceType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/Refund.cs b/src/Square/Default/Types/Refund.cs similarity index 98% rename from src/Square/Types/Refund.cs rename to src/Square/Default/Types/Refund.cs index 5b5f5ff7..982ddd7b 100644 --- a/src/Square/Types/Refund.cs +++ b/src/Square/Default/Types/Refund.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a refund processed for a Square transaction. diff --git a/src/Square/Types/RefundCreatedEvent.cs b/src/Square/Default/Types/RefundCreatedEvent.cs similarity index 97% rename from src/Square/Types/RefundCreatedEvent.cs rename to src/Square/Default/Types/RefundCreatedEvent.cs index 23ce82bd..69648ef2 100644 --- a/src/Square/Types/RefundCreatedEvent.cs +++ b/src/Square/Default/Types/RefundCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [Refund](entity:PaymentRefund) is created. diff --git a/src/Square/Types/RefundCreatedEventData.cs b/src/Square/Default/Types/RefundCreatedEventData.cs similarity index 96% rename from src/Square/Types/RefundCreatedEventData.cs rename to src/Square/Default/Types/RefundCreatedEventData.cs index 40f1a7b4..fa6b0ff5 100644 --- a/src/Square/Types/RefundCreatedEventData.cs +++ b/src/Square/Default/Types/RefundCreatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record RefundCreatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/RefundCreatedEventObject.cs b/src/Square/Default/Types/RefundCreatedEventObject.cs similarity index 95% rename from src/Square/Types/RefundCreatedEventObject.cs rename to src/Square/Default/Types/RefundCreatedEventObject.cs index 93d11395..1557e33c 100644 --- a/src/Square/Types/RefundCreatedEventObject.cs +++ b/src/Square/Default/Types/RefundCreatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record RefundCreatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/RefundPaymentResponse.cs b/src/Square/Default/Types/RefundPaymentResponse.cs similarity index 96% rename from src/Square/Types/RefundPaymentResponse.cs rename to src/Square/Default/Types/RefundPaymentResponse.cs index e90f7348..49853a81 100644 --- a/src/Square/Types/RefundPaymentResponse.cs +++ b/src/Square/Default/Types/RefundPaymentResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the response returned by diff --git a/src/Square/Types/RefundStatus.cs b/src/Square/Default/Types/RefundStatus.cs similarity index 98% rename from src/Square/Types/RefundStatus.cs rename to src/Square/Default/Types/RefundStatus.cs index 95407922..4dc91f30 100644 --- a/src/Square/Types/RefundStatus.cs +++ b/src/Square/Default/Types/RefundStatus.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/RefundUpdatedEvent.cs b/src/Square/Default/Types/RefundUpdatedEvent.cs similarity index 97% rename from src/Square/Types/RefundUpdatedEvent.cs rename to src/Square/Default/Types/RefundUpdatedEvent.cs index 41bdbe88..3fba4e1e 100644 --- a/src/Square/Types/RefundUpdatedEvent.cs +++ b/src/Square/Default/Types/RefundUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [Refund](entity:PaymentRefund) is updated. diff --git a/src/Square/Types/RefundUpdatedEventData.cs b/src/Square/Default/Types/RefundUpdatedEventData.cs similarity index 96% rename from src/Square/Types/RefundUpdatedEventData.cs rename to src/Square/Default/Types/RefundUpdatedEventData.cs index 4ca44b78..681b6d92 100644 --- a/src/Square/Types/RefundUpdatedEventData.cs +++ b/src/Square/Default/Types/RefundUpdatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record RefundUpdatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/RefundUpdatedEventObject.cs b/src/Square/Default/Types/RefundUpdatedEventObject.cs similarity index 95% rename from src/Square/Types/RefundUpdatedEventObject.cs rename to src/Square/Default/Types/RefundUpdatedEventObject.cs index 872ba813..f25067d0 100644 --- a/src/Square/Types/RefundUpdatedEventObject.cs +++ b/src/Square/Default/Types/RefundUpdatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record RefundUpdatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/RegisterDomainResponse.cs b/src/Square/Default/Types/RegisterDomainResponse.cs similarity index 97% rename from src/Square/Types/RegisterDomainResponse.cs rename to src/Square/Default/Types/RegisterDomainResponse.cs index f259869d..ff0d54b4 100644 --- a/src/Square/Types/RegisterDomainResponse.cs +++ b/src/Square/Default/Types/RegisterDomainResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/RegisterDomainResponseStatus.cs b/src/Square/Default/Types/RegisterDomainResponseStatus.cs similarity index 98% rename from src/Square/Types/RegisterDomainResponseStatus.cs rename to src/Square/Default/Types/RegisterDomainResponseStatus.cs index 201d5cef..e779efa8 100644 --- a/src/Square/Types/RegisterDomainResponseStatus.cs +++ b/src/Square/Default/Types/RegisterDomainResponseStatus.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/RemoveGroupFromCustomerResponse.cs b/src/Square/Default/Types/RemoveGroupFromCustomerResponse.cs similarity index 96% rename from src/Square/Types/RemoveGroupFromCustomerResponse.cs rename to src/Square/Default/Types/RemoveGroupFromCustomerResponse.cs index a14dbf0b..7187d004 100644 --- a/src/Square/Types/RemoveGroupFromCustomerResponse.cs +++ b/src/Square/Default/Types/RemoveGroupFromCustomerResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/ResumeSubscriptionResponse.cs b/src/Square/Default/Types/ResumeSubscriptionResponse.cs similarity index 97% rename from src/Square/Types/ResumeSubscriptionResponse.cs rename to src/Square/Default/Types/ResumeSubscriptionResponse.cs index 7b11e001..be96d780 100644 --- a/src/Square/Types/ResumeSubscriptionResponse.cs +++ b/src/Square/Default/Types/ResumeSubscriptionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines output parameters in a response from the diff --git a/src/Square/Types/RetrieveBookingCustomAttributeDefinitionResponse.cs b/src/Square/Default/Types/RetrieveBookingCustomAttributeDefinitionResponse.cs similarity index 97% rename from src/Square/Types/RetrieveBookingCustomAttributeDefinitionResponse.cs rename to src/Square/Default/Types/RetrieveBookingCustomAttributeDefinitionResponse.cs index 2f55aa7d..f213761d 100644 --- a/src/Square/Types/RetrieveBookingCustomAttributeDefinitionResponse.cs +++ b/src/Square/Default/Types/RetrieveBookingCustomAttributeDefinitionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [RetrieveBookingCustomAttributeDefinition](api-endpoint:BookingCustomAttributes-RetrieveBookingCustomAttributeDefinition) response. diff --git a/src/Square/Types/RetrieveBookingCustomAttributeResponse.cs b/src/Square/Default/Types/RetrieveBookingCustomAttributeResponse.cs similarity index 97% rename from src/Square/Types/RetrieveBookingCustomAttributeResponse.cs rename to src/Square/Default/Types/RetrieveBookingCustomAttributeResponse.cs index 94b917e8..33a53ab8 100644 --- a/src/Square/Types/RetrieveBookingCustomAttributeResponse.cs +++ b/src/Square/Default/Types/RetrieveBookingCustomAttributeResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [RetrieveBookingCustomAttribute](api-endpoint:BookingCustomAttributes-RetrieveBookingCustomAttribute) response. diff --git a/src/Square/Types/RetrieveChannelResponse.cs b/src/Square/Default/Types/RetrieveChannelResponse.cs similarity index 96% rename from src/Square/Types/RetrieveChannelResponse.cs rename to src/Square/Default/Types/RetrieveChannelResponse.cs index 0ebfc0bd..4d2e2cc4 100644 --- a/src/Square/Types/RetrieveChannelResponse.cs +++ b/src/Square/Default/Types/RetrieveChannelResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record RetrieveChannelResponse : IJsonOnDeserialized diff --git a/src/Square/Types/RetrieveJobResponse.cs b/src/Square/Default/Types/RetrieveJobResponse.cs similarity index 96% rename from src/Square/Types/RetrieveJobResponse.cs rename to src/Square/Default/Types/RetrieveJobResponse.cs index 4fdcae56..f70df687 100644 --- a/src/Square/Types/RetrieveJobResponse.cs +++ b/src/Square/Default/Types/RetrieveJobResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [RetrieveJob](api-endpoint:Team-RetrieveJob) response. Either `job` or `errors` diff --git a/src/Square/Types/RetrieveLocationBookingProfileResponse.cs b/src/Square/Default/Types/RetrieveLocationBookingProfileResponse.cs similarity index 96% rename from src/Square/Types/RetrieveLocationBookingProfileResponse.cs rename to src/Square/Default/Types/RetrieveLocationBookingProfileResponse.cs index 8bd5576a..63e5058c 100644 --- a/src/Square/Types/RetrieveLocationBookingProfileResponse.cs +++ b/src/Square/Default/Types/RetrieveLocationBookingProfileResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record RetrieveLocationBookingProfileResponse : IJsonOnDeserialized diff --git a/src/Square/Types/RetrieveLocationCustomAttributeDefinitionResponse.cs b/src/Square/Default/Types/RetrieveLocationCustomAttributeDefinitionResponse.cs similarity index 97% rename from src/Square/Types/RetrieveLocationCustomAttributeDefinitionResponse.cs rename to src/Square/Default/Types/RetrieveLocationCustomAttributeDefinitionResponse.cs index d8f2cbd5..45fbdf85 100644 --- a/src/Square/Types/RetrieveLocationCustomAttributeDefinitionResponse.cs +++ b/src/Square/Default/Types/RetrieveLocationCustomAttributeDefinitionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [RetrieveLocationCustomAttributeDefinition](api-endpoint:LocationCustomAttributes-RetrieveLocationCustomAttributeDefinition) response. diff --git a/src/Square/Types/RetrieveLocationCustomAttributeResponse.cs b/src/Square/Default/Types/RetrieveLocationCustomAttributeResponse.cs similarity index 97% rename from src/Square/Types/RetrieveLocationCustomAttributeResponse.cs rename to src/Square/Default/Types/RetrieveLocationCustomAttributeResponse.cs index f337b176..11e17ece 100644 --- a/src/Square/Types/RetrieveLocationCustomAttributeResponse.cs +++ b/src/Square/Default/Types/RetrieveLocationCustomAttributeResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [RetrieveLocationCustomAttribute](api-endpoint:LocationCustomAttributes-RetrieveLocationCustomAttribute) response. diff --git a/src/Square/Types/RetrieveLocationSettingsResponse.cs b/src/Square/Default/Types/RetrieveLocationSettingsResponse.cs similarity index 96% rename from src/Square/Types/RetrieveLocationSettingsResponse.cs rename to src/Square/Default/Types/RetrieveLocationSettingsResponse.cs index 3b825692..fc350eb7 100644 --- a/src/Square/Types/RetrieveLocationSettingsResponse.cs +++ b/src/Square/Default/Types/RetrieveLocationSettingsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record RetrieveLocationSettingsResponse : IJsonOnDeserialized diff --git a/src/Square/Types/RetrieveMerchantCustomAttributeDefinitionResponse.cs b/src/Square/Default/Types/RetrieveMerchantCustomAttributeDefinitionResponse.cs similarity index 97% rename from src/Square/Types/RetrieveMerchantCustomAttributeDefinitionResponse.cs rename to src/Square/Default/Types/RetrieveMerchantCustomAttributeDefinitionResponse.cs index 10a51776..8b9949c3 100644 --- a/src/Square/Types/RetrieveMerchantCustomAttributeDefinitionResponse.cs +++ b/src/Square/Default/Types/RetrieveMerchantCustomAttributeDefinitionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [RetrieveMerchantCustomAttributeDefinition](api-endpoint:MerchantCustomAttributes-RetrieveMerchantCustomAttributeDefinition) response. diff --git a/src/Square/Types/RetrieveMerchantCustomAttributeResponse.cs b/src/Square/Default/Types/RetrieveMerchantCustomAttributeResponse.cs similarity index 97% rename from src/Square/Types/RetrieveMerchantCustomAttributeResponse.cs rename to src/Square/Default/Types/RetrieveMerchantCustomAttributeResponse.cs index 18de0d13..7c1b8714 100644 --- a/src/Square/Types/RetrieveMerchantCustomAttributeResponse.cs +++ b/src/Square/Default/Types/RetrieveMerchantCustomAttributeResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [RetrieveMerchantCustomAttribute](api-endpoint:MerchantCustomAttributes-RetrieveMerchantCustomAttribute) response. diff --git a/src/Square/Types/RetrieveMerchantSettingsResponse.cs b/src/Square/Default/Types/RetrieveMerchantSettingsResponse.cs similarity index 96% rename from src/Square/Types/RetrieveMerchantSettingsResponse.cs rename to src/Square/Default/Types/RetrieveMerchantSettingsResponse.cs index 78946de1..8e2aabf5 100644 --- a/src/Square/Types/RetrieveMerchantSettingsResponse.cs +++ b/src/Square/Default/Types/RetrieveMerchantSettingsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record RetrieveMerchantSettingsResponse : IJsonOnDeserialized diff --git a/src/Square/Types/RetrieveOrderCustomAttributeDefinitionResponse.cs b/src/Square/Default/Types/RetrieveOrderCustomAttributeDefinitionResponse.cs similarity index 96% rename from src/Square/Types/RetrieveOrderCustomAttributeDefinitionResponse.cs rename to src/Square/Default/Types/RetrieveOrderCustomAttributeDefinitionResponse.cs index 92571d3c..96c4b228 100644 --- a/src/Square/Types/RetrieveOrderCustomAttributeDefinitionResponse.cs +++ b/src/Square/Default/Types/RetrieveOrderCustomAttributeDefinitionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a response from getting an order custom attribute definition. diff --git a/src/Square/Types/RetrieveOrderCustomAttributeResponse.cs b/src/Square/Default/Types/RetrieveOrderCustomAttributeResponse.cs similarity index 96% rename from src/Square/Types/RetrieveOrderCustomAttributeResponse.cs rename to src/Square/Default/Types/RetrieveOrderCustomAttributeResponse.cs index 1285db0c..3c0ef1cd 100644 --- a/src/Square/Types/RetrieveOrderCustomAttributeResponse.cs +++ b/src/Square/Default/Types/RetrieveOrderCustomAttributeResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a response from getting an order custom attribute. diff --git a/src/Square/Types/RetrieveScheduledShiftResponse.cs b/src/Square/Default/Types/RetrieveScheduledShiftResponse.cs similarity index 96% rename from src/Square/Types/RetrieveScheduledShiftResponse.cs rename to src/Square/Default/Types/RetrieveScheduledShiftResponse.cs index 6405acc7..0b27a2f0 100644 --- a/src/Square/Types/RetrieveScheduledShiftResponse.cs +++ b/src/Square/Default/Types/RetrieveScheduledShiftResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [RetrieveScheduledShift](api-endpoint:Labor-RetrieveScheduledShift) response. diff --git a/src/Square/Types/RetrieveTimecardResponse.cs b/src/Square/Default/Types/RetrieveTimecardResponse.cs similarity index 96% rename from src/Square/Types/RetrieveTimecardResponse.cs rename to src/Square/Default/Types/RetrieveTimecardResponse.cs index 428ba017..fbffc33e 100644 --- a/src/Square/Types/RetrieveTimecardResponse.cs +++ b/src/Square/Default/Types/RetrieveTimecardResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A response to a request to get a `Timecard`. The response contains diff --git a/src/Square/Types/RetrieveTokenStatusResponse.cs b/src/Square/Default/Types/RetrieveTokenStatusResponse.cs similarity index 97% rename from src/Square/Types/RetrieveTokenStatusResponse.cs rename to src/Square/Default/Types/RetrieveTokenStatusResponse.cs index d16154d8..b098a247 100644 --- a/src/Square/Types/RetrieveTokenStatusResponse.cs +++ b/src/Square/Default/Types/RetrieveTokenStatusResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/RetrieveTransferOrderResponse.cs b/src/Square/Default/Types/RetrieveTransferOrderResponse.cs similarity index 96% rename from src/Square/Types/RetrieveTransferOrderResponse.cs rename to src/Square/Default/Types/RetrieveTransferOrderResponse.cs index ef24d3c2..614028b1 100644 --- a/src/Square/Types/RetrieveTransferOrderResponse.cs +++ b/src/Square/Default/Types/RetrieveTransferOrderResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Response containing the requested transfer order diff --git a/src/Square/Types/RevokeTokenResponse.cs b/src/Square/Default/Types/RevokeTokenResponse.cs similarity index 96% rename from src/Square/Types/RevokeTokenResponse.cs rename to src/Square/Default/Types/RevokeTokenResponse.cs index acc98f0f..a4785c22 100644 --- a/src/Square/Types/RevokeTokenResponse.cs +++ b/src/Square/Default/Types/RevokeTokenResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record RevokeTokenResponse : IJsonOnDeserialized diff --git a/src/Square/Types/RiskEvaluation.cs b/src/Square/Default/Types/RiskEvaluation.cs similarity index 97% rename from src/Square/Types/RiskEvaluation.cs rename to src/Square/Default/Types/RiskEvaluation.cs index 34a78d78..579c1c57 100644 --- a/src/Square/Types/RiskEvaluation.cs +++ b/src/Square/Default/Types/RiskEvaluation.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents fraud risk information for the associated payment. diff --git a/src/Square/Types/RiskEvaluationRiskLevel.cs b/src/Square/Default/Types/RiskEvaluationRiskLevel.cs similarity index 98% rename from src/Square/Types/RiskEvaluationRiskLevel.cs rename to src/Square/Default/Types/RiskEvaluationRiskLevel.cs index 0853f610..41af1e4d 100644 --- a/src/Square/Types/RiskEvaluationRiskLevel.cs +++ b/src/Square/Default/Types/RiskEvaluationRiskLevel.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/SaveCardOptions.cs b/src/Square/Default/Types/SaveCardOptions.cs similarity index 97% rename from src/Square/Types/SaveCardOptions.cs rename to src/Square/Default/Types/SaveCardOptions.cs index b7f0d9bb..15dc3085 100644 --- a/src/Square/Types/SaveCardOptions.cs +++ b/src/Square/Default/Types/SaveCardOptions.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Describes save-card action fields. diff --git a/src/Square/Types/ScheduledShift.cs b/src/Square/Default/Types/ScheduledShift.cs similarity index 98% rename from src/Square/Types/ScheduledShift.cs rename to src/Square/Default/Types/ScheduledShift.cs index a36c27d6..316b8317 100644 --- a/src/Square/Types/ScheduledShift.cs +++ b/src/Square/Default/Types/ScheduledShift.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a specific time slot in a work schedule. This object is used to manage the diff --git a/src/Square/Types/ScheduledShiftDetails.cs b/src/Square/Default/Types/ScheduledShiftDetails.cs similarity index 98% rename from src/Square/Types/ScheduledShiftDetails.cs rename to src/Square/Default/Types/ScheduledShiftDetails.cs index 1ec7300b..0497f62f 100644 --- a/src/Square/Types/ScheduledShiftDetails.cs +++ b/src/Square/Default/Types/ScheduledShiftDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents shift details for draft and published versions of a [scheduled shift](entity:ScheduledShift), diff --git a/src/Square/Types/ScheduledShiftFilter.cs b/src/Square/Default/Types/ScheduledShiftFilter.cs similarity index 98% rename from src/Square/Types/ScheduledShiftFilter.cs rename to src/Square/Default/Types/ScheduledShiftFilter.cs index 2dbc23e3..23819a65 100644 --- a/src/Square/Types/ScheduledShiftFilter.cs +++ b/src/Square/Default/Types/ScheduledShiftFilter.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines filter criteria for a [SearchScheduledShifts](api-endpoint:Labor-SearchScheduledShifts) diff --git a/src/Square/Types/ScheduledShiftFilterAssignmentStatus.cs b/src/Square/Default/Types/ScheduledShiftFilterAssignmentStatus.cs similarity index 98% rename from src/Square/Types/ScheduledShiftFilterAssignmentStatus.cs rename to src/Square/Default/Types/ScheduledShiftFilterAssignmentStatus.cs index 099d7b52..04b237e8 100644 --- a/src/Square/Types/ScheduledShiftFilterAssignmentStatus.cs +++ b/src/Square/Default/Types/ScheduledShiftFilterAssignmentStatus.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/ScheduledShiftFilterScheduledShiftStatus.cs b/src/Square/Default/Types/ScheduledShiftFilterScheduledShiftStatus.cs similarity index 98% rename from src/Square/Types/ScheduledShiftFilterScheduledShiftStatus.cs rename to src/Square/Default/Types/ScheduledShiftFilterScheduledShiftStatus.cs index 7c4e71c8..037f36e6 100644 --- a/src/Square/Types/ScheduledShiftFilterScheduledShiftStatus.cs +++ b/src/Square/Default/Types/ScheduledShiftFilterScheduledShiftStatus.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/ScheduledShiftNotificationAudience.cs b/src/Square/Default/Types/ScheduledShiftNotificationAudience.cs similarity index 98% rename from src/Square/Types/ScheduledShiftNotificationAudience.cs rename to src/Square/Default/Types/ScheduledShiftNotificationAudience.cs index 53b51615..75735703 100644 --- a/src/Square/Types/ScheduledShiftNotificationAudience.cs +++ b/src/Square/Default/Types/ScheduledShiftNotificationAudience.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/ScheduledShiftQuery.cs b/src/Square/Default/Types/ScheduledShiftQuery.cs similarity index 96% rename from src/Square/Types/ScheduledShiftQuery.cs rename to src/Square/Default/Types/ScheduledShiftQuery.cs index 638b2e8c..4db9f2b6 100644 --- a/src/Square/Types/ScheduledShiftQuery.cs +++ b/src/Square/Default/Types/ScheduledShiftQuery.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents filter and sort criteria for the `query` field in a diff --git a/src/Square/Types/ScheduledShiftSort.cs b/src/Square/Default/Types/ScheduledShiftSort.cs similarity index 97% rename from src/Square/Types/ScheduledShiftSort.cs rename to src/Square/Default/Types/ScheduledShiftSort.cs index c8c5fa86..353b647d 100644 --- a/src/Square/Types/ScheduledShiftSort.cs +++ b/src/Square/Default/Types/ScheduledShiftSort.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines sort criteria for a [SearchScheduledShifts](api-endpoint:Labor-SearchScheduledShifts) diff --git a/src/Square/Types/ScheduledShiftSortField.cs b/src/Square/Default/Types/ScheduledShiftSortField.cs similarity index 98% rename from src/Square/Types/ScheduledShiftSortField.cs rename to src/Square/Default/Types/ScheduledShiftSortField.cs index e0888998..b91aee93 100644 --- a/src/Square/Types/ScheduledShiftSortField.cs +++ b/src/Square/Default/Types/ScheduledShiftSortField.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/ScheduledShiftWorkday.cs b/src/Square/Default/Types/ScheduledShiftWorkday.cs similarity index 97% rename from src/Square/Types/ScheduledShiftWorkday.cs rename to src/Square/Default/Types/ScheduledShiftWorkday.cs index 7cd29399..9a7b7061 100644 --- a/src/Square/Types/ScheduledShiftWorkday.cs +++ b/src/Square/Default/Types/ScheduledShiftWorkday.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A `ScheduledShift` search query filter parameter that sets a range of days that diff --git a/src/Square/Types/ScheduledShiftWorkdayMatcher.cs b/src/Square/Default/Types/ScheduledShiftWorkdayMatcher.cs similarity index 98% rename from src/Square/Types/ScheduledShiftWorkdayMatcher.cs rename to src/Square/Default/Types/ScheduledShiftWorkdayMatcher.cs index ebbce843..d55aa497 100644 --- a/src/Square/Types/ScheduledShiftWorkdayMatcher.cs +++ b/src/Square/Default/Types/ScheduledShiftWorkdayMatcher.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/SearchAvailabilityFilter.cs b/src/Square/Default/Types/SearchAvailabilityFilter.cs similarity index 98% rename from src/Square/Types/SearchAvailabilityFilter.cs rename to src/Square/Default/Types/SearchAvailabilityFilter.cs index ef1e275c..c9134d1d 100644 --- a/src/Square/Types/SearchAvailabilityFilter.cs +++ b/src/Square/Default/Types/SearchAvailabilityFilter.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A query filter to search for buyer-accessible availabilities by. diff --git a/src/Square/Types/SearchAvailabilityQuery.cs b/src/Square/Default/Types/SearchAvailabilityQuery.cs similarity index 96% rename from src/Square/Types/SearchAvailabilityQuery.cs rename to src/Square/Default/Types/SearchAvailabilityQuery.cs index e5668bed..76f57b4b 100644 --- a/src/Square/Types/SearchAvailabilityQuery.cs +++ b/src/Square/Default/Types/SearchAvailabilityQuery.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The query used to search for buyer-accessible availabilities of bookings. diff --git a/src/Square/Types/SearchAvailabilityResponse.cs b/src/Square/Default/Types/SearchAvailabilityResponse.cs similarity index 96% rename from src/Square/Types/SearchAvailabilityResponse.cs rename to src/Square/Default/Types/SearchAvailabilityResponse.cs index 4bc0db50..85b7b3c4 100644 --- a/src/Square/Types/SearchAvailabilityResponse.cs +++ b/src/Square/Default/Types/SearchAvailabilityResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record SearchAvailabilityResponse : IJsonOnDeserialized diff --git a/src/Square/Types/SearchCatalogItemsRequestStockLevel.cs b/src/Square/Default/Types/SearchCatalogItemsRequestStockLevel.cs similarity index 98% rename from src/Square/Types/SearchCatalogItemsRequestStockLevel.cs rename to src/Square/Default/Types/SearchCatalogItemsRequestStockLevel.cs index 84789e24..6fff0e96 100644 --- a/src/Square/Types/SearchCatalogItemsRequestStockLevel.cs +++ b/src/Square/Default/Types/SearchCatalogItemsRequestStockLevel.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/SearchCatalogItemsResponse.cs b/src/Square/Default/Types/SearchCatalogItemsResponse.cs similarity index 97% rename from src/Square/Types/SearchCatalogItemsResponse.cs rename to src/Square/Default/Types/SearchCatalogItemsResponse.cs index e094de7f..5de36a43 100644 --- a/src/Square/Types/SearchCatalogItemsResponse.cs +++ b/src/Square/Default/Types/SearchCatalogItemsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the response body returned from the [SearchCatalogItems](api-endpoint:Catalog-SearchCatalogItems) endpoint. diff --git a/src/Square/Types/SearchCatalogObjectsResponse.cs b/src/Square/Default/Types/SearchCatalogObjectsResponse.cs similarity index 97% rename from src/Square/Types/SearchCatalogObjectsResponse.cs rename to src/Square/Default/Types/SearchCatalogObjectsResponse.cs index 78a83c09..a0d967a5 100644 --- a/src/Square/Types/SearchCatalogObjectsResponse.cs +++ b/src/Square/Default/Types/SearchCatalogObjectsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record SearchCatalogObjectsResponse : IJsonOnDeserialized diff --git a/src/Square/Types/SearchCustomersResponse.cs b/src/Square/Default/Types/SearchCustomersResponse.cs similarity index 98% rename from src/Square/Types/SearchCustomersResponse.cs rename to src/Square/Default/Types/SearchCustomersResponse.cs index 8feb99b1..6144bd7a 100644 --- a/src/Square/Types/SearchCustomersResponse.cs +++ b/src/Square/Default/Types/SearchCustomersResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/SearchEventsFilter.cs b/src/Square/Default/Types/SearchEventsFilter.cs similarity index 97% rename from src/Square/Types/SearchEventsFilter.cs rename to src/Square/Default/Types/SearchEventsFilter.cs index dac29e93..7a5434ca 100644 --- a/src/Square/Types/SearchEventsFilter.cs +++ b/src/Square/Default/Types/SearchEventsFilter.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Criteria to filter events by. diff --git a/src/Square/Types/SearchEventsQuery.cs b/src/Square/Default/Types/SearchEventsQuery.cs similarity index 96% rename from src/Square/Types/SearchEventsQuery.cs rename to src/Square/Default/Types/SearchEventsQuery.cs index 85e1f0d2..42af717c 100644 --- a/src/Square/Types/SearchEventsQuery.cs +++ b/src/Square/Default/Types/SearchEventsQuery.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Contains query criteria for the search. diff --git a/src/Square/Types/SearchEventsResponse.cs b/src/Square/Default/Types/SearchEventsResponse.cs similarity index 97% rename from src/Square/Types/SearchEventsResponse.cs rename to src/Square/Default/Types/SearchEventsResponse.cs index ec981d08..6e9810b2 100644 --- a/src/Square/Types/SearchEventsResponse.cs +++ b/src/Square/Default/Types/SearchEventsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/SearchEventsSort.cs b/src/Square/Default/Types/SearchEventsSort.cs similarity index 96% rename from src/Square/Types/SearchEventsSort.cs rename to src/Square/Default/Types/SearchEventsSort.cs index bbf1e4c5..feb75963 100644 --- a/src/Square/Types/SearchEventsSort.cs +++ b/src/Square/Default/Types/SearchEventsSort.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Criteria to sort events by. diff --git a/src/Square/Types/SearchInvoicesResponse.cs b/src/Square/Default/Types/SearchInvoicesResponse.cs similarity index 97% rename from src/Square/Types/SearchInvoicesResponse.cs rename to src/Square/Default/Types/SearchInvoicesResponse.cs index fca72dc4..911d7b33 100644 --- a/src/Square/Types/SearchInvoicesResponse.cs +++ b/src/Square/Default/Types/SearchInvoicesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Describes a `SearchInvoices` response. diff --git a/src/Square/Types/SearchLoyaltyAccountsRequestLoyaltyAccountQuery.cs b/src/Square/Default/Types/SearchLoyaltyAccountsRequestLoyaltyAccountQuery.cs similarity index 97% rename from src/Square/Types/SearchLoyaltyAccountsRequestLoyaltyAccountQuery.cs rename to src/Square/Default/Types/SearchLoyaltyAccountsRequestLoyaltyAccountQuery.cs index 4a76b04c..ae2f3d0e 100644 --- a/src/Square/Types/SearchLoyaltyAccountsRequestLoyaltyAccountQuery.cs +++ b/src/Square/Default/Types/SearchLoyaltyAccountsRequestLoyaltyAccountQuery.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The search criteria for the loyalty accounts. diff --git a/src/Square/Types/SearchLoyaltyAccountsResponse.cs b/src/Square/Default/Types/SearchLoyaltyAccountsResponse.cs similarity index 97% rename from src/Square/Types/SearchLoyaltyAccountsResponse.cs rename to src/Square/Default/Types/SearchLoyaltyAccountsResponse.cs index 124c5d5e..d292cb26 100644 --- a/src/Square/Types/SearchLoyaltyAccountsResponse.cs +++ b/src/Square/Default/Types/SearchLoyaltyAccountsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A response that includes loyalty accounts that satisfy the search criteria. diff --git a/src/Square/Types/SearchLoyaltyEventsResponse.cs b/src/Square/Default/Types/SearchLoyaltyEventsResponse.cs similarity index 97% rename from src/Square/Types/SearchLoyaltyEventsResponse.cs rename to src/Square/Default/Types/SearchLoyaltyEventsResponse.cs index 050dad72..d627c6b4 100644 --- a/src/Square/Types/SearchLoyaltyEventsResponse.cs +++ b/src/Square/Default/Types/SearchLoyaltyEventsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A response that contains loyalty events that satisfy the search diff --git a/src/Square/Types/SearchLoyaltyRewardsRequestLoyaltyRewardQuery.cs b/src/Square/Default/Types/SearchLoyaltyRewardsRequestLoyaltyRewardQuery.cs similarity index 96% rename from src/Square/Types/SearchLoyaltyRewardsRequestLoyaltyRewardQuery.cs rename to src/Square/Default/Types/SearchLoyaltyRewardsRequestLoyaltyRewardQuery.cs index 8d527241..83fdef59 100644 --- a/src/Square/Types/SearchLoyaltyRewardsRequestLoyaltyRewardQuery.cs +++ b/src/Square/Default/Types/SearchLoyaltyRewardsRequestLoyaltyRewardQuery.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The set of search requirements. diff --git a/src/Square/Types/SearchLoyaltyRewardsResponse.cs b/src/Square/Default/Types/SearchLoyaltyRewardsResponse.cs similarity index 97% rename from src/Square/Types/SearchLoyaltyRewardsResponse.cs rename to src/Square/Default/Types/SearchLoyaltyRewardsResponse.cs index 169c7a6e..97229926 100644 --- a/src/Square/Types/SearchLoyaltyRewardsResponse.cs +++ b/src/Square/Default/Types/SearchLoyaltyRewardsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A response that includes the loyalty rewards satisfying the search criteria. diff --git a/src/Square/Types/SearchOrdersCustomerFilter.cs b/src/Square/Default/Types/SearchOrdersCustomerFilter.cs similarity index 96% rename from src/Square/Types/SearchOrdersCustomerFilter.cs rename to src/Square/Default/Types/SearchOrdersCustomerFilter.cs index 1f32bd8f..6b2fb683 100644 --- a/src/Square/Types/SearchOrdersCustomerFilter.cs +++ b/src/Square/Default/Types/SearchOrdersCustomerFilter.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A filter based on the order `customer_id` and any tender `customer_id` diff --git a/src/Square/Types/SearchOrdersDateTimeFilter.cs b/src/Square/Default/Types/SearchOrdersDateTimeFilter.cs similarity index 98% rename from src/Square/Types/SearchOrdersDateTimeFilter.cs rename to src/Square/Default/Types/SearchOrdersDateTimeFilter.cs index 938e3443..cffb86d9 100644 --- a/src/Square/Types/SearchOrdersDateTimeFilter.cs +++ b/src/Square/Default/Types/SearchOrdersDateTimeFilter.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Filter for `Order` objects based on whether their `CREATED_AT`, diff --git a/src/Square/Types/SearchOrdersFilter.cs b/src/Square/Default/Types/SearchOrdersFilter.cs similarity index 98% rename from src/Square/Types/SearchOrdersFilter.cs rename to src/Square/Default/Types/SearchOrdersFilter.cs index 96a4b987..34bd8056 100644 --- a/src/Square/Types/SearchOrdersFilter.cs +++ b/src/Square/Default/Types/SearchOrdersFilter.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Filtering criteria to use for a `SearchOrders` request. Multiple filters diff --git a/src/Square/Types/SearchOrdersFulfillmentFilter.cs b/src/Square/Default/Types/SearchOrdersFulfillmentFilter.cs similarity index 97% rename from src/Square/Types/SearchOrdersFulfillmentFilter.cs rename to src/Square/Default/Types/SearchOrdersFulfillmentFilter.cs index ea0aaa6b..c796fc68 100644 --- a/src/Square/Types/SearchOrdersFulfillmentFilter.cs +++ b/src/Square/Default/Types/SearchOrdersFulfillmentFilter.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Filter based on [order fulfillment](entity:Fulfillment) information. diff --git a/src/Square/Types/SearchOrdersQuery.cs b/src/Square/Default/Types/SearchOrdersQuery.cs similarity index 96% rename from src/Square/Types/SearchOrdersQuery.cs rename to src/Square/Default/Types/SearchOrdersQuery.cs index e452edac..43dda102 100644 --- a/src/Square/Types/SearchOrdersQuery.cs +++ b/src/Square/Default/Types/SearchOrdersQuery.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Contains query criteria for the search. diff --git a/src/Square/Types/SearchOrdersResponse.cs b/src/Square/Default/Types/SearchOrdersResponse.cs similarity index 98% rename from src/Square/Types/SearchOrdersResponse.cs rename to src/Square/Default/Types/SearchOrdersResponse.cs index 12cfb535..6c8cca6c 100644 --- a/src/Square/Types/SearchOrdersResponse.cs +++ b/src/Square/Default/Types/SearchOrdersResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Either the `order_entries` or `orders` field is set, depending on whether diff --git a/src/Square/Types/SearchOrdersSort.cs b/src/Square/Default/Types/SearchOrdersSort.cs similarity index 97% rename from src/Square/Types/SearchOrdersSort.cs rename to src/Square/Default/Types/SearchOrdersSort.cs index 76aa0e9d..a00cb646 100644 --- a/src/Square/Types/SearchOrdersSort.cs +++ b/src/Square/Default/Types/SearchOrdersSort.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Sorting criteria for a `SearchOrders` request. Results can only be sorted diff --git a/src/Square/Types/SearchOrdersSortField.cs b/src/Square/Default/Types/SearchOrdersSortField.cs similarity index 98% rename from src/Square/Types/SearchOrdersSortField.cs rename to src/Square/Default/Types/SearchOrdersSortField.cs index 7f9947f4..b78e1800 100644 --- a/src/Square/Types/SearchOrdersSortField.cs +++ b/src/Square/Default/Types/SearchOrdersSortField.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/SearchOrdersSourceFilter.cs b/src/Square/Default/Types/SearchOrdersSourceFilter.cs similarity index 97% rename from src/Square/Types/SearchOrdersSourceFilter.cs rename to src/Square/Default/Types/SearchOrdersSourceFilter.cs index 032243f8..7410c02f 100644 --- a/src/Square/Types/SearchOrdersSourceFilter.cs +++ b/src/Square/Default/Types/SearchOrdersSourceFilter.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A filter based on order `source` information. diff --git a/src/Square/Types/SearchOrdersStateFilter.cs b/src/Square/Default/Types/SearchOrdersStateFilter.cs similarity index 96% rename from src/Square/Types/SearchOrdersStateFilter.cs rename to src/Square/Default/Types/SearchOrdersStateFilter.cs index 029c14cb..f89c4467 100644 --- a/src/Square/Types/SearchOrdersStateFilter.cs +++ b/src/Square/Default/Types/SearchOrdersStateFilter.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Filter by the current order `state`. diff --git a/src/Square/Types/SearchScheduledShiftsResponse.cs b/src/Square/Default/Types/SearchScheduledShiftsResponse.cs similarity index 97% rename from src/Square/Types/SearchScheduledShiftsResponse.cs rename to src/Square/Default/Types/SearchScheduledShiftsResponse.cs index a5b73b87..79bc2a11 100644 --- a/src/Square/Types/SearchScheduledShiftsResponse.cs +++ b/src/Square/Default/Types/SearchScheduledShiftsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a [SearchScheduledShifts](api-endpoint:Labor-SearchScheduledShifts) response. diff --git a/src/Square/Types/SearchShiftsResponse.cs b/src/Square/Default/Types/SearchShiftsResponse.cs similarity index 97% rename from src/Square/Types/SearchShiftsResponse.cs rename to src/Square/Default/Types/SearchShiftsResponse.cs index af81aee8..e10e89ca 100644 --- a/src/Square/Types/SearchShiftsResponse.cs +++ b/src/Square/Default/Types/SearchShiftsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The response to a request for `Shift` objects. The response contains diff --git a/src/Square/Types/SearchSubscriptionsFilter.cs b/src/Square/Default/Types/SearchSubscriptionsFilter.cs similarity index 97% rename from src/Square/Types/SearchSubscriptionsFilter.cs rename to src/Square/Default/Types/SearchSubscriptionsFilter.cs index 3ca84ac0..f5541faa 100644 --- a/src/Square/Types/SearchSubscriptionsFilter.cs +++ b/src/Square/Default/Types/SearchSubscriptionsFilter.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a set of query expressions (filters) to narrow the scope of targeted subscriptions returned by diff --git a/src/Square/Types/SearchSubscriptionsQuery.cs b/src/Square/Default/Types/SearchSubscriptionsQuery.cs similarity index 95% rename from src/Square/Types/SearchSubscriptionsQuery.cs rename to src/Square/Default/Types/SearchSubscriptionsQuery.cs index ab0e9e37..4177e700 100644 --- a/src/Square/Types/SearchSubscriptionsQuery.cs +++ b/src/Square/Default/Types/SearchSubscriptionsQuery.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a query, consisting of specified query expressions, used to search for subscriptions. diff --git a/src/Square/Types/SearchSubscriptionsResponse.cs b/src/Square/Default/Types/SearchSubscriptionsResponse.cs similarity index 97% rename from src/Square/Types/SearchSubscriptionsResponse.cs rename to src/Square/Default/Types/SearchSubscriptionsResponse.cs index 8ce36401..50b14afc 100644 --- a/src/Square/Types/SearchSubscriptionsResponse.cs +++ b/src/Square/Default/Types/SearchSubscriptionsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines output parameters in a response from the diff --git a/src/Square/Types/SearchTeamMembersFilter.cs b/src/Square/Default/Types/SearchTeamMembersFilter.cs similarity index 97% rename from src/Square/Types/SearchTeamMembersFilter.cs rename to src/Square/Default/Types/SearchTeamMembersFilter.cs index 332ac6e2..b39e4a6d 100644 --- a/src/Square/Types/SearchTeamMembersFilter.cs +++ b/src/Square/Default/Types/SearchTeamMembersFilter.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a filter used in a search for `TeamMember` objects. `AND` logic is applied diff --git a/src/Square/Types/SearchTeamMembersQuery.cs b/src/Square/Default/Types/SearchTeamMembersQuery.cs similarity index 95% rename from src/Square/Types/SearchTeamMembersQuery.cs rename to src/Square/Default/Types/SearchTeamMembersQuery.cs index 1efedc68..35b103e5 100644 --- a/src/Square/Types/SearchTeamMembersQuery.cs +++ b/src/Square/Default/Types/SearchTeamMembersQuery.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents the parameters in a search for `TeamMember` objects. diff --git a/src/Square/Types/SearchTeamMembersResponse.cs b/src/Square/Default/Types/SearchTeamMembersResponse.cs similarity index 97% rename from src/Square/Types/SearchTeamMembersResponse.cs rename to src/Square/Default/Types/SearchTeamMembersResponse.cs index bad9b9c9..77101296 100644 --- a/src/Square/Types/SearchTeamMembersResponse.cs +++ b/src/Square/Default/Types/SearchTeamMembersResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a response from a search request containing a filtered list of `TeamMember` objects. diff --git a/src/Square/Types/SearchTerminalActionsResponse.cs b/src/Square/Default/Types/SearchTerminalActionsResponse.cs similarity index 97% rename from src/Square/Types/SearchTerminalActionsResponse.cs rename to src/Square/Default/Types/SearchTerminalActionsResponse.cs index f301dc83..d3229c9e 100644 --- a/src/Square/Types/SearchTerminalActionsResponse.cs +++ b/src/Square/Default/Types/SearchTerminalActionsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record SearchTerminalActionsResponse : IJsonOnDeserialized diff --git a/src/Square/Types/SearchTerminalCheckoutsResponse.cs b/src/Square/Default/Types/SearchTerminalCheckoutsResponse.cs similarity index 97% rename from src/Square/Types/SearchTerminalCheckoutsResponse.cs rename to src/Square/Default/Types/SearchTerminalCheckoutsResponse.cs index 607fac50..8422c72e 100644 --- a/src/Square/Types/SearchTerminalCheckoutsResponse.cs +++ b/src/Square/Default/Types/SearchTerminalCheckoutsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record SearchTerminalCheckoutsResponse : IJsonOnDeserialized diff --git a/src/Square/Types/SearchTerminalRefundsResponse.cs b/src/Square/Default/Types/SearchTerminalRefundsResponse.cs similarity index 97% rename from src/Square/Types/SearchTerminalRefundsResponse.cs rename to src/Square/Default/Types/SearchTerminalRefundsResponse.cs index b5c0d6b3..e3e0d361 100644 --- a/src/Square/Types/SearchTerminalRefundsResponse.cs +++ b/src/Square/Default/Types/SearchTerminalRefundsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record SearchTerminalRefundsResponse : IJsonOnDeserialized diff --git a/src/Square/Types/SearchTimecardsResponse.cs b/src/Square/Default/Types/SearchTimecardsResponse.cs similarity index 97% rename from src/Square/Types/SearchTimecardsResponse.cs rename to src/Square/Default/Types/SearchTimecardsResponse.cs index 520e2aa4..c4111824 100644 --- a/src/Square/Types/SearchTimecardsResponse.cs +++ b/src/Square/Default/Types/SearchTimecardsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The response to a request for `Timecard` objects. The response contains diff --git a/src/Square/Types/SearchTransferOrdersResponse.cs b/src/Square/Default/Types/SearchTransferOrdersResponse.cs similarity index 96% rename from src/Square/Types/SearchTransferOrdersResponse.cs rename to src/Square/Default/Types/SearchTransferOrdersResponse.cs index 6e34ffc7..61eb280e 100644 --- a/src/Square/Types/SearchTransferOrdersResponse.cs +++ b/src/Square/Default/Types/SearchTransferOrdersResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Response for searching transfer orders diff --git a/src/Square/Types/SearchVendorsRequestFilter.cs b/src/Square/Default/Types/SearchVendorsRequestFilter.cs similarity index 96% rename from src/Square/Types/SearchVendorsRequestFilter.cs rename to src/Square/Default/Types/SearchVendorsRequestFilter.cs index cda6bbeb..d650bf8b 100644 --- a/src/Square/Types/SearchVendorsRequestFilter.cs +++ b/src/Square/Default/Types/SearchVendorsRequestFilter.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines supported query expressions to search for vendors by. diff --git a/src/Square/Types/SearchVendorsRequestSort.cs b/src/Square/Default/Types/SearchVendorsRequestSort.cs similarity index 96% rename from src/Square/Types/SearchVendorsRequestSort.cs rename to src/Square/Default/Types/SearchVendorsRequestSort.cs index 9a6020a1..8cddceb7 100644 --- a/src/Square/Types/SearchVendorsRequestSort.cs +++ b/src/Square/Default/Types/SearchVendorsRequestSort.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines a sorter used to sort results from [SearchVendors](api-endpoint:Vendors-SearchVendors). diff --git a/src/Square/Types/SearchVendorsRequestSortField.cs b/src/Square/Default/Types/SearchVendorsRequestSortField.cs similarity index 98% rename from src/Square/Types/SearchVendorsRequestSortField.cs rename to src/Square/Default/Types/SearchVendorsRequestSortField.cs index 3bcb5829..269322f2 100644 --- a/src/Square/Types/SearchVendorsRequestSortField.cs +++ b/src/Square/Default/Types/SearchVendorsRequestSortField.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/SearchVendorsResponse.cs b/src/Square/Default/Types/SearchVendorsResponse.cs similarity index 97% rename from src/Square/Types/SearchVendorsResponse.cs rename to src/Square/Default/Types/SearchVendorsResponse.cs index 9cec9431..b07304e9 100644 --- a/src/Square/Types/SearchVendorsResponse.cs +++ b/src/Square/Default/Types/SearchVendorsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an output from a call to [SearchVendors](api-endpoint:Vendors-SearchVendors). diff --git a/src/Square/Types/SegmentFilter.cs b/src/Square/Default/Types/SegmentFilter.cs similarity index 97% rename from src/Square/Types/SegmentFilter.cs rename to src/Square/Default/Types/SegmentFilter.cs index 6cbe0602..f24e0ecc 100644 --- a/src/Square/Types/SegmentFilter.cs +++ b/src/Square/Default/Types/SegmentFilter.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A query filter to search for buyer-accessible appointment segments by. diff --git a/src/Square/Types/SelectOption.cs b/src/Square/Default/Types/SelectOption.cs similarity index 96% rename from src/Square/Types/SelectOption.cs rename to src/Square/Default/Types/SelectOption.cs index d6c235ad..96f730b8 100644 --- a/src/Square/Types/SelectOption.cs +++ b/src/Square/Default/Types/SelectOption.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record SelectOption : IJsonOnDeserialized diff --git a/src/Square/Types/SelectOptions.cs b/src/Square/Default/Types/SelectOptions.cs similarity index 97% rename from src/Square/Types/SelectOptions.cs rename to src/Square/Default/Types/SelectOptions.cs index cf592a93..d561c9e0 100644 --- a/src/Square/Types/SelectOptions.cs +++ b/src/Square/Default/Types/SelectOptions.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record SelectOptions : IJsonOnDeserialized diff --git a/src/Square/Types/Shift.cs b/src/Square/Default/Types/Shift.cs similarity index 99% rename from src/Square/Types/Shift.cs rename to src/Square/Default/Types/Shift.cs index 77d9fd64..6054944f 100644 --- a/src/Square/Types/Shift.cs +++ b/src/Square/Default/Types/Shift.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A record of the hourly rate, start, and end times for a single work shift diff --git a/src/Square/Types/ShiftFilter.cs b/src/Square/Default/Types/ShiftFilter.cs similarity index 98% rename from src/Square/Types/ShiftFilter.cs rename to src/Square/Default/Types/ShiftFilter.cs index bfb77c79..88d304e4 100644 --- a/src/Square/Types/ShiftFilter.cs +++ b/src/Square/Default/Types/ShiftFilter.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines a filter used in a search for `Shift` records. `AND` logic is diff --git a/src/Square/Types/ShiftFilterStatus.cs b/src/Square/Default/Types/ShiftFilterStatus.cs similarity index 98% rename from src/Square/Types/ShiftFilterStatus.cs rename to src/Square/Default/Types/ShiftFilterStatus.cs index 5069ce06..96d295b0 100644 --- a/src/Square/Types/ShiftFilterStatus.cs +++ b/src/Square/Default/Types/ShiftFilterStatus.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/ShiftQuery.cs b/src/Square/Default/Types/ShiftQuery.cs similarity index 96% rename from src/Square/Types/ShiftQuery.cs rename to src/Square/Default/Types/ShiftQuery.cs index cf3e06a0..cafe4f45 100644 --- a/src/Square/Types/ShiftQuery.cs +++ b/src/Square/Default/Types/ShiftQuery.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The parameters of a `Shift` search query, which includes filter and sort options. diff --git a/src/Square/Types/ShiftSort.cs b/src/Square/Default/Types/ShiftSort.cs similarity index 97% rename from src/Square/Types/ShiftSort.cs rename to src/Square/Default/Types/ShiftSort.cs index 93126e00..7edf3258 100644 --- a/src/Square/Types/ShiftSort.cs +++ b/src/Square/Default/Types/ShiftSort.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Sets the sort order of search results. diff --git a/src/Square/Types/ShiftSortField.cs b/src/Square/Default/Types/ShiftSortField.cs similarity index 98% rename from src/Square/Types/ShiftSortField.cs rename to src/Square/Default/Types/ShiftSortField.cs index 8100b0af..599acf18 100644 --- a/src/Square/Types/ShiftSortField.cs +++ b/src/Square/Default/Types/ShiftSortField.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/ShiftStatus.cs b/src/Square/Default/Types/ShiftStatus.cs similarity index 98% rename from src/Square/Types/ShiftStatus.cs rename to src/Square/Default/Types/ShiftStatus.cs index 1aaec18e..95f6def7 100644 --- a/src/Square/Types/ShiftStatus.cs +++ b/src/Square/Default/Types/ShiftStatus.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/ShiftWage.cs b/src/Square/Default/Types/ShiftWage.cs similarity index 97% rename from src/Square/Types/ShiftWage.cs rename to src/Square/Default/Types/ShiftWage.cs index 7292e28d..a220c32e 100644 --- a/src/Square/Types/ShiftWage.cs +++ b/src/Square/Default/Types/ShiftWage.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The hourly wage rate used to compensate an employee for this shift. diff --git a/src/Square/Types/ShiftWorkday.cs b/src/Square/Default/Types/ShiftWorkday.cs similarity index 97% rename from src/Square/Types/ShiftWorkday.cs rename to src/Square/Default/Types/ShiftWorkday.cs index c6e099c4..41e02795 100644 --- a/src/Square/Types/ShiftWorkday.cs +++ b/src/Square/Default/Types/ShiftWorkday.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A `Shift` search query filter parameter that sets a range of days that diff --git a/src/Square/Types/ShiftWorkdayMatcher.cs b/src/Square/Default/Types/ShiftWorkdayMatcher.cs similarity index 98% rename from src/Square/Types/ShiftWorkdayMatcher.cs rename to src/Square/Default/Types/ShiftWorkdayMatcher.cs index 754c28d3..84bc5382 100644 --- a/src/Square/Types/ShiftWorkdayMatcher.cs +++ b/src/Square/Default/Types/ShiftWorkdayMatcher.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/ShippingFee.cs b/src/Square/Default/Types/ShippingFee.cs similarity index 95% rename from src/Square/Types/ShippingFee.cs rename to src/Square/Default/Types/ShippingFee.cs index e2a148e7..9c94ecb8 100644 --- a/src/Square/Types/ShippingFee.cs +++ b/src/Square/Default/Types/ShippingFee.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record ShippingFee : IJsonOnDeserialized diff --git a/src/Square/Types/SignatureImage.cs b/src/Square/Default/Types/SignatureImage.cs similarity index 96% rename from src/Square/Types/SignatureImage.cs rename to src/Square/Default/Types/SignatureImage.cs index 9123c658..4b44daa4 100644 --- a/src/Square/Types/SignatureImage.cs +++ b/src/Square/Default/Types/SignatureImage.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record SignatureImage : IJsonOnDeserialized diff --git a/src/Square/Types/SignatureOptions.cs b/src/Square/Default/Types/SignatureOptions.cs similarity index 96% rename from src/Square/Types/SignatureOptions.cs rename to src/Square/Default/Types/SignatureOptions.cs index 85180bd5..2e3e5436 100644 --- a/src/Square/Types/SignatureOptions.cs +++ b/src/Square/Default/Types/SignatureOptions.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record SignatureOptions : IJsonOnDeserialized diff --git a/src/Square/Types/Site.cs b/src/Square/Default/Types/Site.cs similarity index 97% rename from src/Square/Types/Site.cs rename to src/Square/Default/Types/Site.cs index 30c2c7f8..54809b0c 100644 --- a/src/Square/Types/Site.cs +++ b/src/Square/Default/Types/Site.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a Square Online site, which is an online store for a Square seller. diff --git a/src/Square/Types/Snippet.cs b/src/Square/Default/Types/Snippet.cs similarity index 97% rename from src/Square/Types/Snippet.cs rename to src/Square/Default/Types/Snippet.cs index 7c94bd56..3b5e954a 100644 --- a/src/Square/Types/Snippet.cs +++ b/src/Square/Default/Types/Snippet.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents the snippet that is added to a Square Online site. The snippet code is injected into the `head` element of all pages on the site, except for checkout pages. diff --git a/src/Square/Types/SortOrder.cs b/src/Square/Default/Types/SortOrder.cs similarity index 98% rename from src/Square/Types/SortOrder.cs rename to src/Square/Default/Types/SortOrder.cs index eab9e5e6..a0c6c5c6 100644 --- a/src/Square/Types/SortOrder.cs +++ b/src/Square/Default/Types/SortOrder.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/SourceApplication.cs b/src/Square/Default/Types/SourceApplication.cs similarity index 97% rename from src/Square/Types/SourceApplication.cs rename to src/Square/Default/Types/SourceApplication.cs index c1e856d7..e2eaec48 100644 --- a/src/Square/Types/SourceApplication.cs +++ b/src/Square/Default/Types/SourceApplication.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents information about the application used to generate a change. diff --git a/src/Square/Types/SquareAccountDetails.cs b/src/Square/Default/Types/SquareAccountDetails.cs similarity index 96% rename from src/Square/Types/SquareAccountDetails.cs rename to src/Square/Default/Types/SquareAccountDetails.cs index 21272031..7bd7c808 100644 --- a/src/Square/Types/SquareAccountDetails.cs +++ b/src/Square/Default/Types/SquareAccountDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Additional details about Square Account payments. diff --git a/src/Square/Types/StandardUnitDescription.cs b/src/Square/Default/Types/StandardUnitDescription.cs similarity index 97% rename from src/Square/Types/StandardUnitDescription.cs rename to src/Square/Default/Types/StandardUnitDescription.cs index b3bca068..4c9d6761 100644 --- a/src/Square/Types/StandardUnitDescription.cs +++ b/src/Square/Default/Types/StandardUnitDescription.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Contains the name and abbreviation for standard measurement unit. diff --git a/src/Square/Types/StandardUnitDescriptionGroup.cs b/src/Square/Default/Types/StandardUnitDescriptionGroup.cs similarity index 96% rename from src/Square/Types/StandardUnitDescriptionGroup.cs rename to src/Square/Default/Types/StandardUnitDescriptionGroup.cs index b1364e94..8bed163b 100644 --- a/src/Square/Types/StandardUnitDescriptionGroup.cs +++ b/src/Square/Default/Types/StandardUnitDescriptionGroup.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Group of standard measurement units. diff --git a/src/Square/Types/StartTransferOrderResponse.cs b/src/Square/Default/Types/StartTransferOrderResponse.cs similarity index 96% rename from src/Square/Types/StartTransferOrderResponse.cs rename to src/Square/Default/Types/StartTransferOrderResponse.cs index 758ad66d..6f9505b7 100644 --- a/src/Square/Types/StartTransferOrderResponse.cs +++ b/src/Square/Default/Types/StartTransferOrderResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Response for starting a transfer order. diff --git a/src/Square/Types/SubmitEvidenceResponse.cs b/src/Square/Default/Types/SubmitEvidenceResponse.cs similarity index 96% rename from src/Square/Types/SubmitEvidenceResponse.cs rename to src/Square/Default/Types/SubmitEvidenceResponse.cs index bfab953d..3d47b320 100644 --- a/src/Square/Types/SubmitEvidenceResponse.cs +++ b/src/Square/Default/Types/SubmitEvidenceResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields in a `SubmitEvidence` response. diff --git a/src/Square/Types/Subscription.cs b/src/Square/Default/Types/Subscription.cs similarity index 99% rename from src/Square/Types/Subscription.cs rename to src/Square/Default/Types/Subscription.cs index 4530b41a..3c577d8b 100644 --- a/src/Square/Types/Subscription.cs +++ b/src/Square/Default/Types/Subscription.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a subscription purchased by a customer. diff --git a/src/Square/Types/SubscriptionAction.cs b/src/Square/Default/Types/SubscriptionAction.cs similarity index 98% rename from src/Square/Types/SubscriptionAction.cs rename to src/Square/Default/Types/SubscriptionAction.cs index b0f76833..0231800d 100644 --- a/src/Square/Types/SubscriptionAction.cs +++ b/src/Square/Default/Types/SubscriptionAction.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an action as a pending change to a subscription. diff --git a/src/Square/Types/SubscriptionActionType.cs b/src/Square/Default/Types/SubscriptionActionType.cs similarity index 98% rename from src/Square/Types/SubscriptionActionType.cs rename to src/Square/Default/Types/SubscriptionActionType.cs index d9d57ff4..3f013905 100644 --- a/src/Square/Types/SubscriptionActionType.cs +++ b/src/Square/Default/Types/SubscriptionActionType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/SubscriptionCadence.cs b/src/Square/Default/Types/SubscriptionCadence.cs similarity index 99% rename from src/Square/Types/SubscriptionCadence.cs rename to src/Square/Default/Types/SubscriptionCadence.cs index 194511d6..4f307eed 100644 --- a/src/Square/Types/SubscriptionCadence.cs +++ b/src/Square/Default/Types/SubscriptionCadence.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/SubscriptionCreatedEvent.cs b/src/Square/Default/Types/SubscriptionCreatedEvent.cs similarity index 97% rename from src/Square/Types/SubscriptionCreatedEvent.cs rename to src/Square/Default/Types/SubscriptionCreatedEvent.cs index dfeb9b18..4f624230 100644 --- a/src/Square/Types/SubscriptionCreatedEvent.cs +++ b/src/Square/Default/Types/SubscriptionCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [Subscription](entity:Subscription) is created. diff --git a/src/Square/Types/SubscriptionCreatedEventData.cs b/src/Square/Default/Types/SubscriptionCreatedEventData.cs similarity index 96% rename from src/Square/Types/SubscriptionCreatedEventData.cs rename to src/Square/Default/Types/SubscriptionCreatedEventData.cs index 3bc33994..c8b91adf 100644 --- a/src/Square/Types/SubscriptionCreatedEventData.cs +++ b/src/Square/Default/Types/SubscriptionCreatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record SubscriptionCreatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/SubscriptionCreatedEventObject.cs b/src/Square/Default/Types/SubscriptionCreatedEventObject.cs similarity index 95% rename from src/Square/Types/SubscriptionCreatedEventObject.cs rename to src/Square/Default/Types/SubscriptionCreatedEventObject.cs index e33b5774..dd898285 100644 --- a/src/Square/Types/SubscriptionCreatedEventObject.cs +++ b/src/Square/Default/Types/SubscriptionCreatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record SubscriptionCreatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/SubscriptionEvent.cs b/src/Square/Default/Types/SubscriptionEvent.cs similarity index 98% rename from src/Square/Types/SubscriptionEvent.cs rename to src/Square/Default/Types/SubscriptionEvent.cs index 31353456..dcae5789 100644 --- a/src/Square/Types/SubscriptionEvent.cs +++ b/src/Square/Default/Types/SubscriptionEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Describes changes to a subscription and the subscription status. diff --git a/src/Square/Types/SubscriptionEventInfo.cs b/src/Square/Default/Types/SubscriptionEventInfo.cs similarity index 96% rename from src/Square/Types/SubscriptionEventInfo.cs rename to src/Square/Default/Types/SubscriptionEventInfo.cs index edbd1cb8..055a4e98 100644 --- a/src/Square/Types/SubscriptionEventInfo.cs +++ b/src/Square/Default/Types/SubscriptionEventInfo.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Provides information about the subscription event. diff --git a/src/Square/Types/SubscriptionEventInfoCode.cs b/src/Square/Default/Types/SubscriptionEventInfoCode.cs similarity index 98% rename from src/Square/Types/SubscriptionEventInfoCode.cs rename to src/Square/Default/Types/SubscriptionEventInfoCode.cs index 044bcd29..e11352ce 100644 --- a/src/Square/Types/SubscriptionEventInfoCode.cs +++ b/src/Square/Default/Types/SubscriptionEventInfoCode.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/SubscriptionEventSubscriptionEventType.cs b/src/Square/Default/Types/SubscriptionEventSubscriptionEventType.cs similarity index 99% rename from src/Square/Types/SubscriptionEventSubscriptionEventType.cs rename to src/Square/Default/Types/SubscriptionEventSubscriptionEventType.cs index d150dc20..082bb0da 100644 --- a/src/Square/Types/SubscriptionEventSubscriptionEventType.cs +++ b/src/Square/Default/Types/SubscriptionEventSubscriptionEventType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/SubscriptionPhase.cs b/src/Square/Default/Types/SubscriptionPhase.cs similarity index 98% rename from src/Square/Types/SubscriptionPhase.cs rename to src/Square/Default/Types/SubscriptionPhase.cs index ab2523ba..5c90cf23 100644 --- a/src/Square/Types/SubscriptionPhase.cs +++ b/src/Square/Default/Types/SubscriptionPhase.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Describes a phase in a subscription plan variation. For more information, see [Subscription Plans and Variations](https://developer.squareup.com/docs/subscriptions-api/plans-and-variations). diff --git a/src/Square/Types/SubscriptionPricing.cs b/src/Square/Default/Types/SubscriptionPricing.cs similarity index 97% rename from src/Square/Types/SubscriptionPricing.cs rename to src/Square/Default/Types/SubscriptionPricing.cs index c8652323..df7c968b 100644 --- a/src/Square/Types/SubscriptionPricing.cs +++ b/src/Square/Default/Types/SubscriptionPricing.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Describes the pricing for the subscription. diff --git a/src/Square/Types/SubscriptionPricingType.cs b/src/Square/Default/Types/SubscriptionPricingType.cs similarity index 98% rename from src/Square/Types/SubscriptionPricingType.cs rename to src/Square/Default/Types/SubscriptionPricingType.cs index 7bda69a8..43d26aa9 100644 --- a/src/Square/Types/SubscriptionPricingType.cs +++ b/src/Square/Default/Types/SubscriptionPricingType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/SubscriptionSource.cs b/src/Square/Default/Types/SubscriptionSource.cs similarity index 96% rename from src/Square/Types/SubscriptionSource.cs rename to src/Square/Default/Types/SubscriptionSource.cs index 3c533e3c..db6a0797 100644 --- a/src/Square/Types/SubscriptionSource.cs +++ b/src/Square/Default/Types/SubscriptionSource.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The origination details of the subscription. diff --git a/src/Square/Types/SubscriptionStatus.cs b/src/Square/Default/Types/SubscriptionStatus.cs similarity index 98% rename from src/Square/Types/SubscriptionStatus.cs rename to src/Square/Default/Types/SubscriptionStatus.cs index 944f2e76..4348eb90 100644 --- a/src/Square/Types/SubscriptionStatus.cs +++ b/src/Square/Default/Types/SubscriptionStatus.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/SubscriptionTestResult.cs b/src/Square/Default/Types/SubscriptionTestResult.cs similarity index 98% rename from src/Square/Types/SubscriptionTestResult.cs rename to src/Square/Default/Types/SubscriptionTestResult.cs index 8fa58b4a..30dbc383 100644 --- a/src/Square/Types/SubscriptionTestResult.cs +++ b/src/Square/Default/Types/SubscriptionTestResult.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents the result of testing a webhook subscription. Note: The actual API returns these fields at the root level of TestWebhookSubscriptionResponse, not nested under this object. diff --git a/src/Square/Types/SubscriptionUpdatedEvent.cs b/src/Square/Default/Types/SubscriptionUpdatedEvent.cs similarity index 97% rename from src/Square/Types/SubscriptionUpdatedEvent.cs rename to src/Square/Default/Types/SubscriptionUpdatedEvent.cs index f2d21a73..19fccafe 100644 --- a/src/Square/Types/SubscriptionUpdatedEvent.cs +++ b/src/Square/Default/Types/SubscriptionUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [Subscription](entity:Subscription) is updated. diff --git a/src/Square/Types/SubscriptionUpdatedEventData.cs b/src/Square/Default/Types/SubscriptionUpdatedEventData.cs similarity index 96% rename from src/Square/Types/SubscriptionUpdatedEventData.cs rename to src/Square/Default/Types/SubscriptionUpdatedEventData.cs index 40592ee9..de45fc77 100644 --- a/src/Square/Types/SubscriptionUpdatedEventData.cs +++ b/src/Square/Default/Types/SubscriptionUpdatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record SubscriptionUpdatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/SubscriptionUpdatedEventObject.cs b/src/Square/Default/Types/SubscriptionUpdatedEventObject.cs similarity index 95% rename from src/Square/Types/SubscriptionUpdatedEventObject.cs rename to src/Square/Default/Types/SubscriptionUpdatedEventObject.cs index 095971d9..8593c93b 100644 --- a/src/Square/Types/SubscriptionUpdatedEventObject.cs +++ b/src/Square/Default/Types/SubscriptionUpdatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record SubscriptionUpdatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/SwapPlanResponse.cs b/src/Square/Default/Types/SwapPlanResponse.cs similarity index 97% rename from src/Square/Types/SwapPlanResponse.cs rename to src/Square/Default/Types/SwapPlanResponse.cs index 176b25ba..53743d36 100644 --- a/src/Square/Types/SwapPlanResponse.cs +++ b/src/Square/Default/Types/SwapPlanResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines output parameters in a response of the diff --git a/src/Square/Types/TaxCalculationPhase.cs b/src/Square/Default/Types/TaxCalculationPhase.cs similarity index 98% rename from src/Square/Types/TaxCalculationPhase.cs rename to src/Square/Default/Types/TaxCalculationPhase.cs index 9e608935..2b7cced2 100644 --- a/src/Square/Types/TaxCalculationPhase.cs +++ b/src/Square/Default/Types/TaxCalculationPhase.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/TaxIds.cs b/src/Square/Default/Types/TaxIds.cs similarity index 98% rename from src/Square/Types/TaxIds.cs rename to src/Square/Default/Types/TaxIds.cs index 351aad36..e1e3b56a 100644 --- a/src/Square/Types/TaxIds.cs +++ b/src/Square/Default/Types/TaxIds.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Identifiers for the location used by various governments for tax purposes. diff --git a/src/Square/Types/TaxInclusionType.cs b/src/Square/Default/Types/TaxInclusionType.cs similarity index 98% rename from src/Square/Types/TaxInclusionType.cs rename to src/Square/Default/Types/TaxInclusionType.cs index ad05e69f..f1c2edff 100644 --- a/src/Square/Types/TaxInclusionType.cs +++ b/src/Square/Default/Types/TaxInclusionType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/TeamMember.cs b/src/Square/Default/Types/TeamMember.cs similarity index 98% rename from src/Square/Types/TeamMember.cs rename to src/Square/Default/Types/TeamMember.cs index ac7d0b33..9d5104f9 100644 --- a/src/Square/Types/TeamMember.cs +++ b/src/Square/Default/Types/TeamMember.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A record representing an individual team member for a business. diff --git a/src/Square/Types/TeamMemberAssignedLocations.cs b/src/Square/Default/Types/TeamMemberAssignedLocations.cs similarity index 97% rename from src/Square/Types/TeamMemberAssignedLocations.cs rename to src/Square/Default/Types/TeamMemberAssignedLocations.cs index 1e1fcc11..60838e59 100644 --- a/src/Square/Types/TeamMemberAssignedLocations.cs +++ b/src/Square/Default/Types/TeamMemberAssignedLocations.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// An object that represents a team member's assignment to locations. diff --git a/src/Square/Types/TeamMemberAssignedLocationsAssignmentType.cs b/src/Square/Default/Types/TeamMemberAssignedLocationsAssignmentType.cs similarity index 98% rename from src/Square/Types/TeamMemberAssignedLocationsAssignmentType.cs rename to src/Square/Default/Types/TeamMemberAssignedLocationsAssignmentType.cs index 5665898e..37e89a34 100644 --- a/src/Square/Types/TeamMemberAssignedLocationsAssignmentType.cs +++ b/src/Square/Default/Types/TeamMemberAssignedLocationsAssignmentType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/TeamMemberBookingProfile.cs b/src/Square/Default/Types/TeamMemberBookingProfile.cs similarity index 98% rename from src/Square/Types/TeamMemberBookingProfile.cs rename to src/Square/Default/Types/TeamMemberBookingProfile.cs index 0d17ed9b..418fb7c4 100644 --- a/src/Square/Types/TeamMemberBookingProfile.cs +++ b/src/Square/Default/Types/TeamMemberBookingProfile.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The booking profile of a seller's team member, including the team member's ID, display name, description and whether the team member can be booked as a service provider. diff --git a/src/Square/Types/TeamMemberCreatedEvent.cs b/src/Square/Default/Types/TeamMemberCreatedEvent.cs similarity index 97% rename from src/Square/Types/TeamMemberCreatedEvent.cs rename to src/Square/Default/Types/TeamMemberCreatedEvent.cs index eb6ba2ca..712d1e63 100644 --- a/src/Square/Types/TeamMemberCreatedEvent.cs +++ b/src/Square/Default/Types/TeamMemberCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a Team Member is created. diff --git a/src/Square/Types/TeamMemberCreatedEventData.cs b/src/Square/Default/Types/TeamMemberCreatedEventData.cs similarity index 96% rename from src/Square/Types/TeamMemberCreatedEventData.cs rename to src/Square/Default/Types/TeamMemberCreatedEventData.cs index 68e2b297..a1abfbb9 100644 --- a/src/Square/Types/TeamMemberCreatedEventData.cs +++ b/src/Square/Default/Types/TeamMemberCreatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TeamMemberCreatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/TeamMemberCreatedEventObject.cs b/src/Square/Default/Types/TeamMemberCreatedEventObject.cs similarity index 95% rename from src/Square/Types/TeamMemberCreatedEventObject.cs rename to src/Square/Default/Types/TeamMemberCreatedEventObject.cs index cd4a66d6..ff57d9b6 100644 --- a/src/Square/Types/TeamMemberCreatedEventObject.cs +++ b/src/Square/Default/Types/TeamMemberCreatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TeamMemberCreatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/TeamMemberInvitationStatus.cs b/src/Square/Default/Types/TeamMemberInvitationStatus.cs similarity index 98% rename from src/Square/Types/TeamMemberInvitationStatus.cs rename to src/Square/Default/Types/TeamMemberInvitationStatus.cs index fe27905c..d14c6240 100644 --- a/src/Square/Types/TeamMemberInvitationStatus.cs +++ b/src/Square/Default/Types/TeamMemberInvitationStatus.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/TeamMemberStatus.cs b/src/Square/Default/Types/TeamMemberStatus.cs similarity index 98% rename from src/Square/Types/TeamMemberStatus.cs rename to src/Square/Default/Types/TeamMemberStatus.cs index c2adf920..a4046d0e 100644 --- a/src/Square/Types/TeamMemberStatus.cs +++ b/src/Square/Default/Types/TeamMemberStatus.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/TeamMemberUpdatedEvent.cs b/src/Square/Default/Types/TeamMemberUpdatedEvent.cs similarity index 97% rename from src/Square/Types/TeamMemberUpdatedEvent.cs rename to src/Square/Default/Types/TeamMemberUpdatedEvent.cs index 4a11ef9c..517b9b39 100644 --- a/src/Square/Types/TeamMemberUpdatedEvent.cs +++ b/src/Square/Default/Types/TeamMemberUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a Team Member is updated. diff --git a/src/Square/Types/TeamMemberUpdatedEventData.cs b/src/Square/Default/Types/TeamMemberUpdatedEventData.cs similarity index 96% rename from src/Square/Types/TeamMemberUpdatedEventData.cs rename to src/Square/Default/Types/TeamMemberUpdatedEventData.cs index 722054e0..aa01bdf9 100644 --- a/src/Square/Types/TeamMemberUpdatedEventData.cs +++ b/src/Square/Default/Types/TeamMemberUpdatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TeamMemberUpdatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/TeamMemberUpdatedEventObject.cs b/src/Square/Default/Types/TeamMemberUpdatedEventObject.cs similarity index 95% rename from src/Square/Types/TeamMemberUpdatedEventObject.cs rename to src/Square/Default/Types/TeamMemberUpdatedEventObject.cs index 10aa2a2e..b2b35f1a 100644 --- a/src/Square/Types/TeamMemberUpdatedEventObject.cs +++ b/src/Square/Default/Types/TeamMemberUpdatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TeamMemberUpdatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/TeamMemberWage.cs b/src/Square/Default/Types/TeamMemberWage.cs similarity index 98% rename from src/Square/Types/TeamMemberWage.cs rename to src/Square/Default/Types/TeamMemberWage.cs index 5b95b1f9..dd860a92 100644 --- a/src/Square/Types/TeamMemberWage.cs +++ b/src/Square/Default/Types/TeamMemberWage.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Job and wage information for a [team member](entity:TeamMember). diff --git a/src/Square/Types/TeamMemberWageSettingUpdatedEvent.cs b/src/Square/Default/Types/TeamMemberWageSettingUpdatedEvent.cs similarity index 97% rename from src/Square/Types/TeamMemberWageSettingUpdatedEvent.cs rename to src/Square/Default/Types/TeamMemberWageSettingUpdatedEvent.cs index 2cebb346..9b8e3089 100644 --- a/src/Square/Types/TeamMemberWageSettingUpdatedEvent.cs +++ b/src/Square/Default/Types/TeamMemberWageSettingUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a Wage Setting is updated. diff --git a/src/Square/Types/TeamMemberWageSettingUpdatedEventData.cs b/src/Square/Default/Types/TeamMemberWageSettingUpdatedEventData.cs similarity index 96% rename from src/Square/Types/TeamMemberWageSettingUpdatedEventData.cs rename to src/Square/Default/Types/TeamMemberWageSettingUpdatedEventData.cs index fc27ef16..8adf7f39 100644 --- a/src/Square/Types/TeamMemberWageSettingUpdatedEventData.cs +++ b/src/Square/Default/Types/TeamMemberWageSettingUpdatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TeamMemberWageSettingUpdatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/TeamMemberWageSettingUpdatedEventObject.cs b/src/Square/Default/Types/TeamMemberWageSettingUpdatedEventObject.cs similarity index 95% rename from src/Square/Types/TeamMemberWageSettingUpdatedEventObject.cs rename to src/Square/Default/Types/TeamMemberWageSettingUpdatedEventObject.cs index c38b7bbf..d3998f2d 100644 --- a/src/Square/Types/TeamMemberWageSettingUpdatedEventObject.cs +++ b/src/Square/Default/Types/TeamMemberWageSettingUpdatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TeamMemberWageSettingUpdatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/Tender.cs b/src/Square/Default/Types/Tender.cs similarity index 99% rename from src/Square/Types/Tender.cs rename to src/Square/Default/Types/Tender.cs index 81eff3d0..7be4073a 100644 --- a/src/Square/Types/Tender.cs +++ b/src/Square/Default/Types/Tender.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a tender (i.e., a method of payment) used in a Square transaction. diff --git a/src/Square/Types/TenderBankAccountDetails.cs b/src/Square/Default/Types/TenderBankAccountDetails.cs similarity index 96% rename from src/Square/Types/TenderBankAccountDetails.cs rename to src/Square/Default/Types/TenderBankAccountDetails.cs index 3e925acc..fb844aca 100644 --- a/src/Square/Types/TenderBankAccountDetails.cs +++ b/src/Square/Default/Types/TenderBankAccountDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents the details of a tender with `type` `BANK_ACCOUNT`. diff --git a/src/Square/Types/TenderBankAccountDetailsStatus.cs b/src/Square/Default/Types/TenderBankAccountDetailsStatus.cs similarity index 98% rename from src/Square/Types/TenderBankAccountDetailsStatus.cs rename to src/Square/Default/Types/TenderBankAccountDetailsStatus.cs index b42456e5..a3ad5b46 100644 --- a/src/Square/Types/TenderBankAccountDetailsStatus.cs +++ b/src/Square/Default/Types/TenderBankAccountDetailsStatus.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/TenderBuyNowPayLaterDetails.cs b/src/Square/Default/Types/TenderBuyNowPayLaterDetails.cs similarity index 97% rename from src/Square/Types/TenderBuyNowPayLaterDetails.cs rename to src/Square/Default/Types/TenderBuyNowPayLaterDetails.cs index 9825049f..0afafbc7 100644 --- a/src/Square/Types/TenderBuyNowPayLaterDetails.cs +++ b/src/Square/Default/Types/TenderBuyNowPayLaterDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents the details of a tender with `type` `BUY_NOW_PAY_LATER`. diff --git a/src/Square/Types/TenderBuyNowPayLaterDetailsBrand.cs b/src/Square/Default/Types/TenderBuyNowPayLaterDetailsBrand.cs similarity index 98% rename from src/Square/Types/TenderBuyNowPayLaterDetailsBrand.cs rename to src/Square/Default/Types/TenderBuyNowPayLaterDetailsBrand.cs index d887b1b7..18860778 100644 --- a/src/Square/Types/TenderBuyNowPayLaterDetailsBrand.cs +++ b/src/Square/Default/Types/TenderBuyNowPayLaterDetailsBrand.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/TenderBuyNowPayLaterDetailsStatus.cs b/src/Square/Default/Types/TenderBuyNowPayLaterDetailsStatus.cs similarity index 98% rename from src/Square/Types/TenderBuyNowPayLaterDetailsStatus.cs rename to src/Square/Default/Types/TenderBuyNowPayLaterDetailsStatus.cs index e911b586..d2667c69 100644 --- a/src/Square/Types/TenderBuyNowPayLaterDetailsStatus.cs +++ b/src/Square/Default/Types/TenderBuyNowPayLaterDetailsStatus.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/TenderCardDetails.cs b/src/Square/Default/Types/TenderCardDetails.cs similarity index 97% rename from src/Square/Types/TenderCardDetails.cs rename to src/Square/Default/Types/TenderCardDetails.cs index e3e8f9e3..c25d6536 100644 --- a/src/Square/Types/TenderCardDetails.cs +++ b/src/Square/Default/Types/TenderCardDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents additional details of a tender with `type` `CARD` or `SQUARE_GIFT_CARD` diff --git a/src/Square/Types/TenderCardDetailsEntryMethod.cs b/src/Square/Default/Types/TenderCardDetailsEntryMethod.cs similarity index 98% rename from src/Square/Types/TenderCardDetailsEntryMethod.cs rename to src/Square/Default/Types/TenderCardDetailsEntryMethod.cs index 0044355d..a6720b04 100644 --- a/src/Square/Types/TenderCardDetailsEntryMethod.cs +++ b/src/Square/Default/Types/TenderCardDetailsEntryMethod.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/TenderCardDetailsStatus.cs b/src/Square/Default/Types/TenderCardDetailsStatus.cs similarity index 98% rename from src/Square/Types/TenderCardDetailsStatus.cs rename to src/Square/Default/Types/TenderCardDetailsStatus.cs index 14771872..c21eed22 100644 --- a/src/Square/Types/TenderCardDetailsStatus.cs +++ b/src/Square/Default/Types/TenderCardDetailsStatus.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/TenderCashDetails.cs b/src/Square/Default/Types/TenderCashDetails.cs similarity index 96% rename from src/Square/Types/TenderCashDetails.cs rename to src/Square/Default/Types/TenderCashDetails.cs index cf7152bc..d4a1ee50 100644 --- a/src/Square/Types/TenderCashDetails.cs +++ b/src/Square/Default/Types/TenderCashDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents the details of a tender with `type` `CASH`. diff --git a/src/Square/Types/TenderSquareAccountDetails.cs b/src/Square/Default/Types/TenderSquareAccountDetails.cs similarity index 96% rename from src/Square/Types/TenderSquareAccountDetails.cs rename to src/Square/Default/Types/TenderSquareAccountDetails.cs index d763b482..7579efbb 100644 --- a/src/Square/Types/TenderSquareAccountDetails.cs +++ b/src/Square/Default/Types/TenderSquareAccountDetails.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents the details of a tender with `type` `SQUARE_ACCOUNT`. diff --git a/src/Square/Types/TenderSquareAccountDetailsStatus.cs b/src/Square/Default/Types/TenderSquareAccountDetailsStatus.cs similarity index 98% rename from src/Square/Types/TenderSquareAccountDetailsStatus.cs rename to src/Square/Default/Types/TenderSquareAccountDetailsStatus.cs index a642c49a..a453f65d 100644 --- a/src/Square/Types/TenderSquareAccountDetailsStatus.cs +++ b/src/Square/Default/Types/TenderSquareAccountDetailsStatus.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/TenderType.cs b/src/Square/Default/Types/TenderType.cs similarity index 99% rename from src/Square/Types/TenderType.cs rename to src/Square/Default/Types/TenderType.cs index 55dc3585..10c0d3e0 100644 --- a/src/Square/Types/TenderType.cs +++ b/src/Square/Default/Types/TenderType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/TerminalAction.cs b/src/Square/Default/Types/TerminalAction.cs similarity index 99% rename from src/Square/Types/TerminalAction.cs rename to src/Square/Default/Types/TerminalAction.cs index f5f2a79c..c8f3dd99 100644 --- a/src/Square/Types/TerminalAction.cs +++ b/src/Square/Default/Types/TerminalAction.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an action processed by the Square Terminal. diff --git a/src/Square/Types/TerminalActionActionType.cs b/src/Square/Default/Types/TerminalActionActionType.cs similarity index 98% rename from src/Square/Types/TerminalActionActionType.cs rename to src/Square/Default/Types/TerminalActionActionType.cs index 2ebeb21c..15ca92da 100644 --- a/src/Square/Types/TerminalActionActionType.cs +++ b/src/Square/Default/Types/TerminalActionActionType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/TerminalActionCreatedEvent.cs b/src/Square/Default/Types/TerminalActionCreatedEvent.cs similarity index 97% rename from src/Square/Types/TerminalActionCreatedEvent.cs rename to src/Square/Default/Types/TerminalActionCreatedEvent.cs index c982f20f..94089ae1 100644 --- a/src/Square/Types/TerminalActionCreatedEvent.cs +++ b/src/Square/Default/Types/TerminalActionCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a TerminalAction is created. diff --git a/src/Square/Types/TerminalActionCreatedEventData.cs b/src/Square/Default/Types/TerminalActionCreatedEventData.cs similarity index 96% rename from src/Square/Types/TerminalActionCreatedEventData.cs rename to src/Square/Default/Types/TerminalActionCreatedEventData.cs index b605129f..25db4193 100644 --- a/src/Square/Types/TerminalActionCreatedEventData.cs +++ b/src/Square/Default/Types/TerminalActionCreatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TerminalActionCreatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/TerminalActionCreatedEventObject.cs b/src/Square/Default/Types/TerminalActionCreatedEventObject.cs similarity index 95% rename from src/Square/Types/TerminalActionCreatedEventObject.cs rename to src/Square/Default/Types/TerminalActionCreatedEventObject.cs index a34d448e..6f98348e 100644 --- a/src/Square/Types/TerminalActionCreatedEventObject.cs +++ b/src/Square/Default/Types/TerminalActionCreatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TerminalActionCreatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/TerminalActionQuery.cs b/src/Square/Default/Types/TerminalActionQuery.cs similarity index 96% rename from src/Square/Types/TerminalActionQuery.cs rename to src/Square/Default/Types/TerminalActionQuery.cs index 3fc5c76b..6aeb223d 100644 --- a/src/Square/Types/TerminalActionQuery.cs +++ b/src/Square/Default/Types/TerminalActionQuery.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TerminalActionQuery : IJsonOnDeserialized diff --git a/src/Square/Types/TerminalActionQueryFilter.cs b/src/Square/Default/Types/TerminalActionQueryFilter.cs similarity index 97% rename from src/Square/Types/TerminalActionQueryFilter.cs rename to src/Square/Default/Types/TerminalActionQueryFilter.cs index b574c024..bc949551 100644 --- a/src/Square/Types/TerminalActionQueryFilter.cs +++ b/src/Square/Default/Types/TerminalActionQueryFilter.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TerminalActionQueryFilter : IJsonOnDeserialized diff --git a/src/Square/Types/TerminalActionQuerySort.cs b/src/Square/Default/Types/TerminalActionQuerySort.cs similarity index 96% rename from src/Square/Types/TerminalActionQuerySort.cs rename to src/Square/Default/Types/TerminalActionQuerySort.cs index 3caa51ca..d9a56ae6 100644 --- a/src/Square/Types/TerminalActionQuerySort.cs +++ b/src/Square/Default/Types/TerminalActionQuerySort.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TerminalActionQuerySort : IJsonOnDeserialized diff --git a/src/Square/Types/TerminalActionUpdatedEvent.cs b/src/Square/Default/Types/TerminalActionUpdatedEvent.cs similarity index 97% rename from src/Square/Types/TerminalActionUpdatedEvent.cs rename to src/Square/Default/Types/TerminalActionUpdatedEvent.cs index 6b8bfcb9..3f54d7e9 100644 --- a/src/Square/Types/TerminalActionUpdatedEvent.cs +++ b/src/Square/Default/Types/TerminalActionUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a TerminalAction is updated. diff --git a/src/Square/Types/TerminalActionUpdatedEventData.cs b/src/Square/Default/Types/TerminalActionUpdatedEventData.cs similarity index 96% rename from src/Square/Types/TerminalActionUpdatedEventData.cs rename to src/Square/Default/Types/TerminalActionUpdatedEventData.cs index 9b032281..5855d71a 100644 --- a/src/Square/Types/TerminalActionUpdatedEventData.cs +++ b/src/Square/Default/Types/TerminalActionUpdatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TerminalActionUpdatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/TerminalActionUpdatedEventObject.cs b/src/Square/Default/Types/TerminalActionUpdatedEventObject.cs similarity index 95% rename from src/Square/Types/TerminalActionUpdatedEventObject.cs rename to src/Square/Default/Types/TerminalActionUpdatedEventObject.cs index fb094fd9..479aed1b 100644 --- a/src/Square/Types/TerminalActionUpdatedEventObject.cs +++ b/src/Square/Default/Types/TerminalActionUpdatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TerminalActionUpdatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/TerminalCheckout.cs b/src/Square/Default/Types/TerminalCheckout.cs similarity index 99% rename from src/Square/Types/TerminalCheckout.cs rename to src/Square/Default/Types/TerminalCheckout.cs index d5603fc5..c03b8dd2 100644 --- a/src/Square/Types/TerminalCheckout.cs +++ b/src/Square/Default/Types/TerminalCheckout.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a checkout processed by the Square Terminal. diff --git a/src/Square/Types/TerminalCheckoutCreatedEvent.cs b/src/Square/Default/Types/TerminalCheckoutCreatedEvent.cs similarity index 97% rename from src/Square/Types/TerminalCheckoutCreatedEvent.cs rename to src/Square/Default/Types/TerminalCheckoutCreatedEvent.cs index 42a457cc..2911bf52 100644 --- a/src/Square/Types/TerminalCheckoutCreatedEvent.cs +++ b/src/Square/Default/Types/TerminalCheckoutCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [TerminalCheckout](entity:TerminalCheckout) is created. diff --git a/src/Square/Types/TerminalCheckoutCreatedEventData.cs b/src/Square/Default/Types/TerminalCheckoutCreatedEventData.cs similarity index 96% rename from src/Square/Types/TerminalCheckoutCreatedEventData.cs rename to src/Square/Default/Types/TerminalCheckoutCreatedEventData.cs index 11ae3585..a31f5b3b 100644 --- a/src/Square/Types/TerminalCheckoutCreatedEventData.cs +++ b/src/Square/Default/Types/TerminalCheckoutCreatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TerminalCheckoutCreatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/TerminalCheckoutCreatedEventObject.cs b/src/Square/Default/Types/TerminalCheckoutCreatedEventObject.cs similarity index 95% rename from src/Square/Types/TerminalCheckoutCreatedEventObject.cs rename to src/Square/Default/Types/TerminalCheckoutCreatedEventObject.cs index b0388fea..f04c1ed6 100644 --- a/src/Square/Types/TerminalCheckoutCreatedEventObject.cs +++ b/src/Square/Default/Types/TerminalCheckoutCreatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TerminalCheckoutCreatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/TerminalCheckoutQuery.cs b/src/Square/Default/Types/TerminalCheckoutQuery.cs similarity index 96% rename from src/Square/Types/TerminalCheckoutQuery.cs rename to src/Square/Default/Types/TerminalCheckoutQuery.cs index 530130f4..b602184f 100644 --- a/src/Square/Types/TerminalCheckoutQuery.cs +++ b/src/Square/Default/Types/TerminalCheckoutQuery.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TerminalCheckoutQuery : IJsonOnDeserialized diff --git a/src/Square/Types/TerminalCheckoutQueryFilter.cs b/src/Square/Default/Types/TerminalCheckoutQueryFilter.cs similarity index 97% rename from src/Square/Types/TerminalCheckoutQueryFilter.cs rename to src/Square/Default/Types/TerminalCheckoutQueryFilter.cs index efcd4774..1ff425e1 100644 --- a/src/Square/Types/TerminalCheckoutQueryFilter.cs +++ b/src/Square/Default/Types/TerminalCheckoutQueryFilter.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TerminalCheckoutQueryFilter : IJsonOnDeserialized diff --git a/src/Square/Types/TerminalCheckoutQuerySort.cs b/src/Square/Default/Types/TerminalCheckoutQuerySort.cs similarity index 95% rename from src/Square/Types/TerminalCheckoutQuerySort.cs rename to src/Square/Default/Types/TerminalCheckoutQuerySort.cs index c83adf2f..1beac375 100644 --- a/src/Square/Types/TerminalCheckoutQuerySort.cs +++ b/src/Square/Default/Types/TerminalCheckoutQuerySort.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TerminalCheckoutQuerySort : IJsonOnDeserialized diff --git a/src/Square/Types/TerminalCheckoutUpdatedEvent.cs b/src/Square/Default/Types/TerminalCheckoutUpdatedEvent.cs similarity index 97% rename from src/Square/Types/TerminalCheckoutUpdatedEvent.cs rename to src/Square/Default/Types/TerminalCheckoutUpdatedEvent.cs index 749b724b..ad8768f4 100644 --- a/src/Square/Types/TerminalCheckoutUpdatedEvent.cs +++ b/src/Square/Default/Types/TerminalCheckoutUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [TerminalCheckout](entity:TerminalCheckout) is updated. diff --git a/src/Square/Types/TerminalCheckoutUpdatedEventData.cs b/src/Square/Default/Types/TerminalCheckoutUpdatedEventData.cs similarity index 96% rename from src/Square/Types/TerminalCheckoutUpdatedEventData.cs rename to src/Square/Default/Types/TerminalCheckoutUpdatedEventData.cs index 9f840f47..cf1543db 100644 --- a/src/Square/Types/TerminalCheckoutUpdatedEventData.cs +++ b/src/Square/Default/Types/TerminalCheckoutUpdatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TerminalCheckoutUpdatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/TerminalCheckoutUpdatedEventObject.cs b/src/Square/Default/Types/TerminalCheckoutUpdatedEventObject.cs similarity index 95% rename from src/Square/Types/TerminalCheckoutUpdatedEventObject.cs rename to src/Square/Default/Types/TerminalCheckoutUpdatedEventObject.cs index d7c4775c..5019a464 100644 --- a/src/Square/Types/TerminalCheckoutUpdatedEventObject.cs +++ b/src/Square/Default/Types/TerminalCheckoutUpdatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TerminalCheckoutUpdatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/TerminalRefund.cs b/src/Square/Default/Types/TerminalRefund.cs similarity index 99% rename from src/Square/Types/TerminalRefund.cs rename to src/Square/Default/Types/TerminalRefund.cs index da7367a9..b8fd6cc9 100644 --- a/src/Square/Types/TerminalRefund.cs +++ b/src/Square/Default/Types/TerminalRefund.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a payment refund processed by the Square Terminal. Only supports Interac (Canadian debit network) payment refunds. diff --git a/src/Square/Types/TerminalRefundCreatedEvent.cs b/src/Square/Default/Types/TerminalRefundCreatedEvent.cs similarity index 97% rename from src/Square/Types/TerminalRefundCreatedEvent.cs rename to src/Square/Default/Types/TerminalRefundCreatedEvent.cs index 2b0e490c..555c57bc 100644 --- a/src/Square/Types/TerminalRefundCreatedEvent.cs +++ b/src/Square/Default/Types/TerminalRefundCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a Terminal API refund is created. diff --git a/src/Square/Types/TerminalRefundCreatedEventData.cs b/src/Square/Default/Types/TerminalRefundCreatedEventData.cs similarity index 96% rename from src/Square/Types/TerminalRefundCreatedEventData.cs rename to src/Square/Default/Types/TerminalRefundCreatedEventData.cs index 59a93e44..9412c737 100644 --- a/src/Square/Types/TerminalRefundCreatedEventData.cs +++ b/src/Square/Default/Types/TerminalRefundCreatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TerminalRefundCreatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/TerminalRefundCreatedEventObject.cs b/src/Square/Default/Types/TerminalRefundCreatedEventObject.cs similarity index 95% rename from src/Square/Types/TerminalRefundCreatedEventObject.cs rename to src/Square/Default/Types/TerminalRefundCreatedEventObject.cs index 1741c7fa..37f11a88 100644 --- a/src/Square/Types/TerminalRefundCreatedEventObject.cs +++ b/src/Square/Default/Types/TerminalRefundCreatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TerminalRefundCreatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/TerminalRefundQuery.cs b/src/Square/Default/Types/TerminalRefundQuery.cs similarity index 96% rename from src/Square/Types/TerminalRefundQuery.cs rename to src/Square/Default/Types/TerminalRefundQuery.cs index 77c8ae6b..19e6eeaf 100644 --- a/src/Square/Types/TerminalRefundQuery.cs +++ b/src/Square/Default/Types/TerminalRefundQuery.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TerminalRefundQuery : IJsonOnDeserialized diff --git a/src/Square/Types/TerminalRefundQueryFilter.cs b/src/Square/Default/Types/TerminalRefundQueryFilter.cs similarity index 97% rename from src/Square/Types/TerminalRefundQueryFilter.cs rename to src/Square/Default/Types/TerminalRefundQueryFilter.cs index 23be29ef..faacc00a 100644 --- a/src/Square/Types/TerminalRefundQueryFilter.cs +++ b/src/Square/Default/Types/TerminalRefundQueryFilter.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TerminalRefundQueryFilter : IJsonOnDeserialized diff --git a/src/Square/Types/TerminalRefundQuerySort.cs b/src/Square/Default/Types/TerminalRefundQuerySort.cs similarity index 95% rename from src/Square/Types/TerminalRefundQuerySort.cs rename to src/Square/Default/Types/TerminalRefundQuerySort.cs index d4c39558..7133aaea 100644 --- a/src/Square/Types/TerminalRefundQuerySort.cs +++ b/src/Square/Default/Types/TerminalRefundQuerySort.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TerminalRefundQuerySort : IJsonOnDeserialized diff --git a/src/Square/Types/TerminalRefundUpdatedEvent.cs b/src/Square/Default/Types/TerminalRefundUpdatedEvent.cs similarity index 97% rename from src/Square/Types/TerminalRefundUpdatedEvent.cs rename to src/Square/Default/Types/TerminalRefundUpdatedEvent.cs index 49013f9d..70349a2e 100644 --- a/src/Square/Types/TerminalRefundUpdatedEvent.cs +++ b/src/Square/Default/Types/TerminalRefundUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a Terminal API refund is updated. diff --git a/src/Square/Types/TerminalRefundUpdatedEventData.cs b/src/Square/Default/Types/TerminalRefundUpdatedEventData.cs similarity index 96% rename from src/Square/Types/TerminalRefundUpdatedEventData.cs rename to src/Square/Default/Types/TerminalRefundUpdatedEventData.cs index c1e33be1..f49ddc31 100644 --- a/src/Square/Types/TerminalRefundUpdatedEventData.cs +++ b/src/Square/Default/Types/TerminalRefundUpdatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TerminalRefundUpdatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/TerminalRefundUpdatedEventObject.cs b/src/Square/Default/Types/TerminalRefundUpdatedEventObject.cs similarity index 95% rename from src/Square/Types/TerminalRefundUpdatedEventObject.cs rename to src/Square/Default/Types/TerminalRefundUpdatedEventObject.cs index 8b5514bc..e34c9932 100644 --- a/src/Square/Types/TerminalRefundUpdatedEventObject.cs +++ b/src/Square/Default/Types/TerminalRefundUpdatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TerminalRefundUpdatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/TestWebhookSubscriptionResponse.cs b/src/Square/Default/Types/TestWebhookSubscriptionResponse.cs similarity index 98% rename from src/Square/Types/TestWebhookSubscriptionResponse.cs rename to src/Square/Default/Types/TestWebhookSubscriptionResponse.cs index 5f737f87..facf72c5 100644 --- a/src/Square/Types/TestWebhookSubscriptionResponse.cs +++ b/src/Square/Default/Types/TestWebhookSubscriptionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of a request to the TestWebhookSubscription endpoint. diff --git a/src/Square/Types/TimeRange.cs b/src/Square/Default/Types/TimeRange.cs similarity index 97% rename from src/Square/Types/TimeRange.cs rename to src/Square/Default/Types/TimeRange.cs index ae21bf8d..68cbeb3c 100644 --- a/src/Square/Types/TimeRange.cs +++ b/src/Square/Default/Types/TimeRange.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a generic time range. The start and end values are diff --git a/src/Square/Types/Timecard.cs b/src/Square/Default/Types/Timecard.cs similarity index 99% rename from src/Square/Types/Timecard.cs rename to src/Square/Default/Types/Timecard.cs index b3a981cf..93c6856c 100644 --- a/src/Square/Types/Timecard.cs +++ b/src/Square/Default/Types/Timecard.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A record of the hourly rate, start time, and end time of a single timecard (shift) diff --git a/src/Square/Types/TimecardFilter.cs b/src/Square/Default/Types/TimecardFilter.cs similarity index 98% rename from src/Square/Types/TimecardFilter.cs rename to src/Square/Default/Types/TimecardFilter.cs index b8d01864..2cdddb50 100644 --- a/src/Square/Types/TimecardFilter.cs +++ b/src/Square/Default/Types/TimecardFilter.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines a filter used in a search for `Timecard` records. `AND` logic is diff --git a/src/Square/Types/TimecardFilterStatus.cs b/src/Square/Default/Types/TimecardFilterStatus.cs similarity index 98% rename from src/Square/Types/TimecardFilterStatus.cs rename to src/Square/Default/Types/TimecardFilterStatus.cs index 758e9198..958396bb 100644 --- a/src/Square/Types/TimecardFilterStatus.cs +++ b/src/Square/Default/Types/TimecardFilterStatus.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/TimecardQuery.cs b/src/Square/Default/Types/TimecardQuery.cs similarity index 96% rename from src/Square/Types/TimecardQuery.cs rename to src/Square/Default/Types/TimecardQuery.cs index 16a7c38a..5c85eb4a 100644 --- a/src/Square/Types/TimecardQuery.cs +++ b/src/Square/Default/Types/TimecardQuery.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The parameters of a `Timecard` search query, which includes filter and sort options. diff --git a/src/Square/Types/TimecardSort.cs b/src/Square/Default/Types/TimecardSort.cs similarity index 96% rename from src/Square/Types/TimecardSort.cs rename to src/Square/Default/Types/TimecardSort.cs index 7ced0ef7..e4f3b889 100644 --- a/src/Square/Types/TimecardSort.cs +++ b/src/Square/Default/Types/TimecardSort.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Sets the sort order of search results. diff --git a/src/Square/Types/TimecardSortField.cs b/src/Square/Default/Types/TimecardSortField.cs similarity index 98% rename from src/Square/Types/TimecardSortField.cs rename to src/Square/Default/Types/TimecardSortField.cs index d1d6e488..afe830df 100644 --- a/src/Square/Types/TimecardSortField.cs +++ b/src/Square/Default/Types/TimecardSortField.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/TimecardStatus.cs b/src/Square/Default/Types/TimecardStatus.cs similarity index 98% rename from src/Square/Types/TimecardStatus.cs rename to src/Square/Default/Types/TimecardStatus.cs index 9c346137..65fba8ad 100644 --- a/src/Square/Types/TimecardStatus.cs +++ b/src/Square/Default/Types/TimecardStatus.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/TimecardWage.cs b/src/Square/Default/Types/TimecardWage.cs similarity index 97% rename from src/Square/Types/TimecardWage.cs rename to src/Square/Default/Types/TimecardWage.cs index 5b2831a7..7df846ce 100644 --- a/src/Square/Types/TimecardWage.cs +++ b/src/Square/Default/Types/TimecardWage.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The hourly wage rate used to compensate a team member for a [timecard](entity:Timecard). diff --git a/src/Square/Types/TimecardWorkday.cs b/src/Square/Default/Types/TimecardWorkday.cs similarity index 97% rename from src/Square/Types/TimecardWorkday.cs rename to src/Square/Default/Types/TimecardWorkday.cs index 2b7de5d5..3d793382 100644 --- a/src/Square/Types/TimecardWorkday.cs +++ b/src/Square/Default/Types/TimecardWorkday.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A `Timecard` search query filter parameter that sets a range of days that diff --git a/src/Square/Types/TimecardWorkdayMatcher.cs b/src/Square/Default/Types/TimecardWorkdayMatcher.cs similarity index 98% rename from src/Square/Types/TimecardWorkdayMatcher.cs rename to src/Square/Default/Types/TimecardWorkdayMatcher.cs index c35c9366..08701833 100644 --- a/src/Square/Types/TimecardWorkdayMatcher.cs +++ b/src/Square/Default/Types/TimecardWorkdayMatcher.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/TipSettings.cs b/src/Square/Default/Types/TipSettings.cs similarity index 98% rename from src/Square/Types/TipSettings.cs rename to src/Square/Default/Types/TipSettings.cs index f9217cba..4ab2e204 100644 --- a/src/Square/Types/TipSettings.cs +++ b/src/Square/Default/Types/TipSettings.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TipSettings : IJsonOnDeserialized diff --git a/src/Square/Types/Transaction.cs b/src/Square/Default/Types/Transaction.cs similarity index 98% rename from src/Square/Types/Transaction.cs rename to src/Square/Default/Types/Transaction.cs index c588755d..7367586e 100644 --- a/src/Square/Types/Transaction.cs +++ b/src/Square/Default/Types/Transaction.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a transaction processed with Square, either with the diff --git a/src/Square/Types/TransactionProduct.cs b/src/Square/Default/Types/TransactionProduct.cs similarity index 98% rename from src/Square/Types/TransactionProduct.cs rename to src/Square/Default/Types/TransactionProduct.cs index bb64f7d9..0171f55b 100644 --- a/src/Square/Types/TransactionProduct.cs +++ b/src/Square/Default/Types/TransactionProduct.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/TransactionType.cs b/src/Square/Default/Types/TransactionType.cs similarity index 98% rename from src/Square/Types/TransactionType.cs rename to src/Square/Default/Types/TransactionType.cs index 57f79e36..c593ec49 100644 --- a/src/Square/Types/TransactionType.cs +++ b/src/Square/Default/Types/TransactionType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/TransferOrder.cs b/src/Square/Default/Types/TransferOrder.cs similarity index 99% rename from src/Square/Types/TransferOrder.cs rename to src/Square/Default/Types/TransferOrder.cs index 86f1b15f..0a6b4180 100644 --- a/src/Square/Types/TransferOrder.cs +++ b/src/Square/Default/Types/TransferOrder.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a transfer order for moving [CatalogItemVariation](entity:CatalogItemVariation)s diff --git a/src/Square/Types/TransferOrderCreatedEvent.cs b/src/Square/Default/Types/TransferOrderCreatedEvent.cs similarity index 97% rename from src/Square/Types/TransferOrderCreatedEvent.cs rename to src/Square/Default/Types/TransferOrderCreatedEvent.cs index dedf9d6f..d9e9ea91 100644 --- a/src/Square/Types/TransferOrderCreatedEvent.cs +++ b/src/Square/Default/Types/TransferOrderCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a transfer_order is created. diff --git a/src/Square/Types/TransferOrderCreatedEventData.cs b/src/Square/Default/Types/TransferOrderCreatedEventData.cs similarity index 96% rename from src/Square/Types/TransferOrderCreatedEventData.cs rename to src/Square/Default/Types/TransferOrderCreatedEventData.cs index 6f778faf..d881180b 100644 --- a/src/Square/Types/TransferOrderCreatedEventData.cs +++ b/src/Square/Default/Types/TransferOrderCreatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TransferOrderCreatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/TransferOrderCreatedEventObject.cs b/src/Square/Default/Types/TransferOrderCreatedEventObject.cs similarity index 95% rename from src/Square/Types/TransferOrderCreatedEventObject.cs rename to src/Square/Default/Types/TransferOrderCreatedEventObject.cs index 25aaa2d0..f37aa67f 100644 --- a/src/Square/Types/TransferOrderCreatedEventObject.cs +++ b/src/Square/Default/Types/TransferOrderCreatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TransferOrderCreatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/TransferOrderDeletedEvent.cs b/src/Square/Default/Types/TransferOrderDeletedEvent.cs similarity index 97% rename from src/Square/Types/TransferOrderDeletedEvent.cs rename to src/Square/Default/Types/TransferOrderDeletedEvent.cs index e272fc46..a646c5cc 100644 --- a/src/Square/Types/TransferOrderDeletedEvent.cs +++ b/src/Square/Default/Types/TransferOrderDeletedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a transfer_order is deleted. diff --git a/src/Square/Types/TransferOrderDeletedEventData.cs b/src/Square/Default/Types/TransferOrderDeletedEventData.cs similarity index 96% rename from src/Square/Types/TransferOrderDeletedEventData.cs rename to src/Square/Default/Types/TransferOrderDeletedEventData.cs index 1a932781..5b057429 100644 --- a/src/Square/Types/TransferOrderDeletedEventData.cs +++ b/src/Square/Default/Types/TransferOrderDeletedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TransferOrderDeletedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/TransferOrderFilter.cs b/src/Square/Default/Types/TransferOrderFilter.cs similarity index 97% rename from src/Square/Types/TransferOrderFilter.cs rename to src/Square/Default/Types/TransferOrderFilter.cs index b334551b..8ca5d90d 100644 --- a/src/Square/Types/TransferOrderFilter.cs +++ b/src/Square/Default/Types/TransferOrderFilter.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Filter criteria for searching transfer orders diff --git a/src/Square/Types/TransferOrderGoodsReceipt.cs b/src/Square/Default/Types/TransferOrderGoodsReceipt.cs similarity index 98% rename from src/Square/Types/TransferOrderGoodsReceipt.cs rename to src/Square/Default/Types/TransferOrderGoodsReceipt.cs index e034cfa2..a6527aad 100644 --- a/src/Square/Types/TransferOrderGoodsReceipt.cs +++ b/src/Square/Default/Types/TransferOrderGoodsReceipt.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The goods receipt details for a transfer order. This object represents a single receipt diff --git a/src/Square/Types/TransferOrderGoodsReceiptLineItem.cs b/src/Square/Default/Types/TransferOrderGoodsReceiptLineItem.cs similarity index 98% rename from src/Square/Types/TransferOrderGoodsReceiptLineItem.cs rename to src/Square/Default/Types/TransferOrderGoodsReceiptLineItem.cs index 22080090..e714f386 100644 --- a/src/Square/Types/TransferOrderGoodsReceiptLineItem.cs +++ b/src/Square/Default/Types/TransferOrderGoodsReceiptLineItem.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A simplified line item for goods receipts in transfer orders diff --git a/src/Square/Types/TransferOrderLine.cs b/src/Square/Default/Types/TransferOrderLine.cs similarity index 98% rename from src/Square/Types/TransferOrderLine.cs rename to src/Square/Default/Types/TransferOrderLine.cs index 1cb01a42..a49fea3c 100644 --- a/src/Square/Types/TransferOrderLine.cs +++ b/src/Square/Default/Types/TransferOrderLine.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a line item in a transfer order. Each line item tracks a specific diff --git a/src/Square/Types/TransferOrderQuery.cs b/src/Square/Default/Types/TransferOrderQuery.cs similarity index 96% rename from src/Square/Types/TransferOrderQuery.cs rename to src/Square/Default/Types/TransferOrderQuery.cs index 7baa8ad9..12ecef33 100644 --- a/src/Square/Types/TransferOrderQuery.cs +++ b/src/Square/Default/Types/TransferOrderQuery.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Query parameters for searching transfer orders diff --git a/src/Square/Types/TransferOrderSort.cs b/src/Square/Default/Types/TransferOrderSort.cs similarity index 96% rename from src/Square/Types/TransferOrderSort.cs rename to src/Square/Default/Types/TransferOrderSort.cs index 13ef8e23..05deb0c5 100644 --- a/src/Square/Types/TransferOrderSort.cs +++ b/src/Square/Default/Types/TransferOrderSort.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Sort configuration for search results diff --git a/src/Square/Types/TransferOrderSortField.cs b/src/Square/Default/Types/TransferOrderSortField.cs similarity index 98% rename from src/Square/Types/TransferOrderSortField.cs rename to src/Square/Default/Types/TransferOrderSortField.cs index 10bffe87..a2b85ed3 100644 --- a/src/Square/Types/TransferOrderSortField.cs +++ b/src/Square/Default/Types/TransferOrderSortField.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/TransferOrderStatus.cs b/src/Square/Default/Types/TransferOrderStatus.cs similarity index 98% rename from src/Square/Types/TransferOrderStatus.cs rename to src/Square/Default/Types/TransferOrderStatus.cs index 80a9b3c4..726c95b7 100644 --- a/src/Square/Types/TransferOrderStatus.cs +++ b/src/Square/Default/Types/TransferOrderStatus.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/TransferOrderUpdatedEvent.cs b/src/Square/Default/Types/TransferOrderUpdatedEvent.cs similarity index 97% rename from src/Square/Types/TransferOrderUpdatedEvent.cs rename to src/Square/Default/Types/TransferOrderUpdatedEvent.cs index 0e7b1b5e..da3651dd 100644 --- a/src/Square/Types/TransferOrderUpdatedEvent.cs +++ b/src/Square/Default/Types/TransferOrderUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a transfer_order is updated. diff --git a/src/Square/Types/TransferOrderUpdatedEventData.cs b/src/Square/Default/Types/TransferOrderUpdatedEventData.cs similarity index 96% rename from src/Square/Types/TransferOrderUpdatedEventData.cs rename to src/Square/Default/Types/TransferOrderUpdatedEventData.cs index 371eb121..595036e7 100644 --- a/src/Square/Types/TransferOrderUpdatedEventData.cs +++ b/src/Square/Default/Types/TransferOrderUpdatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TransferOrderUpdatedEventData : IJsonOnDeserialized diff --git a/src/Square/Types/TransferOrderUpdatedEventObject.cs b/src/Square/Default/Types/TransferOrderUpdatedEventObject.cs similarity index 95% rename from src/Square/Types/TransferOrderUpdatedEventObject.cs rename to src/Square/Default/Types/TransferOrderUpdatedEventObject.cs index 57a77418..28458d4c 100644 --- a/src/Square/Types/TransferOrderUpdatedEventObject.cs +++ b/src/Square/Default/Types/TransferOrderUpdatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record TransferOrderUpdatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/UnlinkCustomerFromGiftCardResponse.cs b/src/Square/Default/Types/UnlinkCustomerFromGiftCardResponse.cs similarity index 97% rename from src/Square/Types/UnlinkCustomerFromGiftCardResponse.cs rename to src/Square/Default/Types/UnlinkCustomerFromGiftCardResponse.cs index 608680df..f21bd268 100644 --- a/src/Square/Types/UnlinkCustomerFromGiftCardResponse.cs +++ b/src/Square/Default/Types/UnlinkCustomerFromGiftCardResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A response that contains the unlinked `GiftCard` object. If the request resulted in errors, diff --git a/src/Square/Types/UpdateBookingCustomAttributeDefinitionResponse.cs b/src/Square/Default/Types/UpdateBookingCustomAttributeDefinitionResponse.cs similarity index 97% rename from src/Square/Types/UpdateBookingCustomAttributeDefinitionResponse.cs rename to src/Square/Default/Types/UpdateBookingCustomAttributeDefinitionResponse.cs index 571bbac8..4e5509da 100644 --- a/src/Square/Types/UpdateBookingCustomAttributeDefinitionResponse.cs +++ b/src/Square/Default/Types/UpdateBookingCustomAttributeDefinitionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an [UpdateBookingCustomAttributeDefinition](api-endpoint:BookingCustomAttributes-UpdateBookingCustomAttributeDefinition) response. diff --git a/src/Square/Types/UpdateBookingResponse.cs b/src/Square/Default/Types/UpdateBookingResponse.cs similarity index 96% rename from src/Square/Types/UpdateBookingResponse.cs rename to src/Square/Default/Types/UpdateBookingResponse.cs index e6a32286..f4f9349e 100644 --- a/src/Square/Types/UpdateBookingResponse.cs +++ b/src/Square/Default/Types/UpdateBookingResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record UpdateBookingResponse : IJsonOnDeserialized diff --git a/src/Square/Types/UpdateBreakTypeResponse.cs b/src/Square/Default/Types/UpdateBreakTypeResponse.cs similarity index 96% rename from src/Square/Types/UpdateBreakTypeResponse.cs rename to src/Square/Default/Types/UpdateBreakTypeResponse.cs index 98754e10..a6c8252a 100644 --- a/src/Square/Types/UpdateBreakTypeResponse.cs +++ b/src/Square/Default/Types/UpdateBreakTypeResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A response to a request to update a `BreakType`. The response contains diff --git a/src/Square/Types/UpdateCatalogImageRequest.cs b/src/Square/Default/Types/UpdateCatalogImageRequest.cs similarity index 96% rename from src/Square/Types/UpdateCatalogImageRequest.cs rename to src/Square/Default/Types/UpdateCatalogImageRequest.cs index 8e9cc7d1..54f8dd58 100644 --- a/src/Square/Types/UpdateCatalogImageRequest.cs +++ b/src/Square/Default/Types/UpdateCatalogImageRequest.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record UpdateCatalogImageRequest : IJsonOnDeserialized diff --git a/src/Square/Types/UpdateCatalogImageResponse.cs b/src/Square/Default/Types/UpdateCatalogImageResponse.cs similarity index 96% rename from src/Square/Types/UpdateCatalogImageResponse.cs rename to src/Square/Default/Types/UpdateCatalogImageResponse.cs index cec35285..f543dd84 100644 --- a/src/Square/Types/UpdateCatalogImageResponse.cs +++ b/src/Square/Default/Types/UpdateCatalogImageResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record UpdateCatalogImageResponse : IJsonOnDeserialized diff --git a/src/Square/Types/UpdateCustomerCustomAttributeDefinitionResponse.cs b/src/Square/Default/Types/UpdateCustomerCustomAttributeDefinitionResponse.cs similarity index 97% rename from src/Square/Types/UpdateCustomerCustomAttributeDefinitionResponse.cs rename to src/Square/Default/Types/UpdateCustomerCustomAttributeDefinitionResponse.cs index aa470c65..1d69ba79 100644 --- a/src/Square/Types/UpdateCustomerCustomAttributeDefinitionResponse.cs +++ b/src/Square/Default/Types/UpdateCustomerCustomAttributeDefinitionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an [UpdateCustomerCustomAttributeDefinition](api-endpoint:CustomerCustomAttributes-UpdateCustomerCustomAttributeDefinition) response. diff --git a/src/Square/Types/UpdateCustomerGroupResponse.cs b/src/Square/Default/Types/UpdateCustomerGroupResponse.cs similarity index 96% rename from src/Square/Types/UpdateCustomerGroupResponse.cs rename to src/Square/Default/Types/UpdateCustomerGroupResponse.cs index 1fd94b50..0d5f9d49 100644 --- a/src/Square/Types/UpdateCustomerGroupResponse.cs +++ b/src/Square/Default/Types/UpdateCustomerGroupResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/UpdateCustomerResponse.cs b/src/Square/Default/Types/UpdateCustomerResponse.cs similarity index 97% rename from src/Square/Types/UpdateCustomerResponse.cs rename to src/Square/Default/Types/UpdateCustomerResponse.cs index 427e1ff2..b73e777d 100644 --- a/src/Square/Types/UpdateCustomerResponse.cs +++ b/src/Square/Default/Types/UpdateCustomerResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/UpdateInvoiceResponse.cs b/src/Square/Default/Types/UpdateInvoiceResponse.cs similarity index 96% rename from src/Square/Types/UpdateInvoiceResponse.cs rename to src/Square/Default/Types/UpdateInvoiceResponse.cs index de5ca6d9..16fd7700 100644 --- a/src/Square/Types/UpdateInvoiceResponse.cs +++ b/src/Square/Default/Types/UpdateInvoiceResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Describes a `UpdateInvoice` response. diff --git a/src/Square/Types/UpdateItemModifierListsResponse.cs b/src/Square/Default/Types/UpdateItemModifierListsResponse.cs similarity index 96% rename from src/Square/Types/UpdateItemModifierListsResponse.cs rename to src/Square/Default/Types/UpdateItemModifierListsResponse.cs index 61b7fc77..296f0b87 100644 --- a/src/Square/Types/UpdateItemModifierListsResponse.cs +++ b/src/Square/Default/Types/UpdateItemModifierListsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record UpdateItemModifierListsResponse : IJsonOnDeserialized diff --git a/src/Square/Types/UpdateItemTaxesResponse.cs b/src/Square/Default/Types/UpdateItemTaxesResponse.cs similarity index 96% rename from src/Square/Types/UpdateItemTaxesResponse.cs rename to src/Square/Default/Types/UpdateItemTaxesResponse.cs index 9394c0d4..55c7dc78 100644 --- a/src/Square/Types/UpdateItemTaxesResponse.cs +++ b/src/Square/Default/Types/UpdateItemTaxesResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record UpdateItemTaxesResponse : IJsonOnDeserialized diff --git a/src/Square/Types/UpdateJobResponse.cs b/src/Square/Default/Types/UpdateJobResponse.cs similarity index 96% rename from src/Square/Types/UpdateJobResponse.cs rename to src/Square/Default/Types/UpdateJobResponse.cs index 774f1170..48fd77b0 100644 --- a/src/Square/Types/UpdateJobResponse.cs +++ b/src/Square/Default/Types/UpdateJobResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an [UpdateJob](api-endpoint:Team-UpdateJob) response. Either `job` or `errors` diff --git a/src/Square/Types/UpdateLocationCustomAttributeDefinitionResponse.cs b/src/Square/Default/Types/UpdateLocationCustomAttributeDefinitionResponse.cs similarity index 97% rename from src/Square/Types/UpdateLocationCustomAttributeDefinitionResponse.cs rename to src/Square/Default/Types/UpdateLocationCustomAttributeDefinitionResponse.cs index d2108b8b..983beb43 100644 --- a/src/Square/Types/UpdateLocationCustomAttributeDefinitionResponse.cs +++ b/src/Square/Default/Types/UpdateLocationCustomAttributeDefinitionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an [UpdateLocationCustomAttributeDefinition](api-endpoint:LocationCustomAttributes-UpdateLocationCustomAttributeDefinition) response. diff --git a/src/Square/Types/UpdateLocationResponse.cs b/src/Square/Default/Types/UpdateLocationResponse.cs similarity index 96% rename from src/Square/Types/UpdateLocationResponse.cs rename to src/Square/Default/Types/UpdateLocationResponse.cs index fbd4a209..d300bd8e 100644 --- a/src/Square/Types/UpdateLocationResponse.cs +++ b/src/Square/Default/Types/UpdateLocationResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The response object returned by the [UpdateLocation](api-endpoint:Locations-UpdateLocation) endpoint. diff --git a/src/Square/Types/UpdateLocationSettingsResponse.cs b/src/Square/Default/Types/UpdateLocationSettingsResponse.cs similarity index 96% rename from src/Square/Types/UpdateLocationSettingsResponse.cs rename to src/Square/Default/Types/UpdateLocationSettingsResponse.cs index ceae3716..3b025628 100644 --- a/src/Square/Types/UpdateLocationSettingsResponse.cs +++ b/src/Square/Default/Types/UpdateLocationSettingsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record UpdateLocationSettingsResponse : IJsonOnDeserialized diff --git a/src/Square/Types/UpdateMerchantCustomAttributeDefinitionResponse.cs b/src/Square/Default/Types/UpdateMerchantCustomAttributeDefinitionResponse.cs similarity index 97% rename from src/Square/Types/UpdateMerchantCustomAttributeDefinitionResponse.cs rename to src/Square/Default/Types/UpdateMerchantCustomAttributeDefinitionResponse.cs index 19d2bdbd..3e2f6eb4 100644 --- a/src/Square/Types/UpdateMerchantCustomAttributeDefinitionResponse.cs +++ b/src/Square/Default/Types/UpdateMerchantCustomAttributeDefinitionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an [UpdateMerchantCustomAttributeDefinition](api-endpoint:MerchantCustomAttributes-UpdateMerchantCustomAttributeDefinition) response. diff --git a/src/Square/Types/UpdateMerchantSettingsResponse.cs b/src/Square/Default/Types/UpdateMerchantSettingsResponse.cs similarity index 96% rename from src/Square/Types/UpdateMerchantSettingsResponse.cs rename to src/Square/Default/Types/UpdateMerchantSettingsResponse.cs index cb3493c4..73fd6aa9 100644 --- a/src/Square/Types/UpdateMerchantSettingsResponse.cs +++ b/src/Square/Default/Types/UpdateMerchantSettingsResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record UpdateMerchantSettingsResponse : IJsonOnDeserialized diff --git a/src/Square/Types/UpdateOrderCustomAttributeDefinitionResponse.cs b/src/Square/Default/Types/UpdateOrderCustomAttributeDefinitionResponse.cs similarity index 96% rename from src/Square/Types/UpdateOrderCustomAttributeDefinitionResponse.cs rename to src/Square/Default/Types/UpdateOrderCustomAttributeDefinitionResponse.cs index d18ee47b..a3c6045f 100644 --- a/src/Square/Types/UpdateOrderCustomAttributeDefinitionResponse.cs +++ b/src/Square/Default/Types/UpdateOrderCustomAttributeDefinitionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a response from updating an order custom attribute definition. diff --git a/src/Square/Types/UpdateOrderResponse.cs b/src/Square/Default/Types/UpdateOrderResponse.cs similarity index 96% rename from src/Square/Types/UpdateOrderResponse.cs rename to src/Square/Default/Types/UpdateOrderResponse.cs index 2a99e48b..2736621f 100644 --- a/src/Square/Types/UpdateOrderResponse.cs +++ b/src/Square/Default/Types/UpdateOrderResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/UpdatePaymentLinkResponse.cs b/src/Square/Default/Types/UpdatePaymentLinkResponse.cs similarity index 96% rename from src/Square/Types/UpdatePaymentLinkResponse.cs rename to src/Square/Default/Types/UpdatePaymentLinkResponse.cs index 41e79a86..0b48df0c 100644 --- a/src/Square/Types/UpdatePaymentLinkResponse.cs +++ b/src/Square/Default/Types/UpdatePaymentLinkResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record UpdatePaymentLinkResponse : IJsonOnDeserialized diff --git a/src/Square/Types/UpdatePaymentResponse.cs b/src/Square/Default/Types/UpdatePaymentResponse.cs similarity index 96% rename from src/Square/Types/UpdatePaymentResponse.cs rename to src/Square/Default/Types/UpdatePaymentResponse.cs index 427abef6..19df9826 100644 --- a/src/Square/Types/UpdatePaymentResponse.cs +++ b/src/Square/Default/Types/UpdatePaymentResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the response returned by diff --git a/src/Square/Types/UpdateScheduledShiftResponse.cs b/src/Square/Default/Types/UpdateScheduledShiftResponse.cs similarity index 97% rename from src/Square/Types/UpdateScheduledShiftResponse.cs rename to src/Square/Default/Types/UpdateScheduledShiftResponse.cs index 7d0263bc..6028d855 100644 --- a/src/Square/Types/UpdateScheduledShiftResponse.cs +++ b/src/Square/Default/Types/UpdateScheduledShiftResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an [UpdateScheduledShift](api-endpoint:Labor-UpdateScheduledShift) response. diff --git a/src/Square/Types/UpdateShiftResponse.cs b/src/Square/Default/Types/UpdateShiftResponse.cs similarity index 96% rename from src/Square/Types/UpdateShiftResponse.cs rename to src/Square/Default/Types/UpdateShiftResponse.cs index b475105d..577b09a5 100644 --- a/src/Square/Types/UpdateShiftResponse.cs +++ b/src/Square/Default/Types/UpdateShiftResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The response to a request to update a `Shift`. The response contains diff --git a/src/Square/Types/UpdateSubscriptionResponse.cs b/src/Square/Default/Types/UpdateSubscriptionResponse.cs similarity index 96% rename from src/Square/Types/UpdateSubscriptionResponse.cs rename to src/Square/Default/Types/UpdateSubscriptionResponse.cs index bfa45385..2bac925b 100644 --- a/src/Square/Types/UpdateSubscriptionResponse.cs +++ b/src/Square/Default/Types/UpdateSubscriptionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines output parameters in a response from the diff --git a/src/Square/Types/UpdateTeamMemberRequest.cs b/src/Square/Default/Types/UpdateTeamMemberRequest.cs similarity index 96% rename from src/Square/Types/UpdateTeamMemberRequest.cs rename to src/Square/Default/Types/UpdateTeamMemberRequest.cs index d87c9f59..d6c46e18 100644 --- a/src/Square/Types/UpdateTeamMemberRequest.cs +++ b/src/Square/Default/Types/UpdateTeamMemberRequest.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an update request for a `TeamMember` object. diff --git a/src/Square/Types/UpdateTeamMemberResponse.cs b/src/Square/Default/Types/UpdateTeamMemberResponse.cs similarity index 96% rename from src/Square/Types/UpdateTeamMemberResponse.cs rename to src/Square/Default/Types/UpdateTeamMemberResponse.cs index a9d209b8..2c051901 100644 --- a/src/Square/Types/UpdateTeamMemberResponse.cs +++ b/src/Square/Default/Types/UpdateTeamMemberResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a response from an update request containing the updated `TeamMember` object or error messages. diff --git a/src/Square/Types/UpdateTimecardResponse.cs b/src/Square/Default/Types/UpdateTimecardResponse.cs similarity index 96% rename from src/Square/Types/UpdateTimecardResponse.cs rename to src/Square/Default/Types/UpdateTimecardResponse.cs index 3aa5e865..16973019 100644 --- a/src/Square/Types/UpdateTimecardResponse.cs +++ b/src/Square/Default/Types/UpdateTimecardResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The response to a request to update a `Timecard`. The response contains diff --git a/src/Square/Types/UpdateTransferOrderData.cs b/src/Square/Default/Types/UpdateTransferOrderData.cs similarity index 98% rename from src/Square/Types/UpdateTransferOrderData.cs rename to src/Square/Default/Types/UpdateTransferOrderData.cs index a7b7e13c..9f783949 100644 --- a/src/Square/Types/UpdateTransferOrderData.cs +++ b/src/Square/Default/Types/UpdateTransferOrderData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Data model for updating a transfer order. All fields are optional. diff --git a/src/Square/Types/UpdateTransferOrderLineData.cs b/src/Square/Default/Types/UpdateTransferOrderLineData.cs similarity index 97% rename from src/Square/Types/UpdateTransferOrderLineData.cs rename to src/Square/Default/Types/UpdateTransferOrderLineData.cs index b580eb7b..cacef54d 100644 --- a/src/Square/Types/UpdateTransferOrderLineData.cs +++ b/src/Square/Default/Types/UpdateTransferOrderLineData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a line item update in a transfer order diff --git a/src/Square/Types/UpdateTransferOrderResponse.cs b/src/Square/Default/Types/UpdateTransferOrderResponse.cs similarity index 96% rename from src/Square/Types/UpdateTransferOrderResponse.cs rename to src/Square/Default/Types/UpdateTransferOrderResponse.cs index 6267c9e2..cd4685e6 100644 --- a/src/Square/Types/UpdateTransferOrderResponse.cs +++ b/src/Square/Default/Types/UpdateTransferOrderResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Response for updating a transfer order diff --git a/src/Square/Types/UpdateVendorRequest.cs b/src/Square/Default/Types/UpdateVendorRequest.cs similarity index 97% rename from src/Square/Types/UpdateVendorRequest.cs rename to src/Square/Default/Types/UpdateVendorRequest.cs index c271d6ec..65907793 100644 --- a/src/Square/Types/UpdateVendorRequest.cs +++ b/src/Square/Default/Types/UpdateVendorRequest.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an input to a call to [UpdateVendor](api-endpoint:Vendors-UpdateVendor). diff --git a/src/Square/Types/UpdateVendorResponse.cs b/src/Square/Default/Types/UpdateVendorResponse.cs similarity index 96% rename from src/Square/Types/UpdateVendorResponse.cs rename to src/Square/Default/Types/UpdateVendorResponse.cs index 3f24ccab..c5a0e1e3 100644 --- a/src/Square/Types/UpdateVendorResponse.cs +++ b/src/Square/Default/Types/UpdateVendorResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an output from a call to [UpdateVendor](api-endpoint:Vendors-UpdateVendor). diff --git a/src/Square/Types/UpdateWageSettingResponse.cs b/src/Square/Default/Types/UpdateWageSettingResponse.cs similarity index 96% rename from src/Square/Types/UpdateWageSettingResponse.cs rename to src/Square/Default/Types/UpdateWageSettingResponse.cs index c76b328e..ff99ae56 100644 --- a/src/Square/Types/UpdateWageSettingResponse.cs +++ b/src/Square/Default/Types/UpdateWageSettingResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a response from an update request containing the updated `WageSetting` object diff --git a/src/Square/Types/UpdateWebhookSubscriptionResponse.cs b/src/Square/Default/Types/UpdateWebhookSubscriptionResponse.cs similarity index 97% rename from src/Square/Types/UpdateWebhookSubscriptionResponse.cs rename to src/Square/Default/Types/UpdateWebhookSubscriptionResponse.cs index 3ce0f387..b1cca652 100644 --- a/src/Square/Types/UpdateWebhookSubscriptionResponse.cs +++ b/src/Square/Default/Types/UpdateWebhookSubscriptionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/UpdateWebhookSubscriptionSignatureKeyResponse.cs b/src/Square/Default/Types/UpdateWebhookSubscriptionSignatureKeyResponse.cs similarity index 97% rename from src/Square/Types/UpdateWebhookSubscriptionSignatureKeyResponse.cs rename to src/Square/Default/Types/UpdateWebhookSubscriptionSignatureKeyResponse.cs index 1954f95f..935a36b4 100644 --- a/src/Square/Types/UpdateWebhookSubscriptionSignatureKeyResponse.cs +++ b/src/Square/Default/Types/UpdateWebhookSubscriptionSignatureKeyResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/UpdateWorkweekConfigResponse.cs b/src/Square/Default/Types/UpdateWorkweekConfigResponse.cs similarity index 96% rename from src/Square/Types/UpdateWorkweekConfigResponse.cs rename to src/Square/Default/Types/UpdateWorkweekConfigResponse.cs index 06340895..f84f389f 100644 --- a/src/Square/Types/UpdateWorkweekConfigResponse.cs +++ b/src/Square/Default/Types/UpdateWorkweekConfigResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// The response to a request to update a `WorkweekConfig` object. The response contains diff --git a/src/Square/Types/UpsertBookingCustomAttributeResponse.cs b/src/Square/Default/Types/UpsertBookingCustomAttributeResponse.cs similarity index 96% rename from src/Square/Types/UpsertBookingCustomAttributeResponse.cs rename to src/Square/Default/Types/UpsertBookingCustomAttributeResponse.cs index d1517067..55a4d356 100644 --- a/src/Square/Types/UpsertBookingCustomAttributeResponse.cs +++ b/src/Square/Default/Types/UpsertBookingCustomAttributeResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an [UpsertBookingCustomAttribute](api-endpoint:BookingCustomAttributes-UpsertBookingCustomAttribute) response. diff --git a/src/Square/Types/UpsertCatalogObjectResponse.cs b/src/Square/Default/Types/UpsertCatalogObjectResponse.cs similarity index 96% rename from src/Square/Types/UpsertCatalogObjectResponse.cs rename to src/Square/Default/Types/UpsertCatalogObjectResponse.cs index 812b94bb..899fe1fb 100644 --- a/src/Square/Types/UpsertCatalogObjectResponse.cs +++ b/src/Square/Default/Types/UpsertCatalogObjectResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record UpsertCatalogObjectResponse : IJsonOnDeserialized diff --git a/src/Square/Types/UpsertCustomerCustomAttributeResponse.cs b/src/Square/Default/Types/UpsertCustomerCustomAttributeResponse.cs similarity index 96% rename from src/Square/Types/UpsertCustomerCustomAttributeResponse.cs rename to src/Square/Default/Types/UpsertCustomerCustomAttributeResponse.cs index 80120eb4..ffcad251 100644 --- a/src/Square/Types/UpsertCustomerCustomAttributeResponse.cs +++ b/src/Square/Default/Types/UpsertCustomerCustomAttributeResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an [UpsertCustomerCustomAttribute](api-endpoint:CustomerCustomAttributes-UpsertCustomerCustomAttribute) response. diff --git a/src/Square/Types/UpsertLocationCustomAttributeResponse.cs b/src/Square/Default/Types/UpsertLocationCustomAttributeResponse.cs similarity index 96% rename from src/Square/Types/UpsertLocationCustomAttributeResponse.cs rename to src/Square/Default/Types/UpsertLocationCustomAttributeResponse.cs index 7840a6df..f67ebd45 100644 --- a/src/Square/Types/UpsertLocationCustomAttributeResponse.cs +++ b/src/Square/Default/Types/UpsertLocationCustomAttributeResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an [UpsertLocationCustomAttribute](api-endpoint:LocationCustomAttributes-UpsertLocationCustomAttribute) response. diff --git a/src/Square/Types/UpsertMerchantCustomAttributeResponse.cs b/src/Square/Default/Types/UpsertMerchantCustomAttributeResponse.cs similarity index 96% rename from src/Square/Types/UpsertMerchantCustomAttributeResponse.cs rename to src/Square/Default/Types/UpsertMerchantCustomAttributeResponse.cs index 600fb9b8..2d0ffa94 100644 --- a/src/Square/Types/UpsertMerchantCustomAttributeResponse.cs +++ b/src/Square/Default/Types/UpsertMerchantCustomAttributeResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an [UpsertMerchantCustomAttribute](api-endpoint:MerchantCustomAttributes-UpsertMerchantCustomAttribute) response. diff --git a/src/Square/Types/UpsertOrderCustomAttributeResponse.cs b/src/Square/Default/Types/UpsertOrderCustomAttributeResponse.cs similarity index 96% rename from src/Square/Types/UpsertOrderCustomAttributeResponse.cs rename to src/Square/Default/Types/UpsertOrderCustomAttributeResponse.cs index 991da5ca..1a631d8d 100644 --- a/src/Square/Types/UpsertOrderCustomAttributeResponse.cs +++ b/src/Square/Default/Types/UpsertOrderCustomAttributeResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a response from upserting order custom attribute definitions. diff --git a/src/Square/Types/UpsertSnippetResponse.cs b/src/Square/Default/Types/UpsertSnippetResponse.cs similarity index 96% rename from src/Square/Types/UpsertSnippetResponse.cs rename to src/Square/Default/Types/UpsertSnippetResponse.cs index 977396d4..53fa2cc3 100644 --- a/src/Square/Types/UpsertSnippetResponse.cs +++ b/src/Square/Default/Types/UpsertSnippetResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents an `UpsertSnippet` response. The response can include either `snippet` or `errors`. diff --git a/src/Square/Types/V1Money.cs b/src/Square/Default/Types/V1Money.cs similarity index 96% rename from src/Square/Types/V1Money.cs rename to src/Square/Default/Types/V1Money.cs index c214ab7c..4ec42431 100644 --- a/src/Square/Types/V1Money.cs +++ b/src/Square/Default/Types/V1Money.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record V1Money : IJsonOnDeserialized diff --git a/src/Square/Types/V1Order.cs b/src/Square/Default/Types/V1Order.cs similarity index 99% rename from src/Square/Types/V1Order.cs rename to src/Square/Default/Types/V1Order.cs index e6a38cab..85789180 100644 --- a/src/Square/Types/V1Order.cs +++ b/src/Square/Default/Types/V1Order.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// V1Order diff --git a/src/Square/Types/V1OrderHistoryEntry.cs b/src/Square/Default/Types/V1OrderHistoryEntry.cs similarity index 96% rename from src/Square/Types/V1OrderHistoryEntry.cs rename to src/Square/Default/Types/V1OrderHistoryEntry.cs index fcb96f67..f34b7111 100644 --- a/src/Square/Types/V1OrderHistoryEntry.cs +++ b/src/Square/Default/Types/V1OrderHistoryEntry.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// V1OrderHistoryEntry diff --git a/src/Square/Types/V1OrderHistoryEntryAction.cs b/src/Square/Default/Types/V1OrderHistoryEntryAction.cs similarity index 98% rename from src/Square/Types/V1OrderHistoryEntryAction.cs rename to src/Square/Default/Types/V1OrderHistoryEntryAction.cs index 7fd9e362..c7cd8f94 100644 --- a/src/Square/Types/V1OrderHistoryEntryAction.cs +++ b/src/Square/Default/Types/V1OrderHistoryEntryAction.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/V1OrderState.cs b/src/Square/Default/Types/V1OrderState.cs similarity index 98% rename from src/Square/Types/V1OrderState.cs rename to src/Square/Default/Types/V1OrderState.cs index 1a4e053e..7bede457 100644 --- a/src/Square/Types/V1OrderState.cs +++ b/src/Square/Default/Types/V1OrderState.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/V1Tender.cs b/src/Square/Default/Types/V1Tender.cs similarity index 99% rename from src/Square/Types/V1Tender.cs rename to src/Square/Default/Types/V1Tender.cs index cd6c9171..0351c51a 100644 --- a/src/Square/Types/V1Tender.cs +++ b/src/Square/Default/Types/V1Tender.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// A tender represents a discrete monetary exchange. Square represents this diff --git a/src/Square/Types/V1TenderCardBrand.cs b/src/Square/Default/Types/V1TenderCardBrand.cs similarity index 99% rename from src/Square/Types/V1TenderCardBrand.cs rename to src/Square/Default/Types/V1TenderCardBrand.cs index 1de74258..a5529ded 100644 --- a/src/Square/Types/V1TenderCardBrand.cs +++ b/src/Square/Default/Types/V1TenderCardBrand.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/V1TenderEntryMethod.cs b/src/Square/Default/Types/V1TenderEntryMethod.cs similarity index 98% rename from src/Square/Types/V1TenderEntryMethod.cs rename to src/Square/Default/Types/V1TenderEntryMethod.cs index fa435b67..fa501d85 100644 --- a/src/Square/Types/V1TenderEntryMethod.cs +++ b/src/Square/Default/Types/V1TenderEntryMethod.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/V1TenderType.cs b/src/Square/Default/Types/V1TenderType.cs similarity index 98% rename from src/Square/Types/V1TenderType.cs rename to src/Square/Default/Types/V1TenderType.cs index bc0db05f..1f19ea50 100644 --- a/src/Square/Types/V1TenderType.cs +++ b/src/Square/Default/Types/V1TenderType.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/V1UpdateOrderRequestAction.cs b/src/Square/Default/Types/V1UpdateOrderRequestAction.cs similarity index 98% rename from src/Square/Types/V1UpdateOrderRequestAction.cs rename to src/Square/Default/Types/V1UpdateOrderRequestAction.cs index d1066b69..478bd39c 100644 --- a/src/Square/Types/V1UpdateOrderRequestAction.cs +++ b/src/Square/Default/Types/V1UpdateOrderRequestAction.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/Vendor.cs b/src/Square/Default/Types/Vendor.cs similarity index 98% rename from src/Square/Types/Vendor.cs rename to src/Square/Default/Types/Vendor.cs index 0d92b37d..89b27e0b 100644 --- a/src/Square/Types/Vendor.cs +++ b/src/Square/Default/Types/Vendor.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a supplier to a seller. diff --git a/src/Square/Types/VendorContact.cs b/src/Square/Default/Types/VendorContact.cs similarity index 98% rename from src/Square/Types/VendorContact.cs rename to src/Square/Default/Types/VendorContact.cs index 40199b37..f80ab30b 100644 --- a/src/Square/Types/VendorContact.cs +++ b/src/Square/Default/Types/VendorContact.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents a contact of a [Vendor](entity:Vendor). diff --git a/src/Square/Types/VendorCreatedEvent.cs b/src/Square/Default/Types/VendorCreatedEvent.cs similarity index 97% rename from src/Square/Types/VendorCreatedEvent.cs rename to src/Square/Default/Types/VendorCreatedEvent.cs index 60e46dbc..398e9b97 100644 --- a/src/Square/Types/VendorCreatedEvent.cs +++ b/src/Square/Default/Types/VendorCreatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [Vendor](entity:Vendor) is created. diff --git a/src/Square/Types/VendorCreatedEventData.cs b/src/Square/Default/Types/VendorCreatedEventData.cs similarity index 96% rename from src/Square/Types/VendorCreatedEventData.cs rename to src/Square/Default/Types/VendorCreatedEventData.cs index 68932acc..8effd1f0 100644 --- a/src/Square/Types/VendorCreatedEventData.cs +++ b/src/Square/Default/Types/VendorCreatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the `vendor.created` event data structure. diff --git a/src/Square/Types/VendorCreatedEventObject.cs b/src/Square/Default/Types/VendorCreatedEventObject.cs similarity index 96% rename from src/Square/Types/VendorCreatedEventObject.cs rename to src/Square/Default/Types/VendorCreatedEventObject.cs index 3b0b1290..e0da629b 100644 --- a/src/Square/Types/VendorCreatedEventObject.cs +++ b/src/Square/Default/Types/VendorCreatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record VendorCreatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/VendorStatus.cs b/src/Square/Default/Types/VendorStatus.cs similarity index 98% rename from src/Square/Types/VendorStatus.cs rename to src/Square/Default/Types/VendorStatus.cs index 6d473eb2..119a693d 100644 --- a/src/Square/Types/VendorStatus.cs +++ b/src/Square/Default/Types/VendorStatus.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/VendorUpdatedEvent.cs b/src/Square/Default/Types/VendorUpdatedEvent.cs similarity index 97% rename from src/Square/Types/VendorUpdatedEvent.cs rename to src/Square/Default/Types/VendorUpdatedEvent.cs index 474958fd..8373fdc5 100644 --- a/src/Square/Types/VendorUpdatedEvent.cs +++ b/src/Square/Default/Types/VendorUpdatedEvent.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Published when a [Vendor](entity:Vendor) is updated. diff --git a/src/Square/Types/VendorUpdatedEventData.cs b/src/Square/Default/Types/VendorUpdatedEventData.cs similarity index 96% rename from src/Square/Types/VendorUpdatedEventData.cs rename to src/Square/Default/Types/VendorUpdatedEventData.cs index ea465967..321cb87e 100644 --- a/src/Square/Types/VendorUpdatedEventData.cs +++ b/src/Square/Default/Types/VendorUpdatedEventData.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the `vendor.updated` event data structure. diff --git a/src/Square/Types/VendorUpdatedEventObject.cs b/src/Square/Default/Types/VendorUpdatedEventObject.cs similarity index 96% rename from src/Square/Types/VendorUpdatedEventObject.cs rename to src/Square/Default/Types/VendorUpdatedEventObject.cs index 6f77bdb0..65ada495 100644 --- a/src/Square/Types/VendorUpdatedEventObject.cs +++ b/src/Square/Default/Types/VendorUpdatedEventObject.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; [Serializable] public record VendorUpdatedEventObject : IJsonOnDeserialized diff --git a/src/Square/Types/VisibilityFilter.cs b/src/Square/Default/Types/VisibilityFilter.cs similarity index 98% rename from src/Square/Types/VisibilityFilter.cs rename to src/Square/Default/Types/VisibilityFilter.cs index 6557b1b0..5c851f1b 100644 --- a/src/Square/Types/VisibilityFilter.cs +++ b/src/Square/Default/Types/VisibilityFilter.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/VoidTransactionResponse.cs b/src/Square/Default/Types/VoidTransactionResponse.cs similarity index 96% rename from src/Square/Types/VoidTransactionResponse.cs rename to src/Square/Default/Types/VoidTransactionResponse.cs index 3901dcfd..8a78d7e4 100644 --- a/src/Square/Types/VoidTransactionResponse.cs +++ b/src/Square/Default/Types/VoidTransactionResponse.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Defines the fields that are included in the response body of diff --git a/src/Square/Types/WageSetting.cs b/src/Square/Default/Types/WageSetting.cs similarity index 98% rename from src/Square/Types/WageSetting.cs rename to src/Square/Default/Types/WageSetting.cs index 5a593541..879f8ce9 100644 --- a/src/Square/Types/WageSetting.cs +++ b/src/Square/Default/Types/WageSetting.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents information about the overtime exemption status, job assignments, and compensation diff --git a/src/Square/Types/WebhookSubscription.cs b/src/Square/Default/Types/WebhookSubscription.cs similarity index 98% rename from src/Square/Types/WebhookSubscription.cs rename to src/Square/Default/Types/WebhookSubscription.cs index 0427cb67..30e12f61 100644 --- a/src/Square/Types/WebhookSubscription.cs +++ b/src/Square/Default/Types/WebhookSubscription.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Represents the details of a webhook subscription, including notification URL, diff --git a/src/Square/Types/Weekday.cs b/src/Square/Default/Types/Weekday.cs similarity index 98% rename from src/Square/Types/Weekday.cs rename to src/Square/Default/Types/Weekday.cs index 24b5014a..339b3f28 100644 --- a/src/Square/Types/Weekday.cs +++ b/src/Square/Default/Types/Weekday.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square; +namespace Square.Default; [JsonConverter(typeof(StringEnumSerializer))] [Serializable] diff --git a/src/Square/Types/WorkweekConfig.cs b/src/Square/Default/Types/WorkweekConfig.cs similarity index 98% rename from src/Square/Types/WorkweekConfig.cs rename to src/Square/Default/Types/WorkweekConfig.cs index 846e3fbc..90f3dea2 100644 --- a/src/Square/Types/WorkweekConfig.cs +++ b/src/Square/Default/Types/WorkweekConfig.cs @@ -1,8 +1,9 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Square; using Square.Core; -namespace Square; +namespace Square.Default; /// /// Sets the day of the week and hour of the day that a business starts a diff --git a/src/Square/V1Transactions/IV1TransactionsClient.cs b/src/Square/Default/V1Transactions/IV1TransactionsClient.cs similarity index 96% rename from src/Square/V1Transactions/IV1TransactionsClient.cs rename to src/Square/Default/V1Transactions/IV1TransactionsClient.cs index 2a469793..a55bca2f 100644 --- a/src/Square/V1Transactions/IV1TransactionsClient.cs +++ b/src/Square/Default/V1Transactions/IV1TransactionsClient.cs @@ -1,6 +1,6 @@ using Square; -namespace Square.V1Transactions; +namespace Square.Default; public partial interface IV1TransactionsClient { diff --git a/src/Square/V1Transactions/Requests/V1ListOrdersRequest.cs b/src/Square/Default/V1Transactions/Requests/V1ListOrdersRequest.cs similarity index 95% rename from src/Square/V1Transactions/Requests/V1ListOrdersRequest.cs rename to src/Square/Default/V1Transactions/Requests/V1ListOrdersRequest.cs index eee32de3..3957f536 100644 --- a/src/Square/V1Transactions/Requests/V1ListOrdersRequest.cs +++ b/src/Square/Default/V1Transactions/Requests/V1ListOrdersRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.V1Transactions; +namespace Square.Default; [Serializable] public record V1ListOrdersRequest diff --git a/src/Square/V1Transactions/Requests/V1RetrieveOrderRequest.cs b/src/Square/Default/V1Transactions/Requests/V1RetrieveOrderRequest.cs similarity index 94% rename from src/Square/V1Transactions/Requests/V1RetrieveOrderRequest.cs rename to src/Square/Default/V1Transactions/Requests/V1RetrieveOrderRequest.cs index fbc52e63..43001b75 100644 --- a/src/Square/V1Transactions/Requests/V1RetrieveOrderRequest.cs +++ b/src/Square/Default/V1Transactions/Requests/V1RetrieveOrderRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.V1Transactions; +namespace Square.Default; [Serializable] public record V1RetrieveOrderRequest diff --git a/src/Square/V1Transactions/Requests/V1UpdateOrderRequest.cs b/src/Square/Default/V1Transactions/Requests/V1UpdateOrderRequest.cs similarity index 97% rename from src/Square/V1Transactions/Requests/V1UpdateOrderRequest.cs rename to src/Square/Default/V1Transactions/Requests/V1UpdateOrderRequest.cs index 3682553f..2409e837 100644 --- a/src/Square/V1Transactions/Requests/V1UpdateOrderRequest.cs +++ b/src/Square/Default/V1Transactions/Requests/V1UpdateOrderRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.V1Transactions; +namespace Square.Default; [Serializable] public record V1UpdateOrderRequest diff --git a/src/Square/V1Transactions/V1TransactionsClient.cs b/src/Square/Default/V1Transactions/V1TransactionsClient.cs similarity index 96% rename from src/Square/V1Transactions/V1TransactionsClient.cs rename to src/Square/Default/V1Transactions/V1TransactionsClient.cs index f0b12b43..946b54e0 100644 --- a/src/Square/V1Transactions/V1TransactionsClient.cs +++ b/src/Square/Default/V1Transactions/V1TransactionsClient.cs @@ -2,7 +2,7 @@ using Square; using Square.Core; -namespace Square.V1Transactions; +namespace Square.Default; public partial class V1TransactionsClient : IV1TransactionsClient { @@ -17,7 +17,7 @@ internal V1TransactionsClient(RawClient client) /// Provides summary information for a merchant's online store orders. /// /// - /// await client.V1Transactions.V1ListOrdersAsync( + /// await client.Default.V1Transactions.V1ListOrdersAsync( /// new V1ListOrdersRequest /// { /// LocationId = "location_id", @@ -89,7 +89,7 @@ public async Task> V1ListOrdersAsync( /// Provides comprehensive information for a single online store order, including the order's history. /// /// - /// await client.V1Transactions.V1RetrieveOrderAsync( + /// await client.Default.V1Transactions.V1RetrieveOrderAsync( /// new V1RetrieveOrderRequest { LocationId = "location_id", OrderId = "order_id" } /// ); /// @@ -142,7 +142,7 @@ public async Task V1RetrieveOrderAsync( /// Updates the details of an online store order. Every update you perform on an order corresponds to one of three actions: /// /// - /// await client.V1Transactions.V1UpdateOrderAsync( + /// await client.Default.V1Transactions.V1UpdateOrderAsync( /// new V1UpdateOrderRequest /// { /// LocationId = "location_id", diff --git a/src/Square/Vendors/IVendorsClient.cs b/src/Square/Default/Vendors/IVendorsClient.cs similarity index 98% rename from src/Square/Vendors/IVendorsClient.cs rename to src/Square/Default/Vendors/IVendorsClient.cs index 4af228d2..eb840097 100644 --- a/src/Square/Vendors/IVendorsClient.cs +++ b/src/Square/Default/Vendors/IVendorsClient.cs @@ -1,6 +1,6 @@ using Square; -namespace Square.Vendors; +namespace Square.Default; public partial interface IVendorsClient { diff --git a/src/Square/Vendors/Requests/BatchCreateVendorsRequest.cs b/src/Square/Default/Vendors/Requests/BatchCreateVendorsRequest.cs similarity index 93% rename from src/Square/Vendors/Requests/BatchCreateVendorsRequest.cs rename to src/Square/Default/Vendors/Requests/BatchCreateVendorsRequest.cs index 47c39ea7..303be9b8 100644 --- a/src/Square/Vendors/Requests/BatchCreateVendorsRequest.cs +++ b/src/Square/Default/Vendors/Requests/BatchCreateVendorsRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Vendors; +namespace Square.Default; [Serializable] public record BatchCreateVendorsRequest diff --git a/src/Square/Vendors/Requests/BatchGetVendorsRequest.cs b/src/Square/Default/Vendors/Requests/BatchGetVendorsRequest.cs similarity index 94% rename from src/Square/Vendors/Requests/BatchGetVendorsRequest.cs rename to src/Square/Default/Vendors/Requests/BatchGetVendorsRequest.cs index 30f1eb26..08a17b78 100644 --- a/src/Square/Vendors/Requests/BatchGetVendorsRequest.cs +++ b/src/Square/Default/Vendors/Requests/BatchGetVendorsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Vendors; +namespace Square.Default; [Serializable] public record BatchGetVendorsRequest diff --git a/src/Square/Vendors/Requests/BatchUpdateVendorsRequest.cs b/src/Square/Default/Vendors/Requests/BatchUpdateVendorsRequest.cs similarity index 94% rename from src/Square/Vendors/Requests/BatchUpdateVendorsRequest.cs rename to src/Square/Default/Vendors/Requests/BatchUpdateVendorsRequest.cs index 3a7195d6..d84dad77 100644 --- a/src/Square/Vendors/Requests/BatchUpdateVendorsRequest.cs +++ b/src/Square/Default/Vendors/Requests/BatchUpdateVendorsRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Vendors; +namespace Square.Default; [Serializable] public record BatchUpdateVendorsRequest diff --git a/src/Square/Vendors/Requests/CreateVendorRequest.cs b/src/Square/Default/Vendors/Requests/CreateVendorRequest.cs similarity index 95% rename from src/Square/Vendors/Requests/CreateVendorRequest.cs rename to src/Square/Default/Vendors/Requests/CreateVendorRequest.cs index 8fbc6096..77b6b4e8 100644 --- a/src/Square/Vendors/Requests/CreateVendorRequest.cs +++ b/src/Square/Default/Vendors/Requests/CreateVendorRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Vendors; +namespace Square.Default; [Serializable] public record CreateVendorRequest diff --git a/src/Square/Vendors/Requests/GetVendorsRequest.cs b/src/Square/Default/Vendors/Requests/GetVendorsRequest.cs similarity index 93% rename from src/Square/Vendors/Requests/GetVendorsRequest.cs rename to src/Square/Default/Vendors/Requests/GetVendorsRequest.cs index 4173cbe8..755776b1 100644 --- a/src/Square/Vendors/Requests/GetVendorsRequest.cs +++ b/src/Square/Default/Vendors/Requests/GetVendorsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Vendors; +namespace Square.Default; [Serializable] public record GetVendorsRequest diff --git a/src/Square/Vendors/Requests/SearchVendorsRequest.cs b/src/Square/Default/Vendors/Requests/SearchVendorsRequest.cs similarity index 96% rename from src/Square/Vendors/Requests/SearchVendorsRequest.cs rename to src/Square/Default/Vendors/Requests/SearchVendorsRequest.cs index bb0a8ba3..a70531db 100644 --- a/src/Square/Vendors/Requests/SearchVendorsRequest.cs +++ b/src/Square/Default/Vendors/Requests/SearchVendorsRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Vendors; +namespace Square.Default; [Serializable] public record SearchVendorsRequest diff --git a/src/Square/Vendors/Requests/UpdateVendorsRequest.cs b/src/Square/Default/Vendors/Requests/UpdateVendorsRequest.cs similarity index 92% rename from src/Square/Vendors/Requests/UpdateVendorsRequest.cs rename to src/Square/Default/Vendors/Requests/UpdateVendorsRequest.cs index 1d7ba6f2..c92cfff2 100644 --- a/src/Square/Vendors/Requests/UpdateVendorsRequest.cs +++ b/src/Square/Default/Vendors/Requests/UpdateVendorsRequest.cs @@ -1,8 +1,7 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; -namespace Square.Vendors; +namespace Square.Default; [Serializable] public record UpdateVendorsRequest diff --git a/src/Square/Vendors/VendorsClient.cs b/src/Square/Default/Vendors/VendorsClient.cs similarity index 97% rename from src/Square/Vendors/VendorsClient.cs rename to src/Square/Default/Vendors/VendorsClient.cs index f9385996..54b8a239 100644 --- a/src/Square/Vendors/VendorsClient.cs +++ b/src/Square/Default/Vendors/VendorsClient.cs @@ -2,7 +2,7 @@ using Square; using Square.Core; -namespace Square.Vendors; +namespace Square.Default; public partial class VendorsClient : IVendorsClient { @@ -17,7 +17,7 @@ internal VendorsClient(RawClient client) /// Creates one or more [Vendor](entity:Vendor) objects to represent suppliers to a seller. /// /// - /// await client.Vendors.BatchCreateAsync( + /// await client.Default.Vendors.BatchCreateAsync( /// new BatchCreateVendorsRequest /// { /// Vendors = new Dictionary<string, Vendor>() @@ -101,7 +101,7 @@ public async Task BatchCreateAsync( /// Retrieves one or more vendors of specified [Vendor](entity:Vendor) IDs. /// /// - /// await client.Vendors.BatchGetAsync( + /// await client.Default.Vendors.BatchGetAsync( /// new BatchGetVendorsRequest /// { /// VendorIds = new List<string>() { "INV_V_JDKYHBWT1D4F8MFH63DBMEN8Y4" }, @@ -155,7 +155,7 @@ public async Task BatchGetAsync( /// Updates one or more of existing [Vendor](entity:Vendor) objects as suppliers to a seller. /// /// - /// await client.Vendors.BatchUpdateAsync( + /// await client.Default.Vendors.BatchUpdateAsync( /// new BatchUpdateVendorsRequest /// { /// Vendors = new Dictionary<string, UpdateVendorRequest>() @@ -219,7 +219,7 @@ public async Task BatchUpdateAsync( /// Creates a single [Vendor](entity:Vendor) object to represent a supplier to a seller. /// /// - /// await client.Vendors.CreateAsync( + /// await client.Default.Vendors.CreateAsync( /// new CreateVendorRequest /// { /// IdempotencyKey = "8fc6a5b0-9fe8-4b46-b46b-2ef95793abbe", @@ -298,7 +298,7 @@ public async Task CreateAsync( /// Searches for vendors using a filter against supported [Vendor](entity:Vendor) properties and a supported sorter. /// /// - /// await client.Vendors.SearchAsync(new SearchVendorsRequest()); + /// await client.Default.Vendors.SearchAsync(new SearchVendorsRequest()); /// public async Task SearchAsync( SearchVendorsRequest request, @@ -347,7 +347,7 @@ public async Task SearchAsync( /// Retrieves the vendor of a specified [Vendor](entity:Vendor) ID. /// /// - /// await client.Vendors.GetAsync(new GetVendorsRequest { VendorId = "vendor_id" }); + /// await client.Default.Vendors.GetAsync(new GetVendorsRequest { VendorId = "vendor_id" }); /// public async Task GetAsync( GetVendorsRequest request, @@ -397,7 +397,7 @@ public async Task GetAsync( /// Updates an existing [Vendor](entity:Vendor) object as a supplier to a seller. /// /// - /// await client.Vendors.UpdateAsync( + /// await client.Default.Vendors.UpdateAsync( /// new UpdateVendorsRequest /// { /// VendorId = "vendor_id", diff --git a/src/Square/Webhooks/EventTypes/EventTypesClient.cs b/src/Square/Default/Webhooks/EventTypes/EventTypesClient.cs similarity index 90% rename from src/Square/Webhooks/EventTypes/EventTypesClient.cs rename to src/Square/Default/Webhooks/EventTypes/EventTypesClient.cs index 8153a2e7..4291d084 100644 --- a/src/Square/Webhooks/EventTypes/EventTypesClient.cs +++ b/src/Square/Default/Webhooks/EventTypes/EventTypesClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Webhooks.EventTypes; +namespace Square.Default.Webhooks; public partial class EventTypesClient : IEventTypesClient { @@ -17,8 +18,8 @@ internal EventTypesClient(RawClient client) /// Lists all webhook event types that can be subscribed to. /// /// - /// await client.Webhooks.EventTypes.ListAsync( - /// new Square.Webhooks.EventTypes.ListEventTypesRequest { ApiVersion = "api_version" } + /// await client.Default.Webhooks.EventTypes.ListAsync( + /// new Square.Default.Webhooks.ListEventTypesRequest { ApiVersion = "api_version" } /// ); /// public async Task ListAsync( diff --git a/src/Square/Webhooks/EventTypes/IEventTypesClient.cs b/src/Square/Default/Webhooks/EventTypes/IEventTypesClient.cs similarity index 86% rename from src/Square/Webhooks/EventTypes/IEventTypesClient.cs rename to src/Square/Default/Webhooks/EventTypes/IEventTypesClient.cs index af05b50b..d129cc63 100644 --- a/src/Square/Webhooks/EventTypes/IEventTypesClient.cs +++ b/src/Square/Default/Webhooks/EventTypes/IEventTypesClient.cs @@ -1,6 +1,7 @@ using Square; +using Square.Default; -namespace Square.Webhooks.EventTypes; +namespace Square.Default.Webhooks; public partial interface IEventTypesClient { diff --git a/src/Square/Webhooks/EventTypes/Requests/ListEventTypesRequest.cs b/src/Square/Default/Webhooks/EventTypes/Requests/ListEventTypesRequest.cs similarity index 92% rename from src/Square/Webhooks/EventTypes/Requests/ListEventTypesRequest.cs rename to src/Square/Default/Webhooks/EventTypes/Requests/ListEventTypesRequest.cs index 073c4c66..28266eb0 100644 --- a/src/Square/Webhooks/EventTypes/Requests/ListEventTypesRequest.cs +++ b/src/Square/Default/Webhooks/EventTypes/Requests/ListEventTypesRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Webhooks.EventTypes; +namespace Square.Default.Webhooks; [Serializable] public record ListEventTypesRequest diff --git a/src/Square/Default/Webhooks/IWebhooksClient.cs b/src/Square/Default/Webhooks/IWebhooksClient.cs new file mode 100644 index 00000000..a333006b --- /dev/null +++ b/src/Square/Default/Webhooks/IWebhooksClient.cs @@ -0,0 +1,7 @@ +namespace Square.Default.Webhooks; + +public partial interface IWebhooksClient +{ + public EventTypesClient EventTypes { get; } + public SubscriptionsClient Subscriptions { get; } +} diff --git a/src/Square/Webhooks/Subscriptions/ISubscriptionsClient.cs b/src/Square/Default/Webhooks/Subscriptions/ISubscriptionsClient.cs similarity index 97% rename from src/Square/Webhooks/Subscriptions/ISubscriptionsClient.cs rename to src/Square/Default/Webhooks/Subscriptions/ISubscriptionsClient.cs index 9081fb42..425fe5ff 100644 --- a/src/Square/Webhooks/Subscriptions/ISubscriptionsClient.cs +++ b/src/Square/Default/Webhooks/Subscriptions/ISubscriptionsClient.cs @@ -1,7 +1,8 @@ using Square; using Square.Core; +using Square.Default; -namespace Square.Webhooks.Subscriptions; +namespace Square.Default.Webhooks; public partial interface ISubscriptionsClient { diff --git a/src/Square/Webhooks/Subscriptions/Requests/CreateWebhookSubscriptionRequest.cs b/src/Square/Default/Webhooks/Subscriptions/Requests/CreateWebhookSubscriptionRequest.cs similarity index 92% rename from src/Square/Webhooks/Subscriptions/Requests/CreateWebhookSubscriptionRequest.cs rename to src/Square/Default/Webhooks/Subscriptions/Requests/CreateWebhookSubscriptionRequest.cs index 80a26ab7..9f39a258 100644 --- a/src/Square/Webhooks/Subscriptions/Requests/CreateWebhookSubscriptionRequest.cs +++ b/src/Square/Default/Webhooks/Subscriptions/Requests/CreateWebhookSubscriptionRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Webhooks.Subscriptions; +namespace Square.Default.Webhooks; [Serializable] public record CreateWebhookSubscriptionRequest diff --git a/src/Square/Webhooks/Subscriptions/Requests/DeleteSubscriptionsRequest.cs b/src/Square/Default/Webhooks/Subscriptions/Requests/DeleteSubscriptionsRequest.cs similarity index 91% rename from src/Square/Webhooks/Subscriptions/Requests/DeleteSubscriptionsRequest.cs rename to src/Square/Default/Webhooks/Subscriptions/Requests/DeleteSubscriptionsRequest.cs index 868a7056..935f2a2a 100644 --- a/src/Square/Webhooks/Subscriptions/Requests/DeleteSubscriptionsRequest.cs +++ b/src/Square/Default/Webhooks/Subscriptions/Requests/DeleteSubscriptionsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Webhooks.Subscriptions; +namespace Square.Default.Webhooks; [Serializable] public record DeleteSubscriptionsRequest diff --git a/src/Square/Webhooks/Subscriptions/Requests/GetSubscriptionsRequest.cs b/src/Square/Default/Webhooks/Subscriptions/Requests/GetSubscriptionsRequest.cs similarity index 91% rename from src/Square/Webhooks/Subscriptions/Requests/GetSubscriptionsRequest.cs rename to src/Square/Default/Webhooks/Subscriptions/Requests/GetSubscriptionsRequest.cs index 26b9dc42..bc97df7d 100644 --- a/src/Square/Webhooks/Subscriptions/Requests/GetSubscriptionsRequest.cs +++ b/src/Square/Default/Webhooks/Subscriptions/Requests/GetSubscriptionsRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Webhooks.Subscriptions; +namespace Square.Default.Webhooks; [Serializable] public record GetSubscriptionsRequest diff --git a/src/Square/Webhooks/Subscriptions/Requests/ListSubscriptionsRequest.cs b/src/Square/Default/Webhooks/Subscriptions/Requests/ListSubscriptionsRequest.cs similarity index 96% rename from src/Square/Webhooks/Subscriptions/Requests/ListSubscriptionsRequest.cs rename to src/Square/Default/Webhooks/Subscriptions/Requests/ListSubscriptionsRequest.cs index 4cd498ba..6ab3ceab 100644 --- a/src/Square/Webhooks/Subscriptions/Requests/ListSubscriptionsRequest.cs +++ b/src/Square/Default/Webhooks/Subscriptions/Requests/ListSubscriptionsRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Webhooks.Subscriptions; +namespace Square.Default.Webhooks; [Serializable] public record ListSubscriptionsRequest diff --git a/src/Square/Webhooks/Subscriptions/Requests/TestWebhookSubscriptionRequest.cs b/src/Square/Default/Webhooks/Subscriptions/Requests/TestWebhookSubscriptionRequest.cs similarity index 94% rename from src/Square/Webhooks/Subscriptions/Requests/TestWebhookSubscriptionRequest.cs rename to src/Square/Default/Webhooks/Subscriptions/Requests/TestWebhookSubscriptionRequest.cs index 3344da29..64157354 100644 --- a/src/Square/Webhooks/Subscriptions/Requests/TestWebhookSubscriptionRequest.cs +++ b/src/Square/Default/Webhooks/Subscriptions/Requests/TestWebhookSubscriptionRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Webhooks.Subscriptions; +namespace Square.Default.Webhooks; [Serializable] public record TestWebhookSubscriptionRequest diff --git a/src/Square/Webhooks/Subscriptions/Requests/UpdateWebhookSubscriptionRequest.cs b/src/Square/Default/Webhooks/Subscriptions/Requests/UpdateWebhookSubscriptionRequest.cs similarity index 91% rename from src/Square/Webhooks/Subscriptions/Requests/UpdateWebhookSubscriptionRequest.cs rename to src/Square/Default/Webhooks/Subscriptions/Requests/UpdateWebhookSubscriptionRequest.cs index da508395..f0756c47 100644 --- a/src/Square/Webhooks/Subscriptions/Requests/UpdateWebhookSubscriptionRequest.cs +++ b/src/Square/Default/Webhooks/Subscriptions/Requests/UpdateWebhookSubscriptionRequest.cs @@ -1,8 +1,8 @@ using System.Text.Json.Serialization; -using Square; using Square.Core; +using Square.Default; -namespace Square.Webhooks.Subscriptions; +namespace Square.Default.Webhooks; [Serializable] public record UpdateWebhookSubscriptionRequest diff --git a/src/Square/Webhooks/Subscriptions/Requests/UpdateWebhookSubscriptionSignatureKeyRequest.cs b/src/Square/Default/Webhooks/Subscriptions/Requests/UpdateWebhookSubscriptionSignatureKeyRequest.cs similarity index 94% rename from src/Square/Webhooks/Subscriptions/Requests/UpdateWebhookSubscriptionSignatureKeyRequest.cs rename to src/Square/Default/Webhooks/Subscriptions/Requests/UpdateWebhookSubscriptionSignatureKeyRequest.cs index dfb45d99..42269afa 100644 --- a/src/Square/Webhooks/Subscriptions/Requests/UpdateWebhookSubscriptionSignatureKeyRequest.cs +++ b/src/Square/Default/Webhooks/Subscriptions/Requests/UpdateWebhookSubscriptionSignatureKeyRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Square.Core; -namespace Square.Webhooks.Subscriptions; +namespace Square.Default.Webhooks; [Serializable] public record UpdateWebhookSubscriptionSignatureKeyRequest diff --git a/src/Square/Webhooks/Subscriptions/SubscriptionsClient.cs b/src/Square/Default/Webhooks/Subscriptions/SubscriptionsClient.cs similarity index 96% rename from src/Square/Webhooks/Subscriptions/SubscriptionsClient.cs rename to src/Square/Default/Webhooks/Subscriptions/SubscriptionsClient.cs index 2668dd3e..12d7ade8 100644 --- a/src/Square/Webhooks/Subscriptions/SubscriptionsClient.cs +++ b/src/Square/Default/Webhooks/Subscriptions/SubscriptionsClient.cs @@ -1,8 +1,9 @@ using System.Text.Json; using Square; using Square.Core; +using Square.Default; -namespace Square.Webhooks.Subscriptions; +namespace Square.Default.Webhooks; public partial class SubscriptionsClient : ISubscriptionsClient { @@ -79,7 +80,7 @@ private async Task ListInternalAsync( /// Lists all webhook subscriptions owned by your application. /// /// - /// await client.Webhooks.Subscriptions.ListAsync( + /// await client.Default.Webhooks.Subscriptions.ListAsync( /// new ListSubscriptionsRequest /// { /// Cursor = "cursor", @@ -126,7 +127,7 @@ public async Task> ListAsync( /// Creates a webhook subscription. /// /// - /// await client.Webhooks.Subscriptions.CreateAsync( + /// await client.Default.Webhooks.Subscriptions.CreateAsync( /// new CreateWebhookSubscriptionRequest /// { /// IdempotencyKey = "63f84c6c-2200-4c99-846c-2670a1311fbf", @@ -187,8 +188,8 @@ public async Task CreateAsync( /// Retrieves a webhook subscription identified by its ID. /// /// - /// await client.Webhooks.Subscriptions.GetAsync( - /// new Square.Webhooks.Subscriptions.GetSubscriptionsRequest { SubscriptionId = "subscription_id" } + /// await client.Default.Webhooks.Subscriptions.GetAsync( + /// new Square.Default.Webhooks.GetSubscriptionsRequest { SubscriptionId = "subscription_id" } /// ); /// public async Task GetAsync( @@ -239,7 +240,7 @@ public async Task GetAsync( /// Updates a webhook subscription. /// /// - /// await client.Webhooks.Subscriptions.UpdateAsync( + /// await client.Default.Webhooks.Subscriptions.UpdateAsync( /// new UpdateWebhookSubscriptionRequest /// { /// SubscriptionId = "subscription_id", @@ -301,7 +302,7 @@ public async Task UpdateAsync( /// Deletes a webhook subscription. /// /// - /// await client.Webhooks.Subscriptions.DeleteAsync( + /// await client.Default.Webhooks.Subscriptions.DeleteAsync( /// new DeleteSubscriptionsRequest { SubscriptionId = "subscription_id" } /// ); /// @@ -353,7 +354,7 @@ public async Task DeleteAsync( /// Updates a webhook subscription by replacing the existing signature key with a new one. /// /// - /// await client.Webhooks.Subscriptions.UpdateSignatureKeyAsync( + /// await client.Default.Webhooks.Subscriptions.UpdateSignatureKeyAsync( /// new UpdateWebhookSubscriptionSignatureKeyRequest /// { /// SubscriptionId = "subscription_id", @@ -413,7 +414,7 @@ public async Task UpdateSignature /// Tests a webhook subscription by sending a test event to the notification URL. /// /// - /// await client.Webhooks.Subscriptions.TestAsync( + /// await client.Default.Webhooks.Subscriptions.TestAsync( /// new TestWebhookSubscriptionRequest /// { /// SubscriptionId = "subscription_id", diff --git a/src/Square/Webhooks/WebhooksClient.cs b/src/Square/Default/Webhooks/WebhooksClient.cs similarity index 56% rename from src/Square/Webhooks/WebhooksClient.cs rename to src/Square/Default/Webhooks/WebhooksClient.cs index ebe3d497..506b78d1 100644 --- a/src/Square/Webhooks/WebhooksClient.cs +++ b/src/Square/Default/Webhooks/WebhooksClient.cs @@ -1,7 +1,6 @@ using Square.Core; -using Square.Webhooks.EventTypes; -namespace Square.Webhooks; +namespace Square.Default.Webhooks; public partial class WebhooksClient : IWebhooksClient { @@ -11,10 +10,10 @@ internal WebhooksClient(RawClient client) { _client = client; EventTypes = new EventTypesClient(_client); - Subscriptions = new Square.Webhooks.Subscriptions.SubscriptionsClient(_client); + Subscriptions = new SubscriptionsClient(_client); } public EventTypesClient EventTypes { get; } - public Square.Webhooks.Subscriptions.SubscriptionsClient Subscriptions { get; } + public SubscriptionsClient Subscriptions { get; } } diff --git a/src/Square/ISquareClient.cs b/src/Square/ISquareClient.cs index bf3a9c29..e8a6efce 100644 --- a/src/Square/ISquareClient.cs +++ b/src/Square/ISquareClient.cs @@ -1,75 +1,8 @@ -using Square.ApplePay; -using Square.BankAccounts; -using Square.Bookings; -using Square.CashDrawers; -using Square.Catalog; -using Square.Channels; -using Square.Checkout; -using Square.Customers; -using Square.Devices; -using Square.Disputes; -using Square.Employees; -using Square.Events; -using Square.GiftCards; -using Square.Inventory; -using Square.Invoices; -using Square.Labor; -using Square.Locations; -using Square.Loyalty; -using Square.Merchants; -using Square.Mobile; -using Square.OAuth; -using Square.Orders; -using Square.Payments; -using Square.Payouts; -using Square.Sites; -using Square.Snippets; -using Square.Team; -using Square.TeamMembers; -using Square.Terminal; -using Square.TransferOrders; -using Square.V1Transactions; -using Square.Vendors; -using Square.Webhooks; +using Square.Default; namespace Square; public partial interface ISquareClient { - public OAuthClient OAuth { get; } - public V1TransactionsClient V1Transactions { get; } - public ApplePayClient ApplePay { get; } - public BankAccountsClient BankAccounts { get; } - public BookingsClient Bookings { get; } - public Square.Cards.CardsClient Cards { get; } - public CatalogClient Catalog { get; } - public ChannelsClient Channels { get; } - public CustomersClient Customers { get; } - public DevicesClient Devices { get; } - public DisputesClient Disputes { get; } - public EmployeesClient Employees { get; } - public EventsClient Events { get; } - public GiftCardsClient GiftCards { get; } - public InventoryClient Inventory { get; } - public InvoicesClient Invoices { get; } - public LaborClient Labor { get; } - public LocationsClient Locations { get; } - public LoyaltyClient Loyalty { get; } - public MerchantsClient Merchants { get; } - public CheckoutClient Checkout { get; } - public OrdersClient Orders { get; } - public PaymentsClient Payments { get; } - public PayoutsClient Payouts { get; } - public Square.Refunds.RefundsClient Refunds { get; } - public SitesClient Sites { get; } - public SnippetsClient Snippets { get; } - public Square.Subscriptions.SubscriptionsClient Subscriptions { get; } - public TeamMembersClient TeamMembers { get; } - public TeamClient Team { get; } - public TerminalClient Terminal { get; } - public TransferOrdersClient TransferOrders { get; } - public VendorsClient Vendors { get; } - public MobileClient Mobile { get; } - public CashDrawersClient CashDrawers { get; } - public WebhooksClient Webhooks { get; } + public DefaultClient Default { get; } } diff --git a/src/Square/Merchants/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs b/src/Square/Merchants/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs deleted file mode 100644 index f95dc920..00000000 --- a/src/Square/Merchants/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System.Text.Json.Serialization; -using Square.Core; - -namespace Square.Merchants.CustomAttributeDefinitions; - -[Serializable] -public record DeleteCustomAttributeDefinitionsRequest -{ - /// - /// The key of the custom attribute definition to delete. - /// - [JsonIgnore] - public required string Key { get; set; } - - /// - public override string ToString() - { - return JsonUtils.Serialize(this); - } -} diff --git a/src/Square/Mobile/IMobileClient.cs b/src/Square/Mobile/IMobileClient.cs deleted file mode 100644 index 4ab4fb56..00000000 --- a/src/Square/Mobile/IMobileClient.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Square; - -namespace Square.Mobile; - -public partial interface IMobileClient -{ - Task AuthorizationCodeAsync( - RequestOptions? options = null, - CancellationToken cancellationToken = default - ); -} diff --git a/src/Square/Mobile/MobileClient.cs b/src/Square/Mobile/MobileClient.cs deleted file mode 100644 index b75ecceb..00000000 --- a/src/Square/Mobile/MobileClient.cs +++ /dev/null @@ -1,48 +0,0 @@ -using Square; -using Square.Core; - -namespace Square.Mobile; - -public partial class MobileClient : IMobileClient -{ - private RawClient _client; - - internal MobileClient(RawClient client) - { - _client = client; - } - - /// - /// await client.Mobile.AuthorizationCodeAsync(); - /// - public async Task AuthorizationCodeAsync( - RequestOptions? options = null, - CancellationToken cancellationToken = default - ) - { - var response = await _client - .SendRequestAsync( - new JsonRequest - { - BaseUrl = _client.Options.BaseUrl, - Method = HttpMethod.Post, - Path = "mobile/authorization-code", - Options = options, - }, - cancellationToken - ) - .ConfigureAwait(false); - if (response.StatusCode is >= 200 and < 400) - { - return; - } - { - var responseBody = await response.Raw.Content.ReadAsStringAsync(); - throw new SquareApiException( - $"Error with status code {response.StatusCode}", - response.StatusCode, - responseBody - ); - } - } -} diff --git a/src/Square/Square.csproj b/src/Square/Square.csproj index f8bbb629..fab3eec3 100644 --- a/src/Square/Square.csproj +++ b/src/Square/Square.csproj @@ -5,7 +5,7 @@ enable 12 enable - 43.0.0 + 43.0.1 $(Version) $(Version) README.md diff --git a/src/Square/SquareClient.cs b/src/Square/SquareClient.cs index 41177bf3..895c1378 100644 --- a/src/Square/SquareClient.cs +++ b/src/Square/SquareClient.cs @@ -1,37 +1,5 @@ -using Square.ApplePay; -using Square.BankAccounts; -using Square.Bookings; -using Square.CashDrawers; -using Square.Catalog; -using Square.Channels; -using Square.Checkout; using Square.Core; -using Square.Customers; -using Square.Devices; -using Square.Disputes; -using Square.Employees; -using Square.Events; -using Square.GiftCards; -using Square.Inventory; -using Square.Invoices; -using Square.Labor; -using Square.Locations; -using Square.Loyalty; -using Square.Merchants; -using Square.Mobile; -using Square.OAuth; -using Square.Orders; -using Square.Payments; -using Square.Payouts; -using Square.Sites; -using Square.Snippets; -using Square.Team; -using Square.TeamMembers; -using Square.Terminal; -using Square.TransferOrders; -using Square.V1Transactions; -using Square.Vendors; -using Square.Webhooks; +using Square.Default; namespace Square; @@ -53,7 +21,7 @@ public SquareClient(string? token = null, ClientOptions? clientOptions = null) { "X-Fern-Language", "C#" }, { "X-Fern-SDK-Name", "Square" }, { "X-Fern-SDK-Version", Version.Current }, - { "User-Agent", "Square/43.0.0" }, + { "User-Agent", "Square/43.0.1" }, } ); clientOptions ??= new ClientOptions(); @@ -69,115 +37,10 @@ public SquareClient(string? token = null, ClientOptions? clientOptions = null) } } _client = new RawClient(clientOptions); - OAuth = new OAuthClient(_client); - V1Transactions = new V1TransactionsClient(_client); - ApplePay = new ApplePayClient(_client); - BankAccounts = new BankAccountsClient(_client); - Bookings = new BookingsClient(_client); - Cards = new Square.Cards.CardsClient(_client); - Catalog = new CatalogClient(_client); - Channels = new ChannelsClient(_client); - Customers = new CustomersClient(_client); - Devices = new DevicesClient(_client); - Disputes = new DisputesClient(_client); - Employees = new EmployeesClient(_client); - Events = new EventsClient(_client); - GiftCards = new GiftCardsClient(_client); - Inventory = new InventoryClient(_client); - Invoices = new InvoicesClient(_client); - Labor = new LaborClient(_client); - Locations = new LocationsClient(_client); - Loyalty = new LoyaltyClient(_client); - Merchants = new MerchantsClient(_client); - Checkout = new CheckoutClient(_client); - Orders = new OrdersClient(_client); - Payments = new PaymentsClient(_client); - Payouts = new PayoutsClient(_client); - Refunds = new Square.Refunds.RefundsClient(_client); - Sites = new SitesClient(_client); - Snippets = new SnippetsClient(_client); - Subscriptions = new Square.Subscriptions.SubscriptionsClient(_client); - TeamMembers = new TeamMembersClient(_client); - Team = new TeamClient(_client); - Terminal = new TerminalClient(_client); - TransferOrders = new TransferOrdersClient(_client); - Vendors = new VendorsClient(_client); - Mobile = new MobileClient(_client); - CashDrawers = new CashDrawersClient(_client); - Webhooks = new WebhooksClient(_client); + Default = new DefaultClient(_client); } - public OAuthClient OAuth { get; } - - public V1TransactionsClient V1Transactions { get; } - - public ApplePayClient ApplePay { get; } - - public BankAccountsClient BankAccounts { get; } - - public BookingsClient Bookings { get; } - - public Square.Cards.CardsClient Cards { get; } - - public CatalogClient Catalog { get; } - - public ChannelsClient Channels { get; } - - public CustomersClient Customers { get; } - - public DevicesClient Devices { get; } - - public DisputesClient Disputes { get; } - - public EmployeesClient Employees { get; } - - public EventsClient Events { get; } - - public GiftCardsClient GiftCards { get; } - - public InventoryClient Inventory { get; } - - public InvoicesClient Invoices { get; } - - public LaborClient Labor { get; } - - public LocationsClient Locations { get; } - - public LoyaltyClient Loyalty { get; } - - public MerchantsClient Merchants { get; } - - public CheckoutClient Checkout { get; } - - public OrdersClient Orders { get; } - - public PaymentsClient Payments { get; } - - public PayoutsClient Payouts { get; } - - public Square.Refunds.RefundsClient Refunds { get; } - - public SitesClient Sites { get; } - - public SnippetsClient Snippets { get; } - - public Square.Subscriptions.SubscriptionsClient Subscriptions { get; } - - public TeamMembersClient TeamMembers { get; } - - public TeamClient Team { get; } - - public TerminalClient Terminal { get; } - - public TransferOrdersClient TransferOrders { get; } - - public VendorsClient Vendors { get; } - - public MobileClient Mobile { get; } - - public CashDrawersClient CashDrawers { get; } - - public WebhooksClient Webhooks { get; } + public DefaultClient Default { get; } private static string GetFromEnvironmentOrThrow(string env, string message) { diff --git a/src/Square/Webhooks/IWebhooksClient.cs b/src/Square/Webhooks/IWebhooksClient.cs deleted file mode 100644 index 10881b16..00000000 --- a/src/Square/Webhooks/IWebhooksClient.cs +++ /dev/null @@ -1,9 +0,0 @@ -using Square.Webhooks.EventTypes; - -namespace Square.Webhooks; - -public partial interface IWebhooksClient -{ - public EventTypesClient EventTypes { get; } - public Square.Webhooks.Subscriptions.SubscriptionsClient Subscriptions { get; } -}